Worked examples — Vieta's formulas — sum and product of roots
Before anything, let us re-anchor the only two tools we use, in plain words.
Two words we will use repeatedly:
- Leading coefficient — the number multiplying . If it is the quadratic is called monic.
- Root — a value of that makes the expression equal zero. A quadratic has exactly two (counting a repeat as two, and allowing imaginary ones).
If you want to know how many real roots exist and whether they repeat, that is a job for the Discriminant; Vieta's formulas work regardless of what the roots turn out to be, which is exactly their charm.
The scenario matrix
Every problem this topic can throw at you lands in one of these cells. The last column tells you which worked example covers it.
| Cell | What makes it tricky | Sign / degenerate feature | Example |
|---|---|---|---|
| A. Clean monic | , tidy integers | both roots positive | Ex 1 |
| B. Non-monic | , must divide first | mixed signs | Ex 2 |
| C. Negative and | sign bookkeeping | sum , product | Ex 3 |
| D. A root is zero | degenerate | product | Ex 4 |
| E. Equal roots | discriminant | Ex 5 | |
| F. Imaginary roots | no real solutions | sum/product still real | Ex 6 |
| G. Transformed roots | build a new equation | reciprocals / squares | Ex 7 |
| H. Word problem (geometry) | translate then apply | rectangle sides | Ex 8 |
| I. Exam twist | find a hidden coefficient | one root & Vieta given | Ex 9 |
We will hit all nine cells with nine examples. Read the Forecast line and guess before scrolling.

The figure above is our sign-map: it shows, at a glance, what the signs of the sum and product tell you about the roots — we will lean on it in Examples 3, 4 and 8.
Cell A — Clean monic quadratic
Forecast: the roots factor as and — can you predict the sum and product before computing?
- Identify . Here . Why this step? Vieta's formulas are stated in terms of these three numbers, so pinning them down (with their signs) is always move one.
- Sum. Why this step? Applying the sum rule directly; the double negative flips to .
- Product. Why this step? The product rule reads the constant term straight off.
Verify: factor , so roots are ; indeed and . ✓
Cell B — Non-monic (divide by first!)
Forecast: because is negative, the product will be negative — so the roots have opposite signs. Guess the sum too.
- Identify. .
- Sum. Why this step? We must divide by ; skipping this is the single most common error (see parent Mistake 2).
- Product.
Verify: actual roots via Quadratic Formula or Factoring Quadratics: gives and . Sum ✓, product ✓.
Cell C — Negative middle, negative constant (sign bookkeeping)
Forecast: the coefficient is negative. Does that change anything? Look at the sign-map figure: product negative opposite-sign roots.
- Identify — carefully. . Why this step? The leading sign is easy to miss; , not .
- Sum. Why this step? Two minuses again cancel; the answer stays positive.
- Product. Why this step? Dividing a positive by flips the sign — product is negative, confirming opposite-sign roots.
Verify: multiply the whole equation by : , roots and . Sum ✓, product ✓. Multiplying an equation by a constant does not move its roots, so Vieta's answers are identical — a good sanity habit.
Cell D — A root is zero (degenerate: )
Forecast: there is no constant term (). What must the product of the roots therefore be?
- Identify. . Why this step? Writing explicitly reminds us the constant term is genuinely there — it's just zero.
- Product. Why this step? A product being forces at least one root to be — the degenerate case the sign-map marks on the boundary line.
- Sum. Why this step? Even with a zero root, the sum rule is unchanged; the other root must then be the whole sum.
Verify: , roots and . Sum ✓, product ✓. The zero root simply "donates" nothing to the sum and kills the product.
Cell E — Equal roots (discriminant )
Forecast: this is a perfect square. If both roots are equal, sum and product still exist — what should they be?
- Identify. .
- Sum.
- Product.
- Solve for the repeated root. If , then , and indeed . Why this step? When roots are equal Vieta's still holds; we exploit to split the sum in half and cross-check with the product.
Verify: , a double root at . Sum ✓, product ✓. (The Discriminant here is , the signature of equal roots.)
Cell F — Imaginary roots (no real solutions)
Forecast: the discriminant is negative, so the parabola never touches the -axis. Do Vieta's formulas still give real numbers?
- Identify. .
- Sum.
- Product. Why this step? We applied the rules blind to whether the roots are real — that is the point: Vieta's are algebraic identities, not geometry.
Verify: by Quadratic Formula, . The two roots are complex conjugates. Their sum ✓ (imaginary parts cancel), and product ✓. Real coefficients real sum and product, always.
Cell G — Transformed roots (build a new equation)
Forecast: the new sum is — can you write that using only and ? (This is a symmetric expression trick.)
- Old sum & product.
- New sum. Why this step? Combining the reciprocals over a common denominator turns them into the ratio of the two quantities we already know — no need to find individually.
- New product.
- Assemble using :
Verify: old roots of are and ; their reciprocals are and . Check — roots ✓.
Cell H — Word problem (geometry)
Forecast: the two sides are the two roots of one quadratic. What are their sum and product? Glance at the sign-map: both quantities positive both roots positive (lengths must be!).

- Translate the words. Perimeter . Area . Why this step? "Sum" and "product" of the two sides are exactly the two Vieta quantities — the problem is secretly a quadratic.
- Build the quadratic whose roots are the sides: Why this step? Reverse-Vieta: given sum and product, this monic form reproduces them.
- Solve.
Verify: sides and . Perimeter ✓; area ✓; both positive as lengths must be. (If the product had been negative we'd know the problem was impossible — a real rectangle can't have a negative-length side.)
Cell I — Exam twist (find a hidden coefficient)
Forecast: you know the product must be . If one root is , what is the other — before touching ?
- Use the product first. . With : Why this step? The product ties both roots together, and the constant term is given, so it pins the second root immediately — no need for yet.
- Now the sum gives . Why this step? With both roots known, the sum rule turns into an equation for the unknown coefficient.
Verify: substitute : , roots and ✓. Given root is present, and is the partner.
Recall Which cell was hardest — quick self-quiz
Product is negative — what do the roots' signs do? ::: They have opposite signs. in — what is one root guaranteed to be? ::: Zero (product is ). Do Vieta's formulas still work when the roots are imaginary? ::: Yes — sum and product stay real for real coefficients. Given perimeter and area of a rectangle, why is Vieta's the fast route? ::: The two sides are roots of .
See also: Polynomial Roots and Coefficients, Completing the Square, Systems of Equations, Descartes' Rule of Signs.