Source: http://maths.akkouche.free.fr/Maths/Exercices/Ex_Chap0_Revisions_Fonctions-Cor.pdf