What is the quadratic formula?

1 Answer
Mar 2, 2017

x = (-b+-sqrt(b^2-4ac))/(2a)x=b±b24ac2a

Explanation:

Given a quadratic equation in the standard form:

ax^2+bx+c = 0ax2+bx+c=0

the roots are given by the quadratic formula:

x = (-b+-sqrt(b^2-4ac))/(2a)x=b±b24ac2a

This is a very useful formula to memorise, but where does it come from?

Given:

ax^2+bx+c = 0ax2+bx+c=0

Note that:

a(x+b/(2a))^2 = a(x^2+b/ax+b^2/(4a^2))a(x+b2a)2=a(x2+bax+b24a2)

color(white)(a(x+b/(2a))^2) = ax^2+bx+b^2/(4a)a(x+b2a)2=ax2+bx+b24a

So:

0 = ax^2+bx+c = a(x+b/(2a))^2+(c-b^2/(4a))0=ax2+bx+c=a(x+b2a)2+(cb24a)

Add (b^2/(4a)-c)(b24ac) to both ends and transpose to get:

a(x+b/(2a))^2 = b^2/(4a)-ca(x+b2a)2=b24ac

color(white)(a(x+b/(2a))^2) = (b^2-4ac)/(4a)a(x+b2a)2=b24ac4a

Divide both sides by aa to get:

(x+b/(2a))^2 = (b^2-4ac)/(4a^2)(x+b2a)2=b24ac4a2

color(white)((x+b/(2a))^2) = (b^2-4ac)/(2a)^2(x+b2a)2=b24ac(2a)2

Take the square root of both sides, allowing for both positive and negative square roots:

x+b/(2a) = +-sqrt(b^2-4ac)/(2a)x+b2a=±b24ac2a

Subtract b/(2a)b2a from both sides to get:

x = (-b+-sqrt(b^2-4ac))/(2a)x=b±b24ac2a

Note that the quadratic formula will always work, but it will only give real values if b^2-4ac >= 0b24ac0, resulting in real square roots.