Horizontal Stretches and Compressions
Access the Desmos guide PDF for tips on solving problems with the Desmos graphing calculator.
1. On the same coordinate grid, graph the following linear functions. You do not need to label the lines in the graphing tool.
Line Label | Function |
Line | |
Line | |
Line |
Compare your work:
2. What is the difference between what you entered for the functions of lines and in comparison to the function for line ?
Compare your answer: Line is the parent linear function. Lines and are the result of function f where the input is different from the original -values.
3. Now, graph lines and on the same graph as .
Line Label | Function |
Line | |
Line |
Compare your work:
4. How does line , representing , compare to line , representing ?
Compare your answer: The same points are in both functions. The lines appear to be exactly the same.
5. How does line , representing , compare to line , representing ?
Compare your answer: The same points are in both functions. The lines appear to be exactly the same.
Horizontal dilations that stretch and compress linear functions are difficult to identify from graphs because they can appear as if they are vertical dilations. However, they are different because:
- The changes to the function are applied to the input values of a function when the transformation is a horizontal dilation.
- The changes to the function are applied to the output values of a function when the transformation is a vertical dilation.
6. Now graph the lines given below on the same coordinate grid.
Line Label | Function |
Line | |
Line | |
Line | |
Line |
Compare your work:
7. As the coefficient on the input increases, what is happening to the graph?
Compare your answer: The line gets closer and closer to the -axis because the function is being horizontally compressed.
8. Graph the lines given below on the same coordinate grid.
Line Label | Function |
Line | |
Line | |
Line | |
Line |
Compare your work:
9. As the coefficient on the input approaches 0, what is happening to the graph?
Compare your answer: The line gets farther from the -axis because the function is being horizontally stretched.
10. Graph the lines given below on the same coordinate grid.
Line Label | Function |
Line | |
Line |
Compare your work:
In the function , the is acting as the horizontal stretch or horizontal compression of the parent function. It dilates the graph.
- When is negative, there is also a horizontal reflection of the graph over the -axis.
- Multiplying the function's input by horizontally compresses the graph of by a factor of units if .
- The horizontally expands the graph of by a factor of units if .
Horizontal Dilations of a Function
A horizontal stretch or compression “transforms” the parent function into another function by horizontally dilating the graph by “b” units.
Horizontal Dilation →
If the value is negative, the graph is reflected over the -axis. If the value is greater than 1, the graph is horizontally compressed. If the value is between 0 and 1, the graph is horizontally stretched.
Self Check
Additional Resources
Horizontal Transformations of Linear Functions
Horizontal transformations are the result of altering the input values before applying the function rule. Vertical transformations result from altering the output values after the function rule has been applied.
Example 1
Describe how is transformed into .
Solution
First, graph the given function, , the parent linear function.
Now, let’s examine an input value of using .
- For the parent function , all points on the line are represented by .
- So, when , then becomes .
- That means this point is located at or .
In order to get the same output value for as we had for , we need to figure out how to change the input value.
- Because our transformed equation is subtracting three from what we input, we have to increase the prior input value by 3 units to yield the same output as .
- The input value that is 3 units larger than is 5. In the transformed equation, we must use .
So, in the original equation where resulted in , in the transformed equation, we have to use in order for .
On the graph, is located 3 units to the right of . So, the transformed equation of is 3 units to the right of .
Horizontal transformations are represented by the rule where indicates the number of units to the right or left that the graph is shifted.
Example 2
Graph when . Then, determine the equation of the transformed function.
Solution
Step 1 - Graph the given function, .
The y-intercept is (0, -3) and the slope is .
For horizontal shifts, it is helpful to identify the x-intercept. On our graph, the x-intercept or zero is located at (6,0).
Step 2 - Apply the designated transformation. Remember that the rule for a horizontal shift is . If we rewrite in an equivalent form, we can make it is easier to see .
That means .
So, represents a horizontal shift of two units to the left. On our graph, we move the x-intercept two units left from (6, 0) to (4, 0).
The orange dashed line is the graph of the original function and the blue solid line is the transformed function.
Step 3 - Determine the equation of the transformed function.
The y-intercept of the transformed line is (0, -2) and the slope of the line is or .
That means the equation
Want to check your work? We can check our equation algebraically by substituting into .
Example 3
Graph when . Then, determine the equation of the transformed function.
Solution
Step 3 - Graph the given function, .
The y-intercept is (0, -3) and the slope is .
For horizontal shifts, it is helpful to identify the x-intercept. On our graph, the x-intercept or zero is located at (6,0).
Step 2 - Apply the designated transformation. Remember that the rule for a horizontal shift is . And, when the value of is greater than 1, the function experiences a horizontal compression.
As a result of the horizontal compression, the linear function should look steeper because it is being compressed by a scale factor of 4.
On our graph, this means the x-intercept is compressed from (6, 0) to (1.5, 0).
The orange dashed line is the graph of the original function and the blue solid line is the transformed function.
Step 3 - Determine the equation of the transformed function.
The y-intercept of the transformed line is (0, -3) and the slope of the line is 3/1.5 or 2.
That means the equation .
Want to check your work? We can check our equation algebraically by substituting 4x into .
✔
Try it
Try It: Horizontal Transformations of Linear Functions
Name the transformation to go from the parent function, , to .
Here is how to determine the transformation:
Because defines a horizontal shift, the transformation moves the parent function 1 unit to the right.