# 10.4: Solving Quadratic Equations by Completing the Square

## 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 , you can easily solve it by taking the square root of each side:

Simplify to get:

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:

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* .

**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:

We see that the constant we are seeking must be :

**Answer:** By adding 4 to both sides, this can be factored as:

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 , the coefficient of the 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* .

**Solution**

The expression **“completing the square”** comes from a geometric interpretation of this situation. Let’s revisit the quadratic expression in Example 1: .

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

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 ; its area is therefore .

## 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:*

**Solution**

Divide all terms by the coefficient of the term:

Rewrite: In order to have a perfect square trinomial on the right-hand-side we need to add the constant . Add this constant to **both** sides of the equation:

Factor the perfect square trinomial and simplify:

Take the square root of both sides:

**Answer:** and

If an equation is in standard form , 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:*

**Solution**

Move the constant to the other side of the equation:

Rewrite:

Add the constant to both sides of the equation:

Factor the perfect square trinomial and simplify:

Take the square root of both sides:

**Answer:** and

## 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

This form is very useful for graphing because it gives the vertex of the parabola explicitly. The vertex is at the point .

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

To find the intercept, set and simplify.

**Example 5**

*Find the vertex, the* *intercepts and the* *intercept of the following parabolas:*

a)

b)

**Solution**

a)

Vertex: (1, 2)

To find the intercepts,

The solutions are not real so there are **no** **intercepts.**

To find the intercept,

b)

To find the intercepts,

To find the intercept,

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

- the vertex
- the intercepts
- the intercept
- whether the parabola turns up or down (remember that it turns up if and down if )

**Example 6**

*Graph the parabola given by the function* .

**Solution**

To find the intercepts,

To find the intercept,

And since , the parabola **turns up.**

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

**Example 7**

*Graph the parabola given by the function* .

**Solution:**

To find the intercepts,

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

To find the intercept,

Since , 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 , where represents the initial height of the object and is the coefficient of gravity on earth, which equals or .

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

Plugging in the appropriate value for turns this equation into

if you wish to have the height in meters

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:

We know and meters so:

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

we plug in :

b) The height of the ball arrow on the ground is , so:

Solve for by completing the square:

**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 . The maximum height and the time when this occurs is really the vertex of this parabola: .

The vertex is at (5.1, 129.45). In other words, **when , the height is .**

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 the distance traveled by the car heading east

Then the distance between the two cars

Let’s make a sketch:

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

Expand parentheses and simplify:

Solve by completing the square:

Since only positive distances make sense here, the distance between the two cars is:

## Review Questions

Complete the square for each expression.

Solve each quadratic equation by completing the square.

Rewrite each quadratic function in vertex form.

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

- 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?
- 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?