Once you know the shape of y = x², you also know the shape of y = (x − 2)² + 3, y = 2x² and y = −x². Each is the same curve, moved, stretched or flipped. These moves are called transformations. Learning them lets you sketch hundreds of graphs from a handful of basic shapes. This lesson covers translations, stretches and reflections, and how to combine them.
In this lesson you will learn
- How y = f(x) + a and y = f(x + a) move a graph
- How y = af(x) and y = f(ax) stretch a graph
- How y = −f(x) and y = f(−x) reflect a graph
- Why changes inside the bracket work “the opposite way”
- How to apply several transformations in the right order
You should know functions, quadratic equations and trigonometric graphs.
Translations: Sliding a Graph
| New graph | Effect on y = f(x) | Point (x, y) moves to |
|---|---|---|
| y = f(x) + a | Up a units (down if a < 0) | (x, y + a) |
| y = f(x − a) | Right a units (left if a < 0) | (x + a, y) |
Changes outside the bracket act on y, the way you expect. Changes inside the bracket act on x, the opposite way. Why? For y = (x − 2)², the output that y = x² gave at x = 0 now happens at x = 2. Every value arrives 2 units later, so the curve moves right.
y = x² vertex (0, 0)
y = (x − 2)² vertex (2, 0) moved right 2
y = (x − 2)² + 3 vertex (2, 3) then up 3
This is why completing the square is so useful. y = x² − 4x + 7 = (x − 2)² + 3, so its graph is y = x² moved 2 right and 3 up, with its lowest point at (2, 3).
Stretches
| New graph | Effect | Point (x, y) moves to |
|---|---|---|
| y = a f(x) | Vertical stretch, factor a | (x, ay) |
| y = f(ax) | Horizontal stretch, factor 1/a | (x/a, y) |
y = sin x range −1 to 1, period 360°
y = 2 sin x range −2 to 2, period 360° (taller)
y = sin 2x range −1 to 1, period 180° (squashed sideways)
y = sin(x/2) range −1 to 1, period 720° (stretched sideways)
Again, inside the bracket is the opposite way: multiplying x by 2 makes the graph half as wide. Points on the y-axis do not move under a horizontal stretch, and points on the x-axis do not move under a vertical stretch.
Reflections
| New graph | Effect | Point (x, y) moves to |
|---|---|---|
| y = −f(x) | Reflect in the x-axis | (x, −y) |
| y = f(−x) | Reflect in the y-axis | (−x, y) |
For example, y = −x² is the parabola upside down. The graph of y = eˣ reflected in the y-axis is y = e⁻ˣ, the curve of exponential decay.
Combining Transformations
When several changes act on y, do them in the order you would calculate: multiply first, then add. For y = 2f(x) + 1, stretch by 2 first, then move up 1.
Example: f(x) has a maximum at (3, 5). Where is the maximum of
y = 2f(x − 1) + 1 ?
x − 1 inside: move right 1 (3, 5) → (4, 5)
2 outside: stretch y by 2 (4, 5) → (4, 10)
+ 1 outside: move up 1 (4, 10) → (4, 11)
Maximum at (4, 11).
Doing the y-steps in the wrong order gives (4, 12), because adding 1 first and then doubling also doubles the 1.
Common Mistakes
- Moving f(x − 2) to the left. Minus inside the bracket moves the graph right.
- Stretching f(2x) by factor 2. It is a squash by factor ½ in the x-direction.
- Mixing up the two reflections. A minus outside flips up and down; a minus inside flips left and right.
- Wrong order. For af(x) + b, stretch before you translate.
Practice Exercises
Exercise 1. Describe how to get y = (x + 3)² − 4 from y = x², and give its vertex.
Show answer
Move 3 units left, then 4 units down. The vertex is (−3, −4).
Exercise 2. State the period and range of y = 3 cos 2x.
Show answer
The factor 2 inside halves the period: 360° ÷ 2 = 180°. The factor 3 outside stretches the range to −3 ≤ y ≤ 3.
Frequently Asked Questions
What is an even function?
A function with f(−x) = f(x), such as x² or cos x. Its graph is unchanged by reflection in the y-axis, so it is symmetric about that axis.
What is an odd function?
A function with f(−x) = −f(x), such as x³ or sin x. Its graph looks the same after a half turn about the origin.
Summary
- f(x) + a moves up; f(x − a) moves right.
- a f(x) stretches up and down; f(ax) squashes sideways by 1/a.
- −f(x) flips over the x-axis; f(−x) flips over the y-axis.
- Inside the bracket works the opposite way to what you might expect.
Next: Polar Coordinates.
