How do you solve an equation by completing the square?

2 Answers
Mar 9, 2015

(This is going to take a minute or two.)

Completing incomplete squares:

Background:
The square of an expression of the form #x+n# or #x-n# is:
#(x+n)^2=x^2+2nx+n^2# or
#(x-n)^2=x^2-2nx+n^2#.
Notice: the sign on the middle term matches the sign in the middle of the binomial on the left AND the last term is positive in both.
Also notice that if we allow #n# to be negative, we only need to write and think about #(x+n)^2=x^2+2nx+n^2# (The sign in the midde will match the sign of #n#.)

Completing the square:
An expression like #x^2+6x# may be thought of as an "incomplete" square. To make it complete, we'd need to add #n^2# to the expression. We can figure out what to use for #n# by realizing that the #6x# in the middle need to be #2nx#. So, we want #n=3# and #n^2=9#.

Of course you can's just add a number to an expression without changing the value of the expression, so if we want to keep the same value we'll have to make up for adding #9#.
We do this by also subtracting #9#. That doesn't change the value of #x^2+6x#, but it does change the way it's written.

We write #x^2+6x+9-9# If we group it this way: #(x^2+6x+9)-9# then we have a perfect square minus #9#

And #(x^2+6x+9)-9=(x+3)^2-9#

Solving an equation by completing the square:

Solve: #x^2+6x-16=0# (by completing the square)

Each of the following equations is equivalent (has exactly the same solutions) as the lines before it.

#x^2+6x-16=0 #
#x^2+6x=16#
#x^2+6x+9-9=16#.
#x^2+6x+9=16+9#. So the first equation is equivalent to
#(x+3)^2=25#

And the last equation above is satisfied exactly when:
#x+3= -5# or #x+3 = 5#. So #x=-8# or #x=2#.

The solution set to the first equation is: #{-8, 2}#.

I'll post another (more challenging) example too.

Mar 9, 2015

Second Example

(You should probably read the first one first.)

Solve by completing the square:

#3x^2-7x+3=0#. This is equivalent to:

#3x^2-7x=-3#. Which is true if and only if

#3(x^2-7/3x)= -3#.

Do you see what we did there? We factored out a #3#. But, since #7# is not divisible by #3#, we just wrote #7/3#.

Now we will complete the square inside the parentheses.

The middle term is #7/3x# Recall that the middle term of #(x+n)^2# is #2nx#.
So we must have #2n=7/3# and #n=1/2*(7)/3# or #n=7/6#. To make the expression in parehtheses inc lude a complete square, we need to add #(7/6)^2# which is #49/36#. To avoid changing the number (not just the way it's written) we'll also subtracting.

#3(x^2-7/3x+49/36-49/36)= -3#.

Keeping the perfect square together, we re-write this as:

#3(x^2-7/3x+49/36)-3(49/36)= -3#.

#3(x-7/6)^2-49/12= -3#.
(Note the signs in the middle and the return of the #7/6# that we squared earlier.)

#3(x-7/6)^2=49/12 -3#.

#3(x-7/6)^2==49/12-36/12#.

#3(x-7/6)^2=13/12#. Now get the square alone on the left:

#(x-7/6)^2=13/36#.

This will be true exactly when:
#x-7/6= +- sqrt(13/36)#

#x-7/6= +- sqrt13/sqrt36#

#x-7/6= +- sqrt13/6# And, finally, we see that

#x=7/6 +- sqrt13/6#

Or, better yet: #x=(7 +- sqrt13)/6#.