MathorynMathematical Formula Database

Algebra

Vieta's Formulas for a Cubic

Vieta's formulas for a cubic ax3+bx2+cx+d=0ax^3+bx^2+cx+d=0 relate its three roots to the coefficients without solving the equation. They are used to check roots, to build a cubic from given roots and to evaluate symmetric expressions of the roots.

x1+x2+x3=−ba,x1x2+x1x3+x2x3=ca,x1x2x3=−dax_1+x_2+x_3=-\frac{b}{a},\quad x_1x_2+x_1x_3+x_2x_3=\frac{c}{a},\quad x_1x_2x_3=-\frac{d}{a}
LaTeXx_1+x_2+x_3=-\frac{b}{a},\quad x_1x_2+x_1x_3+x_2x_3=\frac{c}{a},\quad x_1x_2x_3=-\frac{d}{a}

Variables

a, b, c, da,\ b,\ c,\ d
coefficients, a ≠ 0
x1, x2, x3x_1,\ x_2,\ x_3
the three roots (real or complex)

Example

Check Vieta's formulas for x3−6x2+11x−6=0x^3-6x^2+11x-6=0, whose roots are 1,2,31,2,3.

  1. Sum: 1+2+3=6=−−611+2+3=6=-\frac{-6}{1}.
  2. Pairwise products: 2+3+6=11=1112+3+6=11=\frac{11}{1}.
  3. Product: 1⋅2⋅3=6=−−611\cdot2\cdot3=6=-\frac{-6}{1}.

Answer: Sum 66, pairwise sum 1111, product 66: all match.

Related formulas