Source: https://www.freemaths.fr/annales-mathematiques/bac-s-mathematiques-centres-etrangers-2018-specialite-corrige-exercice-4.pdf