
Graphing Functions Using Vertical and Horizontal Shifts
Identifying Vertical Shifts
One simple kind of transformation involves shifting the entire graph of a function up, down, right, or left. The simplest shift is a vertical shift, moving the graph up or down, because this transformation involves adding a positive or negative constant to the function. In other words, we add the same constant to the output value of the function regardless of the input. For a function , the function
is shifted vertically
units. See Figure 2 for an example.V
Figure 2 Vertical shift by of the cube root function
.
To help you visualize the concept of a vertical shift, consider that . Therefore,
is equivalent to
. Every unit of
is replaced by
, so the
-value increases or decreases depending on the value of
. The result is a shift upward or downward.
Vertical Shift
Given a function , a new function
, where
is a constant, is a vertical shift of the function
. All the output values change by
units. If
is positive, the graph will shift up. If
is negative, the graph will shift down.
Example 1
Adding a Constant to a Function
To regulate temperature in a green building, airflow vents near the roof open and close throughout the day. Figure 3 shows the area of open vents (in square feet) throughout the day in hours after midnight,
. During the summer, the facilities manager decides to try to better regulate temperature by increasing the amount of open vents by 20 square feet throughout the day and night. Sketch a graph of this new function.
Figure 3
Solution
We can sketch a graph of this new function by adding 20 to each of the output values of the original function. This will have the effect of shifting the graph vertically up, as shown in Figure 4.
Figure 4
Notice that in Figure 4 , for each input value, the output value has increased by 20 , so if we call the new function , we could write
This notation tells us that, for any value of can be found by evaluating the function
at the same input and then adding 20 to the result. This defines
as a transformation of the function
, in this case a vertical shift up 20 units. Notice that, with a vertical shift, the input values stay the same and only the output values change. See Table 1.
0 | 8 | 10 | 17 | 19 | 24 | |
0 | 0 | 220 | 220 | 0 | 0 | |
20 | 20 | 240 | 240 | 20 | 20 |
Table 1
HOW TO
Given a tabular function, create a new row to represent a vertical shift.
- Identify the output row or column.
- Determine the magnitude of the shift.
- Add the shift to the value in each output cell. Add a positive value for up or a negative value for down.
Example 2
Shifting a Tabular Function Vertically
A function is given in Table 2. Create a table for the function
.
2 | 4 | 6 | 8 | |
1 | 3 | 7 | 11 |
Table 2
Solution
The formula tells us that we can find the output values of
by subtracting 3 from the output values of
. For example:
Subtracting 3 from each value, we can complete a table of values for
as shown in Table 3 .
2 | 4 | 6 | 8 | |
1 | 3 | 7 | 11 | |
−2 | 0 | 4 | 8 |
Table 3
Analysis
As with the earlier vertical shift, notice the input values stay the same and only the output values change.