2C - Sums and products of roots

2C - Sums and products of roots

The coefficients of a quadratic reveal the sum and product of its roots, even when the roots themselves are awkward. You will use these links to calculate expressions in the roots without solving the equation, then work backwards to form a quadratic from a known sum and product.

Roots and coefficients

Can you find the sum and product of the roots of x2−6x+2=0x^2-6x+2=0 without finding either root?

Start with an equation whose roots you can see. The equation (x−2)(x−5)=0(x-2)(x-5)=0 has roots 22 and 55. Expanding gives

(x−2)(x−5)=x2−7x+10.(x-2)(x-5)=x^2-7x+10.

The coefficient −7-7 is the negative of the sum 2+52+5, and the constant 1010 is the product 2×52\times5. These links come from the expansion, so they work even when the roots are not integers.

Roots and their sum and product

The roots of an equation are the values that satisfy it. We use the Greek letters α\alpha and β\beta for the two roots of a quadratic, and write

S=α+β,P=αβ.S=\alpha+\beta,\qquad P=\alpha\beta.

A repeated root counts twice: if both roots are 33, then S=6S=6 and P=9P=9.

For a quadratic ax2+bx+c=0ax^2+bx+c=0, the leading coefficient aa must be nonzero. If the roots are α\alpha and β\beta, its factorised form is

a(x−α)(x−β)=0ax2−a(α+β)x+aαβ=0expand the factors\begin{aligned} a(x-\alpha)(x-\beta)&=0\\ ax^2-a(\alpha+\beta)x+a\alpha\beta&=0 &&\text{expand the factors} \end{aligned}

Comparing the coefficient of xx gives −a(α+β)=b-a(\alpha+\beta)=b; comparing the constant terms gives aαβ=ca\alpha\beta=c. Divide by aa to obtain the two links.

Sum and product of roots

If ax2+bx+c=0ax^2+bx+c=0, with a≠0a\ne0, has roots α\alpha and β\beta, then

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

Not on the formulae sheet: learn them.

Read the coefficients from an equation with zero on one side. Keep each coefficient's sign.

Worked example 1: reading the two links

Question. The roots of x2−6x+2=0x^2-6x+2=0 are α\alpha and β\beta. Find α+β\alpha+\beta and αβ\alpha\beta without solving the equation.

Plan. Identify aa, bb and cc, then use the coefficient links.

a=1,b=−6,c=2α+β=−−61=6negate the signed coefficient bαβ=21=2divide the constant by a\begin{aligned} a&=1,\quad b=-6,\quad c=2\\ \alpha+\beta&=-\frac{-6}{1}=6 &&\text{negate the signed coefficient }b\\ \alpha\beta&=\frac{2}{1}=2 &&\text{divide the constant by }a \end{aligned}

Answer. The sum is 66 and the product is 22.

Check. For a separate check, the quadratic formula gives roots 3+73+\sqrt{7} and 3−73-\sqrt{7}. Their sum is 66, and their product is 9−7=29-7=2. Solving was unnecessary for the answer.

Now change only the leading coefficient. The sum and product must both be divided by that coefficient.

Worked example 2: a leading coefficient other than one

Question. The roots of 3x2−6x+2=03x^2-6x+2=0 are α\alpha and β\beta. Find their sum and product without solving.

Plan. Use a=3a=3 while retaining b=−6b=-6 and c=2c=2.

α+β=−−63=2αβ=23\begin{aligned} \alpha+\beta&=-\frac{-6}{3}=2\\ \alpha\beta&=\frac{2}{3} \end{aligned}

Answer. α+β=2\alpha+\beta=2 and αβ=23\alpha\beta=\frac{2}{3}.

Check. The roots are 1+331+\frac{\sqrt{3}}{3} and 1−331-\frac{\sqrt{3}}{3}. Adding gives 22; multiplying gives 1−13=231-\frac{1}{3}=\frac{2}{3}.

The minus sign in the sum formula is easy to lose when bb is already negative.

Watch out

For 3x2−6x+2=03x^2-6x+2=0, the wrong line α+β=−6\alpha+\beta=-6 ignores both the minus sign in −b-b and the division by aa. Write −(−6)/3-(-6)/3 before simplifying.

Use the same two links for this fresh equation.

Expressions in the roots

An expression that treats the two roots in the same way can often be rewritten using only their sum and product.

For example, roots 11 and 44 have sum 55, but the sum of their squares is 1+16=171+16=17, not 2525. Squaring their sum also includes two cross-products:

(α+β)2=α2+2αβ+β2.(\alpha+\beta)^2=\alpha^2+2\alpha\beta+\beta^2.

Subtract 2αβ2\alpha\beta to isolate the squares. For cubes, expand one stage further:

(α+β)3=α3+3α2β+3αβ2+β3=α3+β3+3αβ(α+β)\begin{aligned} (\alpha+\beta)^3 &=\alpha^3+3\alpha^2\beta+3\alpha\beta^2+\beta^3\\ &=\alpha^3+\beta^3+3\alpha\beta(\alpha+\beta) \end{aligned}

The two middle terms have the common factor 3αβ3\alpha\beta. This is why subtracting 3PS3PS leaves just the sum of the cubes.

Square and cube identities

Writing S=α+βS=\alpha+\beta and P=αβP=\alpha\beta,

α2+β2=S2−2P,α3+β3=S3−3PS.\alpha^2+\beta^2=S^2-2P,\qquad \alpha^3+\beta^3=S^3-3PS.

These identities are not on the formulae sheet; you can recover them by expansion.

Reciprocal sums use addition of fractions rather than a power expansion:

1α+1β=β+ααβ=SP.\frac{1}{\alpha}+\frac{1}{\beta} =\frac{\beta+\alpha}{\alpha\beta} =\frac{S}{P}.

This requires α≠0\alpha\ne0 and β≠0\beta\ne0, equivalently P≠0P\ne0. For a quadratic with a≠0a\ne0, checking c≠0c\ne0 establishes this immediately because P=c/aP=c/a. If c=0c=0, at least one root is zero and this reciprocal sum is undefined. A zero sum SS is allowed; it is the denominator PP that matters.

Worked example 3: three expressions from two values

Question. The roots of x2−5x+4=0x^2-5x+4=0 are α\alpha and β\beta. Without solving, find α2+β2\alpha^2+\beta^2, α3+β3\alpha^3+\beta^3 and 1α+1β\frac{1}{\alpha}+\frac{1}{\beta}.

Plan. Read SS and PP, then substitute into the identities; check P≠0P\ne0 before taking reciprocals.

S=5,P=4α2+β2=52−2(4)=17α3+β3=53−3(4)(5)=651α+1β=54valid because P=4≠0\begin{aligned} S&=5,\quad P=4\\ \alpha^2+\beta^2&=5^2-2(4)=17\\ \alpha^3+\beta^3&=5^3-3(4)(5)=65\\ \frac{1}{\alpha}+\frac{1}{\beta}&=\frac{5}{4} &&\text{valid because }P=4\ne0 \end{aligned}

Answer. 1717, 6565 and 54\frac{5}{4}, respectively.

Check. The equation factors as (x−1)(x−4)=0(x-1)(x-4)=0. Direct calculation gives 12+42=171^2+4^2=17, 13+43=651^3+4^3=65 and 1+14=541+\frac{1}{4}=\frac{5}{4}.

Change only the sign of the constant term. The sum stays the same, but the product becomes negative, so the subtraction signs in the identities need care.

Worked example 4: a negative product

Question. The roots of x2−5x−4=0x^2-5x-4=0 are α\alpha and β\beta. Without solving, find the same three expressions.

Plan. Use S=5S=5 and P=−4P=-4, keeping brackets around the negative product.

α2+β2=52−2(−4)=33α3+β3=53−3(−4)(5)=1851α+1β=5−4=−54since P≠0\begin{aligned} \alpha^2+\beta^2&=5^2-2(-4)=33\\ \alpha^3+\beta^3&=5^3-3(-4)(5)=185\\ \frac{1}{\alpha}+\frac{1}{\beta}&=\frac{5}{-4}=-\frac{5}{4} &&\text{since }P\ne0 \end{aligned}

Answer. 3333, 185185 and −54-\frac{5}{4}, respectively.

Check. The roots are approximately 5.7015625.701562 and −0.701562-0.701562. Substituting these into the original expressions gives approximately 3333, 185185 and −1.25-1.25. The exact identity calculations give the answers without rounding.

In the cube calculation, the exponent belongs to the whole sum.

Watch out

α3+β3≠(α+β)3\alpha^3+\beta^3\ne(\alpha+\beta)^3 in general. For roots 11 and 44, these values are 6565 and 125125. The correction is −3αβ(α+β)-3\alpha\beta(\alpha+\beta), including its sign.

Use all three identities on the next equation.

Forming a quadratic

A known sum and product let you rebuild an equation even when you have not been given its roots separately.

The expansion (x−α)(x−β)=x2−(α+β)x+αβ(x-\alpha)(x-\beta)=x^2-(\alpha+\beta)x+\alpha\beta already supplies the construction. An equation with leading coefficient 11 is called monic.

An equation from a sum and product

If two roots have sum SS and product PP, an equation with those roots is

x2−Sx+P=0.x^2-Sx+P=0.

The coefficient of xx is the negative of the sum; the constant is the product. Multiplying the entire equation by a nonzero constant gives an equivalent equation.

Not on the formulae sheet: learn it.

If fractions occur, multiply every term by a common denominator to obtain integer coefficients. If the required roots are real, their sum and product necessarily satisfy S2−4P≥0S^2-4P\ge0, since this is the discriminant of the equation you construct.

Worked example 5: integer sum and product

Question. Two roots have sum 77 and product 1010. Form a quadratic equation with these roots.

Plan. Substitute the sum and product into x2−Sx+P=0x^2-Sx+P=0.

x2−Sx+P=0x2−7x+10=0use S=7, P=10\begin{aligned} x^2-Sx+P&=0\\ x^2-7x+10&=0 &&\text{use }S=7,\ P=10 \end{aligned}

Answer. x2−7x+10=0x^2-7x+10=0.

Check. This factors as (x−2)(x−5)=0(x-2)(x-5)=0. Its roots add to 77 and multiply to 1010.

Now allow a fractional sum. The construction stays the same; only the final clearing of fractions is new.

Worked example 6: clearing a denominator

Question. Two roots have sum 72\frac{7}{2} and product 33. Form a quadratic equation with integer coefficients.

Plan. Form the monic equation first, then multiply the whole equation by 22.

x2−72x+3=0insert the sum and product2x2−7x+6=0multiply every term by 2\begin{aligned} x^2-\frac{7}{2}x+3&=0 &&\text{insert the sum and product}\\ 2x^2-7x+6&=0 &&\text{multiply every term by }2 \end{aligned}

Answer. 2x2−7x+6=02x^2-7x+6=0.

Check. (2x−3)(x−2)=0(2x-3)(x-2)=0 gives roots 32\frac{3}{2} and 22. Their sum is 72\frac{7}{2} and their product is 33, as required.

An expression does not yet state which values of xx are the roots.

Exam tip

When asked to form an equation, finish with =0=0. When integer coefficients are requested, clear all denominators by multiplying the whole equation by the same nonzero number.

The opening problem is now reversible: x2−6x+2=0x^2-6x+2=0 gives S=6S=6, P=2P=2, and those two numbers rebuild that equation. Next you can change the roots and construct an equation for the changed pair.

Quick Recap

  • For ax2+bx+c=0ax^2+bx+c=0, a≠0a\ne0, read S=−b/aS=-b/a and P=c/aP=c/a.
  • Use S2−2PS^2-2P for the sum of squares and S3−3PSS^3-3PS for the sum of cubes.
  • The reciprocal sum is S/PS/P, provided P≠0P\ne0.
  • Rebuild an equation as x2−Sx+P=0x^2-Sx+P=0, then clear fractions if needed.

The roots of x2−6x+2=0x^2-6x+2=0 add to 66 and multiply to 22, without needing to find either one.