Skip to main content
\(\require{cancel}\newcommand{\abs}[1]{\left\lvert#1\right\rvert} \newcommand{\point}[2]{\left(#1,#2\right)} \newcommand{\highlight}[1]{{\color{blue}{{#1}}}} \newcommand{\lowlight}[1]{{\color{lightgray}{#1}}} \newcommand{\attention}[1]{\mathord{\overset{\downarrow}{#1}}} \newcommand{\substitute}[1]{\highlight{#1}} \newcommand{\addright}[1]{\highlight{{}+#1}} \newcommand{\addleft}[1]{\highlight{#1+{}}} \newcommand{\subtractright}[1]{\highlight{{}-#1}} \newcommand{\multiplyright}[2][\cdot]{\highlight{{}#1#2}} \newcommand{\multiplyleft}[2][\cdot]{\highlight{#2#1{}}} \newcommand{\divideunder}[2]{\frac{#1}{\highlight{#2}}} \newcommand{\divideright}[1]{\highlight{{}\div#1}} \newcommand{\apple}{\text{🍎}} \newcommand{\banana}{\text{🍌}} \newcommand{\pear}{\text{🍐}} \newcommand{\cat}{\text{🐱}} \newcommand{\dog}{\text{🐶}} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section12.2Completing the Square and Vertex Form

In this section, we will learn the skill of completing the square. We will use this skill to solve quadratic equations and graph quadratic functions.

Figure12.2.1Alternative Video Lesson

Subsection12.2.1Solving Quadratic Equations by Completing the Square

We can solve the following quadratic equation by the square root property:

\begin{align*} (x+5)^2\amp=4\\ \sqrt{(x+5)^2}\amp=\pm\sqrt{4}\\ x+5\amp=\pm2\\ x+5=2\amp\text{ or }x+5=-2\\ x=-3\amp\text{ or }x=-7 \end{align*}

Now, let's change the original equation this way:

\begin{align*} (x+5)^2\amp=4\\ x^2+5x+25\amp=4\\ x^2+5x\amp=-21 \end{align*}

This implies we can solve the equation \(x^2+10x=-21\) by the square root property. The challenge is how to convert \(x^2+10x=-21\) to \((x+5)^2=4\text{.}\) The skill of completing the square can help us do this conversion.

We have learned the perfect square formula:

\begin{equation*} (x+a)^2=x^2+2ax+a^2 \end{equation*}

Let's use this formula for some numbers, and write the equations backward:

\begin{align*} x^2+2x+1\amp=(x+1)^2\\ x^2+4x+4\amp=(x+2)^2\\ x^2+6x+9\amp=(x+3)^2\\ x^2+8x+16\amp=(x+4)^2\\ \ldots\\ x^2+2ax+a^2\amp=(x+a)^2 \end{align*}

Say we start with \(x^2+10x\) and try to convert it to a perfect square in the form of \((x+a)^2\text{.}\) This is a two-step process.

Step One: Determine the value of \(a\) in \(x^2+10x+\ldots=(x+a)^2\text{.}\) By the formula \(x^2+2ax+a^2=(x+a)^2\text{,}\) \(a\)'s value is half of \(10\text{,}\) so we have:

\begin{equation*} x^2+10x+\ldots=(x+5)^2 \end{equation*}

Step Two: Determine the missing part in \(x^2+10x+\ldots=(x+5)^2\text{.}\) By the formula \(x^2+2ax+a^2=(x+a)^2\text{,}\) the missing part is \(a^2\text{,}\) or \(5^2=25\) for \((x+5)^2\text{.}\) Now we can complete the square for \(x^2+10x\text{:}\)

\begin{equation*} x^2+10x+25=(x+5)^2 \end{equation*}

Let's go back to solving \(x^2+10x=-21\text{.}\) By \(x^2+10x+25=(x+5)^2\text{,}\) we will add \(25\) on both sides of the equation, and we have:

\begin{align*} x^2+10x\amp=-21\\ x^2+10x\addright{25}\amp=-21\addright{25}\\ (x+5)^2\amp=4\\ \sqrt{(x+5)^2}\amp=\pm\sqrt{4}\\ x+5\amp=\pm2\\ x+5=2\amp\text{ or }x+5=-2\\ x=-3\amp\text{ or }x=-7 \end{align*}

So far, we only covered one of the perfect square formulas. Sometimes we need to use the other one, \(x^2-2ax+a^2=(x-a)^2\text{,}\) like in the next example.

Example12.2.2

Use the skill of completing the square to solve for \(y\) in \(y^2-20y-21=0\text{.}\)

Solution

To use the skill of completing the square, we will first move the constant term to the right side of the equals sign:

\begin{align*} y^2-20y-21\amp=0\\ y^2-20y\amp=21 \end{align*}

Next, we will complete the square.

Step One: By \(x^2-2ax+a^2=(x-a)^2\text{,}\) we have \(y^2-20y+\ldots=(y-10)^2\text{.}\)

Step Two: By \(x^2-2ax+a^2=(x-a)^2\text{,}\) we have \(y^2-20y+100=(y-10)^2\text{.}\)

To solve the equation, we need to add \(100\) on both sides of the equation:

\begin{align*} y^2-20y\amp=21\\ y^2-20y\addright{100}\amp=21\addright{100}\\ (y-10)^2\amp=121\\ \sqrt{(y-10)^2}\amp=\pm\sqrt{121}\\ y-10\amp=\pm11\\ y-10=11\amp\text{ or }y-10=-11\\ y=21\amp\text{ or }y=-1 \end{align*}

Sometimes we have to deal with fractions when we complete the square, like in the next example.

Example12.2.3

Use the skill of completing the square to solve for \(z\) in \(z^2-3z-10=0\text{.}\)

Solution

we will first move the constant term to the right side of the equals sign:

\begin{align*} z^2-3z-10\amp=0\\ z^2-3z\amp=10 \end{align*}

Next, we will complete the square.

Step One: By \(x^2-2ax+a^2=(x-a)^2\text{,}\) we have \(z^2-3y+\ldots=(z-\frac{3}{2})^2\text{.}\)

Step Two: By \(x^2-2ax+a^2=(x-a)^2\text{,}\) we have \(z^2-3z+\frac{9}{4}=(z-\frac{3}{2})^2\text{.}\)

To solve the equation, we need to add \(\frac{9}{4}\) on both sides of the equation:

\begin{align*} z^2-3z\amp=10\\ z^2-3z\addright{\frac{9}{4}}\amp=10\addright{\frac{9}{4}}\\ (z-\frac{3}{2})^2\amp=\frac{40}{4}+\frac{9}{4}\\ (z-\frac{3}{2})^2\amp=\frac{49}{4}\\ \sqrt{(z-\frac{3}{2})^2}\amp=\pm\sqrt{\frac{49}{4}}\\ z-\frac{3}{2}\amp=\pm\frac{7}{2}\\ z-\frac{3}{2}=\frac{7}{2}\amp\text{ or }z-\frac{3}{2}=-\frac{7}{2}\\ z=\frac{7}{2}+\frac{3}{2}\amp\text{ or }z=-\frac{7}{2}+\frac{3}{2}\\ z=5\amp\text{ or }z=-2 \end{align*}

When there is a coefficient for \(x^2\text{,}\) like \(2x^2+6x\text{,}\) we need to remove it before completing the square. Let's look at the next example.

Example12.2.4

Use the skill of completing the square to solve for \(r\) in \(2r^2+2r=1\text{.}\)

Solution

Because there is a leading coefficient, we will remove it by multiplying both sides of the equation by \(\frac{1}{2}\text{:}\)

\begin{align*} 2r^2+2r\amp=1\\ \multiplyleft{\frac{1}{2}}(2r^2+2r)\amp=\multiplyleft{\frac{1}{2}}1\\ \frac{1}{2}\cdot2r^2+\frac{1}{2}\cdot2r\amp=\frac{1}{2}\\ r^2+r\amp=\frac{1}{2} \end{align*}

Next, we will complete the square.

Step One: By \(x^2+2ax+a^2=(x+a)^2\text{,}\) we have \(r^2+r+\ldots=(r+\frac{1}{2})^2\text{.}\)

Step Two: By \(x^2+2ax+a^2=(x+a)^2\text{,}\) we have \(r^2+r+\frac{1}{4}=(r+\frac{1}{2})^2\text{.}\)

To solve the equation, we need to add \(\frac{1}{4}\) on both sides of the equation:

\begin{align*} r^2+r\amp=\frac{1}{2}\\ r^2+r\addright{\frac{1}{4}}\amp=\frac{1}{2}\addright{\frac{1}{4}}\\ (r+\frac{1}{2})^2\amp=\frac{2}{4}+\frac{1}{4}\\ (r+\frac{1}{2})^2\amp=\frac{3}{4}\\ \sqrt{(r+\frac{1}{2})^2}\amp=\pm\sqrt{\frac{3}{4}}\\ r+\frac{1}{2}\amp=\pm\frac{\sqrt{3}}{2}\\ r+\frac{1}{2}=\frac{\sqrt{3}}{2}\amp\text{ or }r+\frac{1}{2}=-\frac{\sqrt{3}}{2}\\ r=\frac{\sqrt{3}}{2}-\frac{1}{2}\amp\text{ or }r=-\frac{\sqrt{3}}{2}-\frac{1}{2}\\ r=\frac{\sqrt{3}-1}{2}\amp\text{ or }r=\frac{-\sqrt{3}-1}{2} \end{align*}

Subsection12.2.2Quadratic Function in Vertex Form

We have learned the standard form of quadratic functions:

\begin{equation*} f(x)=ax^2+bx+c \end{equation*}

In this subsection, we will learn the vertex form:

\begin{equation*} f(x)=a(x-h)^2+k \end{equation*}
Figure12.2.5Alternative Video Lesson

A quadratic function's vertex represents the function's maximum or minimum value, which is often of interest. The next example reviews how to locate the vertex.

Example12.2.6

In Example 6.3.24, we learned artist Michael's annual income from paintings can be modeled by \(f(x)=-10x^2+150x+1000\text{,}\) where \(x\) is the number of times he will raise the price per painting by $\(2.00\text{.}\) To maximize his income, how should Michael set his price per painting?

Solution

The function is quadratic. Identify that \(a=-10, b=150\) and \(c=1000\text{.}\)

Since the leading coefficient is negative, its graph is an upside down parabola. The maximum income is represented by the parabola's vertex.

The first step to find the vertex is to find the parabola's axis, which is calculated by the formula:

\begin{align*} x\amp=-\frac{b}{2a}\\ \amp=-\frac{150}{2(-10)}\\ \amp=7.5 \end{align*}

Since a parabola's vertex is on its axis, the vertex is at \((7.5,y)\text{.}\) To find the missing \(y\) value, we substitute \(x=7.5\) into \(f(x)\text{,}\) and we have:

\begin{align*} f(x)\amp=-10x^2+150x+1000\\ f(7.5)\amp=-10(7.5)^2+150(7.5)+1000\\ \amp=1562.5 \end{align*}

The parabola's vertex is at \((7.5,1562.5)\text{.}\) This implies Michael should raise the price per painting \(7.5\) times, or by \(7.5\cdot2=15\) dollars. This would make the price per painting \(10+15=25\) dollars, and his annual income from paintings would become $\(1562.50\) by this math model.

With graphing technology, we can double check the maximum value of the function \(f(x)=-10x^2+150x+1000\text{.}\)

<<SVG image is unavailable, or your browser cannot render it>>

Figure12.2.7Graph of \(f(x)=-10x^2+150x+1000\)

It would be great if we can convert the function \(f(x)=-10x^2+150x+1000\) to a form such that we can easily tell the parabola's vertex. We will use the skill of completing the square to convert the function from standard form to vertex form.

There is a leading coefficient, \(-10\text{.}\) When we solve the equation in Example 12.2.4, we removed the leading coefficient. Let's try to use the same skill:

\begin{align*} f(x)\amp=-10x^2+150x+1000\\ \multiplyleft{-\frac{1}{10}}f(x)\amp=\multiplyleft{-\frac{1}{10}}(-10x^2+150x+1000)\\ -\frac{1}{10}f(x)\amp=x^2-15x-100 \end{align*}

When we write the function \(f(x)\text{,}\) we cannot write the left side as \(-\frac{1}{10}f(x)\text{.}\) This skill doesn't help us here, but it worked for the equation in Example 12.2.4 because the other side of the equation is \(0\text{.}\)

To complete the square for \(f(x)=-10x^2+150x+1000\text{,}\) we cannot remove \(-10\text{;}\) instead, we have to factor it out:

\begin{align*} f(x)\amp=-10x^2+150x+1000\\ \amp=-10(x^2-15x)+1000 \end{align*}

Next, we will complete the square for \(x^2-15x\text{:}\)

Step One: By \(x^2-2ax+a^2=(x-a)^2\text{,}\) we have \(x^2-15x+\ldots=(x-7.5)^2\text{.}\)

Step Two: By \(x^2-2ax+a^2=(x-a)^2\text{,}\) we have \(x^2-15x+56.25=(x-7.5)^2\text{.}\)

Now we can continue the conversion:

\begin{align*} f(x)\amp=-10x^2+150x+1000\\ \amp=-10(x^2-15x)+1000\\ \amp=-10(x^2-15x+56.25-56.25)+1000 \end{align*}

This is again different from what we did earlier. When we solved the equation in Example 12.2.2, we added a number on both sides of the equation. Here, we cannot do that since \(x^2-15x\) is inside a pair of parentheses. We have to add \(56.25\) because we need it to complete the square, but we must immediately subtract it to keep the function's value unchanged. In other words, we cannot "throw in" a number into a function simply because we need it.

The full process of completing the square for \(f(x)\) is:

\begin{align*} f(x)\amp=-10x^2+150x+1000\\ \amp=-10(x^2-15x)+1000\\ \amp=-10(x^2-15x+56.25-56.25)+1000\\ \amp=-10[(x-7.5)^2-56.25]+1000\\ \amp=-10(x-7.5)^2+562.5+1000\\ \amp=-10(x-7.5)^2+1562.5 \end{align*}

If we substitute \(x=7.5\) into \(f(x)=-10(x-7.5)^2+1562.5\text{,}\) we will have:

\begin{align*} f(x)\amp=-10(x-7.5)^2+1562.5\\ f(7.5)\amp=-10(7.5-7.5)^2+1562.5\\ f(7.5)\amp=-10(0)+1562.5\\ f(7.5)\amp=1562.5 \end{align*}

This is why it's easy to tell the vertex of \(f(x)=-10(x-7.5)^2+1562.5\) is \((7.5,1562.5)\text{.}\) We call this form the vertex form of a quadratic function. In general, it looks like

\begin{equation*} f(x)=a(x-h)^2+k \end{equation*}

and the parabola's vertex is at \((h,k)\text{.}\)

You might wonder why \((7.5,1562.5)\) must be the parabola's vertex, instead of a different point on the parabola. This can be explained by the function's range. We know the square of a number must be positive or zero, so we have:

\begin{align*} (x-7.5)^2\amp\ge0\\ \multiplyleft{-10}(x-7.5)^2\amp\le\multiplyleft{-10}0\\ -10(x-7.5)^2\amp\le0\\ -10(x-7.5)^2\addright{1562.5}\amp\le0\addright{1562.5}\\ -10(x-7.5)^2+1562.5\amp\le1562.5\\ f(x)\amp\le1562.5 \end{align*}

The result implies the maximum value of \(f(x)\) is \(1562.5\text{,}\) making \((7.5,1562.5)\) the parabola's vertex.

Let's look at a few examples on the vertex form.

Example12.2.8

Find the vertex of the parabola \(p(x)=-(x+2)^2+3\text{,}\) and then sketch the graph.

Solution

For \(f(x)=a(x-h)^2+k\text{,}\) the vertex is \((h,k)\text{.}\)

For \(p(x)=-(x+2)^2+3\text{,}\) the vertex is \((-2,3)\text{.}\) We can quickly verify this by substituting \(x=-2\) into \(p(x)\text{,}\) and we have:

\begin{align*} p(-2)\amp=-(-2+2)^2+3\\ \amp=0+3\\ \amp=3 \end{align*}

If we made a mistake and said the vertex is \((2,3)\text{,}\) we can easily detect it once we substitute \(x=2\) into \(p(x)\text{,}\) as we would not get \(p(2)=3\text{.}\)

Once we find the vertex, we need at least one more point to sketch the parabola. An easy point to find is its \(y\)-intercept. We will substitute \(x=0\) into the function, and we have:

\begin{align*} p(x)\amp=-(x+2)^2+3\\ p(0)\amp=-(0+2)^2+3\\ \amp=-4+3\\ \amp=-1 \end{align*}

The parabola's \(y\)-intercept is \((0,-1)\text{.}\) Now we can sketch its graph:

<<SVG image is unavailable, or your browser cannot render it>>

Figure12.2.9Graph of \(p(x)=-(x+2)^2+3\)
Example12.2.10

Write the quadratic function's vertex-form equation based on the given graph.

<<SVG image is unavailable, or your browser cannot render it>>

Figure12.2.11Graph of a parabola
Solution

According to the graph, the parabola's vertex is at \((3,-1)\text{.}\) The function's formula must be \(f(x)=a(x-3)^2-1\text{.}\)

According to the graph, the parabola passes the point \((2,0)\) (we could have chosen a different point, and would get the same solution). To find \(a\)'s value, we substitute \(x=2,y=0\) into \(f(x)=a(x-3)^2-1\text{,}\) and we have:

\begin{align*} f(x)\amp=a(x-3)^2-1\\ 0\amp=a(2-3)^2-1\\ 0\amp=a(-1)^2-1\\ 0\amp=a(1)-1\\ 0\amp=a-1\\ 1\amp=a \end{align*}

The quadratic function's equation is

\begin{equation*} f(x)=(x-3)^2-1\text{.} \end{equation*}

The next example looks different because fractions are involved, but the procedures are the same.

Example12.2.12

Convert the quadratic function \(g(x)=-3x^2-3x-\frac{7}{4}\) to vertex form, and then find its vertex.

Solution

\begin{align*} g(x)\amp=-3x^2-3x-\frac{7}{4}\\ \amp=-3(x^2+x)-\frac{7}{4} \end{align*}

Next, we will complete the square for \(x^2+x\text{:}\)

Step One: By \(x^2-2ax+a^2=(x-a)^2\text{,}\) we have \(x^2+x+\ldots=(x+\frac{1}{2})^2\text{.}\)

Step Two: By \(x^2-2ax+a^2=(x-a)^2\text{,}\) we have \(x^2+x+\frac{1}{4}=(x+\frac{1}{2})^2\text{.}\)

The full process of completing the square for \(g(x)\) is:

\begin{align*} g(x)\amp=-3x^2-3x-\frac{7}{4}\\ \amp=-3(x^2+x)-\frac{7}{4}\\ \amp=-3\left(x^2+x+\frac{1}{4}-\frac{1}{4}\right)-\frac{7}{4}\\ \amp=-3\left( (x+\frac{1}{2})^2-\frac{1}{4}\right) -\frac{7}{4}\\ \amp=-3(x+\frac{1}{2})^2+\frac{3}{4}-\frac{7}{4}\\ \amp=-3(x+\frac{1}{2})^2-1 \end{align*}

The parabola's vertex is \((-\frac{1}{2},-1)\)

Subsection12.2.3Domain and Range of Quadratic Functions

In this subsection, we will learn how to find a quadratic equation's domain and range.

Figure12.2.13Alternative Video Lesson

Let's find the domain and range of \(f(x)\) and \(g(x)\) by their graphs.

<<SVG image is unavailable, or your browser cannot render it>>

Figure12.2.14Graph of \(f(x)\) and \(g(x)\)

We can tell the domain and range of both functions by their graphs:

\(f(x)\) \(g(x)\)
Domain \((-\infty,\infty)\) \((-\infty,\infty)\)
Range \((-\infty,10]\) \([-20,\infty)\)
Table12.2.15Domain and Range of \(f(x)\) and \(g(x)\)

Once we locate a parabola's vertex, it would be easy to find the function's domain and range. Let's look at an example.

Example12.2.16

Find the domain and range of \(f(x)=-2x^2+12x-19\text{.}\)

Solution

To locate the parabola's vertex, we will change the function to its vertex form.

\begin{align*} f(x)\amp=-2x^2+12x-19\\ \amp=-2(x^2-6x)-19\\ \amp=-2(x^2-6x+9-9)-19\\ \amp=-2\left( (x-3)^2-9\right) -19\\ \amp=-2(x-3)^2+18-19\\ \amp=-2(x-3)^2-1 \end{align*}

The parabola's vertex is at \((3,-1)\text{.}\) The parabola faces down because its leading coefficient is negative, making its vertex's \(y\)-value the function's maximum value. As a result, the function's domain is \((-\infty,\infty)\text{,}\) and its range \((-\infty,-1]\text{.}\)

Subsection12.2.4A Second Method to Convert to Vertex Form

There is a second method to convert a quadratic function from standard form to vertex form. In <<Unresolved xref, reference "section-parabola-axis-vertex-and-intercepts"; check spelling or use "provisional" attribute>>, we learned a parabola's vertex formula:

\begin{equation*} \text{vertex: }\left(-\frac{b}{2a},\quad f(-\frac{b}{2a}) \right) \end{equation*}

We can use this formula to find a parabola's vertex, which will give us the values of \(h\) and \(k\) in the vertex form \(f(x)=a(x-h)^2+k\text{.}\) Let's look at the next example.

Example12.2.17

Scenario: At the height of \(90.2\) feet above sea level, an object is launched at a vertical velocity of \(14.4\) feet per second. The object's height can be modeled by the function \(h(t)=-16t^2+14.4t+90.2\text{,}\) where \(h(t)\) represents the object's height in feet, and \(t\) represents time passed since the launch in seconds. When will the object reach its maximum height?

To find the object's maximum height, we need to locate the parabola's vertex. We will change the function from standard form to vertex form. In this example, it would be difficult to use the method of completing the square. We will use the vertex formula instead.

For \(h(t)=-16t^2+14.4t+90.2\text{,}\) identify that \(a=-16\text{,}\) \(b=14.4\) and \(c=90.2\text{.}\) The parabola's axis is:

\begin{align*} x\amp=-\frac{b}{2a}\\ \amp=-\frac{14.4}{2(-16)}\\ \amp=0.45 \end{align*}

Since the vertex is located on the axis, the vertex's \(x\) value must be \(0.45\text{.}\) Next, to find the vertex's \(y\)-value, we substitute \(x=0.45\) into \(h(t)\text{,}\) and we have:

\begin{align*} h(t)\amp=-16t^2+14.4t+90.2\\ h(0.45)\amp=-16(0.45)^2+14.4(0.45)+90.2\\ \amp=93.44 \end{align*}

The parabola's vertex is \((0.45,93.44)\text{.}\) The leading coefficient in \(h(t)=-16t^2+14.4t+90.2\) is \(-16\text{,}\) which is \(a\)'s value in the vertex form \(f(x)=a(x-h)^2+k\text{.}\) Now we can write \(h(t)\) in vertex form:

\begin{equation*} h(t)=-16(t-0.45)^2+93.44 \end{equation*}

Solution: \(0.45\) second since its launch, the object reached its maximum height, \(93.44\) feet.

We will use the new method to do Example 12.2.12 again.

Example12.2.18

Convert the quadratic function \(g(x)=-3x^2-3x-\frac{7}{4}\) to vertex form.

Solution

For \(g(x)=-3x^2-3x-\frac{7}{4}\text{,}\) identify that \(a=-3\text{,}\) \(b=-3\) and \(c=-\frac{7}{4}\text{.}\)

First, we will find the parabola's axis by the axis formula:

\begin{align*} x\amp=-\frac{b}{2a}\\ \amp=-\frac{-3}{2(-3)}\\ \amp=-\frac{1}{2} \end{align*}

Since the vertex is located on the axis, the vertex's \(x\)-value is \(-\frac{1}{2}\text{.}\) Next, to find the vertex's \(y\)-value, we substitute \(x=-\frac{1}{2}\) into \(g(x)\text{,}\) and we have:

\begin{align*} g(x)\amp=-3x^2-3x-\frac{7}{4}\\ g(-\frac{1}{2})\amp=-3\left(-\frac{1}{2}\right)^2-3\left(-\frac{1}{2}\right)-\frac{7}{4}\\ \amp=-3\left(\frac{1}{4}\right)+\frac{3}{2}-\frac{7}{4}\\ \amp=-\frac{3}{4}+\frac{6}{4}-\frac{7}{4}\\ \amp=\frac{-4}{4}\\ \amp=-1 \end{align*}

The parabola's vertex is at \((-\frac{1}{2},-1)\text{.}\)

A quadratic function's vertex form is \(f(x)=a(x-h)^2+k\text{.}\)

By \(g(x)=-3x^2-3x-\frac{7}{4}\text{,}\) we know \(a=-3\text{.}\)

By the vertex's coordinates, we know \(h=\frac{1}{2}\) and \(k=-1\text{.}\)

The function's vertex-form equation is

\begin{equation*} g(x)=-3(x+\frac{1}{2})^2-1 \end{equation*}

Subsection12.2.5Three Forms of Quadratic Functions

A quadratic function can be written in one of three forms. We will use \(q(x)=2x^2+4x-6\) as an example. This function is in standard form now. Let's change it to vertex form:

\begin{align*} q(x)\amp=2x^2+4x-6\\ \amp=2(x^2+2x)-6\\ \amp=2(x^2+2x+1-1)-6\\ \amp=2[(x+1)^2-1]-6\\ \amp=2(x+1)^2-2-6\\ \amp=2(x+1)^2-8 \end{align*}

There is a third form called the factored form, which looks like \(f(x)=a(x+b)(x+c)\text{.}\) Not all quadratic functions can be converted to the factored form. Let's try to factor the function \(q(x)=2x^2+4x-6\text{:}\)

\begin{align*} q(x)\amp=2x^2+4x-6\\ \amp=2(x^2+2x-3)\\ \amp=2(x+3)(x-1) \end{align*}

We can easily see this parabola's \(x\)-intercepts in this form: \((-3,0)\) and \((1,0)\text{.}\)

Let's summarize a quadratic function's three forms:

  • Standard Form: \(f(x)=ax^2+bx+c\text{.}\) For example, \(q(x)=2x^2+4x-6\text{.}\)

  • Vertex Form: \(f(x)=a(x-h)^2+k\text{.}\) For example, the quadratic function \(q(x)=2(x+1)^2-8\) is in its vertex form, and we can easily see the parabola's vertex: \((-1,8)\text{.}\)

  • Factored Form: \(f(x)=a(x+b)(x+c)\text{.}\) For example, the quadratic function \(q(x)=2(x+3)(x-1)\) is in its factored form, and we can easily see the parabola's \(x\)-intercepts: \((-3,0)\) and \((1,0)\text{.}\)

Subsection12.2.6Shifting Parabolas

Figure12.2.19Alternative Video Lesson

Let's locate the vertices (plural form of "vertex") of \(f(x)=x^2\text{,}\) \(g(x)=x^2+1\) and \(h(x)=x^2-2\text{,}\) and then graph them. We will write them in the vertex form:

\begin{align*} f(x)\amp=(x-0)^2+0\amp\text{vertex: }(0,0)\\ g(x)\amp=(x-0)^2+1\amp\text{vertex: }(0,1)\\ h(x)\amp=(x-0)^2-2\amp\text{vertex: }(0,-2) \end{align*}

Now let's look at their graphs:

<<SVG image is unavailable, or your browser cannot render it>>

Figure12.2.20Graph of \(f(x), g(x)\) and \(h(x)\)

Next, we will locate the vertices of \(f(x)=x^2\text{,}\) \(p(x)=(x+1)^2\) and \(q(x)=(x-2)^2\text{,}\) and then graph them.

\begin{align*} f(x)\amp=(x-0)^2+0\amp\text{vertex: }(0,0)\\ p(x)\amp=(x+1)^2+0\amp\text{vertex: }(-1,0)\\ q(x)\amp=(x-2)^2+0\amp\text{vertex: }(2,0) \end{align*}

Now let's look at their graphs:

<<SVG image is unavailable, or your browser cannot render it>>

Figure12.2.21Graph of \(f(x), p(x)\) and \(q(x)\)

We can summarize some rules about shifting graphs:

  • To graph \(g(x)=x^2+a\text{,}\) where \(a\gt0\text{,}\) we shift the graph of \(f(x)=x^2\) up by \(a\) units.

  • To graph \(h(x)=x^2-a\text{,}\) where \(a\gt0\text{,}\) we shift the graph of \(f(x)=x^2\) down by \(a\) units.

  • To graph \(p(x)=(x+a)^2\text{,}\) where \(a\gt0\text{,}\) we shift the graph of \(f(x)=x^2\) to the left by \(a\) units.

  • To graph \(q(x)=(x-a)^2\text{,}\) where \(a\gt0\text{,}\) we shift the graph of \(f(x)=x^2\) to the right by \(a\) units.

Subsection12.2.7Exploring Quadratic Functions with Graphing Device

In real life, engineers don't use paper pencil to solve math application problems. Let's see how to explore quadratic functions with graphing technology.

Example12.2.22

A missile was detected flying toward a target. It's height, in meters, can be modeled by the quadratic equation \(h(t)=-0.8t^2+132t+2718.2\text{,}\) where \(t\) is the number of seconds since the missile was detected. Use graphing technology to answer the following questions. Make sure to use function notation when needed.

  1. When the missile was detected, how high was it flying?

  2. Use a table to list the missile's height within the first \(10\) seconds since it was detected.

  3. What was the missile's height \(60\) seconds since it was detected?

  4. What's the maximum height the missile will reach?

  5. After how many seconds will the missile hit its target on the ground?

  6. When was the missile \(8,000\) meters high?

  7. By the time the missile hit its target, how long has it traveled since being launched?

Solution

With graphing technology, and after adjusting the window settings, we can see the graph of the function \(h(t)=-0.8t^2+132t+2718.2\) and some critical points.

<<SVG image is unavailable, or your browser cannot render it>>

Figure12.2.23Graph of \(h(t)=-0.8t^2+132t+2718.2\)

Now we can answer questions based on information in the graph.

  1. When the missile was detected, how high was it flying?

    By the given information, \(t=0\) when the missile was detected. The \(y\)-intercept in the graph is \((0,2718.2)\text{,}\) so the missile was \(2718.2\) meters high at that moment.

  2. Use a table to list the missile's height within the first \(10\) seconds since it was detected.

    Graphing technology can show a table of values for the function. Once we change the starting value to \(0\) and the step increase to \(1\text{,}\) we should see the following table of values:

    \(t\) \(h(t)\)
    \(0\) \(2718.2\)
    \(1\) \(2849.4\)
    \(2\) \(2979\)
    \(3\) \(3107\)
    \(4\) \(3233.4\)
    \(5\) \(3358.2\)
    \(6\) \(3481.4\)
    \(7\) \(3603\)
    \(8\) \(3723\)
    \(9\) \(3841.4\)
    \(10\) \(3958.2\)
  3. What was the missile's height \(60\) seconds since it was detected?

    In the function \(h(t)=-0.8t^2+132t+2718.2\text{,}\) \(t\) stands for time in seconds since the missile was detected. We substitute \(t=60\) into the function, and the graphing calculator shows the point \((60,7758.2)\text{,}\) which implies the missile was \(7758.2\) meters high \(60\) seconds since it was detected.

  4. What's the maximum height the missile will reach?

    The parabola's vertex is at \((82.5,8163.2)\text{.}\) This implies, \(82.5\) seconds since the missile was detected, it would reach its maximum height of \(8163.2\) meters.

  5. After how many seconds will the missile hit its target on the ground?

    The parabola's right-side \(x\)-intercept is at \((183.515,0)\text{.}\) This implies the missile will fall back to the ground (hitting its target) \(183.515\) seconds since it was detected.

  6. When was the missile \(8,000\) meters high?

    To find when the missile was \(8,000\) meters high, we are asking: "What was \(t\)'s value when \(h(t)=8000\text{?}\)" We need to graph an additional horizontal line to find this information:

    <<SVG image is unavailable, or your browser cannot render it>>

    Figure12.2.25Graph of \(h(t)=-0.8t^2+132t+2718.2\) with \(y=8000\)

    According to the graph, the missile was \(8000\) meters high twice during its flight: \(68.22\) seconds and \(96.78\) seconds since it was detected.

  7. By the time the missile hit its target, how long has it traveled since being launched?

    The right-side \(x\)-intercept, \((183.515,0)\text{,}\) represents the point when the missile hit its target; while the left-side \(x\)-intercept, \((-18.515,0)\text{,}\) represents the point when the missile was launched. The difference between their \(x\)-values is the time of the missile's complete flight. So the missile traveled a total of \(183.515-(-18.515)=202.3\) seconds.

Subsection12.2.8Exercises

Solving Quadratic Equations by Completing the Square

1
2
3
4
5
6
7
8
9

Quadratic Function in Vertex Form

10
11
12
13
14
15
16
17
18
19

Domain and Range of Quadratic Functions

20
21
22
23

A Second Method to Convert to Vertex Form

24
25
26
27
28
29

Three Forms of Quadratic Functions

30
31
32
33
34
35

Shifting Parabolas

36
37
38
39
40
41

Graphing Device Exercises

42
43
44
45
46
47
48
49
50