Source: https://www.math.univ-toulouse.fr/~weiss/Docs/Exercices/IMACSII/CorrectionTD4_1112.pdf