In the previous section, you learned that it is a simple task to sketch the graph of a quadratic function if it is presented in vertex form \[f(x)=a(x-h)^+k \nonumber \] The goal of the current section is to start with the most general form of the quadratic function, namely \[f(x)=a x^+b x+c \nonumber \] and manipulate the equation into vertex form. Once you have your quadratic function in vertex form, the technique of the previous section should allow you to construct the graph of the quadratic function. However, before we turn our attention to the task of converting the general quadratic into vertex form, we need to review the necessary algebraic fundamentals. Let’s begin with a review of an important algebraic shortcut called squaring a binomial.
A monomial is a single algebraic term, usually constructed as a product of a number (called a coefficient) and one or more variables raised to nonnegative integral powers, such as \(-3 x^<2>\) or 14\(y^ z^\). The key phrase here is “single term.” A binomial is an algebraic sum or difference of two monomials (or terms), such as \(x+2 y\) or \(3 a b^<2>-2 c^\). The key phrase here is “two terms.” To “square a binomial,” start with an arbitrary binomial, such as a+b, then multiply it by itself to produce its square (a + b)(a + b), or, more compactly, \((a+b)^<2>\). We can use the distributive property to expand the square of the binomial a + b. \[\begin(a+b)^ <2>&=(a+b)(a+b) \\ &=a(a+b)+b(a+b) \\ &=a^<2>+a b+b a+b^ <2>\end \nonumber \] Because ab = ba, we can add the two middle terms to arrive at the following property.2>
We could proceed as follows. \[\begin(x+4)^ &=(x+4)(x+4) \\ &=x(x+4)+4(x+4) \\ &=x^+4 x+4 x+16 \\ &=x^+8 x+16 \end \] Although correct, this technique will not help us with our upcoming task. What we need to do is follow the algorithm suggested by Property 3.
Thus, to expand \((x + 4)^2\), we should proceed as follows.
Proceeding in this manner allows us to perform the expansion mentally and simply write down the solution.
Here are a few more examples. In each, we’ve written an extra step to help clarify the procedure. In practice, you should simply write down the solution without any intermediate steps.
It is imperative that you master this shortcut before moving on to the rest of the material in this section.
Once you’ve mastered squaring a binomial, as in
it’s a simple matter to identify and factor trinomials (three terms) having the form \(a^+2 a b+b^\). You simply “undo” the multiplication. Whenever you spot a trinomial whose first and third terms are perfect squares, you should suspect that it factors as follows.
A trinomial that factors according to this rule or pattern is called a perfect square trinomial.
For example, the first and last terms of the following trinomial are perfect squares.
\[x^+16 x+64 \nonumber \]
The square roots of the first and last terms are x and 8, respectively. Hence, it makes sense to try the following.
It is important that you check your result using multiplication. So, following the three-step algorithm for squaring a binomial:
Hence, \(x^2 + 16x + 64\) is a perfect square trinomial and factors as \((x + 8)^2\).
As another example, consider \(x^2 − 10x + 25\). The square roots of the first and last terms are x and 5, respectively. Hence, it makes sense to try
Again, you should check this result. Note especially that twice the product of x and −5 equals the middle term on the left, namely, −10x.
If a quadratic function is given in vertex form, it is a simple matter to sketch the parabola represented by the equation. For example, consider the quadratic function
which is in vertex form. The graph of this equation is a parabola that opens upward. It is translated 2 units to the left and 3 units upward. This is the advantage of vertex form. The transformations required to draw the graph of the function are easy to spot when the equation is written in vertex form.
It’s a simple matter to transform the equation \(f(x) = (x + 2)^2 + 3\) into the general form of a quadratic function, \(f(x) = ax^2 + bx + c\). We simply use the three-step algorithm to square the binomial; then we combine like terms.
Note, however, that the result of this manipulation, \(f(x) = x^2 + 4x+ 7\), is not as useful as vertex form, as it is difficult to identify the transformations required to draw the parabola represented by the equation \(f(x) = x^2 + 4x + 7\).
It’s really the reverse of the manipulation above that is needed. If we are presented with an equation in the form \(f(x) = ax^2 + bx + c\), such as \(f(x) = x^2 + 4x + 7\), then an algebraic method is needed to convert this equation to vertex form \(f(x) = a(x−h)^2+k\); or in this case, back to its original vertex form \(f(x) = (x + 2)^2 + 3\).
The procedure we seek is called completing the square. The name is derived from the fact that we need to “complete” the trinomial on the right side of \(y = x^2 + 4x + 7\) so that it becomes a perfect square trinomial.
The procedure for completing the square involves three key steps.
Let’s follow this procedure and place \(f(x) = x^2 + 4x + 7\) in vertex form.
\[f(x)=\left(x^+4 x+4\right)-4+7 \nonumber \]
Now factor the perfect square trinomial and combine the constants at the end to get
That’s it, we’re done! We’ve returned the general quadratic \(f(x) = x^2 + 4x + 7\) back to vertex form \(f(x) = (x + 2)^2 + 3\).
Let’s try that once more.
Place the quadratic function \(f(x) = x^2 − 8x − 9\) in vertex form.
We follow the three-step algorithm for completing the square.
Factor the perfect square trinomial and combine the coefficients at the end.
Now, let’s see how we can use the technique of completing the square to help in drawing the graphs of general quadratic functions.
The examples in this section will have the form \(f(x) = x^2 + bx + c\). Note that the coefficient of \(x^2\) is 1. In the next section, we will work with a harder form, \(f(x) = ax^2 + bx + c\), where \(a \neq 1\).
Complete the square to place \(f(x) = x^2 + 6x + 2\) in vertex form and sketch its graph.
First, take half of the coefficient of x and square; i.e., \([(1/2)(6)]^2 = 9\). On the right side of the equation, add and subtract this amount so as to not change the equation.
Group the first three terms on the right-hand side.
\[f(x)=\left(x^+6 x+9\right)-9+2 \nonumber \]
The first three terms on the right-hand side form a perfect square trinomial that is easily factored. Also, combine the constants at the end.
This is a parabola that opens upward. We need to shift the parabola 3 units to the left and then 7 units downward, placing the vertex at (−3, −7) as shown in Figure \(\PageIndex\)(a). The axis of symmetry is the vertical line x = −3. The table in Figure \(\PageIndex\)(b) calculates two points to the right of the axis of symmetry, and mirror points on the left of the axis of symmetry make for an accurate plot of the parabola.
Let’s look at another example.
Complete the square to place \(f(x) = x^2 − 8x + 21\) in vertex form and sketch its graph.
First, take half of the coefficient of x and square; i.e., \([(1/2)(−8)]^2 = 16\). On the right side of the equation, add and subtract this amount so as to not change the equation.
\[f(x)=x^-8 x+16-16+21 \nonumber \]
Group the first three terms on the right-hand side of the equation.
\[f(x)=\left(x^-8 x+16\right)-16+21 \nonumber \]
The first three terms form a perfect square trinomial that is easily factored. Also, combine constants at the end.
This is a parabola that opens upward. We need to shift the parabola 4 units to the right and then 5 units upward, placing the vertex at (4, 5), as shown in Figure \(\PageIndex\)(a). The table in Figure \(\PageIndex\)(b) calculates two points to the right of the axis of symmetry, and mirror points on the left of the axis of symmetry make for an accurate plot of the parabola.
In the last two examples, the coefficient of \(x^2\) was 1. In this section, we will learn how to complete the square when the coefficient of \(x^2\) is some number other than 1.
Complete the square to place \(f(x)=2 x^+4 x-4\) in vertex form and sketch its graph.
In the last two examples, we gained some measure of success when the coefficient of \(x^2\) was a 1. We were just getting comfortable with that situation and we’d like to continue to be comfortable, so let’s start by factoring a 2 from each term on the right-hand side of the equation.
\[f(x)=2\left[x^+2 x-2\right] \nonumber \]
If we ignore the factor of 2 out front, the coefficient of \(x^2\) in the trinomial expression inside the parentheses is a 1. Ah, familiar ground! We will proceed as we did before, but we will carry the factor of 2 outside the parentheses in each step. Start by taking half of the coefficient of x and squaring the result; i.e., \([(1/2)(2)]^2 = 1\).
Add and subtract this amount inside the parentheses so as to not change the equation.
\[f(x)=2\left[x^+2 x+1-1-2\right] \nonumber \]
Group the first three terms inside the parentheses and combine constants.
\[f(x)=2\left[\left(x^+2 x+1\right)-3\right] \nonumber \]
The grouped terms inside the parentheses form a perfect square trinomial that is easily factored.
Finally, redistribute the 2.
This is a parabola that opens upward. In addition, it is stretched by a factor of 2, so it will be somewhat narrower than our previous examples. The parabola is also shifted 1 unit to the left, then 6 units downward, placing the vertex at (−1, −6), as shown in Figure \(\PageIndex\)(a). The table in Figure \(\PageIndex\)(b) calculates two points to the right of the axis of symmetry, and mirror points on the left of the axis of symmetry make for an accurate plot of the parabola.
Let’s look at an example where the coefficient of \(x^2\) is negative.
Complete the square to place \(f(x) = −x^2 + 6x − 2\) in vertex form and sketch its graph.
In the last example, we factored out the coefficient of \(x^2\). This left us with a trinomial having leading coefficient 1, which enabled us to proceed much as we did before: halve the middle coefficient and square, add and subtract this amount, factor the resulting perfect square trinomial. Since we were successful with this technique in the last example, let’s begin again by factoring out the leading coefficient, in this case a −1.
\[f(x)=-1\left[x^-6 x+2\right] \nonumber \]
If we ignore the factor of −1 out front, the coefficient of \(x^2\) in the trinomial expression inside the parentheses is a 1. Again, familiar ground! We will proceed as we did before, but we will carry the factor of −1 outside the parentheses in each step. Start by taking half of the coefficient of x and squaring the result; i.e., \([(1/2)(−6)]^2 = 9\).
Add and subtract this amount inside the parentheses so as to not change the equation.
\[f(x)=-1\left[x^-6 x+9-9+2\right] \nonumber \]
Group the first three terms inside the parentheses and combine constants.
\[f(x)=-1\left[\left(x^-6 x+9\right)-7\right] \nonumber \]
The grouped terms inside the parentheses form a perfect square trinomial that is easily factored.
Finally, redistribute the −1.
This is a parabola that opens downward. The parabola is also shifted 3 units to the right, then 7 units upward, placing the vertex at (3, 7), as shown in Figure \(\PageIndex\)(a). The table in Figure \(\PageIndex\)(b) calculates two points to the right of the axis of symmetry, and mirror points on the left of the axis of symmetry make for an accurate plot of the parabola.
Let’s try one more example.
Complete the square to place \(f(x) = 3x^2 + 4x − 8\) in vertex form and sketch its graph.
Let’s begin again by factoring out the leading coefficient, in this case a 3.
Fractions add a degree of difficulty, but, if you follow the same routine as in the previous examples, you should be able to get the needed result. Take half of the coefficient of x and square the result; i.e., \([(1/2)(4/3)]^2 = [2/3]^2 = 4/9\).
Add and subtract this amount inside the parentheses so as to not change the equation.
Group the first three terms inside the parentheses. You’ll need a common denominator to combine constants.
The grouped terms inside the parentheses form a perfect square trinomial that is easily factored.
Finally, redistribute the 3.
This is a parabola that opens upward. It is also stretched by a factor of 3, so it will be narrower than all of our previous examples. The parabola is also shifted 2/3 units to the left, then 28/3 units downward, placing the vertex at (−2/3, −28/3), as shown in Figure \(\PageIndex\)(a). The table in Figure \(\PageIndex\)(b) calculates two points to the right of the axis of symmetry, and mirror points on the left of the axis of symmetry make for an accurate plot of the parabola.
In Exercises 1-8, expand the binomial.
Answer