Sums and Products of Roots

Learning goals

  • Read r+s=−br + s = -b and rs=crs = c off a monic quadratic
  • Divide by aa for the general sum and product
  • Build a quadratic from roots with x2−(r+s)x+rsx^2 - (r + s)x + rs
  • Recover a missing root from the sum, then check with the product
  • Compare the roots to the factoring pair, same product but opposite sum

Reading the sum and product off the coefficients

Here rr and ss mean a real root pair. They may be different, or the same root counted twice: (x−3)2=0(x-3)^2=0 has the repeated pair 3,33,3. The formulas below apply to such pairs; they do not by themselves tell us whether real roots exist.

Start with a monic quadratic x2+bx+cx^2+bx+c, whose leading coefficient is 11.

Why a monic quadratic's roots satisfy r+s=−br + s = -b and rs=crs = c#

First expand factors with roots 33 and −4-4:

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

The roots add to −1-1, opposite the coefficient 11, and multiply to −12-12.

Why can we go backward from a root to a factor? Write x2+x−12x^2+x-12 as x2+1x−12x^2+1x-12, so the middle coefficient is 11. Its known root is 33. Substitution gives 32+3−12=03^2+3-12=0, so −12=−3(3+1)-12=-3(3+1). Try the factor x−3x-3. Pair it with x+1+3x+1+3: xx plus the middle coefficient 11 plus the root 33. This gives

(x−3)(x+1+3)=x2+x+3x−3x−3(1+3)=x2+x−12.\begin{gathered} (x-3)(x+1+3)\\ =x^2+x+3x-3x-3(1+3)\\ =x^2+x-12. \end{gathered}

The added 33 in the second factor supplies +3x+3x, canceling −3x-3x and leaving the needed middle term xx. The constant is right because 33 is a root.

Now use the same idea for any root rr of x2+bx+cx^2+bx+c. Then r2+br+c=0r^2+br+c=0, so c=−r(r+b)c=-r(r+b). Distributing now shows

(x−r)(x+b+r)=x2+bx−r(b+r)=x2+bx+c.\begin{gathered} (x-r)(x+b+r)\\ =x^2+bx-r(b+r)\\ =x^2+bx+c. \end{gathered}

By the zero-product property, the roots are rr and −b−r-b-r. Thus the other root of the pair is s=−b−rs=-b-r, so x+b+r=x−sx+b+r=x-s. If the root is repeated, −b−r=r-b-r=r. The quadratic is therefore (x−r)(x−s)(x-r)(x-s). Expanding and matching coefficients gives

(x−r)(x−s)=x2−sx−rx+rs=x2−(r+s)x+rs,b=−(r+s),c=rs.\begin{aligned} (x-r)(x-s)&=x^2-sx-rx+rs\\ &=x^2-(r+s)x+rs,\\ b&=-(r+s),\qquad c=rs. \end{aligned}

Therefore r+s=−br+s=-b and rs=crs=c. Only the sum changes sign.

Matching a monic quadratic to its factored formTwo aligned rows of a quadratic. The top row reads x squared plus b x plus c. The bottom row reads x squared minus the quantity r plus s times x plus r s. Vertical dashed lines join the middle terms and the constant terms, and the results r plus s equals negative b and r s equals c are shown beneath.Compare the coefficientsx²+ bx+ cx²- (r + s)x+ rsr + s = -brs = c
Match the coefficients: b = -(r + s) and c = rs.

Worked example 1 Find the sum and product of the roots of x2−7x+10x^2 - 7x + 10

Read the coefficients off the quadratic: b=−7b = -7 and c=10c = 10. The sum of the roots is the negative of the middle coefficient, and the product is the constant, so both totals come without solving:

r+s=−b=−(−7)=7andrs=c=10.r + s = -b = -(-7) = 7 \qquad \text{and} \qquad rs = c = 10.

As a check, this trinomial factors as (x−2)(x−5)(x - 2)(x - 5), whose roots 22 and 55 indeed add to 77 and multiply to 1010. The double negative on the sum is the piece to handle carefully: bb is −7-7, so −b-b is +7+7.

Check your understanding

Without solving, find the sum and product of the roots of x2+4x−12x^2 + 4x - 12.

Answer choices

When the leading coefficient is not 1

For ax2+bx+c=0ax^2+bx+c=0 with a≠0a\ne0, divide every term by aa:

x2+bax+ca=0.x^2+\frac ba x+\frac ca=0.

Division by a nonzero number preserves the roots. The monic rule now gives the sum −b/a-b/a and product c/ac/a. Factoring shows the same result directly.

Why r+s=−bar + s = -\frac{b}{a} and rs=cars = \frac{c}{a} in general#

For a numerical example, multiply the factors with roots 11 and −3-3 by 22:

2(x−1)(x+3)=2x2+4x−6.2(x-1)(x+3)=2x^2+4x-6.

The root sum is −2=−4/2-2=-4/2, and the product is −3=−6/2-3=-6/2.

In general, factor out aa. The bracket is monic and has the same roots, so we can use the monic proof to write it as (x−r)(x−s)(x-r)(x-s):

ax2+bx+c=a(x2+bax+ca)=a(x−r)(x−s)=ax2−a(r+s)x+a rs.\begin{gathered} ax^2+bx+c\\ =a\left(x^2+\frac ba x+\frac ca\right)\\ =a(x-r)(x-s)\\ =ax^2-a(r+s)x+a\,rs. \end{gathered}

Matching coefficients gives b=−a(r+s)b=-a(r+s) and c=a rsc=a\,rs. Divide by the nonzero leading coefficient aa:

r+s=−ba,rs=ca.r+s=-\frac ba,\qquad rs=\frac ca.

When a=1a=1, these are the monic formulas again.

Read coefficients only after writing the equation in standard form, with zero on one side. The next example is only for identifying coefficients:

3x2+12=11x⟹3x2−11x+12=0\begin{gathered} 3x^2+12=11x\\ \Longrightarrow\quad3x^2-11x+12=0 \end{gathered}

has coefficients a=3a=3, b=−11b=-11, c=12c=12. This rearrangement identifies the coefficients only; no real root pair is assumed here.

For a separate example where a real root pair does exist, use 3x2+12=13x3x^2+12=13x:

3x2−13x+12=(3x−4)(x−3)=0.3x^2-13x+12=(3x-4)(x-3)=0.

The roots 4/34/3 and 33 have sum 13/3=−b/a13/3=-b/a and product 4=c/a4=c/a. The sum-and-product questions in this lesson and its practice use real root pairs, so you can apply the formulas directly. A later chapter teaches how to check whether real roots exist in general.

Worked example 2 Find the sum and product of the roots of 3x2+5x−23x^2 + 5x - 2

Now a=3a = 3, b=5b = 5, and c=−2c = -2. Use the general formulas, dividing each of bb and cc by the leading coefficient and putting the minus sign on the sum:

r+s=−ba=−53andrs=ca=−23=−23.r + s = -\frac{b}{a} = -\frac{5}{3} \qquad \text{and} \qquad rs = \frac{c}{a} = \frac{-2}{3} = -\frac{2}{3}.

Both totals are fractions because the leading 33 divides into them. Checking against the factorization 3x2+5x−2=(3x−1)(x+2)3x^2 + 5x - 2 = (3x - 1)(x + 2), the roots are 13\tfrac{1}{3} and −2-2, and indeed 13+(−2)=−53\tfrac{1}{3} + (-2) = -\tfrac{5}{3} while 13⋅(−2)=−23\tfrac{1}{3} \cdot (-2) = -\tfrac{2}{3}.

Check your understanding

Find the sum and product of the roots of 2x2−9x+42x^2 - 9x + 4.

Answer choices

Building a quadratic from its roots

Given two real roots rr and ss, write (x−r)(x−s)=0(x-r)(x-s)=0. The zero-product property says this is true exactly when x=rx=r or x=sx=s. Its expanded form is

x2−(r+s)x+rs=0.x^2-(r+s)x+rs=0.

So put the negative of their sum on xx, and their product in the constant position. This builds a monic quadratic; a nonzero multiple has the same roots.

Worked example 3 Build a monic quadratic with roots 44 and −6-6

First find the sum and the product of the two roots:

r+s=4+(−6)=−2andrs=(4)(−6)=−24.r + s = 4 + (-6) = -2 \qquad \text{and} \qquad rs = (4)(-6) = -24.

Drop those into the template x2−(r+s)x+rsx^2 - (r + s)x + rs, taking care that the coefficient of xx is the negative of the sum:

x2−(−2)x+(−24)=x2+2x−24.x^2 - (-2)x + (-24) = x^2 + 2x - 24.

So x2+2x−24=0x^2 + 2x - 24 = 0 has the required roots, which you can confirm by factoring it back to (x−4)(x+6)(x - 4)(x + 6). Notice that the sum −2-2 became the middle coefficient +2+2, because the template puts a minus sign in front of the sum.

Worked example 4 Build a quadratic with roots 12\tfrac{1}{2} and 33 and integer coefficients

The monic template still works, but a fractional root leaves a fractional coefficient. Start there, with the sum and product of the two roots:

r+s=12+3=72andrs=12⋅3=32,r + s = \tfrac{1}{2} + 3 = \tfrac{7}{2} \qquad \text{and} \qquad rs = \tfrac{1}{2} \cdot 3 = \tfrac{3}{2},

so the monic quadratic is x2−72x+32=0x^2 - \tfrac{7}{2}x + \tfrac{3}{2} = 0. To clear the fractions, multiply every term by 22, which scales the whole equation without changing its roots:

2(x2−72x+32)=2x2−7x+3=0.2\left(x^2 - \tfrac{7}{2}x + \tfrac{3}{2}\right) = 2x^2 - 7x + 3 = 0.

The coefficients are now integers. Multiplying both sides by the nonzero number 22 preserves the solutions. The factorization (2x−1)(x−3)(2x-1)(x-3) confirms that they are still 1/21/2 and 33.

The roots can also contain square roots. For 2+32+\sqrt3 and 2−32-\sqrt3, the sum is 44. To find their product, distribute all four terms:

(2+3)(2−3)=4−23+23−(3)2=4−3=1.\begin{aligned} (2+\sqrt3)(2-\sqrt3) &=4-2\sqrt3+2\sqrt3-(\sqrt3)^2\\ &=4-3=1. \end{aligned}

The middle terms cancel, and (3)2=3(\sqrt3)^2=3 by the meaning of a square root. So these roots give x2−4x+1=0x^2-4x+1=0, using the same template.

Check your understanding

Which monic quadratic equation has roots −3-3 and 55?

Answer choices

Recovering a missing root and checking a pair

The sum and product also work as shortcuts once you already know one root, or when someone hands you a proposed pair of roots to check. Both jobs use the same two totals.

To recover a missing root, the sum always works. Suppose x2−10x+21=0x^2 - 10x + 21 = 0 and you have spotted that x=3x = 3 is a root. The two roots must add to −b=10-b = 10, so the other root is whatever is left after removing 33 from that total:

s=(r+s)−r=10−3=7.s = (r + s) - r = 10 - 3 = 7.

The product gives the same answer as a check, since the roots multiply to c=21c = 21 and 21÷3=721 \div 3 = 7. That division worked because the known root, 33, was not zero. If the known root is 00, you cannot divide by it, but subtracting it from the sum still works. That is why the sum comes first.

Worked example 5 One root of 2x2−7x+3=02x^2 - 7x + 3 = 0 is 33. Find the other root.

The roots of 2x2−7x+32x^2 - 7x + 3 add to −ba=72-\frac{b}{a} = \frac{7}{2} and multiply to ca=32\frac{c}{a} = \frac{3}{2}. Using the sum, subtract the known root from the total:

s=−ba−r=72−3=12.s = -\frac{b}{a} - r = \frac{7}{2} - 3 = \frac{1}{2}.

The product confirms it, since the roots multiply to 32\tfrac{3}{2} and 32÷3=12\tfrac{3}{2} \div 3 = \tfrac{1}{2}. The missing root is 12\tfrac{1}{2}.

Check your understanding

One root of x2−8x+15=0x^2 - 8x + 15 = 0 is 33. Find the other root, then use the product to check it.

Answer choices

Check your understanding

One root of x2−5x=0x^2 - 5x = 0 is x=0x = 0. Which method finds the other root?

Answer choices

You can check a proposed pair the same way. A correct pair has to pass both tests. To test whether 22 and 55 are the roots of x2−7x+10x^2 - 7x + 10, compare their sum and product against the coefficients. The roots should sum to −b=7-b = 7 and multiply to c=10c = 10, and 2+5=72 + 5 = 7 with 2⋅5=102 \cdot 5 = 10, so the pair passes both tests and is confirmed. A proposed pair like 11 and 66 would sum to 77 but multiply to only 66, failing the product test. That pair can therefore be ruled out at a glance, without any substitution.

Why is matching both totals enough? If a proposed pair u,vu,v has sum −b/a-b/a and product c/ac/a, expansion gives a(x−u)(x−v)=ax2+bx+ca(x-u)(x-v)=ax^2+bx+c. Since a≠0a\ne0, the zero-product property confirms that its roots are exactly uu and vv.

The connection to factoring

To factor a monic trinomial x2+bx+cx^2 + bx + c you searched for two numbers pp and qq with sum bb and product cc, and wrote (x+p)(x+q)(x + p)(x + q). Those two numbers give the roots by a sign flip in the zero-product step. Setting (x+p)(x+q)=0(x + p)(x + q) = 0 gives x=−px = -p or x=−qx = -q, so the roots are −p-p and −q-q, the negatives of the factoring numbers.

Line the two searches up. The factoring numbers satisfy p+q=bp + q = b and pq=cpq = c. The roots r=−pr = -p and s=−qs = -q then satisfy

r+s=−p−q=−(p+q)=−bandrs=(−p)(−q)=pq=c,r + s = -p - q = -(p + q) = -b \qquad \text{and} \qquad rs = (-p)(-q) = pq = c,

which are exactly the sum and product formulas from this lesson. The factoring numbers and roots share the product cc, but have opposite sums: bb and −b-b.

Check your understanding

The factoring numbers for x2+5x−36x^2 + 5x - 36 are p=−4p = -4 and q=9q = 9, since (x−4)(x+9)(x - 4)(x + 9) expands back to it. What are the trinomial's two roots?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

Imagine writing a rule for a whole family of equations when your notation gives names only to unknown numbers. How would you refer to a coefficient that could change from one problem to the next?

François Viète helped make that easier. Trained as a lawyer, he held legal and royal posts in France while also studying mathematics. In his 15911591 work Introduction to the Analytic Art, he systematically used letters for known quantities as well as unknown ones. His convention used vowels for unknowns and consonants for known quantities.

Earlier mathematicians already had general methods; they did not start from scratch for every problem. Viète’s notation made it easier to state and manipulate those methods in a compact form. Instead of discussing only x2−7x+10x^2-7x+10 or x2+4x−12x^2+4x-12, a writer could discuss coefficients that stood for many possible numbers.

The root relations are often called Vieta’s formulas, using the Latin form of his name. With letters for the coefficients, we can state both relations for a whole family of quadratics in two short lines.

Source: MacTutor biography of François Viète.

Your progress

See all your progress →