The Formula
For any quadratic ax2+bx+c=0:
x=2a−b±b2−4ac
Plug in a, b, c. Get the answers.
Where Does It Come From?
It’s completing the square on the general form, done once for all quadratics.
Start with the general quadratic:
ax2+bx+c=0
Divide everything by a:
x2+abx+ac=0
Move the constant to the right:
x2+abx=−ac
Add (2ab)2 to both sides to complete the square:
x2+abx+4a2b2=−ac+4a2b2
Left side is now a perfect square:
(x+2ab)2=4a2b2−4ac
Take the square root:
x+2ab=±2ab2−4ac
Solve for x:
x=2a−b±b2−4ac
Example 1
Solve: x2+5x+6=0
Here a=1, b=5, c=6.
x=2−5±25−24=2−5±1 So x=2−5+1=−2 or x=2−5−1=−3.
Example 2
Solve: 2x2−4x−6=0
Here a=2, b=−4, c=−6.
x=44±16+48=44±64=44±8 So x=412=3 or x=4−4=−1.
Example 3: Irrational Roots
Solve: x2−2x−1=0
Here a=1, b=−2, c=−1.
x=22±4+4=22±8=22±22=1±2
When to Use It
The quadratic formula always works.
| Situation | Best method |
|---|
| Simple, obvious factors | Factoring |
| Need exact irrational answers | Quadratic formula |
| Coefficients are messy | Quadratic formula |
| Just want a quick answer | Quadratic formula |