Skip to content
Family Table Math
Auto

Sum and Product of Roots

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+cax^2 + bx + c has roots α\alpha and β\beta, then by the factor theorem it factors as a(x−α)(x−β)a(x - \alpha)(x - \beta). Expand that:

a(x−α)(x−β)=ax2−a(α+β)x+aαβa(x - \alpha)(x - \beta) = ax^2 - a(\alpha + \beta)x + a\alpha\beta

Compare the coefficients with ax2+bx+cax^2 + bx + c: b=−a(α+β)\quad b = -a(\alpha + \beta) and c=aαβc = a\alpha\beta. So

α+β=−ba,αβ=ca\alpha + \beta = -\frac{b}{a}, \qquad \alpha\beta = \frac{c}{a}

For a polynomial equation of degree nn,

anxn+an−1xn−1+⋯+a1x+a0=0,an≠0,a_n x^n + a_{n-1}x^{n-1} + \cdots + a_1 x + a_0 = 0, \qquad a_n \ne 0,

the nn roots (counted with repeats, and including complex roots) have

sum=−an−1an,product=(−1)na0an\text{sum} = \frac{-a_{n-1}}{a_n}, \qquad \text{product} = \frac{(-1)^n a_0}{a_n}

So you only ever need three coefficients: the leading one ana_n, the next one an−1a_{n-1}, and the constant a0a_0.

DegreeEquationSum of rootsProduct of roots
2ax2+bx+c=0ax^2 + bx + c = 0−ba-\dfrac{b}{a}ca\dfrac{c}{a}
3ax3+bx2+cx+d=0ax^3 + bx^2 + cx + d = 0−ba-\dfrac{b}{a}−da-\dfrac{d}{a}
4ax4+bx3+cx2+dx+e=0ax^4 + bx^3 + cx^2 + dx + e = 0−ba-\dfrac{b}{a}ea\dfrac{e}{a}

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 00. For x4−3x3+7=0x^4 - 3x^3 + 7 = 0, the constant is a0=7a_0 = 7, and for 2x3+5x−4=02x^3 + 5x - 4 = 0 the x2x^2 coefficient is 00, so the sum of the roots is 00.

The rule counts all nn roots, real and complex. If the coefficients are real, complex roots come in conjugate pairs p+qip + qi and p−qip - 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(p + qi) + (p - qi) = 2p, \qquad (p + qi)(p - qi) = p^2 + q^2

See complex conjugate roots for more.

Many expressions in α\alpha and β\beta can be rewritten using only α+β\alpha + \beta and αβ\alpha\beta:

α2+β2=(α+β)2−2αβ,1α+1β=α+βαβ\alpha^2 + \beta^2 = (\alpha + \beta)^2 - 2\alpha\beta, \qquad \frac{1}{\alpha} + \frac{1}{\beta} = \frac{\alpha + \beta}{\alpha\beta}

A quadratic with roots r1r_1 and r2r_2 is

x2−(r1+r2)x+r1r2=0x^2 - (r_1 + r_2)x + r_1 r_2 = 0

that is, x2−(sum)x+(product)=0x^2 - (\text{sum})x + (\text{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\alpha + 1, then a new root xx satisfies x=α+1x = \alpha + 1, so α=x−1\alpha = x - 1: replace xx by x−1x - 1 in the old equation. If the new roots are 2α2\alpha, replace xx by x2\dfrac{x}{2}.

(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=02x^2 - 7x + 4 = 0 are α\alpha and β\beta. Without solving the equation, find α+β\alpha + \beta, αβ\alpha\beta and α2+β2\alpha^2 + \beta^2.

Solution. Here a=2a = 2, b=−7b = -7, c=4c = 4:

α+β=−−72=72,αβ=42=2\alpha + \beta = -\frac{-7}{2} = \frac{7}{2}, \qquad \alpha\beta = \frac{4}{2} = 2 α2+β2=(α+β)2−2αβ=494−4=334\alpha^2 + \beta^2 = (\alpha + \beta)^2 - 2\alpha\beta = \frac{49}{4} - 4 = \frac{33}{4}

Find the sum and the product of the roots of

  • (a) 3x3−6x2+x+12=03x^3 - 6x^2 + x + 12 = 0
  • (b) 2x4−5x3+x−6=02x^4 - 5x^3 + x - 6 = 0

Solution.

(a) Degree n=3n = 3, with a3=3a_3 = 3, a2=−6a_2 = -6, a0=12a_0 = 12:

sum=−(−6)3=2,product=(−1)3(12)3=−4\text{sum} = \frac{-(-6)}{3} = 2, \qquad \text{product} = \frac{(-1)^3(12)}{3} = -4

(b) Degree n=4n = 4, with a4=2a_4 = 2, a3=−5a_3 = -5, a0=−6a_0 = -6. There’s no x2x^2 term, but that coefficient isn’t needed:

sum=−(−5)2=52,product=(−1)4(−6)2=−3\text{sum} = \frac{-(-5)}{2} = \frac{5}{2}, \qquad \text{product} = \frac{(-1)^4(-6)}{2} = -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=0x^3 + px^2 + qx - 10 = 0, where p,q∈Rp, q \in \mathbb{R}, has a root 1+2i1 + 2i. Find the other roots, and the values of pp and qq.

Solution. The coefficients are real, so the conjugate 1−2i1 - 2i is also a root. Call the third root γ\gamma.

Product of roots (degree 33, a0=−10a_0 = -10):

(1+2i)(1−2i)γ=(−1)3(−10)1=10⇒5γ=10⇒γ=2(1 + 2i)(1 - 2i)\gamma = \frac{(-1)^3(-10)}{1} = 10 \quad\Rightarrow\quad 5\gamma = 10 \quad\Rightarrow\quad \gamma = 2

Sum of roots:

(1+2i)+(1−2i)+2=4=−p1⇒p=−4(1 + 2i) + (1 - 2i) + 2 = 4 = -\frac{p}{1} \quad\Rightarrow\quad p = -4

Find qq by multiplying out the factors. The conjugate pair gives (x−1)2+4=x2−2x+5(x - 1)^2 + 4 = x^2 - 2x + 5, so

(x−2)(x2−2x+5)=x3−4x2+9x−10(x - 2)(x^2 - 2x + 5) = x^3 - 4x^2 + 9x - 10

So the roots are 22 and 1±2i1 \pm 2i, with p=−4p = -4 and q=9q = 9. Check: the expansion gives p=−4p = -4 ✓ and constant −10-10 ✓.

Example 4: An equation with roots one more

Section titled “Example 4: An equation with roots one more”

The roots of 2x2−3x−4=02x^2 - 3x - 4 = 0 are α\alpha and β\beta. Find a quadratic equation with integer coefficients whose roots are α+1\alpha + 1 and β+1\beta + 1.

Solution. First, α+β=32\alpha + \beta = \dfrac{3}{2} and αβ=−42=−2\alpha\beta = \dfrac{-4}{2} = -2.

Method 1: sum and product.

new sum=(α+1)+(β+1)=32+2=72\text{new sum} = (\alpha + 1) + (\beta + 1) = \frac{3}{2} + 2 = \frac{7}{2} new product=(α+1)(β+1)=αβ+(α+β)+1=−2+32+1=12\text{new product} = (\alpha + 1)(\beta + 1) = \alpha\beta + (\alpha + \beta) + 1 = -2 + \frac{3}{2} + 1 = \frac{1}{2}

So the equation is x2−72x+12=0x^2 - \dfrac{7}{2}x + \dfrac{1}{2} = 0. Multiply by 22:

2x2−7x+1=02x^2 - 7x + 1 = 0

Method 2: substitution. Replace xx by x−1x - 1 in the original equation:

2(x−1)2−3(x−1)−4=2x2−4x+2−3x+3−4=2x2−7x+12(x - 1)^2 - 3(x - 1) - 4 = 2x^2 - 4x + 2 - 3x + 3 - 4 = 2x^2 - 7x + 1

Both methods give 2x2−7x+1=02x^2 - 7x + 1 = 0. ✓

Forgetting the minus sign in the sum. The sum is −ba-\dfrac{b}{a}, not ba\dfrac{b}{a}. For x2−5x+6=0x^2 - 5x + 6 = 0 the roots are 22 and 33, with sum 55, which is −−51-\dfrac{-5}{1}.

Getting the sign of the product wrong for odd degrees. The product has the factor (−1)n(-1)^n. For a cubic, it’s −da-\dfrac{d}{a}. Check with an easy case: (x−1)(x−2)(x−3)=x3−6x2+11x−6(x - 1)(x - 2)(x - 3) = x^3 - 6x^2 + 11x - 6 has root product 6=−−616 = -\dfrac{-6}{1}.

Forgetting to divide by the leading coefficient. If an≠1a_n \ne 1, every formula has ana_n in the denominator. 2x2−7x+4=02x^2 - 7x + 4 = 0 has product 22, not 44.

Using the wrong coefficient when a term is missing. In 2x4−5x3+x−6=02x^4 - 5x^3 + x - 6 = 0, the coefficient you need for the sum is that of x3x^3, which is −5-5, not the next non-zero one after it. If the xn−1x^{n-1} term is missing, the sum is 00.

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\alpha^2 + \beta^2 is not (α+β)2(\alpha + \beta)^2. You must subtract 2αβ2\alpha\beta.

1. (Warm-up) Find the sum and the product of the roots of 5x2+3x−2=05x^2 + 3x - 2 = 0.

Solutionsum=−35,product=−25=−25\text{sum} = -\frac{3}{5}, \qquad \text{product} = \frac{-2}{5} = -\frac{2}{5}

Check by solving: (5x−2)(x+1)=0(5x - 2)(x + 1) = 0 gives roots 25\dfrac{2}{5} and −1-1, with sum −35-\dfrac{3}{5} ✓ and product −25-\dfrac{2}{5} ✓.

2. (Warm-up) Find the sum and the product of the roots of 2x3+x2−8x+6=02x^3 + x^2 - 8x + 6 = 0.

Solution

Degree 33, a3=2a_3 = 2, a2=1a_2 = 1, a0=6a_0 = 6:

sum=−12,product=(−1)3(6)2=−3\text{sum} = -\frac{1}{2}, \qquad \text{product} = \frac{(-1)^3(6)}{2} = -3

3. (Warm-up) Find the sum and the product of the roots of x4−3x3+2x2+7=0x^4 - 3x^3 + 2x^2 + 7 = 0.

Solution

Degree 44, a4=1a_4 = 1, a3=−3a_3 = -3, a0=7a_0 = 7:

sum=−(−3)1=3,product=(−1)4(7)1=7\text{sum} = \frac{-(-3)}{1} = 3, \qquad \text{product} = \frac{(-1)^4(7)}{1} = 7

4. (Core) The roots of x2−4x+1=0x^2 - 4x + 1 = 0 are α\alpha and β\beta. Find the exact values of 1α+1β\dfrac{1}{\alpha} + \dfrac{1}{\beta} and α2+β2\alpha^2 + \beta^2.

Solution

α+β=4\alpha + \beta = 4 and αβ=1\alpha\beta = 1.

1α+1β=α+βαβ=41=4\frac{1}{\alpha} + \frac{1}{\beta} = \frac{\alpha + \beta}{\alpha\beta} = \frac{4}{1} = 4α2+β2=(α+β)2−2αβ=16−2=14\alpha^2 + \beta^2 = (\alpha + \beta)^2 - 2\alpha\beta = 16 - 2 = 14

5. (Core) The roots of 3x2−5x+1=03x^2 - 5x + 1 = 0 are α\alpha and β\beta. Find a quadratic equation with integer coefficients whose roots are 2α2\alpha and 2β2\beta.

Solution

α+β=53\alpha + \beta = \dfrac{5}{3} and αβ=13\alpha\beta = \dfrac{1}{3}.

New sum: 2α+2β=1032\alpha + 2\beta = \dfrac{10}{3}. New product: (2α)(2β)=4αβ=43(2\alpha)(2\beta) = 4\alpha\beta = \dfrac{4}{3}.

x2−103x+43=0⇒3x2−10x+4=0x^2 - \frac{10}{3}x + \frac{4}{3} = 0 \quad\Rightarrow\quad 3x^2 - 10x + 4 = 0

Check by substitution: replace xx by x2\dfrac{x}{2} in the original: 3x24−5x2+1=0\dfrac{3x^2}{4} - \dfrac{5x}{2} + 1 = 0; multiply by 44 to get 3x2−10x+4=03x^2 - 10x + 4 = 0 ✓.

6. (Core) A quartic equation with real coefficients and leading coefficient 11 has roots 2i2i and 3−i3 - i. Find the equation, and check your answer using the sum and product of its roots.

Solution

Real coefficients, so −2i-2i and 3+i3 + i are also roots.

(x−2i)(x+2i)=x2+4,(x−(3−i))(x−(3+i))=(x−3)2+1=x2−6x+10(x - 2i)(x + 2i) = x^2 + 4, \qquad (x - (3 - i))(x - (3 + i)) = (x - 3)^2 + 1 = x^2 - 6x + 10(x2+4)(x2−6x+10)=x4−6x3+14x2−24x+40=0(x^2 + 4)(x^2 - 6x + 10) = x^4 - 6x^3 + 14x^2 - 24x + 40 = 0

Check. Sum of roots: 2i−2i+(3−i)+(3+i)=62i - 2i + (3 - i) + (3 + i) = 6, and the formula gives −−61=6-\dfrac{-6}{1} = 6 ✓. Product: (2i)(−2i)(3−i)(3+i)=4×10=40(2i)(-2i)(3 - i)(3 + i) = 4 \times 10 = 40, and the formula gives (−1)4(40)1=40\dfrac{(-1)^4(40)}{1} = 40 ✓.

7. (Core) One root of 2x3−9x2+kx+6=02x^3 - 9x^2 + kx + 6 = 0 is x=2x = 2. Use the sum and product of the roots to find the other two roots, then find kk.

Solution

Let the other roots be β\beta and γ\gamma.

Sum: 2+β+γ=922 + \beta + \gamma = \dfrac{9}{2}, so β+γ=52\beta + \gamma = \dfrac{5}{2}.

Product: 2βγ=(−1)3(6)2=−32\beta\gamma = \dfrac{(-1)^3(6)}{2} = -3, so βγ=−32\beta\gamma = -\dfrac{3}{2}.

So β\beta and γ\gamma are the roots of x2−52x−32=0x^2 - \dfrac{5}{2}x - \dfrac{3}{2} = 0, or 2x2−5x−3=02x^2 - 5x - 3 = 0, which factors as (2x+1)(x−3)=0(2x + 1)(x - 3) = 0. The other roots are −12-\dfrac{1}{2} and 33.

To find kk, multiply out: (x−2)(2x2−5x−3)=2x3−9x2+7x+6(x - 2)(2x^2 - 5x - 3) = 2x^3 - 9x^2 + 7x + 6, so k=7k = 7.

Check: substitute x=2x = 2 into the original with k=7k = 7: 16−36+14+6=016 - 36 + 14 + 6 = 0 ✓.

8. (Challenge) The roots of x3−6x2+kx−6=0x^3 - 6x^2 + kx - 6 = 0 form an arithmetic sequence. Find the roots and the value of kk.

Solution

Write the roots as a−da - d, aa, a+da + d.

Sum: (a−d)+a+(a+d)=3a=6(a - d) + a + (a + d) = 3a = 6, so a=2a = 2.

Product: (a−d) a (a+d)=a(a2−d2)=(−1)3(−6)1=6(a - d)\,a\,(a + d) = a(a^2 - d^2) = \dfrac{(-1)^3(-6)}{1} = 6. With a=2a = 2: 2(4−d2)=62(4 - d^2) = 6, so d2=1d^2 = 1 and d=±1d = \pm 1.

Either way the roots are 11, 22 and 33. Then

(x−1)(x−2)(x−3)=x3−6x2+11x−6(x - 1)(x - 2)(x - 3) = x^3 - 6x^2 + 11x - 6

so k=11k = 11.

9. (Challenge) The roots of x3−2x2+5x−3=0x^3 - 2x^2 + 5x - 3 = 0 are α\alpha, β\beta and γ\gamma. Find a cubic equation whose roots are α+1\alpha + 1, β+1\beta + 1 and γ+1\gamma + 1, and check it using the sum and product of the roots.

Solution

Substitute x−1x - 1 for xx:

(x−1)3−2(x−1)2+5(x−1)−3=(x3−3x2+3x−1)−(2x2−4x+2)+(5x−5)−3=x3−5x2+12x−11\begin{aligned} &(x - 1)^3 - 2(x - 1)^2 + 5(x - 1) - 3 \\ &= (x^3 - 3x^2 + 3x - 1) - (2x^2 - 4x + 2) + (5x - 5) - 3 \\ &= x^3 - 5x^2 + 12x - 11 \end{aligned}

The new equation is x3−5x2+12x−11=0x^3 - 5x^2 + 12x - 11 = 0.

Check the sum: the old sum is α+β+γ=2\alpha + \beta + \gamma = 2, so the new sum should be 2+3=52 + 3 = 5. The new equation gives −−51=5-\dfrac{-5}{1} = 5 ✓.

Check the product: the new equation gives (−1)3(−11)1=11\dfrac{(-1)^3(-11)}{1} = 11. And (α+1)(β+1)(γ+1)(\alpha + 1)(\beta + 1)(\gamma + 1) is the old cubic p(x)=(x−α)(x−β)(x−γ)p(x) = (x - \alpha)(x - \beta)(x - \gamma) evaluated at x=−1x = -1, times −1-1: −p(−1)=−(−1−2−5−3)=11-p(-1) = -(-1 - 2 - 5 - 3) = 11 ✓.

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.

Do all of these without a calculator, and use the sum and product of the roots rather than solving, unless a question says otherwise.

H1. (Foundations) Find the sum and the product of the roots of each equation.

  • (a) 4x2+9x−5=04x^2 + 9x - 5 = 0
  • (b) x3−7x+12=0x^3 - 7x + 12 = 0
  • (c) 3x4+2x3−x2−15=03x^4 + 2x^3 - x^2 - 15 = 0

H2. (Foundations)

  • (a) Write a quadratic equation with integer coefficients whose roots have sum −43-\dfrac{4}{3} and product −2-2.
  • (b) A rectangular community garden plot in Kamloops has a perimeter of 3434 m and an area of 6060 m² (hypothetical numbers). Its length and width are the roots of a quadratic equation. Write the equation and use it to find the dimensions of the plot.

H3. (Core) The roots of 2x2+5x−1=02x^2 + 5x - 1 = 0 are α\alpha and β\beta. Without solving the equation, find the exact value of

  • (a) α2+β2\alpha^2 + \beta^2
  • (b) 1α+1β\dfrac{1}{\alpha} + \dfrac{1}{\beta}
  • (c) (α−β)2(\alpha - \beta)^2
  • (d) α3+β3\alpha^3 + \beta^3. (Hint: expand (α+β)3(\alpha + \beta)^3.)

H4. (Core) The roots of x2−3x+5=0x^2 - 3x + 5 = 0 are α\alpha and β\beta. (They are complex, but you don’t need to find them.) Find a quadratic equation with integer coefficients whose roots are

  • (a) α2\alpha^2 and β2\beta^2
  • (b) 1α\dfrac{1}{\alpha} and 1β\dfrac{1}{\beta}.

H5. (Core) The roots of 2x3+3x2−x+4=02x^3 + 3x^2 - x + 4 = 0 are α\alpha, β\beta and γ\gamma.

  • (a) Find a cubic equation with integer coefficients whose roots are 2α2\alpha, 2β2\beta and 2γ2\gamma.
  • (b) Check your answer by comparing the sum and the product of the roots of the two equations.

H6. (Core) (IB style)

  • (a) The equation 2x2−9x+k=02x^2 - 9x + k = 0 has one root that is double the other. Find kk and both roots.
  • (b) The roots of x2+px+12=0x^2 + px + 12 = 0 are two consecutive integers. Find all possible values of pp.

H7. (Challenge) The roots of 4x3−12x2+kx+3=04x^3 - 12x^2 + kx + 3 = 0 form an arithmetic sequence.

  • (a) Find the middle root.
  • (b) Find kk and the other two roots, in exact form.

H8. (Challenge) The equation x3−7x2+kx−8=0x^3 - 7x^2 + kx - 8 = 0, where k∈Rk \in \mathbb{R}, has roots α\alpha, 2α2\alpha and β\beta.

  • (a) Use the sum and the product of the roots to show that 3α3−7α2+4=03\alpha^3 - 7\alpha^2 + 4 = 0.
  • (b) Find all possible values of kk, and the roots in each case.

H9. (Challenge) You’re told that x=−32x = -\dfrac{3}{2} is a root of 2x3−x2+4x+15=02x^3 - x^2 + 4x + 15 = 0. Marc finds the other two roots, β\beta and γ\gamma, like this:

Product of roots =152= \dfrac{15}{2}, so −32βγ=152-\dfrac{3}{2}\beta\gamma = \dfrac{15}{2} and βγ=−5\beta\gamma = -5.

Sum of roots =12= \dfrac{1}{2}, so β+γ=2\beta + \gamma = 2.

So β\beta and γ\gamma are the roots of x2−2x−5=0x^2 - 2x - 5 = 0, which are 1±61 \pm \sqrt{6}.

Answer these questions about Marc’s work.

  • (a) Find Marc’s mistake and explain it.
  • (b) Find the correct other two roots.
  • (c) For which degrees nn would Marc’s product rule, a0an\dfrac{a_0}{a_n}, give the right answer? Explain.

H10. (Challenge) The roots of x2−5x+2=0x^2 - 5x + 2 = 0 are α\alpha and β\beta.

  • (a) Find a quadratic equation with integer coefficients whose roots are αβ\dfrac{\alpha}{\beta} and βα\dfrac{\beta}{\alpha}.
  • (b) Your answer to (a) should read the same forwards and backwards: the coefficient of x2x^2 equals the constant term. Explain why this must happen for any equation whose roots are αβ\dfrac{\alpha}{\beta} and βα\dfrac{\beta}{\alpha}.