Skip to ContentGo to accessibility pageKeyboard shortcuts menu
OpenStax Logo
Algebra 1

4.11.3 Horizontal Shifts

Algebra 14.11.3 Horizontal Shifts

Search for key terms or text.

Activity

Horizontal Shifts

1. Use the Desmos graphing tool or technology outside the course. Graph the following linear functions.

  • f ( x ) = 2 ( x + 4 ) f ( x ) = 2 ( x + 4 )
  • f ( x ) = 2 ( x + 2 ) f ( x ) = 2 ( x + 2 )
  • f ( x ) = 2 x f ( x ) = 2 x
  • f ( x ) = 2 ( x 2 ) f ( x ) = 2 ( x 2 )
  • f ( x ) = 2 ( x 4 ) f ( x ) = 2 ( x 4 )

2. What is the direction and horizontal distance between the x x -intercepts of f ( x ) = 2 ( x ) f ( x ) = 2 ( x ) and f ( x ) = 2 ( x 2 ) f ( x ) = 2 ( x 2 ) ?

3. How can the function, f ( x ) = 2 ( x ) f ( x ) = 2 ( x ) be shifted to overlap f ( x ) = 2 ( x 4 ) f ( x ) = 2 ( x 4 ) ?

4. What is the direction and horizontal distance between the x x -intercepts of f ( x ) = 2 ( x ) f ( x ) = 2 ( x ) and f ( x ) = 2 ( x + 2 ) f ( x ) = 2 ( x + 2 ) ?

5. How can the function, f ( x ) = 2 ( x ) f ( x ) = 2 ( x ) , be shifted to overlap f ( x ) = 2 ( x + 4 ) f ( x ) = 2 ( x + 4 ) ?

In linear functions, when a value is added to or subtracted from the input value, or the x x -values, the graph acts as if a horizontal shift is applied. This is another type of transformation to the graph.

Horizontal Shift of a Function

A horizontal shift “transforms” the parent function into another function by moving the graph to the left or right c c units.

Horizontal Shift → f ( x c ) f ( x c )

If the c c value is positive, the graph of the function shifts right. If the c c value is negative, the graph of the function shifts left.

But, be careful! The sign of the c c value is preceded by subtraction in the equation. When the equation is simplified, the sign of the c c value is changed.

Self Check

Self Check

Which graph represents f ( x 5 ) when f ( x ) = x , the linear parent function? The parent function is represented by the dashed, blue line.

  1. RAISE 4.11.3 SC choice D
  2. RAISE 4.11.3 SC choice C
  3. RAISE 4.11.3 SC choice B
  4. RAISE 4.11.3 SC choice A

Additional Resources

Horizontal Shifts and x x -intercepts

In addition to being shifted vertically, graphs can also be shifted to the right or left. For linear functions, this is sometimes hard to identify because a line that is shifted horizontally may appear to have a vertical shift.

Let’s shift the parent function, f ( x ) = x f ( x ) = x , horizontally to the left 7 units.

If the line shifts horizontally 7 units to the left, the x x -intercept is shifted 7 units to the left, as well.

A graph shows two lines: a solid blue line with positive slope passing through the origin, and a dashed red line with positive slope passing through (negative 2, negative 2) on an x-y grid.

The graph of the parent function, f ( x ) = x f ( x ) = x , is represented by the dashed orange line. The graph of the solid blue line represents the line that we horizontally shift 7 units to the left.

To determine the equation of the shifted line, we use the slope of 1 and ( 7 , 0 ) ( 7 , 0 ) as a point on the line.

Substituting these values into point-slope form, we get:

( y y 1 ) = m ( x x 1 ) ( y 0 ) = 1 ( x ( 7 ) ) y = 1 ( x + 7 ) (y y 1 )=m(x x 1 )(y0)=1(x(7))y=1(x+7)

So, the equation of a line that has been shifted 7 units to the left from the parent function, f ( x ) = x f ( x ) = x , is y = x + 7 y = x + 7

But, doesn’t it look like the function f ( x ) = x + 7 f ( x ) = x + 7 was shifted up 7 units, too? This is because f ( x ) = x + 7 f ( x ) = x + 7 is equivalent to f ( x ) = 1 ( x + 7 ) f ( x ) = 1 ( x + 7 ) . And this is what makes horizontal shifts difficult to see.

Example 1

How has the function f ( x ) = 3 ( x 4 ) f ( x ) = 3 ( x 4 ) been transformed from f ( x ) = 3 x f ( x ) = 3 x ?

Solution

To answer this question, first consider how the x-values, including the x x -intercept, are being changed. The function says to subtract 4 from each x-value. This means the function is being shifted 4 units.

Next, we need to determine which direction the x-values are being shifted. Let’s look at the graphs.

Graph with x and y axes from -10 to 10. A red dashed line passes through (0, 1), and a blue line passes through (3,0). There are open green circles at points (1,3) and (5,3) on the graph, and points (0,0) and (4,0) are marked with a black open circle.

The solid blue line represents the graph of f ( x ) = 3 ( x 4 ) f ( x ) = 3 ( x 4 ) . The dashed orange line represents the graph of f ( x ) = x f ( x ) = x .

On the graph, we can look at specific points on the parent function like the x x -intercept (0, 0) and (1, 3). The transformed line is to the right of our parent function. To determine how far to the right the line has been shifted, we count the number of horizontal units between the lines.

  • We see that (0, 0) corresponds to the point (4, 0) on the transformed line.
  • The point (1, 3) corresponds to the point (5, 3) on the transformed line.
  • Each point on the parent function has been shifted 4 units to the right.

Therefore, we conclude the line representing f ( x ) = 3 ( x 4 ) f ( x ) = 3 ( x 4 ) appears to have been shifted 4 units to the right from the function f ( x ) = 3 x f ( x ) = 3 x .

Example 2

Use the x x -intercept to describe how the function f ( x ) = x + 9 f ( x ) = x + 9 has been transformed from the parent function f ( x ) = x f ( x ) = x .

Solution

We know the shift is 9 units, but we need to consider which direction the x x -intercept has been moved.

Graph with solid blue line passing through (negative 9, negative 9) and (0, 0), and dashed orange line passing through (0, 0) and (2, negative 2), both with labeled axes and gridlines.

The orange dashed line represents the parent function, f ( x ) = x f ( x ) = x and the solid blue line represents the shifted function.

Carefully looking at the x x -intercepts, we see the line representing f ( x ) = x + 9 f ( x ) = x + 9 has been shifted 9 units to the left from the parent function, f ( x ) = x f ( x ) = x .

Often the horizontal shift is denoted using parentheses to explicitly identify how the values of the independent variable, or domain, are being changed.

Example 3

Describe how the function f ( x ) = ½ ( x + 4 ) f ( x ) = ½ ( x + 4 ) is horizontally transformed to g ( x ) = ½ ( x 2 ) g ( x ) = ½ ( x 2 ) .

Solution

Let’s rewrite the equations in point-slope form, ( y y 1 ) = m ( x x 1 ) ( y y 1 ) = m ( x x 1 ) :

f ( x ) = 1 2 ( x + 4 ) ( y 0 ) = 1 2 ( x + 4 ) ( y 0 ) = 1 2 ( x ( 4 ) ) f ( x ) = 1 2 ( x + 4 ) ( y 0 ) = 1 2 ( x + 4 ) ( y 0 ) = 1 2 ( x ( 4 ) )

So, the x x -intercept is ( 4 , 0 ) ( 4 , 0 ) .

g ( x ) = 1 2 ( x 2 ) ( y 0 ) = 1 2 ( x 2 ) g ( x ) = 1 2 ( x 2 ) ( y 0 ) = 1 2 ( x 2 )

So, the x x -intercept is ( 2 , 0 ) ( 2 , 0 ) .

The x x -intercept of f ( x ) f ( x ) starts at ( 4 , 0 ) ( 4 , 0 ) and moves to ( 2 , 0 ) ( 2 , 0 ) , so this represents a shift of 6 units to the right.

We can also check this using graphs.

A graph with two parallel lines, one red and dashed with a positive y-intercept, and one solid blue with a negative y-intercept.

Examining the x x -intercept for f ( x ) = ½ ( x + 4 ) f ( x ) = ½ ( x + 4 ) , on the orange dashed line, we see that ( 4 , 0 ) ( 4 , 0 ) gets shifted 6 units to the right and lands at ( 2 , 0 ) ( 2 , 0 ) on g ( x ) = ½ ( x 2 ) g ( x ) = ½ ( x 2 ) , represented by the blue solid line.

So, we can identify horizontal shifts using either graphs or algebraic equations.

Horizontal Shift of a Function

A horizontal shift “transforms” the parent function into another function by moving the graph to the left or right c c units.

Horizontal Shift → f ( x c ) f ( x c )

If the c c value is positive, the graph of the function shifts right. If the c c value is negative, the graph of the function shifts left. But, be careful! The sign of the c c value is preceded by subtraction in the equation. When the equation is simplified, the sign of the c c value is changed.

Try it

Try It: Horizontal Shifts and x x -intercepts

Tell the shift made to f ( x ) = x f ( x ) = x to arrive at f ( x ) = x 5 f ( x ) = x 5 using the x x -intercepts to describe the change.

Citation/Attribution

This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License and you must attribute OpenStax.

Attribution information
  • If you are redistributing all or part of this book in a print format, then you must include on every physical page the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

  • If you are redistributing all or part of this book in a digital format, then you must include on every digital page view the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

Citation information

© May 21, 2025 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License . The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.