Source: https://mathgm.free.fr/documents/EDS1/cours/second_degre.pdf