How do you solve quadratic equations by completing the square

The idea behind completing the square is to add or subtract a constant to obtain the form #(x-h)^2# and then take a square root to be left with a linear equation. Let's do a concrete example first.

Starting from #2x^2-7x-4=0#

Step 1: Divide both sides by #2# to obtain #x^2# as the first term

#x^2-7/2x-2 = 0#

Step 2: Add #2# to both sides to isolate the #x# terms.

#x^2-7/2x = 2#

Step 3: Add a constant to both sides which will allow us to factor the left hand side as #(x-h)^2#. Noting that #(x-h)^2 = x^2-2h+h^2# we have #-2h = -7/2# and thus #h = 7/4#, meaning we add #(7/4)^2 = 49/16# to both sides.

#x^2-7/2+49/16 = 81/16#

Step 4: Factor the left hand side

#(x-7/4)^2 = 81/16#

Step 5: Take the square root of both sides. Remember to account for both positive and negative roots.

#x-7/4 = +-sqrt(81/16) = +-9/4#

Step 6: Solve the remaining linear equation:

#x = 7/4 +- 9/4 = 1/4(7+-9)#

#=> x = 4# or #x = -1/2#

The real trick here is observing in step 3 that the constant we need to add is equal to the square of half of the coefficient of #x#.


Let's see what happens if we apply this to a general quadratic equation.

#ax^2 + bx + c = 0#

#=> x^2 + b/ax + c/a = 0#

#=> x^2 + b/ax = -c/a#

#=> x^2 + b/ax + (b/(2a))^2 = -c/a + (b/(2a))^2 = b^2/(4a^2)-c/a#

#=> (x+b/(2a))^2 = (b^2-4ac)/(4a^2)#

#=> x+b/(2a) = +-sqrt((b^2-4ac)/(4a^2)) = +-sqrt(b^2-4ac)/(2a)#

#=> x = -b/(2a) +- sqrt(b^2-4ac)/(2a)#

#=(-b+-sqrt(b^2-4ac))/(2a)#

And we have just derived the quadratic formula.

Stephen Sacchetti, Yuanxin (Amy) Yang Alcocer
  • Stephen Sacchetti

    Stephen graduated from Haverford College with a B.S. in Mathematics in 2011. For the past ten years, he has been teaching high school math and coaching teachers on best practices. In 2015, Stephen earned an M.S. Ed from the University of Pennsylvania where he currently works as an adjunct professor.

    View bio
  • Instructor Yuanxin (Amy) Yang Alcocer

    Amy has a master's degree in secondary education and has been teaching math for over 9 years. Amy has worked with students at all levels from those with special needs to those that are gifted.

    View bio

Understand how to solve quadratic equations by completing the square. Find completing the square steps to work with fraction coefficients. Updated: 10/04/2021

A quadratic equation is a polynomial equation where the highest exponent on any variable is 2, for instance {eq}5x^2 + 7x - 3 = 12x + 1 {/eq} is a quadratic equation. Up until this point, solving simple quadratic equations has been a matter of taking a square root. For instance, to solve the equation {eq}x^2 = 16 {/eq}, take the square root of both sides and find {eq}x = \pm 4 {/eq}.

This same technique can be applied for slightly more complicated problems, such as {eq}(x - 3)^2 = 4 {/eq}. In this case, taking the square root of both sides leaves {eq}x - 3 = \pm 2 {/eq}, so {eq}x = 5, 1 {/eq}.

In this lesson, the goal will be to turn any quadratic equation into the form {eq}(x - a)^2 = b {/eq} so that the square root can be taken to solve for x. A method of solving these equations is called completing the square because something will be added to both sides of the original equation so that the left-hand side becomes a perfect square and can be factored into the form shown above.

The Steps

Say you are trying to find the solutions to this problem:

How do you solve quadratic equations by completing the square

Set y equal to 0 and then proceed to find the solutions. If you aren't able to easily factor this quadratic equation, then you can use the method called completing the square. In this method, you manipulate your equation so you end up with one squared part that equals a number. This way, you can easily find your two solutions.

Let's look at the steps to solve a quadratic by completing the square.

Step 1: Set your equation to 0.

Whenever a problem asks you to find the solutions or x-intercepts, it means that you need to set your equation equal to 0 (i.e. set y = 0).

How do you solve quadratic equations by completing the square

Step 2: Move your single constant to the other side.

You want just your variables on the left and your numbers on the right. In our example, this means we move the 8 over to the other side. We can do so by adding it to both sides since it's being subtracted. Remember, when moving terms from one side to the other, you always perform the opposite or inverse operation.

How do you solve quadratic equations by completing the square

Step 3: Divide by the coefficient of the squared term if there is one.

You want your squared term to be just that: your variable squared, with no other constants multiplying with it. In our example, our squared term is being multiplied by a 3, so we need to divide both sides by 3.

How do you solve quadratic equations by completing the square

Step 4: Take the coefficient of your single x term, half it including its sign, and then add the square of this number to both sides.

This step is a little bit tricky. You're going to take the coefficient of the x term, then you're going to divide it by 2. Then you're going to square this number and add it to both sides. So, for our example, the x term's coefficient is 4/3. Dividing it by 2, we get 4/6 or 2/3. Then we'll square the 2/3 and add that to both sides. This is what we get:

How do you solve quadratic equations by completing the square

Step 5: Convert to squared form and combine like terms.

Now that you've figured out the square of the coefficient of the x term, you can now convert your equation into squared form. You'll use what you found to be half of the x term's coefficient. You'll also add your like terms together on the right side of the equation. For our problem, we get:

How do you solve quadratic equations by completing the square

Step 6: Take the square root of both sides.

The next step in solving your equation is to take the square root of both sides. Doing this will cancel out your square. This is what we get for our problem:

How do you solve quadratic equations by completing the square

Remember that when you take the square root of a number, you'll have both a positive and a negative component.

Step 7: Solve for the variable.

Since you have a positive and a negative part, you'll have two equations to solve for. For our problem, you have these two equations you need to solve, one for the positive part and one for the negative part:

How do you solve quadratic equations by completing the square

To find your solutions, solve for your variable by isolating it. For our problem, we'll need to subtract 2/3 from both sides to find our solutions.

  • Video
  • Quiz
  • Course

Completing the Square Steps

Before completing the square, it will be important to notice a pattern moving back and forth from factored form and expanded form. Consider the pattern shown below:

{eq}(x + 1)^2 = x^2 + 2x + 1 \\ (x + 2)^2 = x^2 + 4x + 4 \\ (x + 3)^2 = x^2 + 6x + 9 \\ (x + 4)^2 = x^2 + 8x + 16 \\ (x + 5)^2 = x^2 + 10x + 25 {/eq}

Notice that in each case, the final term of the trinomial is half of the second coefficient squared. In the following examples, the goal will be to turn a trinomial into a perfect square and then factor that trinomial to solve. In particular, the hope will be to make the leading coefficient 1 and the constant term equal to half of the middle coefficient squared. For instance, consider the equation:

{eq}x^2 + 6x + 7 = 0 {/eq}

Notice that to make this trinomial a perfect square trinomial, the final term would have to be half of the middle term squared. Thus, take 6 and cut it in half, which gives us 3, and square it to get 9. Since the final term is currently 7 and needs to be 9, 2 must be added to both sides of the equation. Doing so yields {eq}x^2 + 6x + 9 = 2 {/eq}, which can now be factored into {eq}(x + 3)^2 = 2 {/eq} and solved by taking the square root of both sides:

{eq}x + 3 = \pm \sqrt{2} \\ x = -3 \pm \sqrt{2} {/eq}

This can be seen visually as well. Consider the expression {eq}x^2 + px {/eq} Drawing this out using areas can lead to the following image where it can be seen that the necessary piece to complete the square is {eq}(\frac{p}{2})^2 {/eq}

How do you solve quadratic equations by completing the square

To generalize, the process of completing the square follows each of the steps below:

1. Set one side of the equation equal to zero

2. Make the leading coefficient equal to one by division if necessary

3. Find the value of half of the second coefficient and then square that value

4. Make the final term equal to the value found in step 3 by adding or subtracting from both sides

5. Factor the perfect square trinomial

6. Take the square root of both sides of the equation

7. Move over any constant terms to solve for x

Follow along with the example below which numbers each step. Solve the equation: {eq}2x^2 - 4x + 6 = 8 {/eq}

{eq}1. \ \ 2x^2 - 4x - 2 = 0 \\ 2. \ \ x^2 - 2x - 1 = 0 \\ 3. \ \ -2 \div 2 = -1, (-1)^2 = 1 \\ 4. \ \ x^2 - 2x + 1 = 2 \\ 5. \ \ (x - 1)^2 = 2 \\ 6. \ \ x - 1 = \pm \sqrt{2} \\ 7. \ \ x = 1 \pm \sqrt{2} {/eq}

Quadratic Equations: Solve by Completing the Square

1. Solve the equation {eq}x^2 - 10x + 3 = 0 {/eq} by completing the square.

First, notice that the equation is set to zero and that the leading coefficient is 1. From there, find half of the middle term squared (which is 25) and then make the constant term equal to 25. Again, this can be seen visually as well through the image:

How do you solve quadratic equations by completing the square

So back to the equation, we need to add 22 to both sides so that the constant term equals 25. This results in:

{eq}x^2 - 10x + 25 = 22 \\ (x - 5)^2 = 22 \\ x - 5 = \pm \sqrt{22} \\ x = 5 \pm \sqrt{22} {/eq}

2. Solve the equation {eq}x^2 + 5x + 1 = 0 {/eq} by completing the square.

The Solution

After isolating our variable, we get the following answers:

How do you solve quadratic equations by completing the square

The Steps

Say you are trying to find the solutions to this problem:

How do you solve quadratic equations by completing the square

Set y equal to 0 and then proceed to find the solutions. If you aren't able to easily factor this quadratic equation, then you can use the method called completing the square. In this method, you manipulate your equation so you end up with one squared part that equals a number. This way, you can easily find your two solutions.

Let's look at the steps to solve a quadratic by completing the square.

Step 1: Set your equation to 0.

Whenever a problem asks you to find the solutions or x-intercepts, it means that you need to set your equation equal to 0 (i.e. set y = 0).

How do you solve quadratic equations by completing the square

Step 2: Move your single constant to the other side.

You want just your variables on the left and your numbers on the right. In our example, this means we move the 8 over to the other side. We can do so by adding it to both sides since it's being subtracted. Remember, when moving terms from one side to the other, you always perform the opposite or inverse operation.

How do you solve quadratic equations by completing the square

Step 3: Divide by the coefficient of the squared term if there is one.

You want your squared term to be just that: your variable squared, with no other constants multiplying with it. In our example, our squared term is being multiplied by a 3, so we need to divide both sides by 3.

How do you solve quadratic equations by completing the square

Step 4: Take the coefficient of your single x term, half it including its sign, and then add the square of this number to both sides.

This step is a little bit tricky. You're going to take the coefficient of the x term, then you're going to divide it by 2. Then you're going to square this number and add it to both sides. So, for our example, the x term's coefficient is 4/3. Dividing it by 2, we get 4/6 or 2/3. Then we'll square the 2/3 and add that to both sides. This is what we get:

How do you solve quadratic equations by completing the square

Step 5: Convert to squared form and combine like terms.

Now that you've figured out the square of the coefficient of the x term, you can now convert your equation into squared form. You'll use what you found to be half of the x term's coefficient. You'll also add your like terms together on the right side of the equation. For our problem, we get:

How do you solve quadratic equations by completing the square

Step 6: Take the square root of both sides.

The next step in solving your equation is to take the square root of both sides. Doing this will cancel out your square. This is what we get for our problem:

How do you solve quadratic equations by completing the square

Remember that when you take the square root of a number, you'll have both a positive and a negative component.

Step 7: Solve for the variable.

Since you have a positive and a negative part, you'll have two equations to solve for. For our problem, you have these two equations you need to solve, one for the positive part and one for the negative part:

How do you solve quadratic equations by completing the square

To find your solutions, solve for your variable by isolating it. For our problem, we'll need to subtract 2/3 from both sides to find our solutions.

The Solution

After isolating our variable, we get the following answers:

How do you solve quadratic equations by completing the square

How do you solve a quadratic equation by completing the square?

The procedure for solving a quadratic equation by completing the square is:

1. Set one side of the equation equal to zero

2. Make the leading coefficient equal to one by division if necessary

3. Find the value of half of the second coefficient and then square that value

4. Make the final term equal to the value found in step 3 by adding or subtracting from both sides

5. Factor the perfect square trinomial

6. Take the square root of both sides of the equation

7. Move over any constant terms to solve for x

How do you solve by completing the square?

Completing the square is the name of the method used to turn any quadratic equation into the form (x - a)^2 = b. This allows quadratic equations to be solved by taking the square root of both sides.

Create an account to start this course today

Used by over 30 million students worldwide

Create an account

What is the formula method for completing the square?

Complete the square formula Completing the Square Formula is given as: ax2 + bx + c ⇒ (x + p)2 + constant. The quadratic formula is derived using a method of completing the square. Let's see. Divide each term by a.