Source: https://ww2.ac-poitiers.fr/math_sp/sites/math_sp/IMG/pdf/sujet_cap_math_sciences_g.a_modifie_7_mars.pdf