Source: http://mathsguyon.fr/wp-content/uploads/2016/05/TD-fonctions_correction.pdf