Source: https://www.maths-france.fr/MathSpe/Problemes/Centrale/2010/Centrale_2010_PC_M2_Corrige.pdf