<meta http-equiv="refresh" content="1; url=/nojavascript/"> Solving Quadratic Equations by Completing the Square | CK-12 Foundation
You are reading an older version of this FlexBook® textbook: CK-12 Algebra I - Second Edition Go to the latest version.

# 10.4: Solving Quadratic Equations by Completing the Square

Created by: CK-12
0  0  0

## Learning Objectives

• Complete the square of a quadratic expression.
• Solve quadratic equations by completing the square.
• Solve quadratic equations in standard form.
• Graph quadratic equations in vertex form.
• Solve real-world problems using functions by completing the square.

## Introduction

You saw in the last section that if you have a quadratic equation of the form $(x - 2)^2 = 5$, you can easily solve it by taking the square root of each side:

$x - 2 = \sqrt{5} \ \qquad \text{and} \qquad \ x - 2 = - \sqrt{5}$

Simplify to get:

$x = 2 + \sqrt{5} \approx 4.24 \ \qquad \text{and} \qquad \ x = 2 - \sqrt{5} \approx - 0.24$

So what do you do with an equation that isn’t written in this nice form? In this section, you’ll learn how to rewrite any quadratic equation in this form by completing the square.

## Complete the Square of a Quadratic Expression

Completing the square lets you rewrite a quadratic expression so that it contains a perfect square trinomial that you can factor as the square of a binomial.

Remember that the square of a binomial takes one of the following forms:

$(x + a)^2 & = x^2 + 2ax + a^2\\(x - a)^2 & = x^2 - 2ax + a^2$

So in order to have a perfect square trinomial, we need two terms that are perfect squares and one term that is twice the product of the square roots of the other terms.

Example 1

Complete the square for the quadratic expression $x^2 + 4x$.

Solution

To complete the square we need a constant term that turns the expression into a perfect square trinomial. Since the middle term in a perfect square trinomial is always 2 times the product of the square roots of the other two terms, we re-write our expression as:

$x^2 + 2(2)(x)$

We see that the constant we are seeking must be $2^2$:

$x^2 + 2(2)(x) + 2^2$

Answer: By adding 4 to both sides, this can be factored as: $(x + 2)^2$

Notice, though, that we just changed the value of the whole expression by adding 4 to it. If it had been an equation, we would have needed to add 4 to the other side as well to make up for this.

Also, this was a relatively easy example because $a$, the coefficient of the $x^2$ term, was 1. When that coefficient doesn’t equal 1, we have to factor it out from the whole expression before completing the square.

Example 2

Complete the square for the quadratic expression $4x^2 + 32x$.

Solution

$& \text{Factor the coefficient of the} \ x^2 \ \text{term}: & & 4(x^2 + 8x)\\& \text{Now complete the square of the expression in parentheses}.\\& \text{Re-write the expression}: & & 4 (x^2 + 2(4) (x))\\& \text{We complete the square by adding the constant} \ 4^2: & & 4(x^2 + 2(4)(x) + 4^2)\\& \text{Factor the perfect square trinomial inside the parenthesis}: & & 4(x + 4)^2 \qquad \text{Answer}$

The expression “completing the square” comes from a geometric interpretation of this situation. Let’s revisit the quadratic expression in Example 1: $x^2 + 4x$.

We can think of this expression as the sum of three areas. The first term represents the area of a square of side $x$. The second expression represents the areas of two rectangles with a length of 2 and a width of $x$:

We can combine these shapes as follows:

We obtain a square that is not quite complete. To complete the square, we need to add a smaller square of side length 2.

We end up with a square of side length $(x + 2)$; its area is therefore $(x + 2)^2$.

## Solve Quadratic Equations by Completing the Square

Let’s demonstrate the method of completing the square with an example.

Example 3

Solve the following quadratic equation: $3x^2 - 10x = -1$

Solution

Divide all terms by the coefficient of the $x^2$ term:

$x^2 - \frac{10}{3} x = - \frac{1}{3}$

Rewrite: $x^2 - 2 \left ( \frac{5}{3} \right ) (x) = - \frac{1}{3}$In order to have a perfect square trinomial on the right-hand-side we need to add the constant $\left ( \frac{5}{3} \right )^2$. Add this constant to both sides of the equation:

$x^2 - 2 \left ( \frac{5}{3} \right ) (x) + \left ( \frac{5}{3} \right )^2 = - \frac{1}{3} + \left ( \frac{5}{3} \right )^2$

Factor the perfect square trinomial and simplify:

$\left ( x - \frac{5}{3} \right )^2 & = - \frac{1}{3} + \frac{25}{9}\\\left (x - \frac{5}{3} \right )^2 & = \frac{22}{9}$

Take the square root of both sides:

$x - \frac{5}{3} &= \sqrt{\frac{22}{9}} && \text{and} && x - \frac{5}{3} = - \sqrt{ \frac{22}{9}}\\x &= \frac{5}{3} + \sqrt{\frac{22}{9}} \approx 3.23 && \text{and} && x = \frac{5}{3} - \sqrt{\frac{22}{9}} \approx 0.1$

Answer: $x = 3.23$ and $x = 0.1$

If an equation is in standard form $(ax^2 + bx + c = 0)$, we can still solve it by the method of completing the square. All we have to do is start by moving the constant term to the right-hand-side of the equation.

Example 4

Solve the following quadratic equation: $x^2 + 15x + 12 = 0$

Solution

Move the constant to the other side of the equation:

$x^2 + 15x = -12$

Rewrite: $x^2 + 2 \left ( \frac{15}{2} \right )(x) = -12$

Add the constant $\left ( \frac{15}{2} \right )^2$ to both sides of the equation:

$x^2 + 2\left ( \frac{15}{2} \right )(x) + \left ( \frac{15}{2} \right )^2 = -12 + \left ( \frac{15}{2} \right )^2$

Factor the perfect square trinomial and simplify:

$\left (x + \frac{15}{2} \right )^2 & = -12 + \frac{225}{4}\\\left (x + \frac{15}{2} \right )^2 & = \frac{177}{4}$

Take the square root of both sides:

$x + \frac{15}{2} &= \sqrt{\frac{177}{4}} && \text{and} && x + \frac{15}{2} = - \sqrt{\frac{177}{4}}\\x &= - \frac{15}{2} + \sqrt{\frac{177}{4}} \approx - 0.85 && \text{and} && x = - \frac{15}{2} - \sqrt{\frac{177}{4}} \approx -14.15$

Answer: $x = -0.85$ and $x = -14.15$

## Graph Quadratic Functions in Vertex Form

Probably one of the best applications of the method of completing the square is using it to rewrite a quadratic function in vertex form. The vertex form of a quadratic function is

$y - k = a(x - h)^2$

This form is very useful for graphing because it gives the vertex of the parabola explicitly. The vertex is at the point $(h, k)$.

It is also simple to find the $x-$intercepts from the vertex form: just set $y = 0$ and take the square root of both sides of the resulting equation.

To find the $y-$intercept, set $x = 0$ and simplify.

Example 5

Find the vertex, the $x-$intercepts and the $y-$intercept of the following parabolas:

a) $y - 2 = (x - 1)^2$

b) $y + 8 = 2(x - 3)^2$

Solution

a) $y - 2 = (x - 1)^2$

Vertex: (1, 2)

To find the $x-$intercepts,

$\text{Set} \ y = 0: & & -2 & = (x - 1)^2 \\\text{Take the square root of both sides}: & & \sqrt{-2} & = x - 1 && \text{and} && -\sqrt{-2} = x - 1$

The solutions are not real so there are no $x-$intercepts.

To find the $y-$intercept,

$\text{Set} \ x = 0: & & y - 2 & = (-1)^2\\\text{Simplify}: & & y - 2 & = 1 \Rightarrow \underline{y = 3}$

b) $y + 8 = 2(x - 3)^2$

$& \text{Rewrite}: & & y - (-8) = 2(x - 3)^2\\& \text{Vertex}: & & \underline{(3, -8)}$

To find the $x-$intercepts,

$\text{Set} \ y = 0: & & 8 & = 2 (x - 3)^2\\\text{Divide both sides by} \ 2: & & 4 & = (x - 3)^2 \\\text{Take the square root of both sides}: & & 4 & = x - 3 && \text{and} && -4 = x - 3\\\text{Simplify}: & & & \underline{\underline{x = 7}} && \text{and} && \underline{\underline{x = -1}}$

To find the $y-$intercept,

$\text{Set} \ x = 0: & & y + 8 & = 2(-3)^2\\\text{Simplify}: & & y + 8 & = 18 \Rightarrow \underline{\underline{y = 10}}$

To graph a parabola, we only need to know the following information:

• the vertex
• the $x-$intercepts
• the $y-$intercept
• whether the parabola turns up or down (remember that it turns up if $a > 0$ and down if $a < 0$)

Example 6

Graph the parabola given by the function $y + 1 = (x +3)^2$.

Solution

$& \text{Rewrite}: & & y - (-1) = (x - (-3))^2\\& \text{Vertex}: & & \underline{(-3, -1)} && \text{vertex}:(-3, -1)$

To find the $x-$intercepts,

$&\text{Set} \ y = 0: & & 1 = ( x + 3)^2\\&\text{Take the square root of both sides}: & & 1 = x + 3 \qquad \text{and} \qquad -1 = x + 3\\&\text{Simplify}: && \underline{\underline{x = -2}} \qquad \quad \text{and} \qquad \quad \ \underline{\underline{x = -4}}\\&&& x-\text{intercepts}: \ (-2, 0) \ \text{and} \ (-4, 0)$

To find the $y-$intercept,

$& \text{Set} \ x = 0: & & y + 1 = (3)^2\\& \text{Simplify:} & & \underline{\underline{y = 8}} && y-\text{intercept}: (0, 8)$

And since $a > 0$, the parabola turns up.

Graph all the points and connect them with a smooth curve:

Example 7

Graph the parabola given by the function $y = - \frac{1}{2} (x - 2)^2$.

Solution:

$& \text{Rewrite} & & y - (0) = - \frac{1} {2} (x - 2)^2\\& \text{Vertex:} & & \underline{(2, 0)} && \text{vertex:} (2, 0)$

To find the $x-$intercepts,

$\text{Set} \ y = 0: & & 0 & = - \frac{1} {2} (x - 2)^2 \\\text{Multiply both sides by} \ -2: & & 0 & = (x - 2)^2 \\\text{Take the square root of both sides}: & & 0 & = x - 2\\\text{Simplify}: & & & \underline{\underline{x = 2}} && x-\text{intercept:} (2, 0)$

Note: there is only one $x-$intercept, indicating that the vertex is located at this point, (2, 0).

To find the $y-$intercept,

$\text{Set} \ x = 0: & & y & = -\frac{1} {2}(-2)^2 \\\text{Simplify:} & & y & = - \frac{1} {2} (4) \Rightarrow \underline{\underline{y = -2}} && y- \text{intercept:}(0, -2)$

Since $a < 0$, the parabola turns down.

Graph all the points and connect them with a smooth curve:

## Solve Real-World Problems Using Quadratic Functions by Completing the Square

In the last section you learned that an object that is dropped falls under the influence of gravity. The equation for its height with respect to time is given by $y = \frac{1}{2}gt^2 + y_0$, where $y_0$ represents the initial height of the object and $g$ is the coefficient of gravity on earth, which equals $-9.8 \ m/s^2$ or $-32 \ ft/s^2$.

On the other hand, if an object is thrown straight up or straight down in the air, it has an initial vertical velocity. This term is usually represented by the notation $v_{0y}$. Its value is positive if the object is thrown up in the air and is negative if the object is thrown down. The equation for the height of the object in this case is

$y = \frac{1}{2}gt^2 + v_{0y}t + y_0$

Plugging in the appropriate value for $g$ turns this equation into

$y = -4.9t^2 + v_{0y}t + y_0$ if you wish to have the height in meters

$y = -16t^2 + v_{0y}t + y_0$ if you wish to have the height in feet

Example 8

An arrow is shot straight up from a height of 2 meters with a velocity of 50 m/s.

a) How high will the arrow be 4 seconds after being shot? After 8 seconds?

b) At what time will the arrow hit the ground again?

c) What is the maximum height that the arrow will reach and at what time will that happen?

Solution

Since we are given the velocity in m/s, use: $y = -4.9t^2 + v_{0y}t + y_0$

We know $v_{0y} = 50 \ m/s$ and $y_0 = 2$ meters so: $y = -4.9t^2 + 50t + 2$

a) To find how high the arrow will be 4 seconds after being shot we plug in $t = 4$:

$y & = -4.9(4)^2 + 50(4) + 2\\& = -4.9(16) + 200 + 2 = \underline{\underline{123.6 \ feet}}$

we plug in $t = 8$:

$y & = -4.9(8)^2 + 50(8) + 2\\& = -4.9(64) + 400 + 2 = \underline{\underline{88.4 \ feet}}$

b) The height of the ball arrow on the ground is $y = 0$, so: $0 = -4.9t^2 + 50t + 2$

Solve for $t$ by completing the square:

$-4.9t^2 + 50t & = -2\\ -4.9(t^2 - 10.2t) & = -2\\ t^2 - 10.2t & = 0.41\\t^2 - 2(5.1)t + (5.1)^2 & = 0.41 + (5.1)^2\\(t - 5.1)^2 & = 26.43\\t - 5.1 & = 5.14 \ \text{and} \ t - 5.1 = -5.14\\t & = \underline{\underline{10.2}} \ sec \ \text{and} \ t = -0.04 \ sec$

The arrow will hit the ground about 10.2 seconds after it is shot.

c) If we graph the height of the arrow with respect to time we would get an upside down parabola $(a < 0)$. The maximum height and the time when this occurs is really the vertex of this parabola: $(t, h)$.

$& \text{We re-write the equation in vertex form:} && y = -4.9t^2 + 50t + 2\\& && y - 2 = -4.9t^2 + 50t\\& && y - 2 = -4.9(t^2 - 10.2t)\\& \text{Complete the square:} && y - 2 - 4.9(5.1)^2 = -4.9 \left( t^2 - 10.2t + (5.1)^2 \right)\\& && y - 129.45 = -4.9(t - 5.1)^2$

The vertex is at (5.1, 129.45). In other words, when $t = 5.1 \ seconds$, the height is $y = 129 \ meters$.

Another type of application problem that can be solved using quadratic equations is one where two objects are moving away from each other in perpendicular directions. Here is an example of this type of problem.

Example 9

Two cars leave an intersection. One car travels north; the other travels east. When the car traveling north had gone 30 miles, the distance between the cars was 10 miles more than twice the distance traveled by the car heading east. Find the distance between the cars at that time.

Solution

Let $x =$ the distance traveled by the car heading east

Then $2x + 10 =$ the distance between the two cars

Let’s make a sketch:

We can use the Pythagorean Theorem to find an equation for $x$:

$x^2 + 30^2 = (2x + 10)^2$

Expand parentheses and simplify:

$x^2 + 900 & = 4x^2 + 40x + 100\\800 & = 3x^2 + 40x$

Solve by completing the square:

$\frac{800}{3} &= x^2 + \frac{40}{3}x\\\frac{800}{3} + \left ( \frac{20}{3} \right )^2 &= x^2 + 2\left ( \frac{20}{3} \right )x + \left ( \frac{20}{3} \right )^2\\\frac{2800}{9} &= \left ( x + \frac{20}{3} \right )^2\\ x + \frac{20}{3} &= 17.6 \ \text{and} \ x + \frac{20}{3} =-17.6\\x &= 11 \ \text{and} \ x = -24.3$

Since only positive distances make sense here, the distance between the two cars is: $2(11) + 10 = 32 \ miles$

## Review Questions

Complete the square for each expression.

1. $x^2 + 5x$
2. $x^2 - 2x$
3. $x^2 + 3x$
4. $x^2 - 4x$
5. $3x^2 + 18x$
6. $2x^2 - 22x$
7. $8x^2 - 10x$
8. $5x^2 + 12x$

Solve each quadratic equation by completing the square.

1. $x^2 - 4x = 5$
2. $x^2 - 5x = 10$
3. $x^2 + 10x + 15 = 0$
4. $x^2 + 15x + 20 = 0$
5. $2x^2 - 18x = 3$
6. $4x^2 + 5x = -1$
7. $10x^2 - 30x - 8 = 0$
8. $5x^2 + 15x - 40 = 0$

Rewrite each quadratic function in vertex form.

1. $y= x^2 - 6x$
2. $y + 1 = -2x^2 -x$
3. $y = 9x^2 + 3x - 10$
4. $y = -32x^2 + 60x + 10$

For each parabola, find the vertex; the $x-$ and $y-$intercepts; and if it turns up or down. Then graph the parabola.

1. $y - 4 = x^2 + 8x$
2. $y = -4x^2 + 20x - 24$
3. $y = 3x^2 + 15x$
4. $y + 6 = -x^2 + x$
5. Sam throws an egg straight down from a height of 25 feet. The initial velocity of the egg is 16 ft/sec. How long does it take the egg to reach the ground?
6. Amanda and Dolvin leave their house at the same time. Amanda walks south and Dolvin bikes east. Half an hour later they are 5.5 miles away from each other and Dolvin has covered three miles more than the distance that Amanda covered. How far did Amanda walk and how far did Dolvin bike?

Feb 22, 2012

Aug 22, 2014