If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Quadratic formula proof review

A text-based proof (not video) of the quadratic formula
The quadratic formula says that
x=b±b24ac2a
for any quadratic equation like:
ax2+bx+c=0
If you've never seen this formula proven before, you might like to watch a video proof, but if you're just reviewing or prefer a text-based proof, here it is:

The proof

We'll start with the general form of the equation and do a whole bunch of algebra to solve for x. At the heart of the proof is the technique called completing the square. If you're unfamiliar with this technique, you may want to brush up by watching a video.

Part 1: Completing the square

ax2+bx+c=0(1)ax2+bx=c(2)x2+bax=ca(3)x2+bax+b24a2=b24a2ca(4)(x+b2a)2=b24a2ca(5)

Part 2: Algebra! Algebra! Algebra!

Remember, our goal is to solve for x.
(x+b2a)2=b24a2ca(5)(x+b2a)2=b24a24ac4a2(6)(x+b2a)2=b24ac4a2(7)x+b2a=±b24ac4a2(8)x+b2a=±b24ac2a(9)x=b2a±b24ac2a(10)x=b±b24ac2a(11)
And we're done!

Want to join the conversation?

  • duskpin ultimate style avatar for user jd1311993
    When we take the sqrt of 4a^2 shouldn't it be + or - 2a, not just 2a?
    (19 votes)
    Default Khan Academy avatar avatar for user
    • duskpin ultimate style avatar for user Ms Demaray
      anytime you take the square root of an expression, it is considered the principal root - that means the value is only ever positive... when you have an equation and take the square root of both sides, that is when you can get two values... (you can get as many values as makes the equation true) ex:
      x^2 = 4
      √(x^2) = √4
      |x| = 2
      x = ±2
      (8 votes)
  • spunky sam orange style avatar for user Derrick Logan
    In step 8 the square root on the right hand side is +/-. Why is the square root on the left hand side not also +/-?
    (11 votes)
    Default Khan Academy avatar avatar for user
  • aqualine ultimate style avatar for user PythagorasLessFortunateBrother
    How can we multiply by 4a^2 in step 6, without affecting the left side of the equation?
    (5 votes)
    Default Khan Academy avatar avatar for user
  • leaf orange style avatar for user Raghav
    I require some help with understanding how -b/2a derives the x-coordinate of the vertex of a parabola. Thanks in advance!
    (1 vote)
    Default Khan Academy avatar avatar for user
    • piceratops seedling style avatar for user bsd
      I know of two ways to understanding it.

      First, using the vertex formula: y = a(x – h)^2 + k, where "h" is the vertex.
      Put the general equation y = ax^2 + bx + c into the vertex form and you will find that "h" will equal -b/2a. I'll leave the work up to you.

      Second, since quadratics in the general form (y = ax^2 + bx + c) are symmetric over a vertical line through the vertex, we can use the two roots of the quadratic formula and average them to find the x-coordinate of the vertex (visualize a quadratic graph and you will see why this is true).

      So if you find the average of the two roots:

      [-b + sqrt(b^2-4ac)]/2a and [-b - sqrt(b^2-4ac)]/2a // it will be -b/2a. (I again, will leave the work up to you.)
      (13 votes)
  • leaf green style avatar for user Lyn Kang
    I tried the proof myself in a slightly different way and it didn't quite work out.

    (1) ax^2 + bx + c = 0
    (2) x^2 + (b/a)x + c/a = 0
    (3) x^2 + (b/a)x + (b^2/4a^2) + c/a - (b^2/4a^2) = 0
    (4) (x+(b/2a))^2 + 4ac/4a^2 - b^2/4a^2 = 0
    (5) (x+(b/2a))^2 + (4ac-b^2)/(4a^2) = 0
    (6) (x+(b/2a))^2 = -(4ac-b^2)/(4a^2)
    (7) (x+(b/2a)) = -(sqrt(4ac-b^2))/2a
    (8) x = -(b/2a)-(sqrt(4ac-b^2))/2a
    (9) x = -(-b+-squr(4ac-b^2))/2a

    My discriminant is 4ac-b^2 while the one we use is b^2-4ac. Also, I have a negative sign in front of the whole fraction which is from the second equation in step 8. Could somebody tell me where I made a mistake?
    (5 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Santiago Ramirez
    n step 8 the square root on the right hand side is +/-. Why is the square root on the left hand side not also +/-?
    (3 votes)
    Default Khan Academy avatar avatar for user
    • stelly blue style avatar for user Neil Gabrielson
      That is a great question! I thought I knew algebra, but I never noticed that and it took me a little minute to work out!
      Only one side of the equation needs a +/- sign because if you multiply the equation by -1 you can get to any combination of negatives and positives while only putting the +/- sign on one side. I know that sounds confusing, so let's simplify things. Say, for example, we're using the equation a = ±b. The two possible situations are a = b and a = -b, but multiplying those by -1 gives you -a = -b and -a = b, meaning that either side could be positive or negative in any combination with the +/- sign on only one side. Terrific question! I hope this helps, and remember that you can learn anything!
      (6 votes)
  • aqualine seed style avatar for user ranoosh
    can someone help me with 4x^2+11x-20=0 I solved everything expect I got stuck on the square root of 441
    (2 votes)
    Default Khan Academy avatar avatar for user
  • leaf red style avatar for user Hann
    on step 4, why adding (b^2/4a^2) to both sides?
    (1 vote)
    Default Khan Academy avatar avatar for user
    • mr pink green style avatar for user David Severin
      To complete the square, you divide the coefficient of the x term by 2 (b/2a) and square this to get b^2/4a^2. So you need this term to complete the square. If you do it to the left side in order to complete the square, you either have to subtract it on the left or add it to the right side of the equation to keep it balanced.
      (6 votes)
  • mr pants teal style avatar for user Qasim Hashmi
    why don't we write +/- when we take the square root of 4a^2 ?
    (1 vote)
    Default Khan Academy avatar avatar for user
  • duskpin ultimate style avatar for user Jerusha Curlin
    How is -4ac/4a^2 equal to -c/a?
    (2 votes)
    Default Khan Academy avatar avatar for user
    • piceratops ultimate style avatar for user IsNewt
      When you have a fraction, you can multiply or divide both the numerator and the denominator by the same thing, because in the end the operations will cancel out (as in simplifying fractions). In this case, you multiplied both the numerator and denominator by 4a to get a common denominator with b^2/4a^2. You see that to get from a (the denominator in-c/a) to 4a^2(the common denominator) you must multiply the former numerator and denominator of -c/a by 4a. So it is that -c/a = -4ac/4a^2.
      (1 vote)