mathleaks.com mathleaks.com Start chapters home Start History history History expand_more Community
Community expand_more
menu_open Close
{{ filterOption.label }}
{{ item.displayTitle }}
{{ item.subject.displayTitle }}
arrow_forward
No results
{{ searchError }}
search
Expand menu menu_open home
{{ courseTrack.displayTitle }}
{{ statistics.percent }}% Sign in to view progress
{{ printedBook.courseTrack.name }} {{ printedBook.name }}
search Use offline Tools apps
Login account_circle menu_open
close expand
Quadratic Equations

Completing the Square

Quadratic expressions, functions, and equations can all be manipulated in useful ways with a method called completing the square. This method is based on the concept of perfect square trinomials.

Concept

Perfect Square Trinomial

Just as a perfect square integer, such as 9, can be written as the square of integer square roots, a perfect square trinomial is a trinomial which can be written as the square of a binomial.
There are two general types of perfect square trinomials that can be useful when dealing with quadratic functions or quadratic equations. This process involves factoring the quadratic trinomial and rewriting the perfect square trinomial as the square of a binomial.

Method

Factoring a Perfect Square Trinomial

For a trinomial to be factorable as a perfect square trinomial, the first and last terms must be perfect squares and the middle term must be two times the square roots of the first and last terms. Consider the following expression.
To factor this trinomial, there three steps.

1

Examine the First and Last Terms
One good way to recognize if a trinomial is perfect square is to look at its first and last term. If they are both perfect squares, there's a good chance that it may be a perfect square trinomial. In the given expression, first and last terms can be written as the squares of 4x and 11, respectively.
These perfect squares show that the expression can be a perfect square trinomial. However, this is not enough to decide yet.

2

Examine the Middle Term
The next step is to check whether the middle term is two times the square roots of the first and last terms.
It can be seen that the given expression satisfies this condition, as well.

3

Write as a Square of a Binomial

Since the expression satisfies both conditions, it is a perfect square trinomial. Therefore, it can be written as a square of a binomial where and are the first and second terms of the binomial, respectively.

fullscreen
Exercise

The expressions in the table are perfect square trinomials. Complete the expressions to ensure equivalence between corresponding standard forms and factored forms.

standard form factored form
x22x+1 (x__ ___)2
x2___x+___ (x7)2
x210x+___ (x__ ___)2
x2+___x+100 (x__ ___)2
Show Solution
Solution

Here the same expressions are written both in standard form and in factored form, but one or more terms are missing in each expression. To identify the missing term(s) the rules for factoring a perfect square trinomial are useful.

a2+2ab+b2=(a+b)2
and
a22ab+b2=(ab)2

To help us identify the terms in the rule in the first example, we can for the expression x22x+1 rewrite 1 as 12 and 2x as 2x1.


x22x1+12=(x__ ___)2

To make the expressions match each other we will fill in 1 where the blanks are.


x22x1+12=(x1)2

We can use this reasoning to complete the other perfect square trinomials in the table. Next, we'll consider the second row.

a22ab+b2=(ab)2
x2___x+___ =(x7)2

To fill in the second blank we use that b must be 7, which gives us that b2=72. When we study the first blank we can match a with x. What is left is 2b=27.


x22x7+72=(x7)2

This we prefer writing as x214x+49=(x7)2. Let's continue with the third row


x210x+___=(x__ ___)2

Here the terms a and x match each other. Since the terms 2ab and 10x must match each other we find that 2b=10, or b=5. Let's use this to fill in the blanks in the expression.


x210x+52=(x5)2

By squaring 5 we get that the second row reads x210x+25=(x5)2. We are now going to deal with the last row in the table.


x2+___x+100=(x__ ___)2

The lines match each other when b=10, giving us the first blank 210=20 and the second blank +10. Let's write them together with the blanks filled in.


x2+20x+100=(x+10)2

We'll summarize our results by adding the found values to the table.

standard form factored form
x22x+1 (x1)2
x214x+49 (x7)2
x210x+25 (x5)2
x2+20x+100 (x+10)2

Concept

Completing the Square

Completing the square is a method by which a quadratic expression is rewritten as a difference of a perfect square trinomial and a constant. Commonly this is done by adding and subtracting a constant, p.
By choosing the constant, p, as the quadratic expression becomes a difference of a perfect square trinomial and a constant.
The quadratic expression can then be factored and written and written in vertex form.

Extra

Completing the Square, In-Depth

Concept

Quadratic Expressions in the Form x2+bx+c

When completing the square for a quadratic expression in the form x2+bx+c, the constant c must also be taken into account. When adding and subtracting the term the quadratic expression gets a constant term of

Concept

Factoring

After completing its square, a quadratic expression can be rewritten into vertex form by factoring the perfect square trinomial.

Concept

Solving Quadratic Equations

Completing the square can be used when solving quadratic equations. An equation in the form x2+bx+c=0 is then rewritten by isolating the x2- and x-terms.
By adding the term to both sides of the equation, a perfect square trinomial is formed.
The equation can then be rewritten by factoring the perfect square trinomial.
When the equation is written on this form it can be solved with square roots.

Concept

Geometric Interpretation of Completing the Square

It can be helpful to visualize what's going on when completing the square. Press the button below to see an animation of this concept.
Complete the square

Method

Completing the Square

This is a method by which a quadratic expression is rewritten as the difference of the square of a binomial and a constant.
To complete the square, there are five steps to follow.

1

Factor Out the Coefficient of x2
It is easier to complete the square when the expression is written in the form x2±bx+c. Therefore, if the coefficient of x2 is not 1, it should be factored out.
For the simplicity of the following steps, it will be assumed that a=1. For values of a other than 1, the same steps should be performed. The only difference is that the new coefficients — instead of b and instead of c — will be used.

2

Identify the Constant Needed to Complete the Square
The constant needed to complete the square can now be identified by focusing on the x-term, while ignoring the rest. One way to find this constant is by squaring half the coefficient of the x-term, which in this case is b.
Note that leaving the constant as a power makes the next steps easier to perform.

3

Complete the Square
The square can now be completed by adding and subtracting the constant found in Step 2. Note that the value of the original expression will not be changed since the result of adding and subtracting the same value is equal to 0.
The first three terms form a perfect square trinomial, which can be factored as the square of a binomial. The other two terms do not contain the variable x, so their value is constant.

4

Factor the Perfect Square Trinomial
The perfect square trinomial can now be factored and rewritten as the square of a binomial.

a2±2ab+b2=(a±b)2

The process of completing the square is now finished.

5

Simplify the expression
Finally, if needed, the expression can be simplified. In case a was not equal to 1, now is a good time to remove the parentheses and multiply the obtained expression by a.
Derive function
Simplify

This method is usually extended to solve quadratic equations.

Why

Instead of a purely algebraic approach, it can be helpful to visualize the process of completing the square geometrically.
The animation shows that the process of completing the square can be understood as finding the dimensions of the that completes an incomplete square.
fullscreen
Exercise
Consider the quadratic function
f(x)=x2x0.75.
Complete the square to determine the vertex and zeros of the parabola. Then, use them to draw the graph.
Show Solution
Solution
To begin, we'll complete the square on f by focusing on the coefficient of x, which is -1. Since 0.25 is the constant term that will create a perfect square trinomial.
f(x)=x2x0.75
f(x)=(x0.5)20.750.25
f(x)=(x0.5)21
Notice that f is now written in vertex form. It can be seen that f's vertex is (0.5,-1). To find the zeros we can set f(x) equal to 0 and solve.
0=(x0.5)21
1=(x0.5)2
(x0.5)2=1
x0.5=±1
x=0.5±1
Thus, the zeros of the parabola are x=-0.5 and x=1.5. Lastly, we can use the vertex and the zeros to draw the graph of f.
arrow_left
arrow_right
{{ 'mldesktop-placeholder-grade-tab' | message }}
{{ 'mldesktop-placeholder-grade' | message }} {{ article.displayTitle }}!
{{ grade.displayTitle }}
{{ 'ml-tooltip-premium-exercise' | message }}
{{ 'ml-tooltip-programming-exercise' | message }} {{ 'course' | message }} {{ exercise.course }}
Test
{{ focusmode.exercise.exerciseName }}
{{ 'ml-btn-previous-exercise' | message }} arrow_back {{ 'ml-btn-next-exercise' | message }} arrow_forward
arrow_left arrow_right