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