Source: https://www.math.univ-paris13.fr/~vallette/Cours/Cours%20L2MASS/Controle%20continu%201%20-%20CORRECTION%20%28Octobre%202012%29.pdf