Source: https://www.math.univ-toulouse.fr/~schindle/td/analyse_numerique/td_3_integration.pdf