Source: http://mathsollivier.free.fr/seconde/FonctionsAffines/problemeTrapezeCorrection.pdf