Source: https://www.maths-france.fr/MathSpe/Problemes/Centrale/2016/Centrale_2016_MP_M2_Corrige.pdf