Source: http://math.univ-lyon1.fr/~gelineau/MASS41/DM2_pour_le_23_04_Corrige.pdf