Lably
Skip to content

Quadratic formula

Formula that provides the solutions to a quadratic equation

  • 12 min read
  • 7 chapters
  • 2 labs on Lably
The roots of the quadratic function y = 1 2 x 2 − 3 x + 1 2 can be found by substituting the coefficients into the quadratic formula, to find valued ( 1 , 0 ) and ( 5 , 0 ) .
Jacob Rus · CC BY-SA 4.0

Learn it on Lably

Given a general quadratic equation of the form ⁠ax2+bx+c=0⁠, with ⁠x⁠ representing an unknown, and coefficients ⁠a⁠, ⁠b⁠, and ⁠c⁠ representing known real or complex numbers with ⁠a≠0⁠, the values of ⁠x⁠ satisfying the equation, called the roots or zeros, can be found using the quadratic formula,

x=−b±b2−4ac2a,

where the plus–minus symbol "⁠±⁠" indicates that the equation has two roots. Written separately, these are:

x1=−b+b2−4ac2a,x2=−b−b2−4ac2a.

The quantity ⁠Δ=b2−4ac⁠ is known as the discriminant of the quadratic equation. If the coefficients ⁠a⁠, ⁠b⁠, and ⁠c⁠ are real numbers then when ⁠Δ>0⁠, the equation has two distinct real roots; when ⁠Δ=0⁠, the equation has one repeated real root; and when ⁠Δ<0⁠, the equation has no real roots but has two distinct complex roots, which are complex conjugates of each other.

Geometrically, the roots represent the ⁠x⁠ values at which the graph of the quadratic function ⁠y=ax2+bx+c⁠, a parabola, crosses the ⁠x⁠-axis: the graph's ⁠x⁠-intercepts. The quadratic formula can also be used to identify the parabola's axis of symmetry.

Derivation by completing the square

The standard way to derive the quadratic formula is to apply the method of completing the square to the generic quadratic equation ⁠ax2+bx+c=0⁠. The idea is to transform the equation into the form ⁠(x+k)2=s⁠ for some expressions ⁠k⁠ and ⁠s⁠ written in terms of the coefficients; take the square root of both sides; and then isolate ⁠x⁠.

We start by dividing the equation by the quadratic coefficient ⁠a⁠, which is allowed because ⁠a⁠ is non-zero. Afterwards, we subtract the constant term ⁠c/a⁠ to isolate it on the right-hand side:

ax2|+bx+c=0x2+bax+ca=0x2+bax=−ca.

The left-hand side is now of the form ⁠x2+2kx⁠, and we can "complete the square" by adding a constant ⁠k2⁠ to obtain a squared binomial ⁠x2+2kx+k2=⁠⁠(x+k)2⁠. In this example we add ⁠(b/2a)2⁠ to both sides so that the left-hand side can be factored (see the figure):

x2+2(b2a)x+(b2a)2=−ca+(b2a)2(x+b2a)2=b2−4ac4a2.

Because the left-hand side is now a perfect square, we can easily take the square root of both sides:

x+b2a=±b2−4ac2a.

Finally, subtracting ⁠b/2a⁠ from both sides to isolate ⁠x⁠ produces the quadratic formula:

x=−b±b2−4ac2a.

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Algebra