Source: https://mahendra-mariadassou.github.io/teaching/Licence_FDV/2019/Exercices/06_1_Int%C3%A9gration_corrig%C3%A9.pdf