1.1 - Roots and coefficients

1.1 - Roots and coefficients

You can discover the sum and product of an equation’s roots without solving the equation. In this first part of 1.1, you will see why the coefficients of quadratics and cubics contain that information, then use it to recover missing coefficients.

Roots counted with multiplicity

Can you find the sum of the roots of 2x3−8x2+2x+12=02x^3-8x^2+2x+12=0 without finding the roots themselves? By the end of this lesson, you will be able to read the answer from two coefficients.

Start with a polynomial already in factorised form:

(x−1)2(x+2)=0.(x-1)^2(x+2)=0.

The equation has two distinct roots, 11 and −2-2, but its three linear factors give the root list 1,1,−21,1,-2. That repeated 11 matters when we add or multiply the roots.

Root and multiplicity

A root of f(x)=0f(x)=0 is a value that makes f(x)f(x) zero. A root rr has multiplicity mm when (x−r)m(x-r)^m is a factor and (x−r)m+1(x-r)^{m+1} is not.

For f(x)=(x−1)2(x+2)f(x)=(x-1)^2(x+2), 11 has multiplicity 22 and −2-2 has multiplicity 11.

The graph has only two intercepts. It crosses at the single root and touches the axis at the double root: one visible intercept can represent more than one factor.

[DIAGRAM: asset_name: A double root is counted twice; asset_slug: cam9231-repeated-root; caption: The cubic has two distinct intercepts but three roots when multiplicity is counted; description: Exact graph of y equals (x minus 1) squared times (x plus 2), crossing the horizontal axis at minus 2 and touching at 1. Labels identify minus 2 as a single root and 1 as a double root. A side panel shows the root list minus 2, 1, 1 and their sum zero.]
The cubic has two distinct intercepts but three roots when multiplicity is counted

The same counting rule applies when a polynomial has non-real roots. The root relations below use every root, including repeated and non-real roots, even when those roots do not appear as intercepts on a real graph.

Key idea

In a sum or product of roots, count each root as many times as its factor occurs.

Try applying that distinction to a different cubic.

Sums and products for quadratics

For (x−2)(x−3)=x2−5x+6(x-2)(x-3)=x^2-5x+6, the coefficient −5-5 comes from −2x−3x-2x-3x, while the constant 66 comes from (−2)(−3)(-2)(-3). The sum and product are already in the expansion.

For roots α\alpha and β\beta, write the same argument with letters:

a(x−α)(x−β)=a(x2−(α+β)x+αβ)=ax2−a(α+β)x+aαβ.\begin{aligned} a(x-\alpha)(x-\beta) &=a\bigl(x^2-(\alpha+\beta)x+\alpha\beta\bigr) \\ &=ax^2-a(\alpha+\beta)x+a\alpha\beta. \end{aligned}

Comparing with ax2+bx+cax^2+bx+c gives b=−a(α+β)b=-a(\alpha+\beta) and c=aαβc=a\alpha\beta. Divide by the nonzero leading coefficient aa.

Quadratic root relations

For ax2+bx+c=0ax^2+bx+c=0, where a≠0a\ne0, with roots α,β\alpha,\beta counted with multiplicity:

α+β=−ba,αβ=ca.\alpha+\beta=-\frac ba, \qquad \alpha\beta=\frac ca.

Not in the formula booklet: learn it.

There is no need to use the quadratic formula if the question asks only for a sum or product.

Worked example 1: reading a non-monic quadratic

Question. The roots of 2x2−10x+12=02x^2-10x+12=0 are α\alpha and β\beta. State their sum and product.

Plan. Identify the signed coefficients, then divide by the leading coefficient.

α+β=−−102=5αβ=122=6.\begin{aligned} \alpha+\beta&=-\frac{-10}{2}=5 \\ \alpha\beta&=\frac{12}{2}=6. \end{aligned}

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

Check. Factorising gives 2(x−2)(x−3)2(x-2)(x-3). The roots 2,32,3 have sum 55 and product 66.

Now change only the sign of the coefficient of xx. Watch which root relation changes.

Worked example 2: changing the middle coefficient

Question. State the sum and product of the roots of 2x2+10x+12=02x^2+10x+12=0.

Plan. Use the same two relations with b=10b=10.

α+β=−102=−5αβ=122=6.\begin{aligned} \alpha+\beta&=-\frac{10}{2}=-5 \\ \alpha\beta&=\frac{12}{2}=6. \end{aligned}

Answer. The sum is −5-5 and the product is 66.

Check. The factorisation 2(x+2)(x+3)2(x+2)(x+3) gives roots −2,−3-2,-3: their sum changes sign, but their product stays positive.

The sign belongs to the coefficient: in the first example, b=−10b=-10, not 1010.

Watch out

α+β=b/a\alpha+\beta=b/a has the wrong sign. The expansion contains −a(α+β)x-a(\alpha+\beta)x, so the sum is −b/a-b/a.

Use the two coefficients directly in this check.

The three relations for cubics

A cubic has one more factor. In (x−α)(x−β)(x−γ)(x-\alpha)(x-\beta)(x-\gamma), each term in the expansion comes from choosing one term from each bracket.

To obtain an x2x^2 term, choose one root term and two copies of xx. To obtain an xx term, choose two root terms and one copy of xx. Choosing all three root terms gives the constant.

[DIAGRAM: asset_name: How a cubic stores its roots; asset_slug: cam9231-cubic-coefficients; caption: Choosing one, two or three root terms gives alternating signs; description: Three rows expand (x minus alpha)(x minus beta)(x minus gamma). The x squared row lists minus alpha x squared, minus beta x squared and minus gamma x squared. The x row lists alpha beta x, alpha gamma x and beta gamma x. The constant row is minus alpha beta gamma. Pale blue, lavender and peach fills distinguish the three coefficient groups.]
Choosing one, two or three root terms gives alternating signs

Collecting those terms gives

(x−α)(x−β)(x−γ)=x3−(α+β+γ)x2+(αβ+αγ+βγ)x−αβγ.\begin{aligned} (x-\alpha)(x-\beta)(x-\gamma) ={}&x^3-(\alpha+\beta+\gamma)x^2 \\ &+(\alpha\beta+\alpha\gamma+\beta\gamma)x \\ &-\alpha\beta\gamma. \end{aligned}

Each pair occurs once. In particular, αβ+αγ+βγ\alpha\beta+\alpha\gamma+\beta\gamma is not the product of all three roots.

Cubic root relations

For ax3+bx2+cx+d=0ax^3+bx^2+cx+d=0, where a≠0a\ne0, with roots α,β,γ\alpha,\beta,\gamma counted with multiplicity:

α+β+γ=−baαβ+αγ+βγ=caαβγ=−da.\begin{aligned} \alpha+\beta+\gamma&=-\frac ba \\ \alpha\beta+\alpha\gamma+\beta\gamma&=\frac ca \\ \alpha\beta\gamma&=-\frac da. \end{aligned}

Not in the formula booklet: learn it.

The signs alternate because each selected root term carries a minus sign.

Worked example 3: the three combinations

Question. The roots of x3−6x2+11x−6=0x^3-6x^2+11x-6=0 are α,β,γ\alpha,\beta,\gamma. State their sum, sum of pair products and product.

Plan. Match the three coefficients to the three root relations.

α+β+γ=−(−6)=6αβ+αγ+βγ=11αβγ=−(−6)=6.\begin{aligned} \alpha+\beta+\gamma&=-(-6)=6 \\ \alpha\beta+\alpha\gamma+\beta\gamma&=11 \\ \alpha\beta\gamma&=-(-6)=6. \end{aligned}

Answer. The three values are 6,11,66,11,6, respectively.

Check. The factorisation is (x−1)(x−2)(x−3)(x-1)(x-2)(x-3). Its pair products add to 1×2+1×3+2×3=111\times2+1\times3+2\times3=11; its sum and product are both 66.

Multiply the entire equation by 22. Its roots cannot change, so our method must give the same three values.

Worked example 4: scaling the equation

Question. State the same three combinations for the roots of 2x3−12x2+22x−12=02x^3-12x^2+22x-12=0.

Plan. Divide every relevant coefficient by a=2a=2.

α+β+γ=−−122=6αβ+αγ+βγ=222=11αβγ=−−122=6.\begin{aligned} \alpha+\beta+\gamma&=-\frac{-12}{2}=6 \\ \alpha\beta+\alpha\gamma+\beta\gamma&=\frac{22}{2}=11 \\ \alpha\beta\gamma&=-\frac{-12}{2}=6. \end{aligned}

Answer. The values are still 6,11,66,11,6.

Check. Dividing the equation by 22 recovers the preceding equation exactly, with roots 1,2,31,2,3.

This gives a useful check on any proposed rule: multiplying an equation by a nonzero constant must leave its root combinations unchanged.

Watch out

For a cubic, the product is −d/a-d/a, not d/ad/a. Three negative root terms produce a negative constant term.

Now use an equation with a different leading coefficient and different roots.

Recovering missing coefficients

The relations work in both directions. Coefficients reveal combinations of roots; combinations of roots also determine coefficients once the leading coefficient is fixed.

For a cubic with root sum SS, sum of pair products PP, product RR and leading coefficient aa, the expansion above gives

a(x3−Sx2+Px−R).a\bigl(x^3-Sx^2+Px-R\bigr).

So missing coefficients can be found directly, without solving a cubic.

Worked example 5: recovering two coefficients

Question. The roots of 2x3+px2+qx+12=02x^3+px^2+qx+12=0 are −1,2,3-1,2,3. Find pp and qq.

Plan. Find the sum and pair products, then match their coefficients.

S=−1+2+3=4P=(−1)(2)+(−1)(3)+(2)(3)=1p=−2S=−8q=2P=2.\begin{aligned} S&=-1+2+3=4 \\ P&=(-1)(2)+(-1)(3)+(2)(3)=1 \\ p&=-2S=-8 \\ q&=2P=2. \end{aligned}

Answer. p=−8p=-8 and q=2q=2.

Check. Direct expansion gives 2(x+1)(x−2)(x−3)=2x3−8x2+2x+122(x+1)(x-2)(x-3)=2x^3-8x^2+2x+12. The given constant agrees too: −2(−1)(2)(3)=12-2(-1)(2)(3)=12.

Keep the same roots but change the leading coefficient from 22 to 33. Every coefficient must scale with it.

Worked example 6: a different leading coefficient

Question. A cubic with roots −1,2,3-1,2,3 has the form 3x3+px2+qx+r=03x^3+px^2+qx+r=0. Find p,q,rp,q,r.

Plan. Use the same root combinations, multiplying each by the new leading coefficient.

p=−3(4)=−12q=3(1)=3r=−3((−1)(2)(3))=18.\begin{aligned} p&=-3(4)=-12 \\ q&=3(1)=3 \\ r&=-3\bigl((-1)(2)(3)\bigr)=18. \end{aligned}

Answer. p=−12, q=3, r=18p=-12,\ q=3,\ r=18.

Check. The polynomial is 32\tfrac32 times the one in Worked example 5. Substituting −1-1, 22 or 33 therefore gives zero.

Return to our opening equation, 2x3−8x2+2x+12=02x^3-8x^2+2x+12=0. Its root sum is −(−8)/2=4-(-8)/2=4. We can know that immediately, even before finding a single root.

Problem-solving

If a question asks for a combination of roots, look for its coefficient relation before trying to solve the equation.

Use that connection in reverse one more time.

Quick Recap

  • Count repeated roots with their multiplicities.
  • A quadratic gives the root sum −b/a-b/a and product c/ac/a.
  • A cubic gives the root sum −b/a-b/a, pair-product sum c/ac/a and product −d/a-d/a.
  • The leading coefficient matters: multiplying an equation by a nonzero constant leaves its roots unchanged.

The opening cubic’s roots add to 44. Its coefficients told us that before we solved it.