Source: https://maths.ac-amiens.fr/IMG/pdf/exercices_Terminale_S_ES_STI2D_STMG.pdf