Source: https://maths.bzh/pdf/classe3/sequence2/exercice/exercices-3e-fonctions.pdf