MathorynMathematical Formula Database

Algebra

Quadratic Formula

The quadratic formula is used to find the roots of a quadratic equation ax2+bx+c=0ax^2+bx+c=0, where a≠0a\neq 0. It always works, even when the quadratic cannot be factored easily, and the sign of the discriminant b2−4acb^2-4ac tells you whether the roots are real and distinct, repeated, or complex.

x=−b±b2−4ac2ax=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
LaTeXx=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

Variables

aa
quadratic coefficient (nonzero)
bb
linear coefficient
cc
constant term
xx
the roots (solutions) of the equation

Example

Solve x2−5x+6=0x^2-5x+6=0.

  1. Identify the coefficients: a=1, b=−5, c=6a=1,\ b=-5,\ c=6.
  2. Discriminant: b2−4ac=25−24=1b^2-4ac=25-24=1.
  3. x=5±12=5±12x=\dfrac{5\pm\sqrt{1}}{2}=\dfrac{5\pm 1}{2}.

Answer: For x2−5x+6=0x^2-5x+6=0, the solutions are x=2x=2 and x=3x=3.

Related formulas