Source: https://site.math.free.fr/premiere_stg/cours_premiere_stt/fonctions_affines.pdf