The idea of completing the square is just to move the terms around so that an expression is in the form we want, without changing the problem. What we want to end up with is a term that is squared (thus the name completing the square). We may also end up with an extra constant. To do this, we need some basic guidelines.
Basic Guidelines For Completing The Square 

guideline 1   We may add only zero, i.e. if we add a number somewhere, we are required to also subtract the same number.
Now, this can get confusing if you are not paying attention since there are actually two way to do this. First, is to add and subtract the same number on the same side of the equal sign. For example, in \(2x=7 \to 2x+aa=7\), we added and subtracted a on the left of the equal sign. This is the best way to do it and, in our opinion, the most understandable. When you are working problems and, especially when you are first learning this technique, it is always best to think about it this way.
This second way is equivalent but looks a bit different. Instead of adding and subtracting the same number on one side of the equal sign, some instructors teach to add the same number on both sides, like this \(2x=7 \to 2x+a=7+a\).
The key is to choose one way and stick with it. Don't try to go back and forth or do both. That's where the confusion comes in.
guideline 2   We may multiply by only one, i.e. if we multiply by a number somewhere, we must also divide by the same number.
Just like the first guideline, this can get confusing too, for the exact same reason. The first and best way is to multiply by the same number on one side of the equal sign. It looks like this \(2x=7 \to 2x(b/b)=7\). Notice, that we multiplied and divided by the same number b on the left side.
Of course, we could also multiply both sides of the equal sign by the same number, like this \(2x=7 \to 2x(b)=7(b)\), which is equivalent. The point is to choose one or the other and stick with it. Then, when someone shows you the other way, go back to the way you understand and notice the equivalency.
key to guidelines 1 and 2   Now, here is the key to getting your head around the previous two guidelines. If you have an equal sign, think of it as a scale with two sides and the equal sign is the pole in between, like this picture. When you are given an equation in a problem statement, the equation is balanced. Your job is to keep it balanced. The only way to do that is to either not change the weight on one side or by changing the weight on both sides by the same amount.
Of course, if you have no equal sign, your only choice is add/multiply the same number to the equation. So the first technique in both of the first two guidelines works with or without an equal sign. This is another great reason to learn it that way first.
guideline 3   Completing the square works only on polynomials whose highest power is \(2\). However, you can sometimes use substitution to get your expression in this form or you can isolate the squared the part of the equation to then be able to use this technique. A quick example of the last idea is if you have an expression like \( 6x^336x^2 \), you can factor out an x first to get \( x(6x^236x) \) and complete the square on the inside expression.
There are additional guidelines which we explain by working through the next example.
Example   Complete the square on the expression \( 2x^212x \). 

First, there must always, always, always, without exception, be a positive one coefficient on the \( x^2 \) term (guideline 4).
That means we need to factor out a \(2\) to get \( 2(x^26x) \).
Now we take the coefficient of the xterm, which is \(6\) (notice I took the sign too; you'll see why in a minute) and we divide the \( 6 \) by \(2\) and square it, like this \(\displaystyle{ \left(\frac{6}{2}\right)^2 = (3)^2 = 9}\). Okay, then we take that \(9\) and add it and subtract it INSIDE the parentheses to get \( 2(x^26x+99) \).
Now you are saying to yourself, this instructor is crazy. You didn't really do anything. Aha! That's correct (not about the crazy part but about the part that we didn't do anything). We didn't change the problem. That is important. We don't want to change the problem. By adding and subtracting the same number, we are essentially adding zero. That's good.
Notice we emphasized that both operations had to happen inside the parentheses (guideline 5). Because of the \(2\) that we factored out, if we did one inside and one outside, we would be adding on the inside by \(18\) and subtracting on the outside by \(9\). This would change the problem and our answer would be end up being incorrect. So, we added and subtracted by \(9\), both inside the parentheses.
Okay, now we are going to take the \(9\) we added and associate it with the
terms with x in them. Look closely.
\( x^26x+9=(x3)^2 \) Because of the way we got the number \(9\) (by
dividing by two and squaring) this creates a squared term, thus
'completing' the square. Do you see that?
Now let's see what we have. \( 2(x^26x+99)=2[(x3)^29] \) We can
distribute the \(2\) on the right and end up with \( 2x^212x = 2(x3)^218 \). And
that's it. (If you need to, take a minute to multiply out the expression on the right
side of the equal sign to convince yourself that it is the same as what
we started out with.)
Final Answer 

\( 2x^212x = 2(x3)^218 \) 
One question we often get is, how do you know if the sign inside squared term is positive or negative? In the above example, you might ask whether the squared term is \((x3)\) or \((x+3)\). Well, the sign in the squared term should be the same sign as the coefficient of the xterm in the original problem (after we factor out what we need to get a positive one in front of the squared term). In this case, the coefficient of the xterm is negative (\(6\)) and so the squared term is \((x3)\). If you multiply out \(2(x3)^218\) to get \(2x^212x\) in the final answer above, you may be able to see this more clearly.
Here is an interesting video that may help you visualize what is going on with this technique.
video by cylurian 

As a side note, you can use completing the square to derive the quadratic formula. This is important to know since knowing where an equation comes from means you really understand when and how to use an equation. This next video shows how to do this. Before watching this video, try it on your own.
video by cylurian 

Okay, time for some practice problems.
Instructions   Unless otherwise instructed, solve these problems by completing the square, giving your answers in exact form.
Express \( x^2 + 8x  1 \) in the form \( (x+a)^2 + b \) by completing the square.
Problem Statement 

Express \( x^2 + 8x  1 \) in the form \( (x+a)^2 + b \) by completing the square.
Final Answer 

\( (x+4)^2  17 \)
Problem Statement 

Express \( x^2 + 8x  1 \) in the form \( (x+a)^2 + b \) by completing the square.
Solution 

Final Answer 

\( (x+4)^2  17 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Express \( x^2  10x + 3 \) in the form \( (x+a)^2 + b \) by completing the square.
Problem Statement 

Express \( x^2  10x + 3 \) in the form \( (x+a)^2 + b \) by completing the square.
Final Answer 

\( (x5)^2  22 \)
Problem Statement 

Express \( x^2  10x + 3 \) in the form \( (x+a)^2 + b \) by completing the square.
Solution 

Final Answer 

\( (x5)^2  22 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Express \( x^2 +3x  2 \) in the form \( (x+a)^2 + b \) by completing the square.
Problem Statement 

Express \( x^2 +3x  2 \) in the form \( (x+a)^2 + b \) by completing the square.
Final Answer 

\( (x + 3/2)^2  17/4 \)
Problem Statement 

Express \( x^2 +3x  2 \) in the form \( (x+a)^2 + b \) by completing the square.
Solution 

Final Answer 

\( (x + 3/2)^2  17/4 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Express \( x^2 + 12x  5 \) in the form \( (x+a)^2 + b \) by completing the square.
Problem Statement 

Express \( x^2 + 12x  5 \) in the form \( (x+a)^2 + b \) by completing the square.
Final Answer 

\( (x + 6)^2  41 \)
Problem Statement 

Express \( x^2 + 12x  5 \) in the form \( (x+a)^2 + b \) by completing the square.
Solution 

Final Answer 

\( (x + 6)^2  41 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Express \( x^2  5x + 1 \) in the form \( (x+a)^2 + b \) by completing the square.
Problem Statement 

Express \( x^2  5x + 1 \) in the form \( (x+a)^2 + b \) by completing the square.
Final Answer 

\( (x  5/2)^2  21/4 \)
Problem Statement 

Express \( x^2  5x + 1 \) in the form \( (x+a)^2 + b \) by completing the square.
Solution 

Final Answer 

\( (x  5/2)^2  21/4 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Express \( 3x^2  12x + 5 \) in the form \( a(x+b)^2 + c \) by completing the square.
Problem Statement 

Express \( 3x^2  12x + 5 \) in the form \( a(x+b)^2 + c \) by completing the square.
Final Answer 

\( 3(x  2)^2  7 \)
Problem Statement 

Express \( 3x^2  12x + 5 \) in the form \( a(x+b)^2 + c \) by completing the square.
Solution 

Final Answer 

\( 3(x  2)^2  7 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Express \( 2x^2  x  1 \) in the form \( a(x+b)^2 + c \) by completing the square.
Problem Statement 

Express \( 2x^2  x  1 \) in the form \( a(x+b)^2 + c \) by completing the square.
Final Answer 

\( 2(x  1/4)^2  9/8 \)
Problem Statement 

Express \( 2x^2  x  1 \) in the form \( a(x+b)^2 + c \) by completing the square.
Solution 

Final Answer 

\( 2(x  1/4)^2  9/8 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Express \( 2x^2 + 12x  3 \) in the form \( a(x+b)^2 + c \) by completing the square.
Problem Statement 

Express \( 2x^2 + 12x  3 \) in the form \( a(x+b)^2 + c \) by completing the square.
Final Answer 

\( 2(x+3)^2  21 \)
Problem Statement 

Express \( 2x^2 + 12x  3 \) in the form \( a(x+b)^2 + c \) by completing the square.
Solution 

Final Answer 

\( 2(x+3)^2  21 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Express \( 5x^2 + 3x  2 \) in the form \( a(x+b)^2 + c \) by completing the square.
Problem Statement 

Express \( 5x^2 + 3x  2 \) in the form \( a(x+b)^2 + c \) by completing the square.
Final Answer 

\( 5(x + 3/10)^2  49/20 \)
Problem Statement 

Express \( 5x^2 + 3x  2 \) in the form \( a(x+b)^2 + c \) by completing the square.
Solution 

Final Answer 

\( 5(x + 3/10)^2  49/20 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Express \( 5  8x  x^2 \) in the form \( a  b(x+c)^2 \) by completing the square.
Problem Statement 

Express \( 5  8x  x^2 \) in the form \( a  b(x+c)^2 \) by completing the square.
Final Answer 

\( 21  (x + 4)^2 \)
Problem Statement 

Express \( 5  8x  x^2 \) in the form \( a  b(x+c)^2 \) by completing the square.
Solution 

Final Answer 

\( 21  (x + 4)^2 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Express \( 5 + 12x  2x^2 \) in the form \( a  b(x+c)^2 \) by completing the square.
Problem Statement 

Express \( 5 + 12x  2x^2 \) in the form \( a  b(x+c)^2 \) by completing the square.
Final Answer 

\( 23  2(x3)^2 \)
Problem Statement 

Express \( 5 + 12x  2x^2 \) in the form \( a  b(x+c)^2 \) by completing the square.
Solution 

Final Answer 

\( 23  2(x3)^2 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Express \( 4 + 10x  x^2 \) in the form \( a  b(x+c)^2 \) by completing the square.
Problem Statement 

Express \( 4 + 10x  x^2 \) in the form \( a  b(x+c)^2 \) by completing the square.
Final Answer 

\( 29  (x  5)^2 \)
Problem Statement 

Express \( 4 + 10x  x^2 \) in the form \( a  b(x+c)^2 \) by completing the square.
Solution 

Final Answer 

\( 29  (x  5)^2 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Express \( 1  3x  5x^2 \) in the form \( a  b(x+c)^2 \) by completing the square.
Problem Statement 

Express \( 1  3x  5x^2 \) in the form \( a  b(x+c)^2 \) by completing the square.
Final Answer 

\( 29/20  5(x + 3/10)^2 \)
Problem Statement 

Express \( 1  3x  5x^2 \) in the form \( a  b(x+c)^2 \) by completing the square.
Solution 

Final Answer 

\( 29/20  5(x + 3/10)^2 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( 2x^2 + 7x + 5= 0 \) by completing the square.
Problem Statement 

Solve \( 2x^2 + 7x + 5= 0 \) by completing the square.
Final Answer 

\( x = 1 \) or \( x = 5/2 \)
Problem Statement 

Solve \( 2x^2 + 7x + 5= 0 \) by completing the square.
Solution 

Final Answer 

\( x = 1 \) or \( x = 5/2 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( x^2  5x = 4 \) by completing the square.
Problem Statement 

Solve \( x^2  5x = 4 \) by completing the square.
Final Answer 

\( x = 1 \) or \( x = 4 \)
Problem Statement 

Solve \( x^2  5x = 4 \) by completing the square.
Solution 

Final Answer 

\( x = 1 \) or \( x = 4 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( 2x^2  8x + 3 = 0 \) by completing the square.
Problem Statement 

Solve \( 2x^2  8x + 3 = 0 \) by completing the square.
Final Answer 

\(\displaystyle{ x = 2 \pm \frac{\sqrt{10}}{2} }\)
Problem Statement 

Solve \( 2x^2  8x + 3 = 0 \) by completing the square.
Solution 

Final Answer 

\(\displaystyle{ x = 2 \pm \frac{\sqrt{10}}{2} }\) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( x^2 + 4x = 5 \) by completing the square.
Problem Statement 

Solve \( x^2 + 4x = 5 \) by completing the square.
Final Answer 

\( x = 1 \) or \( x = 5 \)
Problem Statement 

Solve \( x^2 + 4x = 5 \) by completing the square.
Solution 

Final Answer 

\( x = 1 \) or \( x = 5 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( 2x^2  12x  7 =0 \) by completing the square.
Problem Statement 

Solve \( 2x^2  12x  7 =0 \) by completing the square.
Final Answer 

\(\displaystyle{ x = 3 \pm \frac{5\sqrt{2}}{2} }\)
Problem Statement 

Solve \( 2x^2  12x  7 =0 \) by completing the square.
Solution 

Final Answer 

\(\displaystyle{ x = 3 \pm \frac{5\sqrt{2}}{2} }\) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( 3x^2  5x = 10 \) by completing the square.
Problem Statement 

Solve \( 3x^2  5x = 10 \) by completing the square.
Final Answer 

\(\displaystyle{ x = \frac{5 \pm \sqrt{145}}{6} }\)
Problem Statement 

Solve \( 3x^2  5x = 10 \) by completing the square.
Solution 

Final Answer 

\(\displaystyle{ x = \frac{5 \pm \sqrt{145}}{6} }\) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( x^2 + 6x  7 = 0 \) by completing the square.
Problem Statement 

Solve \( x^2 + 6x  7 = 0 \) by completing the square.
Final Answer 

\( x = 1 \) or \( x = 7 \)
Problem Statement 

Solve \( x^2 + 6x  7 = 0 \) by completing the square.
Solution 

Final Answer 

\( x = 1 \) or \( x = 7 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( 2x^2  10x  3 = 0 \) by completing the square.
Problem Statement 

Solve \( 2x^2  10x  3 = 0 \) by completing the square.
Final Answer 

\(\displaystyle{ x = \frac{5 \pm \sqrt{31}}{2} }\)
Problem Statement 

Solve \( 2x^2  10x  3 = 0 \) by completing the square.
Solution 

Final Answer 

\(\displaystyle{ x = \frac{5 \pm \sqrt{31}}{2} }\) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( x^2  6x + 7 = 0 \) by completing the square.
Problem Statement 

Solve \( x^2  6x + 7 = 0 \) by completing the square.
Final Answer 

\( x = 9 \) or \( x = 1 \)
Problem Statement 

Solve \( x^2  6x + 7 = 0 \) by completing the square.
Solution 

Final Answer 

\( x = 9 \) or \( x = 1 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( x^2+6x9=0 \) by completing the square.
Problem Statement 

Solve \( x^2+6x9=0 \) by completing the square.
Final Answer 

\( x = 3 \pm 3\sqrt{2} \)
Problem Statement 

Solve \( x^2+6x9=0 \) by completing the square.
Solution 

Final Answer 

\( x = 3 \pm 3\sqrt{2} \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( 3x^2+ 2x  9 = 0 \) by completing the square.
Problem Statement 

Solve \( 3x^2+ 2x  9 = 0 \) by completing the square.
Final Answer 

\(\displaystyle{ x = \frac{1 \pm 2\sqrt{7}}{3} }\)
Problem Statement 

Solve \( 3x^2+ 2x  9 = 0 \) by completing the square.
Solution 

Final Answer 

\(\displaystyle{ x = \frac{1 \pm 2\sqrt{7}}{3} }\) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( 3x^2 + 7x  2 = 0 \) by completing the square.
Problem Statement 

Solve \( 3x^2 + 7x  2 = 0 \) by completing the square.
Final Answer 

\(\displaystyle{ x = \frac{7 \pm \sqrt{73}}{6} }\)
Problem Statement 

Solve \( 3x^2 + 7x  2 = 0 \) by completing the square.
Solution 

Final Answer 

\(\displaystyle{ x = \frac{7 \pm \sqrt{73}}{6} }\) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( x^2  4x  32 = 0 \) by completing the square.
Problem Statement 

Solve \( x^2  4x  32 = 0 \) by completing the square.
Final Answer 

\( x= 8 \) or \( x = 4 \)
Problem Statement 

Solve \( x^2  4x  32 = 0 \) by completing the square.
Solution 

Final Answer 

\( x= 8 \) or \( x = 4 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( x^2 + 5x + 2 = 0 \) by completing the square.
Problem Statement 

Solve \( x^2 + 5x + 2 = 0 \) by completing the square.
Final Answer 

\(\displaystyle{ x = \frac{5 \pm \sqrt{17}}{2} }\)
Problem Statement 

Solve \( x^2 + 5x + 2 = 0 \) by completing the square.
Solution 

Final Answer 

\(\displaystyle{ x = \frac{5 \pm \sqrt{17}}{2} }\) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Complete the square on \( x^2  2x  5 = 0 \)
Problem Statement 

Complete the square on \( x^2  2x  5 = 0 \)
Solution 

close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \( x^2 + 6x = 8 \) by completing the square.
Problem Statement 

Solve \( x^2 + 6x = 8 \) by completing the square.
Solution 

close solution

Log in to rate this practice problem and to see it's current rating. 

Complete the square on \(y=3x^22x+1\)
Problem Statement 

Complete the square on \(y=3x^22x+1\)
Solution 

video by Krista King Math 

close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \(x^26x+8=0\) by completing the square.
Problem Statement 

Solve \(x^26x+8=0\) by completing the square.
Solution 

video by PatrickJMT 

close solution

Log in to rate this practice problem and to see it's current rating. 

Solve \(x^2+4x20=12\) by completing the square.
Problem Statement 

Solve \(x^2+4x20=12\) by completing the square.
Solution 

video by PatrickJMT 

close solution

Log in to rate this practice problem and to see it's current rating. 

Complete the square on both x and y for \( 0 = x^2 + y^2  12x  22y + 139 \).
Problem Statement 

Complete the square on both x and y for \( 0 = x^2 + y^2  12x  22y + 139 \).
Solution 

This is an interesting problem from analytic geometry that uses the technique of completing the square to solve the problem.
video by Krista King Math 

close solution

Log in to rate this practice problem and to see it's current rating. 

Find the value of c that makes \( x^2  44x + c \) a perfect trinomial and write in factored form.
Problem Statement 

Find the value of c that makes \( x^2  44x + c \) a perfect trinomial and write in factored form.
Solution 

video by Khan Academy 

close solution

Log in to rate this practice problem and to see it's current rating. 

Here is a playlist of the videos on this page.
Really UNDERSTAND Precalculus
The Unit Circle
The Unit Circle [wikipedia]
Basic Trig Identities
Set 1  basic identities  

\(\displaystyle{ \tan(t) = \frac{\sin(t)}{\cos(t)} }\) 
\(\displaystyle{ \cot(t) = \frac{\cos(t)}{\sin(t)} }\) 
\(\displaystyle{ \sec(t) = \frac{1}{\cos(t)} }\) 
\(\displaystyle{ \csc(t) = \frac{1}{\sin(t)} }\) 
Set 2  squared identities  

\( \sin^2t + \cos^2t = 1\) 
\( 1 + \tan^2t = \sec^2t\) 
\( 1 + \cot^2t = \csc^2t\) 
Set 3  doubleangle formulas  

\( \sin(2t) = 2\sin(t)\cos(t)\) 
\(\displaystyle{ \cos(2t) = \cos^2(t)  \sin^2(t) }\) 
Set 4  halfangle formulas  

\(\displaystyle{ \sin^2(t) = \frac{1\cos(2t)}{2} }\) 
\(\displaystyle{ \cos^2(t) = \frac{1+\cos(2t)}{2} }\) 
Trig Derivatives
\(\displaystyle{ \frac{d[\sin(t)]}{dt} = \cos(t) }\) 
\(\displaystyle{ \frac{d[\cos(t)]}{dt} = \sin(t) }\)  
\(\displaystyle{ \frac{d[\tan(t)]}{dt} = \sec^2(t) }\) 
\(\displaystyle{ \frac{d[\cot(t)]}{dt} = \csc^2(t) }\)  
\(\displaystyle{ \frac{d[\sec(t)]}{dt} = \sec(t)\tan(t) }\) 
\(\displaystyle{ \frac{d[\csc(t)]}{dt} = \csc(t)\cot(t) }\) 
Inverse Trig Derivatives
\(\displaystyle{ \frac{d[\arcsin(t)]}{dt} = \frac{1}{\sqrt{1t^2}} }\) 
\(\displaystyle{ \frac{d[\arccos(t)]}{dt} = \frac{1}{\sqrt{1t^2}} }\)  
\(\displaystyle{ \frac{d[\arctan(t)]}{dt} = \frac{1}{1+t^2} }\) 
\(\displaystyle{ \frac{d[\arccot(t)]}{dt} = \frac{1}{1+t^2} }\)  
\(\displaystyle{ \frac{d[\arcsec(t)]}{dt} = \frac{1}{\abs{t}\sqrt{t^2 1}} }\) 
\(\displaystyle{ \frac{d[\arccsc(t)]}{dt} = \frac{1}{\abs{t}\sqrt{t^2 1}} }\) 
Trig Integrals
\(\int{\sin(x)~dx} = \cos(x)+C\) 
\(\int{\cos(x)~dx} = \sin(x)+C\)  
\(\int{\tan(x)~dx} = \ln\abs{\cos(x)}+C\) 
\(\int{\cot(x)~dx} = \ln\abs{\sin(x)}+C\)  
\(\int{\sec(x)~dx} = \) \( \ln\abs{\sec(x)+\tan(x)}+C\) 
\(\int{\csc(x)~dx} = \) \( \ln\abs{\csc(x)+\cot(x)}+C\) 
To bookmark this page and practice problems, log in to your account or set up a free account.
Single Variable Calculus 

MultiVariable Calculus 

Differential Equations 

Precalculus 

Do you have a practice problem number but do not know on which page it is found? If so, enter the number below and click 'page' to go to the page on which it is found or click 'practice' to be taken to the practice problem.
 
The 17Calculus and 17Precalculus iOS and Android apps are no longer available for download. If you are still using a previously downloaded app, your app will be available until the end of 2020, after which the information may no longer be available. However, do not despair. All the information (and more) is now available on 17calculus.com for free. 