Question
How do you sketch $y=f(x+3)$ and $y=f(3x)$ from a given graph?
Original question: (b) The graph of $y=f(x)$ is shown below. On the same axes sketch the graph of (i) $y=f(x+3)$. (2 marks) (ii) $y=f(3x)$. (2 marks) Solution (i) See graph Specific behaviours ✓ smooth curve starting at $(-9,-3)$ ✓ intercepts at $(-8,0)$ and $(0,6)$ Solution (ii) See graph Specific behaviours ✓ smooth curve starting at $(-2,-3)$ ✓ same y-intercept as $f(x)$ See next page
Expert Verified Solution
Key takeaway: These are standard function transformations, but the two changes work in different directions. One is a horizontal shift, the other is a horizontal compression. That difference is where most sketching errors happen.
Let the original graph be .
(i) Sketch of
This is a shift 3 units left.
Why? Because the graph reaches the same -value when is 3 smaller than before.
So every point on moves to
Key points shift like this:
(ii) Sketch of
This is a horizontal compression by factor .
A point on the original graph moves to
So the -coordinates are divided by 3, while the -values stay the same.
That means:
- the starting point becomes
- the -intercept stays the same as for
So the new graph is squeezed toward the -axis, not shifted sideways.
Pitfalls the pros know 👇 For , students often shift right because they see the plus sign. That is the wrong direction. Inside the brackets, the sign effect is reversed.
For , another common mistake is to stretch the graph horizontally instead of compressing it. Multiplying by 3 makes the graph narrower.
What if the problem changes? If the function were , the graph would shift 3 units right instead of left. If it were , the graph would stretch horizontally by a factor of 3 instead of compressing.
Tags: horizontal shift, horizontal compression, function transformation
FAQ
How does $y=f(x+3)$ change the graph of $y=f(x)$?
It shifts the graph 3 units to the left. Each point $(x,y)$ moves to $(x-3,y)$.
How does $y=f(3x)$ change the graph of $y=f(x)$?
It compresses the graph horizontally by a factor of $1/3$. Each point $(x,y)$ moves to $(x/3,y)$.