Sub topic 18
Sum and Product of Roots
This chapter assumes you can factor trinomials, solve quadratics by factoring and by the quadratic formula, and read the discriminant. It shows how to get facts about the roots of a quadratic without finding them. On the GRE this saves time, and it often turns a hard-looking problem into one line of arithmetic.
The Core Idea
Take a quadratic in standard form, ax² + bx + c = 0 with a ≠ 0, and suppose its roots are r and s. Dividing by a gives a monic equation (leading coefficient 1):
x² + (b/a)x + c/a = 0
The same equation written from its roots is (x − r)(x − s) = 0. Expand it:
x² − (r + s)x + rs = 0
Two polynomials with the same roots and the same leading coefficient must have the same coefficients. Matching them gives Vieta's formulas:
- Sum of the roots: r + s = −b/a
- Product of the roots: rs = c/a
The sign on the sum is the one students most often get wrong. The sum is negative b over a, while the product is positive c over a.
# x**2 - 5x + 6 = (x - 2)(x - 3), so the roots are 2 and 3
a, b, c = 1, -5, 6
roots = (2, 3)
assert sum(roots) == -b / a
assert roots[0] * roots[1] == c / a
print("sum =", -b / a, "product =", c / a)Why It Works with the Quadratic Formula
The two roots are (−b + √D)/(2a) and (−b − √D)/(2a), where D = b² − 4ac. Adding them cancels the ± square-root terms and leaves −2b/(2a) = −b/a. Multiplying them gives (b² − D)/(4a²) = 4ac/(4a²) = c/a. The formulas hold for every case, including the following.
- Two different real roots.
- A repeated root. Count it twice, so for (x − 3)² = 0 the sum is 6 and the product is 9.
- Complex roots, as long as you accept that the question is asking about them.
Reading the Sign of the Roots
The sum and product tell you the signs of the roots, provided the roots are real. Use the table with a = 1 for simplicity. In general, replace the sum with −b/a and the product with c/a.
| Product (c/a) | Sum (−b/a) | What it tells you |
|---|---|---|
| Positive | Positive | Both roots positive |
| Positive | Negative | Both roots negative |
| Negative | Any | One positive and one negative root |
| Zero | Any | At least one root is 0 |
If the product is positive, the roots share a sign, and the sum picks which sign. If the product is negative, the roots have opposite signs, and the sign of the sum tells you which one is larger in absolute value.
Check that the roots are real before you rely on this table. The equation x² + 2x + 5 = 0 has product 5 and sum −2, which suggests "both negative," but its discriminant is 4 − 20 = −16, so it has no real roots at all.
Worked Examples
Example 1: Find a Symmetric Expression Without Solving
If r and s are the roots of x² − 7x + 10 = 0, find r² + s².
The sum is 7 and the product is 10. Use the identity from the earlier chapter on squaring a sum:
r² + s² = (r + s)² − 2rs = 49 − 20 = 29
Other expressions that reduce to the sum and product follow the same pattern.
- 1/r + 1/s = (r + s)/(rs)
- (r − s)² = (r + s)² − 4rs
- r³ + s³ = (r + s)³ − 3rs(r + s)
Example 2: Find an Unknown Coefficient
One root of x² − kx + 12 = 0 is 3. Find k and the other root.
The product of the roots is 12, so the other root is 12/3 = 4. The sum is 3 + 4 = 7, and the sum equals −b/a = k. So k = 7.
You can also substitute x = 3 directly and get 9 − 3k + 12 = 0, so k = 7. Both methods agree, which is a useful check.
Example 3: Build an Equation from Its Roots
Write a quadratic whose roots are 4 and −1. The sum is 3 and the product is −4, so use x² − (sum)x + (product) = 0:
x² − 3x − 4 = 0
Any nonzero multiple of this equation has the same roots.
Example 4: A Quantitative Comparison Question
The equation x² − 8x + 5 = 0 has roots r and s.
- Quantity A: r + s
- Quantity B: rs
The sum is 8 and the product is 5, so Quantity A is greater. You never needed to find the roots, which are 4 ± √11. Note that the discriminant is 64 − 20 = 44, which is positive, so the roots are real and the comparison is about real numbers.
A Quick Diagram of the Decision
Common Errors
- Dropping the minus sign on the sum. For x² − 5x + 6 = 0, b = −5, so the sum is −(−5) = 5. For x² + 5x + 6 = 0, the sum is −5.
- Forgetting to divide by a. For 2x² − 6x + 4 = 0, the sum is 6/2 = 3 and the product is 4/2 = 2. Using 6 and 4 is wrong.
- Using the table without checking that the roots are real. See the x² + 2x + 5 example above.
- Assuming the roots are distinct. If the discriminant is 0, there is one repeated root, and Vieta's formulas count it twice.
- Mixing up a coefficient with a root. In x² − kx + 12 = 0, the value k is not a root. It equals the sum of the roots.
Using the Formulas with a Parameter
Sometimes the equation contains a parameter such as k, and you are told something about the roots. Translate the condition into the sum or product, then solve for k.
For example, suppose the roots of x² − (k + 1)x + 2k = 0 sum to 9. Then k + 1 = 9, so k = 8. The equation becomes x² − 9x + 16 = 0. Check the discriminant: 81 − 64 = 17, which is positive, so the roots are real, and the condition makes sense.
If the same equation had roots whose product was 10, then 2k = 10 and k = 5. You still need to confirm that the discriminant is non-negative if the problem requires real roots. Here the equation is x² − 6x + 10 = 0 with discriminant 36 − 40 = −4. The roots are not real, so no real values meet that condition.
Exercises
Exercise
The roots of 3x² − 12x + 5 = 0 are r and s. What is the value of r² + s²?
Show answer
The sum is 12/3 = 4 and the product is 5/3. Then r² + s² = (r + s)² − 2rs = 16 − 10/3 = 38/3.
Exercise
One root of x² + bx − 20 = 0 is 5. Find b and the other root.
Show answer
The product of the roots is −20, so the other root is −20/5 = −4. The sum is 5 + (−4) = 1, and the sum equals −b, so b = −1.
Exercise
Quantity A is the product of the solutions of x² − 3x − 10 = 0. Quantity B is the sum of the solutions of x² + 4x + 1 = 0. Which quantity is greater? (Both discriminants are positive.)
Show answer
Quantity A is c/a = −10. Quantity B is −b/a = −4. Since −4 is greater than −10, Quantity B is greater.