Source: https://www.math.u-psud.fr/~thomine/fr/archives/Enseignement1415/GeomPCSO/DMCorrige.pdf