Source: https://sebjaumaths.free.fr/premiere_spe_maths/exercices/fiche_3_correction.pdf