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