Sub topic 9
Sum and Product of Roots
This chapter assumes you can solve a quadratic by factorisation and by the quadratic formula, and that you know the discriminant decides whether the roots are real. Here you will learn to read the sum and product of the roots straight from the coefficients, without solving the equation.
The two relations
Take a quadratic in standard form, ax² + bx + c = 0 with a ≠ 0. Call its roots α and β. Then:
- Sum of roots: α + β = −b/a
- Product of roots: αβ = c/a
These hold whether the roots are real or complex, equal or distinct, rational or irrational. The only requirement is that a ≠ 0.
Why they hold
If α and β are the roots, the quadratic can be written as a(x − α)(x − β). Expand it:
a(x − α)(x − β) = a[x² − (α + β)x + αβ] = ax² − a(α + β)x + aαβ
Compare this with ax² + bx + c term by term. Then b = −a(α + β) and c = aαβ. Dividing by a gives the two relations.
You can also see them from the quadratic formula. The two roots are (−b + √D)/2a and (−b − √D)/2a, where D = b² − 4ac. The square-root terms cancel when you add them, leaving −2b/2a = −b/a. When you multiply them, you get (b² − D)/4a² = 4ac/4a² = c/a.
A quick check in code
This script confirms both relations for x² − 5x + 6 = 0, whose roots are 2 and 3.
a, b, c = 1, -5, 6
roots = [2, 3]
assert sum(roots) == -b / a # sum of roots = -b/a
assert roots[0] * roots[1] == c / a # product of roots = c/a
print("sum =", sum(roots), "product =", roots[0] * roots[1])The output is sum = 5 product = 6. Note that −b/a = −(−5)/1 = 5. A common slip is to forget the minus sign and report −5.
Reading information without solving
The relations tell you about the signs of the roots, and you can get this from the coefficients alone. Assume the roots are real, so D ≥ 0.
| Product (c/a) | Sum (−b/a) | What it means |
|---|---|---|
| Positive | Positive | Both roots positive |
| Positive | Negative | Both roots negative |
| Negative | Positive | Roots have opposite signs; the larger in size is positive |
| Negative | Negative | Roots have opposite signs; the larger in size is negative |
| Zero | Any | One root is 0 |
A positive product means the roots share a sign, and the sum then tells you which sign. A negative product means the roots have opposite signs, and the sign of the sum tells you which root is larger in size.
The check that the roots are real matters. For x² + 2x + 5 = 0 the product is 5 and the sum is −2, which suggests two negative roots. But D = 4 − 20 = −16 < 0, so there are no real roots at all. Check the discriminant first.
Symmetric expressions of the roots
CAT questions often ask for a value such as α² + β² or 1/α + 1/β. You do not need to find α and β. Write the expression using only α + β and αβ, then substitute.
Let S = α + β and P = αβ. These identities cover most cases:
| Expression | In terms of S and P | Column | Column | Column | Column |
|---|---|---|---|---|---|
| α² + β² | S² − 2P | ||||
| 1/α + 1/β | S/P | ||||
| α/β + β/α | (S² − 2P)/P | ||||
| (α − β)² | S² − 4P | ||||
| \ | α − β\ | √(S² − 4P) = √D / \ | a\ | ||
| α³ + β³ | S³ − 3PS | ||||
| α³ − β³ | (α − β)(S² − P) |
The line for (α − β)² deserves attention. Because S² − 4P = (b² − 4ac)/a², the gap between the roots is √D/|a|. This is a fast way to get the difference of the roots.
Worked example 1
If α and β are the roots of 2x² − 7x + 3 = 0, find α² + β² and 1/α + 1/β.
Here S = 7/2 and P = 3/2.
- α² + β² = S² − 2P = 49/4 − 3 = 37/4
- 1/α + 1/β = S/P = (7/2)/(3/2) = 7/3
You can verify by solving. The roots are 3 and 1/2. Then 9 + 1/4 = 37/4, and 1/3 + 2 = 7/3. Both match.
Worked example 2
If α and β are the roots of x² − 6x + 4 = 0, find α³ + β³.
S = 6 and P = 4. Then α³ + β³ = S³ − 3PS = 216 − 72 = 144.
The roots here are 3 ± √5, which are awkward to cube by hand. The identity avoids that.
Finding an unknown coefficient
Often a question gives a condition on the roots and asks for a parameter. Write the condition using S and P, then solve for the parameter.
Worked example 3
For what value of k is one root of x² − 8x + k = 0 equal to three times the other?
Let the roots be m and 3m.
- Sum: m + 3m = 8, so m = 2.
- Product: m · 3m = 3m² = 12, so k = 12.
Check: x² − 8x + 12 = (x − 2)(x − 6), and 6 = 3 × 2.
Worked example 4
The roots of x² − (k + 1)x + 9 = 0 are equal. Find k.
Equal roots mean D = 0, but the relations also work. Let both roots be r. Then r² = 9, so r = ±3, and the sum is 2r = k + 1. So k + 1 = 6 or −6, giving k = 5 or k = −7.
Both values are valid here, since r = 3 and r = −3 each give a real double root.
The next table lists the standard conditions and how to turn each into an equation.
| Condition on the roots | Equation to use |
|---|---|
| Roots are equal in size, opposite in sign | S = 0, so b = 0 |
| Roots are reciprocals of each other | P = 1, so c = a |
| One root is 0 | P = 0, so c = 0 |
| Roots are in ratio m : n | Put roots as mt and nt, then use S and P |
| Roots differ by d | S² − 4P = d² |
Using one known root
If you know one root, the other follows from either relation. For x² − 7x + k = 0 with one root equal to 4, the sum gives the other root as 7 − 4 = 3. The product then gives k = 12. This is faster than substituting 4 into the equation and solving for k, then factoring.
A related fact: if a, b, c are rational and one root is p + √q (with √q irrational), the other root is p − √q. If a, b, c are real and one root is complex, the other is its conjugate. This follows from the sum and product being rational or real.
A diagram of the workflow
Common errors
- Dropping the minus sign. The sum is −b/a, not b/a. For x² + 5x + 6 = 0, the sum is −5.
- Forgetting to divide by a. For 2x² − 8x + 6 = 0, the sum is 4, not 8, and the product is 3, not 6.
- Not putting the equation in standard form first. For 3x² = 5x − 2, move everything to one side to get 3x² − 5x + 2 = 0. Then S = 5/3 and P = 2/3.
- Using the relations for non-real roots as if they were real. The relations still hold, but sign conclusions from the table need D ≥ 0.
- Misusing α² + β². It is S² − 2P, not S² − P. Mixing it up with the (α − β)² identity is frequent.
- Ignoring a parameter's restrictions. After finding a parameter from a root condition, check that the equation really has real roots, if the question needs them.
CAT-style shortcuts
- If you only need S or P, do not solve the equation. This is usually the intended route.
- For a question asking for α² + β² or a similar symmetric value, convert to S and P first.
- When the options include values that give a negative square root or break the sign table, you can eliminate them quickly.
- To check an answer, test it: for x² − 5x + 6, the roots 2 and 3 must add to 5 and multiply to 6.
The substitution α² = Sα − P comes from the equation itself, since α satisfies α² − Sα + P = 0. Applying it repeatedly lowers any power of α to the form pα + q. For example, α³ = α · α² = α(Sα − P) = Sα² − Pα = S(Sα − P) − Pα = (S² − P)α − SP.
Exercise
The roots of 3x² − 12x + 5 = 0 are α and β. Find the value of α² + β² and of (α − β)².
Show answer
Here S = 12/3 = 4 and P = 5/3. Then α² + β² = S² − 2P = 16 − 10/3 = 38/3. And (α − β)² = S² − 4P = 16 − 20/3 = 28/3.
Exercise
One root of x² − 10x + k = 0 is four times the other. Find k, and state whether both roots are positive.
Show answer
Let the roots be m and 4m. The sum gives 5m = 10, so m = 2. The roots are 2 and 8. The product gives k = 16. Both roots are positive, since the product 16 is positive and the sum 10 is positive.
Exercise
If the roots of x² − px + 20 = 0 are positive integers, list every possible value of p.
Show answer
The product is 20, so the pairs of positive integers are (1, 20), (2, 10) and (4, 5). The sum p is 21, 12 or 9. So p can be 9, 12 or 21.