Source: https://www.ljll.math.upmc.fr/moussa/pdf/enseignements/td_ar_7_cor.pdf