We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Study Guides > College Algebra CoRequisite Course

Shifts

Learning Outcomes

  • Graph functions using vertical and horizontal shifts.
One 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 g(x)=f(x)+kg\left(x\right)=f\left(x\right)+k, the function f(x)f\left(x\right) is shifted vertically kk units.
Graph of f of x equals the cubed root of x shifted upward one unit, the resulting graph passes through the point (0,1) instead of (0,0), (1, 2) instead of (1,1) and (-1, 0) instead of (-1, -1) Vertical shift by k=1k=1 of the cube root function f(x)=x3f\left(x\right)=\sqrt[3]{x}.
To help you visualize the concept of a vertical shift, consider that y=f(x)y=f\left(x\right). Therefore, f(x)+kf\left(x\right)+k is equivalent to y+ky+k. Every unit of yy is replaced by y+ky+k, so the y-y\text{-} value increases or decreases depending on the value of kk. The result is a shift upward or downward.

A General Note: Vertical Shift

Given a function f(x)f\left(x\right), a new function g(x)=f(x)+kg\left(x\right)=f\left(x\right)+k, where kk is a constant, is a vertical shift of the function f(x)f\left(x\right). All the output values change by kk units. If kk is positive, the graph will shift up. If kk 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 VV (in square feet) throughout the day in hours after midnight, tt. 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 S(t)S\left(t\right), we could write

S(t)=V(t)+20S\left(t\right)=V\left(t\right)+20

This notation tells us that, for any value of t,S(t)t,S\left(t\right) can be found by evaluating the function VV at the same input and then adding 20 to the result. This defines SS as a transformation of the function VV, 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.
tt 0 8 10 17 19 24
V(t)V\left(t\right) 0 0 220 220 0 0
S(t)S\left(t\right) 20 20 240 240 20 20

How To: Given a tabular function, create a new row to represent a vertical shift.

  1. Identify the output row or column.
  2. Determine the magnitude of the shift.
  3. 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 f(x)f\left(x\right) is given below. Create a table for the function g(x)=f(x)3g\left(x\right)=f\left(x\right)-3.
xx 2 4 6 8
f(x)f\left(x\right) 1 3 7 11

Answer: The formula g(x)=f(x)3g\left(x\right)=f\left(x\right)-3 tells us that we can find the output values of gg by subtracting 3 from the output values of ff. For example:

{f(2)=1Giveng(x)=f(x)3Given transformationg(2)=f(2)3=13=2\begin{cases}f\left(2\right)=1\hfill & \text{Given}\hfill \\ g\left(x\right)=f\left(x\right)-3\hfill & \text{Given transformation}\hfill \\ g\left(2\right)=f\left(2\right)-3\hfill & \hfill \\ =1 - 3\hfill & \hfill \\ =-2\hfill & \hfill \end{cases}

Subtracting 3 from each f(x)f\left(x\right) value, we can complete a table of values for g(x)g\left(x\right).
xx 2 4 6 8
f(x)f\left(x\right) 1 3 7 11
g(x)g\left(x\right) −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.
Graph of f of x equals the cubed root of x shifted left one unit, the resulting graph passes through the point (0,-1) instead of (0,0), (0, 1) instead of (1,1) and (-2, -1) instead of (-1, -1) Horizontal shift of the function f(x)=x3f\left(x\right)=\sqrt[3]{x}. Note that h=+1h=+1 shifts the graph to the left, that is, towards negative values of xx.

For example, if f(x)=x2f\left(x\right)={x}^{2}, then g(x)=(x2)2g\left(x\right)={\left(x - 2\right)}^{2} 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 prior input by 2 units to yield the same output value as given in ff.

A General Note: Horizontal Shift

Given a function ff, a new function g(x)=f(xh)g\left(x\right)=f\left(x-h\right), where hh is a constant, is a horizontal shift of the function ff. If hh is positive, the graph will shift right. If hh 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 V(t)V\left(t\right) to be the original program and F(t)F\left(t\right) 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 VV was 2 hours later. For example, in the original function VV, the airflow starts to change at 8 a.m., whereas for the function FF, the airflow starts to change at 6 a.m. The comparable function values are V(8)=F(6)V\left(8\right)=F\left(6\right). Notice also that the vents first opened to 220 ft2220{\text{ ft}}^{2} at 10 a.m. under the original plan, while under the new plan the vents reach 220 ft2220{\text{ ft}}^{\text{2}} at 8 a.m., so V(10)=F(8)V\left(10\right)=F\left(8\right). In both cases, we see that, because F(t)F\left(t\right) starts 2 hours sooner, h=2h=-2. That means that the same output values are reached when F(t)=V(t(2))=V(t+2)F\left(t\right)=V\left(t-\left(-2\right)\right)=V\left(t+2\right).

Analysis of the Solution

Note that V(t+2)V\left(t+2\right) 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 F(t)F\left(t\right) uses the same outputs as V(t)V\left(t\right), but matches those outputs to inputs 2 hours earlier than those of V(t)V\left(t\right). Said another way, we must add 2 hours to the input of VV to find the corresponding output for F:F(t)=V(t+2)F:F\left(t\right)=V\left(t+2\right).

Example: Identifying a Horizontal Shift of a Toolkit Function

This graph represents a transformation of the toolkit function f(x)=x2f\left(x\right)={x}^{2}. Relate this new function g(x)g\left(x\right) to f(x)f\left(x\right), and then find a formula for g(x)g\left(x\right). Graph of a parabola.

Answer: Notice that the graph is identical in shape to the f(x)=x2f\left(x\right)={x}^{2} function, but the xx-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

g(x)=f(x2)g\left(x\right)=f\left(x - 2\right)

Notice how we must input the value x=2x=2 to get the output value y=0y=0; the xx-values must be 2 units larger because of the shift to the right by 2 units. We can then use the definition of the f(x)f\left(x\right) function to write a formula for g(x)g\left(x\right) by evaluating f(x2)f\left(x - 2\right).

{f(x)=x2g(x)=f(x2)g(x)=f(x2)=(x2)2\begin{cases}f\left(x\right)={x}^{2}\hfill \\ g\left(x\right)=f\left(x - 2\right)\hfill \\ g\left(x\right)=f\left(x - 2\right)={\left(x - 2\right)}^{2}\hfill \end{cases}

Analysis of the Solution

To determine whether the shift is +2+2 or 2-2 , consider a single reference point on the graph. For a quadratic, looking at the vertex point is convenient. In the original function, f(0)=0f\left(0\right)=0. In our shifted function, g(2)=0g\left(2\right)=0. To obtain the output value of 0 from the function ff, we need to decide whether a plus or a minus sign will work to satisfy g(2)=f(x2)=f(0)=0g\left(2\right)=f\left(x - 2\right)=f\left(0\right)=0. 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 f(x)=x2f(x) = x^2 Now, enter f(x+5)f(x+5), and f(x)+5f(x)+5 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 [5,5][-5,5]. Replace the column labeled y1y_{1} with f(x1)f(x_{1}). Now replace f(x1)f(x_{1}) with f(x1+3)f(x_{1}+3), and f(x1)+3f(x_{1})+3. What are the corresponding functions associated with the transformations you have graphed?

Answer: You have graphed the following transformations: f(x+3)=(x+3)2f(x+3)=(x+3)^2 f(x)+3=(x)2+3f(x)+3=(x)^2+3

Licenses & Attributions