You can find the sum and the product of all the roots of a polynomial equation without solving it. They come straight from the coefficients. This is a big time-saver: it lets you find missing coefficients, find the other roots once you know one, and build new equations whose roots are related to the old ones, all without ever using the quadratic formula.
If a quadratic ax2+bx+c has roots α and β, then by the factor theorem it factors as a(x−α)(x−β). Expand that:
a(x−α)(x−β)=ax2−a(α+β)x+aαβ
Compare the coefficients with ax2+bx+c: b=−a(α+β) and c=aαβ. So
α+β=−ab,αβ=ac
For a polynomial equation of degree n,
anxn+an−1xn−1+⋯+a1x+a0=0,an=0,
the n roots (counted with repeats, and including complex roots) have
sum=an−an−1,product=an(−1)na0
So you only ever need three coefficients: the leading one an, the next one an−1, and the constant a0.
| Degree | Equation | Sum of roots | Product of roots |
|---|
| 2 | ax2+bx+c=0 | −ab | ac |
| 3 | ax3+bx2+cx+d=0 | −ab | −ad |
| 4 | ax4+bx3+cx2+dx+e=0 | −ab | ae |
The sign of the product alternates with the degree: positive for even degree, negative for odd degree.
If a power is missing, its coefficient is 0. For x4−3x3+7=0, the constant is a0=7, and for 2x3+5x−4=0 the x2 coefficient is 0, so the sum of the roots is 0.
The rule counts all n roots, real and complex. If the coefficients are real, complex roots come in conjugate pairs p+qi and p−qi. A pair has a real sum and product, which makes the rule very handy:
(p+qi)+(p−qi)=2p,(p+qi)(p−qi)=p2+q2
See complex conjugate roots for more.
Many expressions in α and β can be rewritten using only α+β and αβ:
α2+β2=(α+β)2−2αβ,α1+β1=αβα+β
A quadratic with roots r1 and r2 is
x2−(r1+r2)x+r1r2=0
that is, x2−(sum)x+(product)=0. Multiply through to clear fractions if you want integer coefficients.
For roots shifted or scaled from the old ones, a substitution also works for any degree. If the new roots are α+1, then a new root x satisfies x=α+1, so α=x−1: replace x by x−1 in the old equation. If the new roots are 2α, replace x by 2x.
(The full set of relationships between roots and coefficients, called Vieta’s formulas, also includes sums of products of pairs of roots. The IB guide only requires the sum and the product.)
The roots of 2x2−7x+4=0 are α and β. Without solving the equation, find α+β, αβ and α2+β2.
Solution. Here a=2, b=−7, c=4:
α+β=−2−7=27,αβ=24=2
α2+β2=(α+β)2−2αβ=449−4=433
Find the sum and the product of the roots of
- (a) 3x3−6x2+x+12=0
- (b) 2x4−5x3+x−6=0
Solution.
(a) Degree n=3, with a3=3, a2=−6, a0=12:
sum=3−(−6)=2,product=3(−1)3(12)=−4
(b) Degree n=4, with a4=2, a3=−5, a0=−6. There’s no x2 term, but that coefficient isn’t needed:
sum=2−(−5)=25,product=2(−1)4(−6)=−3
These totals include any complex roots. (The cubic in (a) has one real root and two complex ones, but you didn’t need to know that.)
The equation x3+px2+qx−10=0, where p,q∈R, has a root 1+2i. Find the other roots, and the values of p and q.
Solution. The coefficients are real, so the conjugate 1−2i is also a root. Call the third root γ.
Product of roots (degree 3, a0=−10):
(1+2i)(1−2i)γ=1(−1)3(−10)=10⇒5γ=10⇒γ=2
Sum of roots:
(1+2i)+(1−2i)+2=4=−1p⇒p=−4
Find q by multiplying out the factors. The conjugate pair gives (x−1)2+4=x2−2x+5, so
(x−2)(x2−2x+5)=x3−4x2+9x−10
So the roots are 2 and 1±2i, with p=−4 and q=9. Check: the expansion gives p=−4 ✓ and constant −10 ✓.
The roots of 2x2−3x−4=0 are α and β. Find a quadratic equation with integer coefficients whose roots are α+1 and β+1.
Solution. First, α+β=23 and αβ=2−4=−2.
Method 1: sum and product.
new sum=(α+1)+(β+1)=23+2=27
new product=(α+1)(β+1)=αβ+(α+β)+1=−2+23+1=21
So the equation is x2−27x+21=0. Multiply by 2:
2x2−7x+1=0
Method 2: substitution. Replace x by x−1 in the original equation:
2(x−1)2−3(x−1)−4=2x2−4x+2−3x+3−4=2x2−7x+1
Both methods give 2x2−7x+1=0. ✓
Forgetting the minus sign in the sum. The sum is −ab, not ab. For x2−5x+6=0 the roots are 2 and 3, with sum 5, which is −1−5.
Getting the sign of the product wrong for odd degrees. The product has the factor (−1)n. For a cubic, it’s −ad. Check with an easy case: (x−1)(x−2)(x−3)=x3−6x2+11x−6 has root product 6=−1−6.
Forgetting to divide by the leading coefficient. If an=1, every formula has an in the denominator. 2x2−7x+4=0 has product 2, not 4.
Using the wrong coefficient when a term is missing. In 2x4−5x3+x−6=0, the coefficient you need for the sum is that of x3, which is −5, not the next non-zero one after it. If the xn−1 term is missing, the sum is 0.
Forgetting complex roots. The sum and product include every root, real or not. A cubic with only one real root still has three roots in the formula.
Squaring the sum instead of using the identity. α2+β2 is not (α+β)2. You must subtract 2αβ.
1. (Warm-up) Find the sum and the product of the roots of 5x2+3x−2=0.
Solution
sum=−53,product=5−2=−52Check by solving: (5x−2)(x+1)=0 gives roots 52 and −1, with sum −53 ✓ and product −52 ✓.
2. (Warm-up) Find the sum and the product of the roots of 2x3+x2−8x+6=0.
Solution
Degree 3, a3=2, a2=1, a0=6:
sum=−21,product=2(−1)3(6)=−3
3. (Warm-up) Find the sum and the product of the roots of x4−3x3+2x2+7=0.
Solution
Degree 4, a4=1, a3=−3, a0=7:
sum=1−(−3)=3,product=1(−1)4(7)=7
4. (Core) The roots of x2−4x+1=0 are α and β. Find the exact values of α1+β1 and α2+β2.
Solution
α+β=4 and αβ=1.
α1+β1=αβα+β=14=4α2+β2=(α+β)2−2αβ=16−2=14
5. (Core) The roots of 3x2−5x+1=0 are α and β. Find a quadratic equation with integer coefficients whose roots are 2α and 2β.
Solution
α+β=35 and αβ=31.
New sum: 2α+2β=310. New product: (2α)(2β)=4αβ=34.
x2−310x+34=0⇒3x2−10x+4=0Check by substitution: replace x by 2x in the original: 43x2−25x+1=0; multiply by 4 to get 3x2−10x+4=0 ✓.
6. (Core) A quartic equation with real coefficients and leading coefficient 1 has roots 2i and 3−i. Find the equation, and check your answer using the sum and product of its roots.
Solution
Real coefficients, so −2i and 3+i are also roots.
(x−2i)(x+2i)=x2+4,(x−(3−i))(x−(3+i))=(x−3)2+1=x2−6x+10(x2+4)(x2−6x+10)=x4−6x3+14x2−24x+40=0Check. Sum of roots: 2i−2i+(3−i)+(3+i)=6, and the formula gives −1−6=6 ✓. Product: (2i)(−2i)(3−i)(3+i)=4×10=40, and the formula gives 1(−1)4(40)=40 ✓.
7. (Core) One root of 2x3−9x2+kx+6=0 is x=2. Use the sum and product of the roots to find the other two roots, then find k.
Solution
Let the other roots be β and γ.
Sum: 2+β+γ=29, so β+γ=25.
Product: 2βγ=2(−1)3(6)=−3, so βγ=−23.
So β and γ are the roots of x2−25x−23=0, or 2x2−5x−3=0, which factors as (2x+1)(x−3)=0. The other roots are −21 and 3.
To find k, multiply out: (x−2)(2x2−5x−3)=2x3−9x2+7x+6, so k=7.
Check: substitute x=2 into the original with k=7: 16−36+14+6=0 ✓.
8. (Challenge) The roots of x3−6x2+kx−6=0 form an arithmetic sequence. Find the roots and the value of k.
Solution
Write the roots as a−d, a, a+d.
Sum: (a−d)+a+(a+d)=3a=6, so a=2.
Product: (a−d)a(a+d)=a(a2−d2)=1(−1)3(−6)=6. With a=2: 2(4−d2)=6, so d2=1 and d=±1.
Either way the roots are 1, 2 and 3. Then
(x−1)(x−2)(x−3)=x3−6x2+11x−6so k=11.
9. (Challenge) The roots of x3−2x2+5x−3=0 are α, β and γ. Find a cubic equation whose roots are α+1, β+1 and γ+1, and check it using the sum and product of the roots.
Solution
Substitute x−1 for x:
(x−1)3−2(x−1)2+5(x−1)−3=(x3−3x2+3x−1)−(2x2−4x+2)+(5x−5)−3=x3−5x2+12x−11The new equation is x3−5x2+12x−11=0.
Check the sum: the old sum is α+β+γ=2, so the new sum should be 2+3=5. The new equation gives −1−5=5 ✓.
Check the product: the new equation gives 1(−1)3(−11)=11. And (α+1)(β+1)(γ+1) is the old cubic p(x)=(x−α)(x−β)(x−γ) evaluated at x=−1, times −1: −p(−1)=−(−1−2−5−3)=11 ✓.