This site is a work in progress. New lessons are added regularly. Contact us

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
  • Relate the factoring pair to the roots as the same product, opposite sum

Reading the sum and product off the coefficients

Start with a monic quadratic, one whose leading coefficient is 11, written x2+bx+cx^2 + bx + c. Suppose it has roots rr and ss. You already know from the last lessons that a quadratic with those roots can be written in factored form as (xr)(xs)(x - r)(x - s). That form works because setting xx equal to either root makes one factor zero, and so makes the whole product zero. Expanding that product and comparing it with x2+bx+cx^2 + bx + c is the whole idea, and it pins down the sum and the product exactly.

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

Because rr and ss are the roots of x2+bx+cx^2 + bx + c, the quadratic is the product of the two factors they produce:

x2+bx+c=(xr)(xs).x^2 + bx + c = (x - r)(x - s).

Expand the right side, multiplying every term of the first factor by every term of the second:

(xr)(xs)=x2sxrx+rs=x2(r+s)x+rs.(x - r)(x - s) = x^2 - sx - rx + rs = x^2 - (r + s)x + rs.

Two expressions in xx are equal for every value of xx only when they match term by term. So line up the coefficient of xx and the constant on each side:

b=(r+s)andc=rs.b = -(r + s) \qquad \text{and} \qquad c = rs.

Solving the first equation for the sum gives r+s=br + s = -b, and the second already reads rs=crs = c. So for a monic quadratic the sum of the roots is the negative of the middle coefficient, and the product of the roots is the constant term. Both the sum and the product are read straight off the quadratic with no solving required. Watch the sign on the sum. The middle coefficient is (r+s)-(r + s), so the roots add to b-b, not bb; that minus sign is the single most common slip with these formulas.

The picture is just the two forms of the quadratic lined up one above the other. Whatever sits beneath the middle term of x2+bx+cx^2 + bx + c has to equal bb, and whatever sits beneath the constant has to equal cc.

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.Match the quadratic to its factored form+ bx+ c- (r + s)x+ rsr + s = -brs = c
The trinomial x squared plus b x plus c is lined up above its factored form, which expands to x squared minus the sum of the roots times x plus the product of the roots. Matching the middle terms gives r plus s equals negative b, and matching the constants gives r times s equals c.

Worked example 1 Find the sum and product of the roots of x27x+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 (x2)(x5)(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+4x12x^2 + 4x - 12.

Answer choices

When the leading coefficient is not 1

Everything so far assumed the quadratic started with a bare x2x^2. A general quadratic ax2+bx+c=0ax^2 + bx + c = 0 carries a leading coefficient aa that need not be 11, with a0a \ne 0, or it would not be a quadratic at all. Two short routes handle it, and they agree.

The quick route is to divide. Dividing the equation ax2+bx+c=0ax^2 + bx + c = 0 through by aa does not move its roots, since scaling an equation by a nonzero number leaves the values that make it zero untouched. It produces the monic quadratic

x2+bax+ca=0,x^2 + \frac{b}{a}x + \frac{c}{a} = 0,

whose middle coefficient is ba\frac{b}{a} and whose constant is ca\frac{c}{a}. Reading the monic formulas with those in place gives r+s=bar + s = -\frac{b}{a} and rs=cars = \frac{c}{a} at once. The second route factors instead, and it is worth seeing because it explains where the aa goes.

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

A quadratic with roots rr and ss and leading coefficient aa is aa times the product of its factors:

ax2+bx+c=a(xr)(xs).ax^2 + bx + c = a(x - r)(x - s).

The factor aa out front is needed so the squared terms match. The reason is that expanding (xr)(xs)(x - r)(x - s) produces a squared term of just x2x^2, and multiplying by aa restores the ax2ax^2 you started with. Carry out that expansion:

a(xr)(xs)=a(x2(r+s)x+rs)=ax2a(r+s)x+ars.a(x - r)(x - s) = a\left(x^2 - (r + s)x + rs\right) = ax^2 - a(r + s)x + a\,rs.

Match this term by term with ax2+bx+cax^2 + bx + c. The squared terms already agree, the middle terms give b=a(r+s)b = -a(r + s), and the constants give c=arsc = a\,rs. Dividing each of those equations by aa isolates the sum and the product:

r+s=baandrs=ca.r + s = -\frac{b}{a} \qquad \text{and} \qquad rs = \frac{c}{a}.

When a=1a = 1 these collapse back to r+s=br + s = -b and rs=crs = c, so the monic case is just this general result with a=1a = 1. Both routes divide by aa, and only the sum picks up the extra minus sign.

These two formulas hold for every quadratic, even one whose graph never crosses the axis and so has no real roots. An example is x2+x+1x^2 + x + 1, whose roots have sum 1-1 and product 11. The two roots in that case are a kind of number introduced in a later chapter. So every example and exercise in this lesson stays with quadratics whose roots are real.

Worked example 2 Find the sum and product of the roots of 3x2+5x23x^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+5x2=(3x1)(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 2x29x+42x^2 - 9x + 4.

Answer choices

Building a quadratic from its roots

The formulas run just as well in reverse. If you are told the roots and asked for a quadratic, you do not need to expand anything from scratch. The sum and the product of those roots are all a monic quadratic needs. Because (xr)(xs)=x2(r+s)x+rs(x - r)(x - s) = x^2 - (r + s)x + rs, a monic quadratic with roots rr and ss is

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

The coefficient of xx is the negative of the sum, and the constant is the product with its own sign kept. That single template builds the quadratic from any pair of 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+2x24.x^2 - (-2)x + (-24) = x^2 + 2x - 24.

So x2+2x24=0x^2 + 2x - 24 = 0 has the required roots, which you can confirm by factoring it back to (x4)(x+6)(x - 4)(x + 6). Notice how the negative sum 2-2 turned into the positive middle coefficient +2+2; that is the sign flip working exactly as the formula promises.

Worked example 4 Build a quadratic with roots 12\tfrac{1}{2} and 33 and whole-number 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=123=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 x272x+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(x272x+32)=2x27x+3=0.2\left(x^2 - \tfrac{7}{2}x + \tfrac{3}{2}\right) = 2x^2 - 7x + 3 = 0.

That is the same quadratic with a leading coefficient of 22 chosen to make every coefficient an integer. Factoring back gives (2x1)(x3)(2x - 1)(x - 3), whose roots are 12\tfrac{1}{2} and 33. Scaling a quadratic by a nonzero number is always free: it changes the coefficients but never the roots.

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, use whichever total is easier. Suppose x210x+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=103=7.s = (r + s) - r = 10 - 3 = 7.

The product gives the same answer as a cross-check, since the roots multiply to c=21c = 21 and 21÷3=721 \div 3 = 7. Either total pins the second root without factoring the trinomial from scratch.

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

The roots of 2x27x+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=bar=723=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}, a fraction because the leading 22 divides into it.

Checking a proposed pair works the same way, and it is quick because a correct pair has to pass both tests. To test whether 22 and 55 are the roots of x27x+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 25=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.

The connection to factoring

This lesson quietly closes a loop opened two lessons ago. 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 are not the roots. The roots come from the 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=pq=(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 product is identical, cc either way, while the sum flips sign, bb for the factoring numbers and b-b for the roots. So the two numbers you hunt for when factoring a monic trinomial are the negatives of the roots. Both jobs share the product cc but carry opposite sums, and the reason for that is the one sign flip that turns a factor into a root.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

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

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions 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)

Before anyone could state the rule you proved today, somebody had to be able to say "bb".

That sounds like nothing, and it was not. For centuries a book on equations could only work through single cases. The coefficients were fixed numbers, and every problem began again from nothing. A writer would solve x27x+10x^2 - 7x + 10, and then solve x2+4x12x^2 + 4x - 12. The reader was left to notice what the two solutions had in common. Writing the general quadratic down was out of reach, because a coefficient could not mean any number you like.

Francois Viete was a lawyer who did mathematics in whatever hours the courts left him. In the fifteen nineties he gave algebra the missing piece. He began using letters for the known numbers of a problem, not only for the unknown one. Once the knowns had names, a whole family of equations fitted into one line.

That is why these two relations carry his Latinized name, Vieta’s formulas. They are not a deeper truth than the worked examples they replaced. They are the same truth, at last sayable. For x2+bx+cx^2 + bx + c, whatever bb and cc happen to be, the roots add to b-b and multiply to cc. A claim that covers a whole family at once needs letters that mean any number at once. Those letters are what you read the two totals off today.