Source: http://maths.vivien.free.fr/documents/devoirs/BB1_2012_correction.pdf