Skip to main content
Mathematics LibreTexts

Completing The Square

  • Page ID
    221328
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Completing the Square and The Square Root Method

     

    The Square Root Property


    If we have

            x2  =  k 

    then we can take the square root of both sides to solve for x.



     

    The Square Root Property

    For any positive number k,

    if         

              x2 = k

    then        

              x   = \(\sqrt{k}\)       or     x  =  -\(\sqrt{k}\) 

     


    Example

    Solve

            x2 - 6  =  0

     

    Solution

    First add 6 to both sides

            x2  =   6  

    Next use the square root property

            x  = \(\sqrt{6}\)         or        x  =  -\(\sqrt{6}\)


    Example

    Solve

            (x - 3)2 + 5  =  12

    Solution

            (x - 3)2   =  7                               Subtract 5 from both sides

            x - 3  = \(\sqrt{7}\)     or    x - 3  =  -\(\sqrt{7}\)    Use the square root property

            x  =  3 + \(\sqrt{7}\)  or    x  =  3 - \(\sqrt{7}\)     Add 3 to both sides

     

    Caution:  The square root property cannot be directly applied in a quadratic that has a middle term such as

                            x2 + 5x - 2


    Completing The Square

    We have seen that the square root property only worked when the middle term was zero.  For example if

            3(x - 1)- 3  =  0 

    then we can use the square root property.  A quadratic is said to be in standard form if it has the form

            a(x - h)+ k        Standard Form of a Quadratic

     

    If we are given a quadratic in the form

            ax2 + bx + c

    We would like to put the quadratic into standard form so that we can use the square root property.  We call the process of putting a quadratic into standard form Completing the Square.

     

    Below is a step by step process of completing the square.

     

    Example  

    Complete the Square

            2x2 - 8x + 2 = 0

     

    Solution

    1. Factor the leading coefficient from the first two terms:  

      2(x- 4x) + 2
       
    2. Calculate b/2:  

           -4
                   =  -2            
      b is the coefficient in front of the "x" term.
           
      2

       
    3. Square the solution above:  

      22  = 4 
    4. Add and subtract answer from part three (the magic number) inside parentheses: 

              2(x- 4x + 4 - 4) + 2
       
    5. Regroup:  

      2[(x- 4x + 4 ) - 4] + 2
       
    6. Factor the inner parentheses using part two as a hint:  

      2[(x - 2)2 - 4] + 2
       
    7. Multiply out the outer constant:    

      2(x - 2)2 - 8 + 2
       
    8. Combine the last two constants:  

      2(x - 2)2 - 6
       
    9. Breath a sigh of relief.

    Example

    Complete the square

            3x2 + 5x + 1

    Solution

    1. 3(x2 + 5/3 x) + 1         Pulling a 3 out of a five is the same as dividing 5 by 3

       
    2. b/2  =  5/6

       
    3. (5/6)2  =  25/36         Square b/2

       
    4. 3(x2 + 5/3 x + 25/36 - 25/36) + 1    Add and subtract the magic number (b/2)2

       
    5. 3[(x2 + 5/3 x + 25/36) - 25/36] + 1    Regroup

       
    6. 3[(x + 5/6)2 - 25/36] + 1    Factor the first three terms

       
    7. 3(x + 5/6)2 - 25/12 + 1    Multiply the 3 through

       
    8. 3(x + 5/6)2 - 13/12        Note:  -25/12 + 1 = -25/12 +12/12 = -13/12

     

    Exercises:  

    Complete the square 

    1. 3x2 - 12x + 6         
       
    2. 2x2 - 2x + 4             
       
    3. 4x2 + 4x - 3           

     

     


    Completing the Square to Solve a Quadratic Equation



    Example

    Solve

            x2 + 2x - 5  =  0

    Solution

            We see that there is a middle term, 2x, so the square root property will not work.  We first complete the square.  We have 

            (b/2)2  =  1

            x2 + 2x + 1 - 1 - 5  =  0                   Adding and subtracting 1

            (x + 1)2 - 6 = 0                                Factoring the first three terms


    Now we can use the square root property

            (x + 1)2  =  6                                    Adding 6 to both sides

            x + 1  =  \(\sqrt{6}\)    or    x + 1  =  -\(\sqrt{6}\)   Taking the square root of both sides

            x  =  -1 + \(\sqrt{6}\)    or    x  =  -1 - \(\sqrt{6}\)   Subtracting 1 from both sides

     



    Example

    Solve

            x2 + 6x + 13  =  0



    Solution

            We see that there is a middle term, 6x, so the square root property will not work.  We first complete the square.  We have 

            (b/2)2  =  9

            x2 + 6x + 9 - 9 + 13  =  0        Adding and subtracting the magic number 9

            (x + 3)2 + 4 = 0        Factoring the first three terms


    Now we can use the square root property

            (x + 3)2  =  -4         Subtract 4 from both sides

            x + 3  = \(\sqrt{-4}\)     or    x + 3  = - \(\sqrt{-4}\)    Taking the square root of both sides

            x  =  -3 + \(\sqrt{-4}\)    or    x  =  -3 - \(\sqrt{-4}\)   Subtracting 1 from both sides

    Notice that \(\sqrt{-4}\)is not a real number but we can still write the imaginary solutions since

            \(\sqrt{-4}\) =  2i

    The final solutions are

            x  =  -3 + 2i    or    x  =  -3 - 2i

     


    Back to the Conics Page

     

    Completing The Square is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?