Theorems 1.2, 1.3, 2.1, 3.1, 4.1 and 4.4 all describe ways in which the graph of a function can changed, or `transformed' to obtain the graph of a related function. The results and proofs of each of these theorems are virtually identical, and with the language of function composition, we can see better why.
Consider, for instance, Theorem 4.4, in which we describe how to transform the graph of to . We may think of as being build up from by composing with linear functions. Specifically, if we let , then . If, additionally, we let and , then . Hence, we can view .
In this section, our goal is to generalize the aforementioned theorems to the graphs of all functions. Along the way, you'll see some very familiar arguments, but, additionally, we hope this section affords the reader an opportunity to not only see how these transformations work they way they do, but why.
Our motivational example for the results in this section is the graph of below. While we could formulate an expression for as a piecewise-defined function consisting of linear and constant parts, we wish to focus more on the geometry here. That being said, we do record some of the function values - the `key points' if you will - to track through each transformation.
Figure 5.49
Vertical and Horizontal Shifts
Suppose we wished to graph . From a procedural point of view, we start with an input to the function and we obtain the output . The function takes the output and adds to it. Using the sample values for from the table above we can create a table of values for below, hence generating points on the graph of .
In general, if is on the graph of , then . Hence, , so the point is on the graph of . In other words, to obtain the graph of , we add to the -coordinate of each point on the graph of .
Geometrically, adding to the -coordinate of a point moves the point units above its previous location. Adding to every -coordinate on a graph en masse is moves or `shifts' the entire graph of up units. Notice that the graph retains the same basic shape as before, it is just units above its original location. In other words, we connect the four `key points' we moved in the same manner in which they were connected before.
Figure 5.50
Figure 5.51
You'll note that the domain of and the domain of are the same, namely , but that the range of is while the range of is . In general, shifting a function vertically like this will leave the domain unchanged, but could very well affect the range.
You can easily imagine what would happen if we wanted to graph the function . Instead of adding to each of the -coordinates on the graph of , we'd be subtracting . Geometrically, we would be moving the graph down units. We leave it to the reader to verify that the domain of is the same as , but the range of is . In general, we have:
To prove Theorem 5.6, we first note that and have the same domain (why?) Let be an element in the domain of and, hence, the domain of . The fact that and are functions guarantees there is exactly one point on each of their graphs corresponding to . On , this point is ; on , this point is . This sets up a nice correspondence between the two graphs and shows that each of the points on the graph of can be obtained to by adding to each of the -coordinates of the corresponding point on the graph of . This proves Theorem 5.6. In the language of `inputs' and `outputs', Theorem 5.6 says adding to the output of a function causes the graph to shift vertically.
Keeping with the graph of above, suppose we wanted to graph . In other words, we are looking to see what happens when we add to the input of the function. Let's try to generate a table of values of based on those we know for . We quickly find that we run into some difficulties. For instance, when we substitute into the formula , we are asked to find which doesn't exist because the domain of is only . The same thing happens when we attempt to find .
What we need here is a new strategy. We know, for instance, . To determine the corresponding point on the graph of , we need to figure out what value of we must substitute into so that the quantity , works out to be . Solving gives , and so on the graph of . To use the fact , we set to get . Substituting gives . Continuing in this fashion, we produce the table below.
In summary, the points , , and on the graph of give rise to the points , , and on the graph of , respectively. In general, if is on the graph of , then . Solving gives so that . As such, is on the graph of . The point is exactly units to the left of the point so the graph of is obtained by shifting the graph to the left units, as pictured below.
Figure 5.52
Figure 5.53
Note that while the ranges of and are the same, the domain of is whereas the domain of is . In general, when we shift the graph horizontally, the range will remain the same, but the domain could change. If we set out to graph , we would find ourselves adding
to all of the values of the points on the graph of to effect a shift to the right
units. Generalizing these notions produces the following result.
To prove Theorem 5.7, we first note the domains of and may be different. If is in the domain of , then the only number we know for sure is in the domain of is , since . This sets up a nice correspondence between the domain of and the domain of which spills over to a correspondence between their graphs, The point is the one and only point on the graph of corresponding to just as the point is the one and only point on the graph of corresponding to . This correspondence shows we may obtain the graph of by adding to each -coordinate of each point on the graph of , which establishes the theorem. In words, Theorem 5.7 says that subtracting from the input to a function amounts to shifting the graph horizontally.
Theorems 5.6 and 5.7 present a theme which will run common throughout the section: changes to the outputs from a function result in some kind of vertical change; changes to the inputs to a function result in some kind of horizontal change. We demonstrate Theorems 5.6 and 5.7 in the example below.
Reflections about the Coordinate Axes
We now turn our attention to reflections. We know from Section A.3 that to reflect a point across the -axis, we replace with . If is on the graph of , then , so replacing with is the same as replacing with . Hence, the graph of is the graph of reflected across the -axis. Similarly, the graph of is the graph of reflected across the -axis.1
The proof of Theorem 5.8 follows in much the same way as the proofs of Theorems 5.6 and 5.7. If is an element of the domain of and , then the point corresponds to the point . Comparing the corresponding points and , we see they only difference is the -coordinates are the exact opposite - indicating they are mirror-images across the -axis. Similarly, if is an element in the domain of , then corresponds to the element in the domain of since . Hence, the corresponding points here are and . Comparing with , we see they are reflections about the -axis.
Using the language of inputs and outputs, Theorem 5.8 says that multiplying the outputs from a function by reflects its graph across the horizontal axis, while multiplying the inputs to a function by reflects the graph across the vertical axis.
Applying Theorem 5.8 to the graph of given at the beginning of the section, we can graph by reflecting the graph of about the -axis.
Figure 5.67
Figure 5.68
By reflecting the graph of across the -axis, we obtain the graph of .
Figure 5.69
Figure 5.70
Some remarks about Example 5.4.2 are in order. In number above, to find a point on the graph of , we took the given -coordinate on our starting graph, , and subtracted first then multiplied by . If this seems somehow `backwards' it should.
When evaluating the expression , the order of operations mandates we multiply by first then add . Here, however, we weren't evaluating an expression - we were solving an equation: , which meant we did the exact opposite steps in the opposite order.4 This exemplifies a larger theme with transformations: when adjusting inputs, the resulting points on the graph are obtained by applying the opposite operations indicated by the formula in the opposite order of operations.
On the other hand, when it came to multiple transformations involving the -coordinates, we followed the order of operations. As in above, when it came to applying a reflection about the -axis and a vertical shift, we applied the reflection first, then the shift. This is because instead of solving an equation to find the new -coordinates, we were simplifying an expression. Again, this is an example of a much larger theme: when adjusting outputs, the resulting points on the graph are obtained by applying the stated operations in the usual order.
Last but not least, in number, to find in terms of , we reversed the steps used to transform into . Another tact is to approach the problem in the same way we approached transforming into : namely, starting with the graph of , determine values and and signs so that . We leave this to the reader.
Scalings
We now turn our attention to our last class of transformations: scalings. A thorough discussion of scalings can get complicated because they are not as straight-forward as the previous transformations. A quick review of what we've covered so far, namely vertical shifts, horizontal shifts and reflections, will show you why those transformations are known as rigid transformations.
Simply put, rigid transformations preserve the distances between points on the graph - only their position and orientation in the plane change.5 If, however, we wanted to make a new graph twice as tall as a given graph, or one-third as wide, we would be affecting the distance between points. These sorts of transformations are hence called non-rigid. As always, we motivate the general theory with an example.
Suppose we wish to graph the function where is the function whose graph is given at the beginning of the section. From its graph, we can build a table of values for as before.
Figure 5.87
Graphing, we get:
Figure 5.88
Figure 5.89
In general, if is on the graph of , then so that puts on the graph of . In other words, to obtain the graph of , we multiply all of the -coordinates of the points on the graph of by . Multiplying all of the -coordinates of all of the points on the graph of by causes what is known as a `vertical scaling6 by a factor of .'
If we wish to graph , we multiply the all of the -coordinates of the points on the graph of by . This creates a `vertical scaling7 by a factor of ' as seen below.
Figure 5.90
Figure 5.91
These results are generalized in the following theorem.
The proof of Theorem 5.9 mimics the proofs of Theorems 5.6 and 5.8. If is in the domain of , then is on the graph of and the corresponding point on the graph of is . Comparing the points and proves the theorem.
A few remarks about Theorem 5.9 are in order. First, a note about the verbiage. To the authors, the words `stretch', `expansion', and `dilation' all indicate something getting bigger. Hence, `stretched by a factor of ' makes sense if we are scaling something by multiplying it by . Similarly, we believe words like `shrink', `compression' and `contraction' all indicate something getting smaller, so if we scale something by a factor of , we would say it `shrinks by a factor of ' - not `shrinks by a factor of '. This is why we have written the descriptions `stretch by a factor of ' and `shrink by a factor of ' in the statement of the theorem.
Second, in terms of inputs and outputs, Theorem 5.9 says multiplying the outputs from a function by positive number causes the graph to be vertically scaled by a factor of . It is natural to ask what would happen if we multiply the inputs of a function by a positive number. This leads us to our last transformation of the section.
Referring to the graph of given at the beginning of this section, suppose we want to graph . In other words, we are looking to see what effect multiplying the inputs to by has on its graph. If we attempt to build a table directly, we quickly run into the same problem we had in our discussion leading up to Theorem 5.7, as seen in the table on the left below.
We solve this problem in the same way we solved this problem before. For example, if we want to determine the point on which corresponds to the point on the graph of , we set so that . Substituting into , we obtain , so that is on the graph of . Continuing in this fashion, we obtain the table on the lower right.
Table 5.17
In general, if is on the graph of , then . Hence so that is on the graph of . In other words, to graph we divide the -coordinates of the points on the graph of by . This results in a horizontal scaling10 by a factor of .
Figure 5.92
Figure 5.93
If, on the other hand, we wish to graph , we end up multiplying the -coordinates of the points on the graph of by which results in a horizontal scaling11 by a factor of , as demonstrated below.
Figure 5.94
Figure 5.95
We have the following theorem.
The proof of Theorem 5.10 follows closely the spirit of the proof of Theorems 5.7 and 5.8. If is an element of the domain of , them the number corresponds to a domain element of since . Hence, there is a correspondence between the point on the graph of and the point on the graph of . We can obtain by dividing the -coordinate of by and the result follows.
Theorem 5.10 tells us that if we multiply the input to a function by , the resulting graph is scaled horizontally by a factor of . The next example explores how vertical and horizontal scalings sometimes interact with each other and with the other transformations introduced in this section.
Transformations in Sequence
Now that we have studied three basic classes of transformations: shifts, reflections, and scalings, we present a result below which provides one algorithm to follow to transform the graph of into the graph of without the need of using Theorems 5.6, 5.7, 5.8, 5.9 and 5.10 individually.
Theorem 5.11 is the ultimate generalization of Theorems 1.2, 1.3, 2.1, 3.1, 4.1 and 4.4. We note the underlying assumption here is that regardless of the order or number of shifts, reflections and scalings applied to the graph of a function , we can always represent the final result in the form . Since each of these transformations can ultimately be traced back to composing with linear functions,15 this fact is verified by showing compositions of linear functions results in a linear function.16
Theorem 5.11 can be established by generalizing the techniques developed in this section. Suppose is on the graph of . To match up the inputs of and , we solve and solve.
We first add the (causing the horizontal shift) and then divide by . If is a positive number, this induces only a horizontal scaling by a factor of . If , then we have a factor of in play, and dividing by it induces a reflection about the -axis. So we have as the input to which corresponds to the input to .
We now evaluate . We notice that the output from is first multiplied by . As with the constant , if , this induces only a vertical scaling. If , then the induces a reflection across the -axis. Finally, we add to the result, which is our vertical shift.
A less precise, but more intuitive way to paraphrase Theorem 5.11 is to think of the quantity is the `inside' of the function . What's happening inside affects the inputs or -coordinates of the points on the graph of . To find the -coordinates of the corresponding points on , we undo what has been done to in the same way we would solve an equation.
What's happening to the output can be thought of as things happening `outside' the function, . Things happening outside affect the outputs or -coordinates of the points on the graph of . Here, we follow the usual order of operations to simplify the new -value: we first multiply by then add to find the corresponding -coordinates on the graph of .
It needs to be stressed that our approach to handling multiple transformations, as summarized in Theorem 5.11 is only one approach. Your instructor may have a different algorithm. As always, the more you understand, the less you'll ultimately need to memorize, so whatever algorithm you choose to follow, it is worth thinking through each step both algebraically and geometrically.
We make good use of Theorem 5.11 in the following example.
The reader is strongly encouraged to graph the series of functions which shows the gradual transformation of the graph of into the graph of in Example 5.4.4. We have outlined the sequence of transformations in the above exposition; all that remains is to plot the five intermediate stages. Our next example turns the tables and asks for the formula of a function given a desired sequence of transformations.
It is instructive to show that the expression in Example 5.4.4 can be written as .
One way is to compare the graphs of and and work backwards. A more methodical way is to repeat the work of Example 5.4.4, but never substitute the formula for as follows:
Per Theorem 5.6, .
Per Theorem 5.8, .
Per Theorem 5.7, .
Per Theorem 5.10, .
Per Theorem 5.6, .
Per Theorem 5.8, .
Hence . Note we can show is even,18 so and obtain .
At the beginning of this section, we discussed how all of the transformations we'd be discussing are the result of composing given functions with linear functions. Not all transformations, not even all rigid transformations,19 fall into these categories.
For example, consider the graphs of and below.
Figure 5.127
Figure 5.128
In Exercise, we explore a non-linear transformation and revisit the pair of functions and then.
Exercises
Suppose is on the graph of . In Exercises -, use Theorem 5.11 to find a point on the graph of the given transformed function.
The complete graph of is given below. In Exercises -, use it and Theorem 5.11 to graph the given transformed function.
Figure 5.129The graph of for Ex. -
Some of the answers to Exercises - above should be the same. Which ones match up? What properties of the graph of contribute to the duplication?
The function used in Exercises - should look familiar. What is ? How does this this explain some of the duplication in the answers to Exercises - mentioned in Exercise ?
The complete graph of is given below. In Exercises -, use it and Theorem 5.11 to graph the given transformed function.
Figure 5.130The graph of for Ex. -
The complete graph of is given below. In Exercises -, use it and Theorem 5.11 to graph the given transformed function.
Figure 5.131The graph of for Ex. -
The complete graph of is given below.
Figure 5.132The graph of
The purpose of Exercises - is to build up to the graph of one step at a time.
Let . Find a formula for a function whose graph is obtained from from the given sequence of transformations.
(1) shift right 2 units; (2) shift down 3 units
(1) shift down 3 units; (2) shift right 2 units
(1) reflect across the -axis; (2) shift up 1 unit
(1) shift up 1 unit; (2) reflect across the -axis
(1) shift left 1 unit; (2) reflect across the -axis; (3) shift up 2 units
(1) reflect across the -axis; (2) shift left 1 unit; (3) shift up 2 units
(1) shift left 3 units; (2) vertical stretch by a factor of 2; (3) shift down 4 units
(1) shift left 3 units; (2) shift down 4 units; (3) vertical stretch by a factor of 2
(1) shift right 3 units; (2) horizontal shrink by a factor of 2; (3) shift up 1 unit
(1) horizontal shrink by a factor of 2; (2) shift right 3 units; (3) shift up 1 unit
For Exercises -, use the given of to write each function in terms of .
Figure 5.133The graph of for Ex. -.
Figure 5.134
Figure 5.135
Figure 5.136
Figure 5.137
Figure 5.138
Figure 5.139
The graph of is given below on the left and the graph of is given on the right. Find a formula for based on transformations of the graph of . Check your answer by confirming that the points shown on the graph of satisfy the equation .
Figure 5.140Figure 5.141
Show that the composition of two linear functions is a linear function. Hence any (finite) sequence of transformations discussed in this section can be combined into the form given in Theorem 5.11.
(HINT: Let and . Find .)
For many common functions, the properties of Algebra make a horizontal scaling the same as a vertical scaling by (possibly) a different factor. For example, , so a horizontal compression of by a factor of results in the same graph as a vertical stretch of by a factor of .
With the help of your classmates, find the equivalent vertical scaling produced by the horizontal scalings and .
What about and ?
Discuss the following questions with your classmates.
If is even, what happens when you reflect the graph of across the -axis?
If is odd, what happens when you reflect the graph of across the -axis?
If is even, what happens when you reflect the graph of across the -axis?
If is odd, what happens when you reflect the graph of across the -axis?
How would you describe symmetry about the origin in terms of reflections?
We mentioned earlier in the section that, in general, the order in which transformations are applied matters, yet in our first example with two transformations the order did not matter. (You could perform the shift to the left followed by the shift down or you could shift down and then left to achieve the same result.) With the help of your classmates, determine the situations in which order does matter and those in which it does not.
This Exercise is a follow-up to Exercise in Section 1.3.
Fill in the table below.
For each function above, graph and using a graphing utility.
Write a sentence (or two!) explaining how to obtain the graph of from .
How does your explanation relate to Definition 1.9?
For each function above, graph and using a graphing utility.
Write a sentence (or two!) explaining how to obtain the graph of from .
How does your explanation relate to Definition 1.9?
Use the graph of below to graph and .
Figure 5.142
Referring to the functions and graphed on page, write in terms of .
Answers
Figure 5.143
Figure 5.144
Figure 5.145
Figure 5.146
Figure 5.147
Figure 5.148
Figure 5.149
Figure 5.150
Figure 5.151
Figure 5.152
Figure 5.153
Figure 5.154
Figure 5.155
Figure 5.156
Figure 5.157
Figure 5.158
Figure 5.159
Figure 5.160
Figure 5.161
Figure 5.162
Figure 5.163
Figure 5.164
Figure 5.165
Figure 5.166
Figure 5.167
Figure 5.168
Figure 5.169
Figure 5.170
Figure 5.171
Figure 5.172
Figure 5.173
Figure 5.174
Figure 5.175
Figure 5.176
or
To graph from the graph of , reflect about the -axis any portion of the graph of which is below the -axis.
If the graph is below the -axis, then . Since if , we are graphing for these values of which is a reflection across the -axis.
To graph from the graph of , replace the graph of for with the reflection about the -axis of the graph of for .
If , then , so . Since if , , this means we reflect the graph of about the -axis for only.
Figure 5.177Figure 5.178 - note the domain
.
Adapted from Precalculus, Preliminary 4th Edition (integrated calculus), by Carl Stitz and Jeff Zeager (stitz-zeager.com), licensed under CC BY-NC-SA 3.0. Changes were made: reformatted as an accessible XYZ web edition. License: CC-BY-NC-SA-3.0.
These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.