- Foundation
- About 14 min
- 5 practice questions
Shifting, stretching and reflecting graphs
Describe how y = f(x) + k, f(x − h), −f(x), f(−x), a f(x) and |f(x)| change the graph and the domain and range, and track a single point through each change.
If something looks wrong, please tell us.
Once you know the graph of a basic function, you can draw many others without any new work. Adding a number, replacing x by x − 3 or putting a minus sign in front moves, flips or stretches the whole graph in a predictable way. This lesson gives the rules and shows how to follow one point to see where it lands, which is also the quickest way to answer exam questions.
The basic transformations
| New function | What happens to the graph of y = f(x) |
|---|---|
| f(x) + k | moved up by k (down if k < 0) |
| f(x − h) | moved right by h (left if h < 0) |
| −f(x) | reflected in the x-axis |
| f(−x) | reflected in the y-axis |
| a f(x), a > 1 | stretched away from the x-axis (heights multiplied by a) |
| f(a x), a > 1 | squashed towards the y-axis (x-values divided by a) |
| |f(x)| | parts below the x-axis flipped upwards |
The effect on x often feels backwards. For f(x − 2), the graph moves right, because the new function takes the value f(0) when x = 2: the same output is reached 2 units later. Changes made to x act on the horizontal direction and are opposite to what the sign suggests; changes made to the whole value f(x) act on the vertical direction in the natural way.
Outside the bracket (f(x) + k, −f(x), a f(x)): vertical changes, as expected. Inside the bracket (f(x − h), f(−x), f(ax)): horizontal changes, in the opposite sense.
Worked example 1: following a point
Suppose the point (1, 5) lies on y = f(x). Where is the matching point on each new graph? For y = f(x − 2) + 1, shift right by 2 and up by 1: (3, 6). For y = −f(x), the height changes sign: (1, −5). For y = f(−x), the x-value changes sign: (−1, 5). For y = 2f(x), the height doubles: (1, 10). For y = f(2x), the x-value is halved, since f(2 × 1/2) = f(1) = 5: (1/2, 5).
Worked example 2: a parabola moved
Start with y = x², whose vertex is at (0, 0) and range [0, ∞). Then y = (x − 2)² + 3 is the same parabola moved right 2 and up 3, so its vertex is (2, 3). Its domain is still R, and its range is [3, ∞). In the same way y = −x² + 4 is the parabola flipped over and moved up 4: vertex (0, 4), range (−∞, 4].
Effects on domain and range
A vertical change affects the range and leaves the domain alone. A horizontal change affects the domain and leaves the range alone. Since √x has domain [0, ∞) and range [0, ∞), the function √(x − 3) has domain [3, ∞) (shifted right) and the same range [0, ∞), while √x + 3 has the same domain [0, ∞) and range [3, ∞).
Worked example 3: taking the modulus
Consider y = |x² − 4|. The graph of x² − 4 is a parabola with vertex (0, −4), crossing the x-axis at x = −2 and x = 2. Between −2 and 2 the parabola lies below the axis, and |·| flips that part upwards. So the new graph has its lowest value 0 at x = ±2 and a local high point at (0, 4), the flipped vertex. The range is [0, ∞) and the domain is R.
Worked example 4: f(|x|)
Replacing x by |x| makes the graph symmetric about the y-axis: the right half is kept and copied to the left. For f(x) = x − 1, the function f(|x|) = |x| − 1 has a V-shaped graph with its lowest point (0, −1), so its range is [−1, ∞).
Key takeaways: changes outside the bracket act vertically, changes inside act horizontally and opposite to what you expect. Track one point to check an answer. Vertical changes alter the range, horizontal changes alter the domain. |f(x)| flips the negative parts upward and f(|x|) mirrors the right half.
Check your understanding
-
1. The point (1, 5) lies on y = f(x). Which point lies on y = f(x − 2) + 1?
- (−1, 6)
- (3, 4)
- (3, 6)
- (−1, 4)
Show answer
Answer: C. f(x − 2) moves the graph 2 units right, taking (1, 5) to (3, 5). Adding 1 moves it up to (3, 6).
-
2. What is the vertex of the graph of y = (x − 2)² + 3?
- (2, 3)
- (−2, 3)
- (2, −3)
- (3, 2)
Show answer
Answer: A. The graph of x² has vertex (0, 0). Moving right 2 and up 3 gives (2, 3).
-
3. What is the range of y = |x² − 4|?
- [−4, ∞)
- [4, ∞)
- R
- [0, ∞)
Show answer
Answer: D. The absolute value is never negative, and it equals 0 at x = ±2. Large x give large values, so the range is [0, ∞).
-
4. What is the domain of √(x − 3)?
- [−3, ∞)
- [3, ∞)
- (3, ∞)
- [0, ∞)
Show answer
Answer: B. We need x − 3 ≥ 0, so x ≥ 3. This is the graph of √x moved 3 units to the right.
-
5. The point (1, 5) lies on y = f(x). Which point lies on y = −f(x)?
- (1, −5)
- (−1, 5)
- (−1, −5)
- (5, 1)
Show answer
Answer: A. −f(x) flips the graph in the x-axis, so the height changes sign and the x-value stays the same: (1, −5).
Sign in to keep track of the lessons you finish.