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