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

Look back at x2−7x+10=(x−2)(x−5)x^2 - 7x + 10 = (x - 2)(x - 5): the roots 22 and 55 summed to 77 and multiplied to 1010. Here is why that always happens. Start with a monic quadratic, one whose leading coefficient is 11, written x2+bx+cx^2 + bx + c, and 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 (x−r)(x−s)(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=(x−r)(x−s).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:

(x−r)(x−s)=x2−sx−rx+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.

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 formx²+ bx+ cx²- (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 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

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 a≠0a \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(x−r)(x−s).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 (x−r)(x−s)(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(x−r)(x−s)=a(x2−(r+s)x+rs)=ax2−a(r+s)x+a rs.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=a rsc = 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.

Both derivations above started from a real factorization a(x−r)(x−s)a(x - r)(x - s), so they take rr and ss to be two real roots, whether those two roots are different numbers or the same number repeated. In this lesson, and in every example and exercise it contains, rr and ss always mean a real root pair.

One more thing has to be true before any of this works: the equation has to already be in standard form, ax2+bx+c=0ax^2 + bx + c = 0, with every term moved to one side. An equation like 3x2+12=11x3x^2 + 12 = 11x is not there yet. Move every term to one side first, 3x2−11x+12=03x^2 - 11x + 12 = 0, and only then read off a=3a = 3, b=−11b = -11, c=12c = 12. Reading coefficients from the wrong side of the equation is a quiet way to flip a sign.

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

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 (x−r)(x−s)=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+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 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=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.

Multiplying by 22 changes the coefficients and gives a different-looking equation, but it does not change which values of xx make it zero: multiplying both sides of an equation by the same nonzero number always leaves its solutions untouched. So 2x2−7x+3=02x^2 - 7x + 3 = 0 is an equation with a leading coefficient of 22, chosen to make every coefficient an integer, and it has exactly the same roots as the fractional one it came from. Factoring back gives (2x−1)(x−3)(2x - 1)(x - 3), whose roots are 12\tfrac{1}{2} and 33.

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. The product route breaks down exactly when the known root is 00, since dividing by 00 is never allowed; the sum route has no such gap, which is why it 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}, a fraction because the leading 22 divides into it.

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

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 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.

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 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=−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. Both jobs share the same product cc; only the sum flips sign, from bb for the factoring numbers to −b-b for the roots, and that one sign flip is the whole difference between a factor and a root.

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)

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, most books on equations worked through one case at a time. The coefficients were fixed numbers, and every problem began again from nothing. A writer would solve x2−7x+10x^2 - 7x + 10, and then solve x2+4x−12x^2 + 4x - 12. The reader was left to notice what the two solutions had in common, case by case, with no single line to write down instead.

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 with real roots rr and ss, whatever bb and cc happen to be, those 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.