Vieta’s Formulas: Roots and Coefficients

Vieta’s Formulas: Roots and Coefficients

Use Vieta’s formulas to jump between roots and coefficients without fully solving the equation. You will learn the sum and product shortcuts for quadratics, how scaling affects them, and how the same idea extends cleanly to cubics.

A quadratic can hide its roots, but it cannot hide two facts about them. Even before you factor or use the quadratic formula, the coefficients already tell you the roots’ sum and product. That sounds like a trick. It is really the polynomial keeping a tidy record of where it would hit the xx-axis, even if you never compute those xx-values directly.

The shortcut hiding in ax2+bx+cax^2+bx+c

Think of the roots r1r_1 and r2r_2 as two numbers the quadratic wants to be zero at. Vieta’s formulas say you can read two symmetric pieces of information straight from the coefficients.

Use the interactive diagram to connect each coefficient to the matching root relationship.

For a quadratic ax2+bx+c=0ax^2+bx+c=0 with roots r1r_1 and r2r_2:

  • Sum of roots is r1+r2=bar_1+r_2=-\frac{b}{a}
  • Product of roots is r1r2=car_1r_2=\frac{c}{a}

Two invariants
Even if you never find r1r_1 and r2r_2 individually, their sum and product are locked in by bb and cc once you know aa.

Why coefficients remember the roots

A root is just a value that makes the polynomial equal zero. If x=r1x=r_1 is a root, then (xr1)(x-r_1) must be a factor. With two roots, the factored shape is

a(xr1)(xr2)a(x-r_1)(x-r_2)

The memory lives in what happens when you expand. Try expanding step by step and watch which terms create bb and cc.

Expand the inside first:

(xr1)(xr2)=x2(r1+r2)x+r1r2(x-r_1)(x-r_2)=x^2-(r_1+r_2)x+r_1r_2

Then multiply by aa:

a(xr1)(xr2)=ax2a(r1+r2)x+a(r1r2)a(x-r_1)(x-r_2)=ax^2-a(r_1+r_2)x+a(r_1r_2)

Now match coefficients with ax2+bx+cax^2+bx+c:

  • The xx coefficient is b=a(r1+r2)b=-a(r_1+r_2), so r1+r2=bar_1+r_2=-\frac{b}{a}
  • The constant term is c=a(r1r2)c=a(r_1r_2), so r1r2=car_1r_2=\frac{c}{a}

The key idea is that the roots only show up in two combined ways when you expand. You never get a lonely r1r_1 or r2r_2 sitting by itself. That is why Vieta gives you symmetric facts like sum and product.

Vieta’s formulas for quadratics you actually use

For ax2+bx+c=0ax^2+bx+c=0 with roots r1,r2r_1,r_2:

r1+r2=baandr1r2=car_1+r_2=-\frac{b}{a}\quad\text{and}\quad r_1r_2=\frac{c}{a}

That is the whole working toolkit for quadratics. Everything else is just rearranging those two equations.

A common confusion is what happens when the quadratic is not monic, meaning a1a\neq1. The roots do not change if you multiply the whole equation by a constant, but the coefficients do. The fix is simple. Always divide by aa in your head.

Use the examples to compare a monic quadratic and a scaled one with the same roots.

Here is the mental habit that prevents most mistakes.

  • If a=1a=1, then r1+r2=br_1+r_2=-b and r1r2=cr_1r_2=c
  • If a1a\neq1, pretend you are looking at 1a(ax2+bx+c)=x2+bax+ca\frac{1}{a}(ax^2+bx+c)=x^2+\frac{b}{a}x+\frac{c}{a}

Normalize first
When you feel unsure, divide every coefficient by aa. Vieta becomes a one-line read-off.

Solve problems without solving the quadratic

Vieta is powerful because many questions only care about relationships between roots, not their exact decimal values. The moment you know a sum and a product, you can often finish the problem with basic algebra.

Try a few scenarios where you are given partial information and you propagate what must be true.

The three most common moves

Find the other root. If r1+r2=Sr_1+r_2=S and you know r1r_1, then r2=Sr1r_2=S-r_1. If r1r2=Pr_1r_2=P, then r2=Pr1r_2=\frac{P}{r_1} as long as r10r_1\neq0.

Build the quadratic from sum and product. If you want a monic quadratic with roots r1,r2r_1,r_2, start from

x2(r1+r2)x+r1r2=0x^2-(r_1+r_2)x+r_1r_2=0

So if you are told sum SS and product PP, the polynomial is x2Sx+Px^2-Sx+P.

Rewrite tricky expressions. If a problem asks for something like r12+r22r_1^2+r_2^2, you do not need the roots. Use

r12+r22=(r1+r2)22r1r2r_1^2+r_2^2=(r_1+r_2)^2-2r_1r_2

Then plug in ba-\frac{b}{a} and ca\frac{c}{a}.

These feel like shortcuts because they skip the quadratic formula, but they are really just using the same information the quadratic formula is built from.

Beyond quadratics, the pattern continues

A cubic has three roots, so there are three symmetric combinations that the coefficients can store. You can still think in the same way. If r1,r2,r3r_1,r_2,r_3 are roots, then the factored form is a(xr1)(xr2)(xr3)a(x-r_1)(x-r_2)(x-r_3), and expanding creates grouped combinations of the roots.

Use the map to connect each coefficient of a cubic to the matching symmetric sum.

For ax3+bx2+cx+d=0ax^3+bx^2+cx+d=0 with roots r1,r2,r3r_1,r_2,r_3:

  • Sum of roots is r1+r2+r3=bar_1+r_2+r_3=-\frac{b}{a}
  • Sum of pairwise products is r1r2+r1r3+r2r3=car_1r_2+r_1r_3+r_2r_3=\frac{c}{a}
  • Triple product is r1r2r3=dar_1r_2r_3=-\frac{d}{a}

The signs alternate as you go along. That alternating sign pattern is not random. It comes from multiplying out (xri)(x-r_i) factors, where each time you pick an rir_i you bring in a minus sign.

Pitfalls and quick checks

Most Vieta errors are not deep algebra mistakes. They are small sign slips, forgetting to divide by aa, or assuming roots must be real and distinct.

Open the cases and see what changes and what stays the same.

A few reliable checks:

  • If c=0c=0 in ax2+bx+cax^2+bx+c, then ca=0\frac{c}{a}=0 so r1r2=0r_1r_2=0. At least one root is 00.
  • If b=0b=0, then r1+r2=0r_1+r_2=0. The roots are opposites like tt and t-t.
  • A repeated root rr means r1=r2=rr_1=r_2=r. Then the sum is 2r2r and the product is r2r^2. Vieta still works unchanged.
  • Complex roots are allowed. For real coefficients, non-real roots come in conjugate pairs, and their sum and product are real, which fits Vieta automatically.

Sign anchor
For a monic quadratic x2+bx+cx^2+bx+c, the sum is b-b and the product is cc. Remembering this one case helps you rebuild the general ba-\frac{b}{a} and ca\frac{c}{a} case.

Where Vieta fits in your toolbox

Vieta’s formulas are not a replacement for factoring or the quadratic formula. They are the glue between them.

Use Vieta when you want to:

  • sanity-check roots you found by any method, by checking their sum and product against ba-\frac{b}{a} and ca\frac{c}{a}
  • build a polynomial quickly from a desired set of roots, especially when roots are given symbolically
  • avoid solving entirely when the question asks for a symmetric expression in the roots

A good next step is to take any quadratic you can factor quickly, compute its roots, then compute ba-\frac{b}{a} and ca\frac{c}{a} and see the match. After you do that a few times, the formulas stop feeling like formulas and start feeling inevitable.

Was this lesson helpful?
Dive Deeper

Generate a follow-up sub-lesson on any aspect of this topic

Related content