Source: https://www.math.univ-toulouse.fr/~agarivie/Telecom/Lakanal/PC0203/TD4.pdf