Source: https://perso.math.univ-toulouse.fr/ledoux/files/2021/06/Exercices-L21.pdf