Stewdent.eu
β–Ύ

The Quadratic Formula

The quadratic formula solves any quadratic equation axΒ² + bx + c = 0 by finding the roots in terms of a, b, and c.

Last updated: 10 January 2026

β˜…β˜…β˜†β˜†β˜† Level 2AlgebraQuadraticFormulaRoots4 min read

Report an error

The Quadratic Equation

A quadratic equation has the form:

ax2+bx+c=0,a≠0ax^2 + bx + c = 0, \quad a \neq 0

Quadratic Formula

x=βˆ’bΒ±b2βˆ’4ac2ax = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}

This formula gives both roots of any quadratic equation.

The Discriminant

The discriminant Ξ”=b2βˆ’4ac\Delta = b^2 - 4ac determines the nature of the roots:

DiscriminantRoots
Ξ”>0\Delta > 0Two distinct real roots
Ξ”=0\Delta = 0One repeated real root
Ξ”<0\Delta < 0Two complex conjugate roots
Note

The sum of roots is x1+x2=βˆ’b/ax_1 + x_2 = -b/a and the product is x1β‹…x2=c/ax_1 \cdot x_2 = c/a (Vieta's formulas).

Solve xΒ² βˆ’ 5x + 6 = 0

Here a=1a = 1, b=βˆ’5b = -5, c=6c = 6.

Ξ”=(βˆ’5)2βˆ’4(1)(6)=25βˆ’24=1\Delta = (-5)^2 - 4(1)(6) = 25 - 24 = 1

x=5Β±12x = \dfrac{5 \pm 1}{2}

So x1=3x_1 = 3 and x2=2x_2 = 2.

Completing the Square

Another method: rewrite ax2+bx+cax^2 + bx + c as a(x+h)2+ka(x + h)^2 + k.

  1. 1

    Divide by a

    x2+bax+ca=0x^2 + \frac{b}{a}x + \frac{c}{a} = 0

  2. 2

    Move constant to right side

    x2+bax=βˆ’cax^2 + \frac{b}{a}x = -\frac{c}{a}

  3. 3

    Add (b/2a)Β² to both sides

    (x+b2a)2=b2βˆ’4ac4a2\left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2}

  4. 4

    Take the square root

    x+b2a=Β±b2βˆ’4ac2ax + \frac{b}{2a} = \pm\frac{\sqrt{b^2 - 4ac}}{2a}

Real-World Examples

Real world: when does a ball hit the ground?

A ball is launched upward. Its height in metres is h=βˆ’5t2+20th = -5t^2 + 20t.

To find when it lands, solve βˆ’5t2+20t=0-5t^2 + 20t = 0, or equivalently t2βˆ’4t=0t^2 - 4t = 0.

Using the quadratic formula: Ξ”=16βˆ’0=16\Delta = 16 - 0 = 16, so t=4Β±42t = \frac{4 \pm 4}{2}.

t=4t = 4 s (lands) and t=0t = 0 (launch). The ball is in the air for 4 seconds.

Real world: rectangular garden dimensions

A gardener wants a rectangular plot with area 24 mΒ² and perimeter 20 m. Let one side be xx.

From the perimeter: the other side is 10βˆ’x10 - x. Area gives x(10βˆ’x)=24x(10 - x) = 24, so x2βˆ’10x+24=0x^2 - 10x + 24 = 0.

Ξ”=100βˆ’96=4\Delta = 100 - 96 = 4, so x=10Β±22x = \frac{10 \pm 2}{2}: sides are 6 m and 4 m.

Real world: stopping distance

A car has stopping distance d=0.05v2+0.7vd = 0.05v^2 + 0.7v. A driver needs to stop within 40 m.

Solve 0.05v2+0.7vβˆ’40=00.05v^2 + 0.7v - 40 = 0, multiply by 20: v2+14vβˆ’800=0v^2 + 14v - 800 = 0.

Ξ”=196+3200=3396\Delta = 196 + 3200 = 3396, so vβ‰ˆβˆ’14+58.32β‰ˆ22v \approx \frac{-14 + 58.3}{2} \approx 22 m/s (β‰ˆ 79 km/h). Driving faster is unsafe for that stopping distance.

Practice Problems

Solve xΒ² + 4x βˆ’ 5 = 0 using the quadratic formula

Show answer
Ξ” = 16 + 20 = 36. x = (βˆ’4 Β± 6)/2. x₁ = 1, xβ‚‚ = βˆ’5

Find the discriminant of 2xΒ² βˆ’ 3x + 5 = 0. How many real roots?

Show answer
Ξ” = 9 βˆ’ 40 = βˆ’31 < 0. No real roots (two complex roots).

Solve xΒ² βˆ’ 6x + 9 = 0

Show answer
Ξ” = 36 βˆ’ 36 = 0. One repeated root: x = 3