Vieta's formulas

You can find the sum and product of the two roots of a quadratic equation just from its coefficients (the numbers in front of each term), without solving it. If the roots are 2 and 3, the equation is (x−2)(x−3)=x2−5x+6(x-2)(x-3)=x^2-5x+6, so the sum 5 shows up as the x-coefficient with its sign flipped and the product 6 shows up as the constant term.

Chalcack concept card · Reviewed by the Chalcack team ·

Expanding with roots 2 and 3, the sum 5 appears with its sign flipped as −5 and the product 6 appears as the constant term.

Formulas

  • For ax2+bx+c=0: sum of roots=−ba\text{For } ax^2+bx+c=0: \text{ sum of roots} = -\frac{b}{a}
  • product of roots=ca\text{product of roots} = \frac{c}{a}

When to use it

Use it when you need the sum or product of the roots without finding the roots, or when you know the roots and need the coefficients of the equation.

Worked example

Find the sum and product of the roots of x2−5x+6=0x^2-5x+6=0. Step 1: a=1, b=−5, c=6a=1,\ b=-5,\ c=6. Step 2: the sum is −−51=5-\frac{-5}{1}=5 and the product is 61=6\frac{6}{1}=6. Step 3: checking with the actual roots 2 and 3, 2+3=52+3=5 and 2×3=62\times3=6, so it works.

Common mistake

The most common mistake is dropping the minus sign in the sum of the roots. Also, if a, the number in front of x2x^2, is not 1, be sure to divide by a.

Related concepts

All 181 math concepts