Source: http://mathematiques.ac.free.fr/IMG/pdf/Convexite_exercices_TES.pdf