Completing the Square

Key Questions

  • Since factoring is usually quicker, I would always try factoring first; however, factoring is not always easy, so if that is the case, then I would try completing the square or the quadratic formula next.


    I hope that this was helpful.

  • Can every quadratic be solved by using the completing the square method? Yes, it sure seems so.....but, I wouldn't want to do it that way every time!!

    Certainly, every quadratic can be solved by the quadratic formula, but I also wouldn't want to use it every time either.

    I think you should develop some strategies for which method is best in which circumstances. Purple Math link

    There are even websites that will solve the problems for you: Solver

    For completing the square, I look for two things: "1" as the lead coefficient (on the #x^2#, and an even number for the coefficient on the linear term (the x term).

    Example: Solve #x^2 + 4x - 7 = 0#
    Step 1: #x^2 + 4x = 7# (move the constant to the opposite side)
    Step 2: take half of the "4", and square that number. #2^2=4#
    Step 3: Add that number to both sides #x^2+4x +4= 7 + 4#
    Step 4: Factor the trinomial: #(x+2)^2= 11#
    Step 5: Take the square root of both sides: #sqrt((x+2)^2)=sqrt(11)#
    Step 6: #x+2= +-sqrt(11)# be sure to use the #+-# on the square root!
    Step 7: #x=-2+-sqrt(11)# move the constant to the other side.

    Phew, that's a lot of steps! And it definitely takes practice. One more example:

    Solve #x^2-8x - 9 = 0#
    #x^2-8x = 9#
    #x^2-8x+16=9+16#
    #x^2-8x+16=25#
    #(x-4)^2=25#
    #sqrt((x-4)^2)=sqrt(25)#
    #x-4=+-5#
    #x=4+5 or 4-5#
    so, x = 9 or -1. Wow!

    Of course, those nice, rational answers tell me that the original problem could have been solved by factoring: (x-9)(x+1)=0
    Use the zero product property to solve x = 9 or x = -1.

  • Answer:

    See explanation below

    Explanation:

    When you have a polynomial such as

    #x^2+4x+20#

    it is sometimes desirable to express it in the form of

    #a^2 + b^2#

    To do this, we can artificially introduce a constant which allows us to factor a perfect square out of the expression like so:

    #x^2+4x+20#

    #=x^2+4x+color(red)4-color(green)4+20#

    Notice that by simultaneously adding and subtracting #4#, we have not changed the value of the expression.

    Now we can do this:

    #=(x^2+4x+color(red)4)+(20-color(green)4)#

    #=(x+2)^2+16#

    #=(x+2)^2+4^2#

    We have "completed the square"!

  • Answer:

    To simplify quadratic expressions so that they become solvable with square roots.

    Explanation:

    Completing the square is an example of a Tschirnhaus transformation - the use of a substitution (albeit implicitly) in order to reduce a polynomial equation to simpler form.

    So given:

    #ax^2+bx+c = 0" "# with #a != 0#

    we could write:

    #0 = 4a(ax^2+bx+c)#

    #color(white)(0) = 4a^2x^2+4abx+4ac#

    #color(white)(0) = (2ax)^2+2(2ax)b+b^2-(b^2-4ac)#

    #color(white)(0) = (2ax+b)^2-(sqrt(b^2-4ac))^2#

    #color(white)(0) = ((2ax+b)-sqrt(b^2-4ac))((2ax+b)+sqrt(b^2-4ac))#

    #color(white)(0) = (2ax+b-sqrt(b^2-4ac))(2ax+b+sqrt(b^2-4ac))#

    Hence:

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

    So:

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

    So having started with a quadratic equation in the form:

    #ax^2+bx+c = 0#

    we got it into a form #t^2-k^2 = 0# with #t = (2ax+b)# and #k=sqrt(b^2-4ac)#, eliminating the linear term leaving only squared terms.

    So long as we are happy calculating square roots, we can now solve any quadratic equation.

    Completing the square is also useful for getting the equation of a circle, ellipse or other conic section into standard form.

    For example, given:

    #x^2+y^2-4x+6y-12 = 0#

    completing the square we find:

    #(x-2)^2+(y+3)^2 = 5^2#

    allowing us to identify this equation as that of a circle with centre #(2, -3)# and radius #5#.

  • (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.

Questions