Source: https://www.math.univ-toulouse.fr/~gamboa/DOCUMENTS/Teaching/2016_2017/L1/td1_corrige.pdf