# 1.5.3: Combining Transformations

$$\newcommand{\vecs}{\overset { \rightharpoonup} {\mathbf{#1}} }$$ $$\newcommand{\vecd}{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}{\| #1 \|}$$ $$\newcommand{\inner}{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}{\| #1 \|}$$ $$\newcommand{\inner}{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$$$\newcommand{\AA}{\unicode[.8,0]{x212B}}$$

## Function Graphs: Combined Transformations

How do the different forms of transformations result in the differences between the basic parent functions we have explored and some of the more complex graphs you may have seen? It has likely occurred to you that these individual transformations are not enough to result in such significant differences. How do we then apply the individual transformations so that the more complex graphs may be understood?

## Function Transformations: Combined Transformations

By combining shifts, reflections, and vertical and horizontal stretches and compression, a simple parent function graph can represent a much more advanced function.

Consider the equation y=2(x−3)2+1. We can compare the graph of this function to the graph of the parent y=x2: the graph represents a vertical stretch by a factor of 2, a horizontal shift 3 units to the right, and a vertical shift of 1 unit.

We can use this relationship to graph the function y=2(x−3)2+1. You can start by sketching y=x2 or y=2x2. Then you can shift the graph 3 units to the right, and up 1 unit.

Using your knowledge of the parent function y=|x| and your knowledge of transformations, graph the following function:

f(x)=−|x|+3

The parent graph of this function is the graph of y=|x|, reflected over the x-axis, and shifted up 3 units. The question is: which transformation do you perform first?

We can answer this question if we consider a few key function values. The table below shows several function values for f(x)=−|x|+3:

 x f(x)=−abs(x)+3 -3 −abs(−3)+3=−(+3)+3=−3+3=0 -2 −abs(−2)+3=−(+2)+3=−2+3=1 -1 2 0 3 1 2 3 0

From the function values in the table we can see that the function increases until a vertex at (0, 3), and then it decreases again. This tells us that we can obtain the graph if we first reflect y=|x| over the x-axis (turn the “v” upside down), and then shift the graph up 3 units.

We can also justify this ordering of the transformations of we think about the order of operations. To find any function value we take an x value, find its absolute value, find the negative of that number, and then add 3. This is the same as the order of the transformation: reflection comes before shifting up.

When describing the relationship between a transformed graph and its parent graph, it is important to be careful with the order of operations. Take the graph of f(x)=3(x+7)3+5 and its parent function g(x)=x3.

The graph of f(x)=4(x+8)3−3 is the graph of g(x)=x3, stretched vertically (made narrower) by a factor of 3, shifted 7 units to the left, and then shifted 5 units up.

## Examples

###### Example 1

Graph the function below using your knowledge of the parent function y=|x| and your knowledge of transformations.
g(x)=|−x+3|

Solution

This function represents a horizontal shift of y=|x|, and a reflection over the x-axis. Before graphing, consider a few function values:

 x g(x)=abs(−x+3) -3 abs(−(−3)+3)=abs(3+3)=abs(6)=6 -2 abs(−(−2)+3)=(2+3)=abs(5)=5 0 3 1 2 3 0 4 1

From the values in the table, we can see that the vertex of the graph is at (3, 0). The graph is shown below.

The graph looks the same as the graph of y=|x−3|. This is the case because y=|−x+3|=|−(x−3)|, and because |−a|=|a| for all values of a, then |−(x−3)|=|x−3|. So the original function is equal to |x−3|.

We can still think of this graph as a reflection: if we reflect y=|x| over the x-axis, the graph remains the same, as it is symmetric over the x-axis. Then we shift the graph 3 units to the right. What is important to note here is that in order to “read” the equation as a horizontal shift, the entire expression inside the function (in this case, inside the absolute value) must be negated.

Remember that the key to multiple transformations is to do them in order. Another way to keep track of which operations to do in which order is to just do them in the order they appear in the equation, left to right.

###### Example 2

Sketch the graph of y=−3(x+2)2+4

Solution

Next we stretch by 3:

Shift left by 2:

Finally shift up by 4:

###### Example 3

Sketch the graph of y=−1|x+2|−3

Solution

To sketch y=−1|x+2|−3 start with the parent equation: f(x)=|x| and complete the transformations left to right:

First reflect over the x axis:

Second, shift left by 2:

Finally, shift down by 3:

###### Example 4

Sketch the graph of f(x)=2(x−1)2

Solution

First stretch by 2:

Second, shift right by 1:

###### Example 5

Sketch the graph of $$\ f(x)=-2 \sqrt{x-1}$$

Solution

To sketch the graph of $$\ f(x)=-2 \sqrt{x-1}$$ start with the parent $$\ y=\sqrt{x}$$

First reflect over the x axis:

Second, stretch by 2:

Third, shift right by 1:

## Review

1. What part of the function g(x)=−(f(x)+1)=−(x3+1) shifts the graph of f(x) vertically?
2. What part of the function g(x)=−(f(x)+1) reflects the graph of f(x) across the x-axis?
3. What is different between the functions g(x)=−(x3+1.0) and h(x)=−x3+1.0 that changes the appearance of the graph?
4. Given the function g(x)=3.0(f(x)+2.0)=3.0(x2+2.0), what is it that shifts the graph of f(x) vertically?
1. 3.0
2. x2
3. 2.0
5. Given the function g(x)=3.0(f(x)+2.0)=3.0(x2+2.0), what is it that stretches the graph of f(x) vertically?
1. 3.0
2. x2
3. 2.0
6. What part of the equation k(x)=−(x+1)3 shifts the graph of j(x)=x3 horizontally?
7. What part of the equation k(x)=−(x+1)3 reflects the graph of j(x)=x3 across the x-axis?
8. Given the function g(x)=3.0(f(x)+2.0)=3.0(x+2.0)3, what is it that shifts the graph of f(x) horizontally?
9. Given the function g(x)=3.0(f(x)+2.0)=3.0(x2+2.0)3, what is it that stretches the graph of f(x) vertically?
10. The graph of g(x) is f(x) reflected across the x-axis. The graph of h(x) is f(x) reflected across the y-axis. The graph of j(x) is f(x) reflected across the x-axis and the y-axis. When graphing j(x) does the order in which the reflections occur matter? (Does it matter which axis we reflect the graph across first?)
11. Given the function f(x)=x3, write a function g(x) that is: f(x) reflected across the y-axis and then stretched vertically by 8.
12. How do you transform the graph of: f(x)=x3 so that it looks like the graph of: f(x)=4x3+6?
1. Stretch it by a factor of $$\ 1 \over 4$$ and shift it up 6 units.
2. Stretch it by a factor of 6 and shift it left 4 units.
3. Stretch it by a factor of 4 and shift it down 6 units.
4. Stretch it by a factor of 4 and shift it up 6 units.
13. How do you transform the graph of: $$\ f(x)=\sqrt{x}$$ so that it looks like the graph of: $$\ f(x)=-\sqrt{x}-4$$ ?
1. Reflect it across the x-axis and shift it 4 units down.
2. Reflect it across the y-axis and shift it 4 units up.
3. Reflect it across the x-axis and shift it 4 units up.
4. Reflect it across the y-axis and shift it 4 units down.
14. The graph below is a transformation of a common function. What is the common function that has been transformed?
1. y=|x|
2. y=$$\ \sqrt{x}$$
3. y=x2
4. y=x3
1. How has the function in Q# 14 been transformed?
1. Reflected across the y-axis and shifted right 3 units.
2. Stretched vertically by a factor of 3 and shifted right 1 unit.
3. Reflected across the x-axis and shifted up 3 units.
4. Reflected across the x-axis and shifted left 4 units.
2. Write a function g(x) whose graph looks like the graph of f(x)=|x| reflected across the x-axis and shifted up 1 unit.
3. Choose the function whose graph looks like the graph of f(x)=x3 shifted to the right 2 units and reflected across the y-axis.
1. f(x)=(−x−2)3
2. f(x)=(−x+2)3
3. f(x)=−(x−2)3
4. f(x)=(x−2)3

## Vocabulary

Term Definition
parent function A parent function is the simplest form of a particular type of function. All other functions of this type are usually compared to the parent function.
Transformations Transformations are used to change the graph of a parent function into the graph of a more complex function.