Derivation of the quadratic formula
A computer scientist’s approach
Published in
4 min readJun 26, 2021
Contents
- Introduction
- Completing the square
- The derivation
- Discussion
- Endnotes
- Works cited
Introduction
This article will just be a quick proof of the quadratic formula,¹ the formula that is used to work out the solutions to the general quadratic equation.² I will not be covering the geometric intuition of the derivation and the reader need only be familiar with methods in elementary algebra.
Completing the square
The method of completing the square is central to deriving the quadratic formula taking the form of the trinomial below (Eq. 1):
The following³ is an informal description of the procedure of completing the square:
- Divide all coefficients in the trinomial by the
a
coefficient. - Transpose the
c
coefficient to the other side of the equation. - Multiply the b coefficient by ½ and store the value in a new variable called ε.
- Factor the trinomial expression — note that this should always result in the form:
(x + ε)²