MathorynMathematical Formula Database

Algebra

Vieta's Formulas

Vieta's formulas relate the roots of the quadratic ax2+bx+c=0ax^2+bx+c=0 to its coefficients: the sum of the roots is −b/a-b/a and the product is c/ac/a. They let you check solutions quickly or build an equation with given roots. Use them to check answers without re-solving, or to write a quadratic from known roots.

x1+x2=−ba,x1x2=cax_1+x_2=-\frac{b}{a},\qquad x_1x_2=\frac{c}{a}
LaTeXx_1+x_2=-\frac{b}{a},\qquad x_1x_2=\frac{c}{a}

Variables

x1, x2x_1,\ x_2
the two roots (real or complex)
aa
quadratic coefficient (nonzero)
bb
linear coefficient
cc
constant term

Example

Find the sum and product of the roots of 2x2−7x+3=02x^2-7x+3=0.

  1. Sum: −−72=3.5-\frac{-7}{2}=3.5.
  2. Product: 32=1.5\frac{3}{2}=1.5.
  3. Check: the roots are 33 and 0.50.5; 3+0.5=3.53+0.5=3.5 and 3⋅0.5=1.53\cdot0.5=1.5.

Answer: Sum =3.5=3.5, product =1.5=1.5.

Related formulas