Source: https://math.univ-cotedazur.fr/~rubentha/enseignement/poly-integration-probas.pdf