Vieta’s formulas are a favorite shortcut for handling quadratic equations quickly. This guide covers the direct form (the sum and product of the roots), the converse (finding two numbers from their sum and product), plus the classic tricks for reading roots by inspection and determining the signs of the roots.
The sum and product of the roots
Take a quadratic with . If it has two roots and (that is, the discriminant ), then:
The powerful part is that you know the sum and product of the roots without solving the equation. Keep the condition in mind: if the equation has no real roots, so there is no real sum or product to apply the formulas to.
For example, take (here , , ):
So the two roots add up to and multiply to .
Finding roots by inspection
Once you know and , you just need two numbers whose sum is and whose product is . In the example above, the two numbers with sum and product are and . So the roots are and — no discriminant needed.
Two lightning-fast special cases
There are two special cases where you can read the roots off directly, just by adding up the coefficients:
| Condition | Roots |
|---|---|
For instance, has , so immediately and .
And has , so and .
Determining the signs of the roots
Vieta’s formulas let you decide the signs of the two roots without computing them. First you always need so that real roots exist, then you look at and :
| Condition | Conclusion about the roots |
|---|---|
| The roots have opposite signs | |
| and | Both roots are positive |
| and | Both roots are negative |
Note: when you automatically have (a negative product forces the roots to be distinct), so you don’t need to check separately. When , however, you must confirm first before using to read off the signs.
The converse: finding two numbers from their sum and product
This is the reverse direction, and it comes up constantly. If two numbers have sum and product , then they are the roots of:
Such numbers exist (that is, this equation has real roots) if and only if .
Example. Find two numbers whose sum is and whose product is .
The numbers we want are the roots of:
Compute the discriminant: . So:
The two numbers are and (check: and , correct).
Application: symmetric expressions in the roots
A very common problem type asks you to evaluate an expression involving both roots without solving the equation.
Example. Given with roots and , find .
By Vieta’s formulas: and . Rewrite the target expression in terms of and :
Substitute the values:
So . This is much faster and cleaner than finding each root and squaring it.
Common mistakes
- Forgetting to check . You may only use Vieta’s formulas when the equation has real roots. Many trick problems hand you a quadratic with no real solutions.
- Getting the sign of wrong. The formula is — don’t drop the minus sign. If then , not .
- Forgetting to divide by . When , you must use and , not just and .
- Misremembering the converse condition. Two numbers with sum and product exist only when .
Master the two formulas and along with the converse, and you’ll read off roots and evaluate symmetric expressions far more quickly. Try entering the examples above into the calculator to check each step of your own work.