A quadratic equation has the form with . There are three routes, and picking the right one saves time: factoring for incomplete equations, sum and product when the roots are integers, and the general formula for everything else.
Incomplete equations
- : .
- : or .
Resist dividing by : that erases the root .
The quadratic formula
The discriminant tells you how many real roots there are:
| Sign of | Real roots |
|---|---|
| two, distinct | |
| one (double root) | |
| none |
Worked example:
- Coefficients: , , .
- .
- , so and .
Worked example:
- , , .
- .
- , so and .
- Check: .
Worked example:
- .
- No real roots. Over the complex numbers, .
Where the formula comes from
It comes from completing the square. Divide by and add to both sides:
Take the square root of both sides and isolate to reach the formula. Knowing this helps you remember why the denominator is and not just .
Sum and product of the roots
For roots and of :
Worked example:
- Sum and product .
- Pairs with product 12: , , . Only adds to 7.
- Roots: and .
Worked example:
- Sum and product . A negative product means the roots have opposite signs.
- The pair has sum and product .
- Roots: and .
Common mistakes
- Forgetting that carries its sign: in , and .
- Computing as when the correct value is .
- Dividing only by and forgetting the .
Frequently asked questions
Why is it called Bhaskara's formula in Brazil?
It is a Brazilian naming habit. The formula was known before the Indian mathematician Bhaskara II; elsewhere it is simply called the quadratic formula.
What if the discriminant is negative?
There are no real roots. In the complex numbers the roots exist and are conjugates, such as −1 ± 2i for x² + 2x + 5 = 0.
Do I need the quadratic formula for incomplete equations?
No. If b = 0, isolate x². If c = 0, factor out x. It is faster and avoids sign errors.
When is sum and product worth using?
When a = 1 and the roots are small integers. If no obvious pair shows up within a few seconds, switch to the formula.