Source: http://ww2.ac-poitiers.fr/math_sp/IMG/pdf/sujet_cap_b.pdf