
Graphing Functions Using Vertical and Horizontal Shifts
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, shown in Figure 5.
Figure 5 Horizontal shift of the function . Note that
means
, which shifts the graph to the left, that is, towards negative values of
.
For example, if , then
is a new function. Each input is reduced by 2 prior to squaring the function. The result is that the graph is shifted 2 units to the right, because we would need to increase the prio input by 2 units to yield the same output value as given in
.
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 3
Adding a Constant to an Input
Returning to our building airflow Example from Figure 3, 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.
Solution
We can set to be the original program and
to be the revised program.
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
. See Figure 6. 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
.
In both cases, we see that, because starts 2 hours sooner,
. That means that the same output values are reached when
.V
Figure 6
Analysis
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
.
HOW TO
Given a tabular function, create a new row to represent a horizontal shift.
- Identify the input row or column.
- Determine the magnitude of the shift.
- Add the shift to the value in each input cell.
Example 4
Shifting a Tabular Function Horizontally
A function is given in Table 4. Create a table for the function
.
2 | 4 | 6 | 8 | |
1 | 3 | 7 | 11 |
Table 4
Solution
The formula tells us that the output values of
are the same as the output value of
when the input value is 3 less than the original value. For example, we know that
. To get the same output from the function
, we will need an input value that is 3 larger. We input a value that is 3 larger for
because the function takes 3 away before evaluating the function
.
We continue with the other values to create Table 5.
5 | 7 | 9 | 11 | |
2 | 4 | 6 | 8 | |
1 | 3 | 7 | 11 | |
1 | 3 | 7 | 11 |
Table 5
Analysis
Figure 7 represents both of the functions. We can see the horizontal shift in each point.
Figure 7
Example 5
Identifying a Horizontal Shift of a Toolkit Function
Figure 8 represents a transformation of the toolkit function . Relate this new function
to
, and then find a formula for
.
Solution
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
, but now the vertex is at
. 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
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.
Example 6
Interpreting Horizontal versus Vertical Shifts
The function gives the number of gallons of gas required to drive
miles. Interpret
and
.
Solution
can be interpreted as adding 10 to the output, gallons. This is the gas required to drive
miles, plus another 10 gallons of gas. The graph would indicate a vertical shift.
can be interpreted as adding 10 to the input, miles. So this is the number of gallons of gas required to drive 10 miles more than
miles. The graph would indicate a horizontal shift.