
## Section8.5Completing the Square

It is possible to manipulate a parabolic equation presented into standard form into graphing form. The process used to make this transformation is called "completing the square." The steps used in the process when $a=1$ are as follows

1. Write the squared and linear terms in a set of parentheses with space to add another number inside the parentheses.

2. Inside the parentheses, add $\left(\frac{b}{2}\right)^2\text{.}$ Subtract that same number outside the parentheses.

3. The trinomial in the parentheses now factors as $\left(x+\frac{b}{2}\right)^2\text{.}$ Note that if $b$ is a negative number, then the operation between $x$ and the the number in the factored expression is ultimately subtraction. Go ahead and factor the trinomial in the parentheses and at the same time combine the numbers outside of the parentheses.

###### Example8.5.1

State the vertex of the parabola with equation $y=x^2-16x+15$ after first manipulating the equation into graphing form.

Solution

The number which completes the square is determined as follows.

\begin{align*} \left(\frac{b}{2}\right)^2\amp=\left(\frac{-16}{2}\right)^2\\ \amp=(-8)^2\\ \amp=64 \end{align*}

Let's go ahead and complete the square.

The vertex of the parabola is the point $(8,-49)\text{.}$

###### Example8.5.2

State the vertex of the parabola with equation $y=x^2+9x+21$ after first manipulating the equation into graphing form.

Solution

The number which completes the square is determined as follows.

\begin{align*} \left(\frac{b}{2}\right)^2\amp=\left(\frac{9}{2}\right)^2\\ \amp=\frac{81}{4} \end{align*}

Let's go ahead and complete the square.

\begin{align*} y\amp=x^2+9x+21\\ y\amp=\left(x^2+9x+\frac{81}{4}\right)+21-\frac{81}{4}\\ y\amp=\left(x+\frac{9}{2}\right)^2+\frac{3}{4} \end{align*}

The vertex of the parabola is $\left(-\frac{9}{2},\frac{3}{4}\right)\text{.}$

When the value of $a$ in the equation $y=ax^2+bx+c$ is not one, the process of completing the square is quite a bit more complicated. The steps are as follows.

1. Factor $a$ away from both the squared term and the linear term, leaving enough room in the parentheses to add another number. he form of the equation is now $y=a\left(x^2+\frac{b}{a}\right)+c\text{.}$

2. Add $\left(\frac{b}{2a}\right)^2$ inside the parentheses. Add or subtract what is necessary to balance this action. Remember, since the number was added inside the parentheses, it is multiplied by $a\text{,}$ so the amount you added was actual $a \cdot \left(\frac{b}{2a}\right)^2$ which must be subtracted outside the parentheses. What's tricky is that if $a$ is negative, you actually end up adding both inside and outside the parentheses. Just make sure that your net addition is zero.

3. The trinomial inside the parentheses now factors to $\left(x+\frac{b}{2a}\right)^2\text{.}$ Note that if $b$ is a negative number, then the operation between $x$ and the the number in the factored expression is ultimately subtraction. Go ahead and factor the trinomial in the parentheses and at the same time combine the numbers outside of the parentheses.

###### Example8.5.3

State the vertex of the parabola with equation $y=2x^2-12x+19$ after first manipulating the equation into graphing form.

Solution

We begin by factoring $2$ away from both the squared and the linear term.

\begin{align*} y\amp=2x^2-12x+19\\ y\amp=2(x^2-6x)+19 \end{align*}

The number which completes the square is determined as follows.

\begin{align*} \left(\frac{-6}{2}\right)\amp=(-3)^2\\ \amp=9 \end{align*}

Because everything inside the parentheses is multiplied by $2\text{,}$ we need to compensate for the addition of $9$ inside the parentheses by subtracting 18 outside the parentheses so that the net addition is zero.. The process in total is shown below.

The vertex of the parabola is the point $(3,1)\text{.}$

###### Example8.5.4

State the vertex of the parabola with equation $y=-3x^2-24x+7$ after first manipulating the equation into graphing form.

Solution

We begin by factoring $-3$ away from both the squared and the linear term.

\begin{align*} y\amp=-3x^2-24x+7\\ y\amp=-3(x^2+8x)+7 \end{align*}

The number which completes the square is determined as follows.

\begin{align*} \left(\frac{8}{2}\right)\amp=4^2\\ \amp=16 \end{align*}

Because everything inside the parentheses is multiplied by $-3\text{,}$ we need to compensate for the addition of $16$ inside the parentheses by adding $48$ outside the parentheses so that the net addition is zero. The process in total is shown below.

The vertex of the parabola is the point $(-4,55)\text{.}$

###### Example8.5.5

State the vertex of the parabola with equation $y=-x^2+5x$ after first manipulating the equation into graphing form.

Solution

We begin by factoring $-1$ away from both the squared and the linear term.

\begin{align*} y\amp=-x^2+5x\\ y\amp=-1 \cdot (x^2-5x) \end{align*}

The number which completes the square is determined as follows.

\begin{equation*} \left(\frac{-5}{2}\right)^2=\frac{25}{4} \end{equation*}

Because everything inside the parentheses is multiplied by $-1\text{,}$ we need to compensate for the addition of $\frac{25}{4}$ inside the parentheses by adding $\frac{25}{4}$ again outside the parentheses so that the net addition is zero. The process in total is shown below.

The vertex of the parabola is the point $\left(\frac{5}{2},\frac{25}{4}\right)\text{.}$

### Subsection8.5.1Exercises

Determine the vertex of each parabola after first completing the square to determine the graphing form of the equation.

###### 1

$y=x^2-12x+11$

Solution

We begin by completing the square to determine the graphing form of the equation.

The vertex of the parabola is $(6,-25)\text{.}$

###### 2

$y=x^2+9x+\frac{77}{4}$

Solution

We begin by completing the square to determine the graphing form of the equation.

The vertex of the parabola is $\left(-\frac{9}{2},-1\right)$

###### 3

$y=4x^2-80x+410$

Solution

We begin by completing the square to determine the graphing form of the equation.

The vertex of the parabola is $(10,10)\text{.}$

###### 4

$y=-3x^2+6x$

Solution

We begin by completing the square to determine the graphing form of the equation.

The vertex of the parabola is $(1,3)\text{.}$

###### 5

$y=-1.5x^2-4.5x+2$

Solution

We begin by completing the square to determine the graphing form of the equation.

The vertex of the parabola is $(-1.5,5.375)\text{.}$

###### 6

$y=-x^2+20x-101$

Solution

We begin by completing the square to determine the graphing form of the equation.

The vertex of the parabola is $(10,-1)\text{.}$