Source: https://mathematiques.daval.free.fr/IMG/pdf/DS7_ch9_fonctions_usuelles.pdf