Source: https://sccollege.edu/Faculty/epham/Documents/IntroAlgManuscript/Chapter 13 -Quadratic equations.pdf