We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Guias de estudo > ALGEBRA / TRIG I

Square Roots and Completing the Square

Learning Outcomes

  • Use the square root property to solve a quadratic equation
  • Complete the square to solve a quadratic equation with irrational roots
Quadratic equations can be solved using many methods. You may already be familiar with factoring to solve some quadratic equations. However, not all quadratic equations can be factored. In this section, you will use square roots to learn another way to solve quadratic equations—and this method will work with all quadratic equations.

Solve a Quadratic Equation by the Square Root Property

One way to solve the quadratic equation x2=9x^{2}=9 is to subtract 99 from both sides to get one side equal to 0: x29=0x^{2}-9=0. The expression on the left can be factored; it is a difference of squares: (x+3)(x3)=0\left(x+3\right)\left(x–3\right)=0. Using the zero factor property, you know this means x+3=0x+3=0 or x3=0x–3=0, so x=3x=−3 or 33. Another property that would let you solve this equation more easily is called the square root property.

The Square Root Property

If x2=ax^{2}=a, then x=a x=\sqrt{a} or a -\sqrt{a}.   The solutions of x2=ax^2=a are called the square roots of a.
  • When a is positive, a>0a > 0, x2=ax^2=a has two solutions, +a,a+\sqrt{a},-\sqrt{a}. +a+\sqrt{a} is the nonnegative square root of a, and a-\sqrt{a} is the negative square root of a.
  • When a is negative, a<0a < 0, x2=ax^2=a has no solutions.
  • When a is zero, a=0a = 0, x2=ax^2=a has one solution: a=0a = 0
A shortcut way to write “a \sqrt{a}” or “a -\sqrt{a}” is ±a \pm \sqrt{a}. The symbol ±\pm is often read “positive or negative.” If it is used as an operation (addition or subtraction), it is read “plus or minus.”

Example

Solve using the Square Root Property. x2=9x^{2}=9

Answer: Since one side is simply x2x^{2}, you can take the square root of both sides to get x on one side. Do not forget to use both positive and negative square roots!

x2=9x=±9\begin{array}{c}x^{2}=9 \\ x=\pm\sqrt{9} \end{array}

x=±3x=\pm3 (that is, x=3x=3 or 3-3)

Notice that there is a difference here in solving x2=9x^{2}=9 and finding 9 \sqrt{9}. For x2=9x^{2}=9, you are looking for all numbers whose square is 99. For 9 \sqrt{9}, you only want the principal (nonnegative) square root. The negative of the principal square root is 9 -\sqrt{9}; both would be ±9 \pm \sqrt{9}. Unless there is a symbol in front of the radical sign, only the nonnegative value is wanted! In the example above, you can take the square root of both sides easily because there is only one term on each side. In some equations, you may need to do some work to get the equation in this form. You will find that this involves isolating x2x^{2}. In our first video, we will show more examples of using the square root property to solve a quadratic equation. https://youtu.be/Fj-BP7uaWrI

Example

Solve. 10x2+5=8510x^{2}+5=85

Answer: If you try taking the square root of both sides of the original equation, you will have 10x2+5 \sqrt{10{{x}^{2}}+5} on the left, and you cannot simplify that. Subtract 55 from both sides to get the x2x^{2} term by itself.

10x2=8010x^{2}=80

You could now take the square root of both sides, but you would have 10 \sqrt{10} as a coefficient, and you would need to divide by that coefficient. Dividing by 1010 before you take the square root will be a little easier.

x2=8x^{2}=8

Now you have only x2x^{2} on the left, so you can use the Square Root Property easily. Be sure to simplify the radical if possible.

x2=8x=±8=±(4)(2)=±42=±22 \begin{array}{ll}{{x}^{2}} & =8\\ x & =\pm \sqrt{8}\\ & =\pm \sqrt{(4)(2)}\\ & =\pm \sqrt{4}\sqrt{2}\\ & =\pm 2\sqrt{2}\end{array}

The answer is x=±22 x=\pm 2\sqrt{2}.

Try It

[ohm_question]197330[/ohm_question]
Sometimes more than just the xx is being squared:

Example

Solve. (x2)250=0\left(x–2\right)^{2}–50=0

Answer: Again, taking the square root of both sides at this stage will leave something you cannot work with on the left. Start by adding 50 to both sides.

(x2)2=50\left(x-2\right)^{2}=50

Because (x2)2\left(x–2\right)^{2} is a squared quantity, you can take the square root of both sides.

(x2)2=50x2=±50\begin{array}{r}\left(x-2\right)^{2}=50 \\ x-2=\pm\sqrt{50}\end{array}

To isolate xx on the left, you need to add 22 to both sides. Be sure to simplify the radical if possible.

x=2±50=2±(25)(2)=2±252=2±52 \begin{array}{ll}x & =2\pm \sqrt{50} \\ & =2\pm \sqrt{(25)(2)} \\ & =2\pm \sqrt{25}\sqrt{2} \\ & =2\pm 5\sqrt{2}\end{array}

The answer is x=2±52 x=2\pm 5\sqrt{2}.

In the next video, you will see more examples of using square roots to solve quadratic equations. https://youtu.be/4H5qZ_-8YM4

Solve a Quadratic Equation by Completing the Square

Not all quadratic equations can be factored or solved in their original form using the square root property. In these cases, we may use a method for solving a quadratic equation known as completing the square. Using this method, we add or subtract terms to both sides of the equation until we have a perfect square trinomial on one side of the equal sign. We then apply the square root property. Some of the above examples have squared binomials: (1+r)2\left(1+r\right)^{2} and (x2)2\left(x–2\right)^{2} are squared binomials. If you expand these, you get a perfect square trinomial. Perfect square trinomials have the form x2+2xs+s2x^{2}+2xs+s^{2} and can be factored as (x+s)2\left(x+s\right)^{2}, or they have the form x22xs+s2x^{2}–2xs+s^{2} and can be factored as (xs)2\left(x–s\right)^{2}. Let’s factor a perfect square trinomial into a squared binomial.

Example

Factor 9x224x+169x^{2}–24x+16.

Answer: First notice that the x2x^{2} term and the constant term are both perfect squares. 9x2=(3x)216=42\begin{array}{l}9x^{2}=\left(3x\right)^{2} \\ 16=4^{2}\end{array} Then notice that the middle term (ignoring the sign) is twice the product of the square roots of these squared terms. 24x=2(3x)(4)24x=2\left(3x\right)\left(4\right) A trinomial in the form r22rs+s2r^{2}-2rs+s^{2} can be factored as (rs)2(r–s)^{2}. In this case, the middle term is subtracted, so subtract r and s and square it to get (rs)2(r–s)^{2}.    r=3xs=49x224x+16=(3x4)2\begin{array}{c}\,\,\,r=3x\\s=4\\9x^{2}-24x+16=\left(3x-4\right)^{2}\end{array}

If this were an equation, we could solve using either the square root property or the zero product property. You can use the same procedure in this next example to help you solve equations where you identify perfect square trinomials, even if the equation is not set equal to 00.

Example

Solve. 4x2+20x+25=84x^{2}+20x+25=8

Answer: Since there’s an x term, you can’t use the Square Root Property immediately (or even after adding or dividing by a constant). Notice, however, that the x2x^{2} and constant terms on the left are both perfect squares: (2x)2\left(2x\right)^{2} and 525^{2}. Check the middle term: is it 2(2x)(5)2\left(2x\right)\left(5\right)? Yes!

4x2+20x+25=84x^{2}+20x+25=8

A trinomial in the form r2+2rs+s2r^{2}+2rs+s^{2} can be factored as (r+s)2\left(r+s\right)^{2}, so rewrite the left side as a squared binomial.

(2x+5)2=8(2x+5)^{2}=8

Now you can use the Square Root Property. Some additional steps are needed to isolate x.

2x+5=±8                2x=5±8     x=52±128 \begin{array}{r}2x+5=\pm \sqrt{8}\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\\\\2x=-5\pm \sqrt{8}\,\,\,\,\,\\\\x=-\frac{5}{2}\pm \frac{1}{2}\sqrt{8}\end{array}

Simplify the radical when possible.

x=52±1242x=52±12(2)2x=52±2 \begin{array}{l}x=-\frac{5}{2}\pm \frac{1}{2}\sqrt{4}\sqrt{2}\\\\x=-\frac{5}{2}\pm \frac{1}{2}(2)\sqrt{2}\\\\x=-\frac{5}{2}\pm \sqrt{2}\end{array}

Answer

x=52±2 x=-\frac{5}{2}\pm \sqrt{2}

One way to solve quadratic equations is by completing the square. When you don’t have a perfect square trinomial, you can create one by adding a constant term that is a perfect square to both sides of the equation. Let’s see how to find that constant term. “Completing the square” does exactly what it says—it takes something that is not a square and makes it one. This idea can be illustrated using an area model of the binomial x2+bxx^{2}+bx. X times X is x squared. X times b is bx. x(x+b)=x^{2}+bx In this example, the area of the overall rectangle is given by x(x+b)x\left(x+b\right). Now let's make this rectangle into a square. First, divide the red rectangle with area bx into two equal rectangles each with area b2x \frac{b}{2}x. Then rotate and reposition one of them. You haven't changed the size of the red area—it still adds up to bxbx.
X times X is X squared. X times b/2 is equal to b/2 x. X times b/2 is equal to b/2 x. X times X is X squared. X times b/2 is equal to b/2 x. X times b/2 is equal to b/2 x. B\2 times b\2 is b\2 squared. X squared plus 2 times b\2 x + b\2 squared
The red rectangles now make up two sides of a square, shown in white. The area of that square is the length of the red rectangles squared, or (b2)2 {{\left( \frac{b}{2} \right)}^{2}}. Here comes the cool part—do you see that when the white square is added to the blue and red regions, the whole shape is also now a square? In other words, you've "completed the square!" By adding the quantity (b2)2\left(\frac{b}{2}\right)^{2} to the original binomial, you've made a square, a square with sides of x+b2x+\frac{b}{2}. X times X is X squared. X times b/2 is equal to b/2 x. X times b/2 is equal to b/2 x. B\2 times b\2 is b\2 squared. The lengths of the overall square is now x + b\2. X squared +bx+ b\2 squared equals x squared + 2 times b\2 x + b\2 squared = the square of x + b\2. Notice that the area of this square can be written as a squared binomial: (x+b2)2\left(x+\frac{b}{2}\right)^{2}.

Finding a Value that will Complete the Square in an Expression

To complete the square for an expression of the form x2+bxx^{2}+bx:
  • Identify the value of b;
  • Calculate and add (b2)2\left(\frac{b}{2}\right)^{2}.
The expression becomes x2+bx+(b2)2=(x+b2)2x^{2}+bx+\left(\frac{b}{2}\right)^{2}=\left(x+\frac{b}{2}\right)^{2}.

Example

Find the number to add to x2+8xx^{2}+8x to make it a perfect square trinomial.

Answer: First identify b if this has the form x2+bxx^{2}+bx.

x2+8xb=8\begin{array}{c}x^{2}+8x\\b=8\end{array}

To complete the square, add (b2)2\left(\frac{b}{2}\right)^{2}.

b=8b=8, so (b2)2=(82)2\left(\frac{b}{2}\right)^{2}=\left(\frac{8}{2}\right)^{2}

Simplify.

x2+8x+(4)2x2+8x+16\begin{array}{c}x^{2}+8x+\left(4\right)^{2}\\x^{2}+8x+16\end{array}

Check that the result is a perfect square trinomial. (x+4)2=x2+4x+4x+16=x2+8x+16\left(x+4\right)^{2}=x^{2}+4x+4x+16=x^{2}+8x+16, so it is.

Answer

Adding +16+16 will make x2+8xx^{2}+8x a perfect square trinomial.

Notice that (b2)2 {{\left( \frac{b}{2} \right)}^{2}} is always positive, since it is the square of a number. When you complete the square, you are always adding a positive value. In the following video, we show more examples of how to find a constant term that will make a trinomial a perfect square. https://youtu.be/vt-pM1LEP1M You can use completing the square to help you solve a quadratic equation that cannot be solved by factoring (and it will still work even when you can factor!). Let’s start by seeing what happens when you complete the square in an equation. In the example below, notice that completing the square will result in adding a number to both sides of the equation—you have to do this in order to keep both sides equal!

Example

Rewrite x2+6x=8x^{2}+6x=8 so that the left side is a perfect square trinomial.

Answer: This equation has a constant of 8. Ignore it for now and focus on the x2x^{2} and x terms on the left side of the equation. The left side has the form x2+bxx^{2}+bx, so you can identify b.

x2+6x=8b=6\begin{array}{r}x^{2}+6x=8\\b=6\end{array}

To complete the square, add (b2)2 {{\left( \frac{b}{2} \right)}^{2}} to the left side. b=6[/latex],so[latex](b2)2=(62)2=32=9.b=6[/latex], so [latex] {{\left( \frac{b}{2} \right)}^{2}}={{\left( \frac{6}{2} \right)}^{2}}={{3}^{2}}=9. This is an equation, though, so you must add the same number to the right side as well.

x2+6x+9=8+9x^{2}+6x+9=8+9

Simplify. Check that the left side is a perfect square trinomial. (x+3)2=x2+3x+3x+9=x2+6x+9r\begin{array}{r}\left(x+3\right)^{2}=x^{2}+3x+3x+9=x^{2}+6x+9\end{array}{r}, so it is.

x2+6x+9=17x2+6x+9=17(x+3)2=17\begin{array}{r}x^{2}+6x+9=17\\x^{2}+6x+9=17\\(x+3)^{2}=17\end{array}

Answer

x2+6x+9=17x^{2}+6x+9=17

Can you see that completing the square in an equation is very similar to completing the square in an expression? The main difference is that you have to add the new number (+9+9 in this case) to both sides of the equation to maintain equality. Now let’s look at an example where you are using completing the square to actually solve an equation, finding a value for the variable.

Example

Solve. x212x4=0x^{2}–12x–4=0

Answer: Since you cannot factor the trinomial on the left side, you will use completing the square to solve the equation. Rewrite the equation with the left side in the form x2+bxx^{2}+bx, to prepare to complete the square. Identify b.

x212x=4        b=12\begin{array}{r}x^{2}-12x=4\,\,\,\,\,\,\,\,\\b=-12\end{array}

Figure out what value to add to complete the square. Add (b2)2 {{\left( \frac{b}{2}\right)}^{2}} to complete the square, so (b2)2=(122)2=(6)2=36 {{\left( \frac{b}{2} \right)}^{2}}={{\left( \frac{-12}{2} \right)}^{2}}={{\left( -6 \right)}^{2}}=36. Add the value to both sides of the equation and simplify.

x212x+36=4+36x212x+36=40\begin{array}{l}x^{2}-12x+36=4+36\\x^{2}-12x+36=40\end{array}

Rewrite the left side as a squared binomial.

(x6)2=40\left(x-6\right)^{2}=40

Use the Square Root Property. Remember to include both the positive and negative square root, or you’ll miss one of the solutions.

x6=±40 x-6=\pm\sqrt{40}

Solve for x by adding 6 to both sides. Simplify as needed.

x=6±40    =6±410    =6±210 \begin{array}{l}x=6\pm \sqrt{40}\\\,\,\,\,=6\pm \sqrt{4}\sqrt{10}\\\,\,\,\,=6\pm 2\sqrt{10}\end{array}

Answer

x=6±210 x=6\pm 2\sqrt{10}

Notice that, to complete the square, the leading coefficient, a, must equal 1. If it does not, then divide the entire equation by a. Then, we can use the following procedures to solve a quadratic equation by completing the square.

Steps for Completing The Square

  1. Given a quadratic equation with a=1a=1, first add or subtract the constant term c to the right side of the equal sign.
    x2+bx=c{x}^{2}+bx=-c
  2. Multiply the b term by 12\frac{1}{2} and square it.
    (12b)2{\left(\frac{1}{2}b\right)}^{2}
  3. Add (12b)2{\left(\frac{1}{2}b\right)}^{2} to both sides of the equal sign and simplify the right side
  4. The left side of the equation can now be factored as a perfect square.  x2+bx+(b2)2=(x+b2)2x^{2}+bx+\left(\frac{b}{2}\right)^{2}=\left(x+\frac{b}{2}\right)^{2}
  5. Use the square root property to solve.

Try It

[ohm_question]147603[/ohm_question]
 

Example

Solve by completing the square: x23x5=0{x}^{2}-3x - 5=0.

Answer: First, move the constant term to the right side of the equal sign.

x23x=5{x}^{2}-3x=5
Identify bb:   b=3b=-3 Then, take 12\frac{1}{2} of the b term and square it.
12(3)=32(32)2=94\begin{array}{l}\frac{1}{2}\left(-3\right)=-\frac{3}{2}\hfill \\ {\left(-\frac{3}{2}\right)}^{2}=\frac{9}{4}\hfill \end{array}
Add the result to both sides of the equal sign.
 x23x+(32)2=5+(32)2x23x+94=5+94\begin{array}{l}\text{ }{x}^{2}-3x+{\left(-\frac{3}{2}\right)}^{2}=5+{\left(-\frac{3}{2}\right)}^{2}\hfill \\ {x}^{2}-3x+\frac{9}{4}=5+\frac{9}{4}\hfill \end{array}
Factor the left side as a perfect square and simplify the right side.
(x32)2=294{\left(x-\frac{3}{2}\right)}^{2}=\frac{29}{4}
Use the square root property and solve.
(x32)2=±294x32=±292x=32±292\begin{array}{rl}\sqrt{{\left(x-\frac{3}{2}\right)}^{2}}\hfill & = \pm \sqrt{\frac{29}{4}}\hfill \\ x-\frac{3}{2} & =\pm \frac{\sqrt{29}}{2}\hfill \\ x & =\frac{3}{2}\pm \frac{\sqrt{29}}{2}\hfill \end{array}
The solutions are x=3+292x=\frac{3+\sqrt{29}}{2}, x=3292x=\frac{3-\sqrt{29}}{2}.

In the next video, you will see more examples of how to use completing the square to solve a quadratic equation. https://youtu.be/PsbYUySRjFo You may have noticed that because you have to use both square roots, all the examples have two solutions. Here is another example that is slightly different.

Example

Solve by completing the square. x2+16x+17=47x^{2}+16x+17=-47.

Answer: Rewrite the equation so the left side has the form x2+bxx^{2}+bx. Identify b.

x2+16x=64b=16\begin{array}{c}x^{2}+16x=-64\\b=16\end{array}

Add (b2)2 {{\left( \frac{b}{2} \right)}^{2}}, which is (162)2=82=64 {{\left( \frac{16}{2} \right)}^{2}}={{8}^{2}}=64, to both sides.

x2+16x+64=64+64x2+16x+64=0\begin{array}{l}x^{2}+16x+64=-64+64\\x^{2}+16x+64=0\end{array}

Write the left side as a squared binomial.

(x+8)2=0\left(x+8\right)^{2}=0

Take the square roots of both sides. Normally both positive and negative square roots are needed, but 0 is neither positive nor negative. 00 has only one root.

x+8=0x+8=0

x=8x=-8

Take a closer look at this problem and you may see something familiar. Instead of completing the square, try adding 4747 to both sides in the equation. The equation x2+16x+17=47x^{2}+16x+17=−47 becomes x2+16x+64=0x^{2}+16x+64=0. Can you factor this equation using grouping? (Think of two numbers whose product is 64 and whose sum is 1616). It can be factored as (x+8)(x+8)=0(x+8)(x+8)=0, of course! Knowing how to complete the square is very helpful, but it is not always the only way to solve an equation. In our last video, we show an example of how to use completing the square to solve a quadratic equation whose solutions are irrational. https://youtu.be/IjCjbtrPWHM

Summary

Completing the square is used to change a binomial of the form x2+bxx^{2}+bx into a perfect square trinomial x2+bx+(b2)2 {{x}^{2}}+bx+{{\left( \frac{b}{2} \right)}^{2}} which can be factored to (x+b2)2 {{\left( x+\frac{b}{2} \right)}^{2}}. When solving quadratic equations by completing the square, be careful to add (b2)2 {{\left( \frac{b}{2} \right)}^{2}} to both sides of the equation to maintain equality. The Square Root Property can then be used to solve for xx. With the Square Root Property, be careful to include both the principal square root and its opposite. Be sure to simplify as needed.

Contribute!

Did you have an idea for improving this content? We’d love your input.

Licenses & Attributions