Section 9.2 Applying Transformations
In Section 9.1, we learned how to determine what transformations were applied to a function. In this section, we will go backwards: we tell you what tranformations need to be applied, and you have to apply them to the function. It's important to note that Table 9.4 will still be very helpful in organizing the information! Specifically, you need to still think about three key things:
Where does the transformation go/what direction is it going in? Vertical transformations are applied to the outputs, and horizontal transformations are applied to the inputs.
What kind of transformation/operation is being applied? Shifts involve adding or subtracting, scales involve multiplying or dividing by a positive number, and reflections involve multiplying by \(-1\text{.}\)
Horizontal transformations act backwards from what we expect.
Example 9.9.
Suppose the graph of \(g(x)\) is the same as \(f(x)\text{,}\) but shifted up by 2 and stretched horizontally by 7. Write the formula for \(g(x)\) in terms of \(f(x)\text{.}\)
When the question asks for the equation "in terms of" \(f(x)\text{,}\) that means that you are just applying it to the function notation. There should still be the letter \(f\) in your answer, and there is no explicit formula for \(f(x)\) that you need to worry about.
So, the key to this problem is to figure out how each transformation changes the function notation:
-
Shifting up by 2:
Up is vertical, so this is applied to the outside.
Shifts are adding/subtracting.
We will add 2 to the outside of the function.
-
Stretching horizontally by 7:
Horizontally is applied to the inside.
Stretch is a scale, so we are multiplying or dividing.
Remember: horizontal transformations are backwards! So, we will divide the inputs by 7.
We put this all together to get the final answer: \(g(x)=f\left(\frac{x}{7}\right)+2\text{,}\) which can also be written as \(g(x)=f\left(\frac{1}{7}x\right)+2\text{.}\)
Checkpoint 9.10.
Suppose the graph of \(g(x)\) is the same as \(f(x)\text{,}\) but shifted left by 5 and flipped vertically over the \(x\)-axis. Write the formula for \(g(x)\) in terms of \(f(x)\text{.}\)
\(g(x)=-f(x+5)\)
The key to this problem is to figure out how each transformation changes the function notation:
-
Shifting left by 5:
Left is horizontal, so this is applied to the inside.
Shifts are adding/subtracting.
Remember: horizontal transformations are backwards! So, we will add 5 to the inputs, since left is in the negative \(x\)-direction.
-
Vertical flip:
Vertical is applied to the outside.
Flipping involves multiplying by \(-1\text{.}\)
So, we will multiply the outside by \(-1\text{.}\)
We put this all together to get the final answer: \(g(x)=-f(x+5)\text{.}\)
Just as we saw with identifying transformations, we could either have questions where we are just working with function notation, or where we have explicit formulas for the functions. Let's see an example of applying transformations to a function when you are given explicit formulas.
Example 9.11.
Suppose \(f(x)=4x^3-7x^2+5x-3\text{,}\) and the graph of \(g(x)\) is the same as \(f(x)\text{,}\) but shifted to the left by 2 and up by 9. Write the formula for \(g(x)\text{,}\) but do not simplify your answer.
Just like before, we need to figure out how each transformation changes the formula:
-
Shifting left by 2:
Left is horizontal, so this is applied to the inside.
Shifts are adding/subtracting.
Remember: horizontal transformations are backwards! So, we will add 2 to the inputs, since left is in the negative \(x\)-direction.
-
Shifting up by 9:
Vertical is applied to the outside.
Shifts are adding/subtracting.
So, we will add \(9\) to the outside.
At this point, we should write the function notation like we did when we didn't have an explicit formula. This makes it a lot easier to know how to change the formula later. In this case, our function notation is
Now that we know how the transformations affect the formula, we are ready to apply it to the formula we were given for \(f(x)\text{.}\) Often, the hardest part of this question is keeping all of the parentheses in the right place for the inputs. So, we are going to use the trick from Section 2.1, where we replace the original inputs with empty parentheses before we plug in the new inputs:
At this point, we are done with the question. Since we were told not to simplify our answer, we are not going to distribute any of the parentheses. We could combine the \(-3\) and \(9\text{,}\) because that is a very small step. However, it is still possible to make an arithmetic error when doing that. So, unless we are told to simplify, we should not do any simplification and just leave our answer exactly as it is.
Checkpoint 9.12.
Suppose \(f(x)=2x^4-5x^2+8\text{,}\) and the graph of \(g(x)\) is the same as \(f(x)\) but vertically stretched by 2, horizontally stretched by 6, and vertically flipped over the \(x\)-axis. Write the formula for \(g(x)\text{,}\) but do not simplify your answer.
\(g(x)=-2\left(2\left(\frac{x}{6}\right)^4-5\left(\frac{x}{6}\right)^2+8\right)\)
We need to figure out how each transformation changes the formula:
-
Vertical stretch by 2:
Vertical is applied to the outside.
Stretch is a scale, so we are multiplying/dividing.
We will multiply by 2 on the outside.
-
Horizontal stretch by 6:
Horizontal is applied to the inside.
Stretch is a scale, so we are multiplying/dividing.
Remember: horizontal transformations are backwards! So, to make the graph bigger horizontally, we will divide by 6 on the inside.
-
Vertical flip:
Vertical is applied to the outside.
Flipping involves multiplying by \(-1\text{.}\)
So, we will multiply the outside by \(-1\text{.}\)
At this point, we should write the function notation like we did when we didn't have an explicit formula. This makes it a lot easier to know how to change the formula later. In this case, our function notation is
Now that we know how the transformations affect the formula, we are ready to apply it to the formula we were given for \(f(x)\text{,}\) using empty parentheses to help us with our substitution: