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