Source: https://mathgm.fr/images/documents/1STMG/Cours_exercices/chapitre5_second_degre.pdf