Shifts
Learning Outcomes
- Graph functions using vertical and horizontal shifts.

A General Note: 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: 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 2 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.
Answer:
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.
Notice that 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.
0 | 8 | 10 | 17 | 19 | 24 | |
0 | 0 | 220 | 220 | 0 | 0 | |
20 | 20 | 240 | 240 | 20 | 20 |
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: Shifting a Tabular Function Vertically
A function is given below. Create a table for the function .2 | 4 | 6 | 8 | |
1 | 3 | 7 | 11 |
Answer: 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 .
2 | 4 | 6 | 8 | |
1 | 3 | 7 | 11 | |
−2 | 0 | 4 | 8 |
Analysis of the Solution
As with the earlier vertical shift, notice the input values stay the same and only the output values change.Identifying Horizontal Shifts
We just saw that the vertical shift is a change to the output, or outside, of the function. We will now look at how changes to input, on the inside of the function, change its graph and meaning. A shift to the input results in a movement of the graph of the function left or right in what is known as a horizontal shift.
A General Note: Horizontal Shift
Given a function , a new function , where is a constant, is a horizontal shift of the function . If is positive, the graph will shift right. If is negative, the graph will shift left.Example: Adding a Constant to an Input
Returning to our building airflow example from Example 2, suppose that in autumn the facilities manager decides that the original venting plan starts too late, and wants to begin the entire venting program 2 hours earlier. Sketch a graph of the new function.Answer: We can set to be the original program and to be the revised program.
\begin{align}{c}V\left(t\right)&=\text{ the original venting plan}\\ F\left(t\right)&=\text{starting 2 hrs sooner}\end{align}
In the new graph, at each time, the airflow is the same as the original function was 2 hours later. For example, in the original function , the airflow starts to change at 8 a.m., whereas for the function , the airflow starts to change at 6 a.m. The comparable function values are . Notice also that the vents first opened to at 10 a.m. under the original plan, while under the new plan the vents reach at 8 a.m., so .
Analysis of the Solution
Note that has the effect of shifting the graph to the left. Horizontal changes or "inside changes" affect the domain of a function (the input) instead of the range and often seem counterintuitive. The new function uses the same outputs as , but matches those outputs to inputs 2 hours earlier than those of . Said another way, we must add 2 hours to the input of to find the corresponding output for .Example: Identifying a Horizontal Shift of a Toolkit Function
This graph represents a transformation of the toolkit function . Relate this new function to , and then find a formula for .
Answer: Notice that the graph is identical in shape to the function, but the -values are shifted to the right 2 units. The vertex used to be at (0,0), but now the vertex is at (2,0). The graph is the basic quadratic function shifted 2 units to the right, so
Notice how we must input the value to get the output value ; the -values must be 2 units larger because of the shift to the right by 2 units. We can then use the definition of the function to write a formula for by evaluating .
Analysis of the Solution
To determine whether the shift is or , consider a single reference point on the graph. For a quadratic, looking at the vertex point is convenient. In the original function, . In our shifted function, . To obtain the output value of 0 from the function , we need to decide whether a plus or a minus sign will work to satisfy . For this to work, we will need to subtract 2 units from our input values.Try It
Online graphing calculators can graph transformations using function notation. Use an online graphing calculator to graph the toolkit function Now, enter , and in the next two lines. Now have the online graphing calculator make a table of values for the original function. Include integer values on the interval . Replace the column labeled with . Now replace with , and . What are the corresponding functions associated with the transformations you have graphed?Answer: You have graphed the following transformations: