Source: https://lamerci-maths-2nde.jimdofree.com/app/download/14209884332/Chap+09+-+Ex+6B+-+Fiche+Fonctions+affines+par+morceaux+-+CORRIGE.pdf