On this page
Before you start
This page is easier if you are comfortable with:
What this topic covers
y = f(x − a) translates right by a, y = f(x) + b translates up by b, y = −f(x) reflects in the x-axis and y = af(x) stretches vertically (graph transformations formula , transformations of y = f(x)). The inverse and composite of functions are covered by inverse functions and composite functions.
Each part of this topic has its own page with the formula, worked examples and a solver: Modulus function , Composite and inverse functions , Transformations of y = f(x), Composite function, Inverse function, Graph transformations, Equation of a circle (centre origin) , Tangent to a circle , Exponential graph , Reciprocal graph .
Closely related topics: Composite functions fg(x) and inverse functions , Sketch quadratics, cubics, reciprocals and exponentials , Quadratic equations , Domain and range of a function .
What is it used for? A transformation moves, reflects or stretches a graph. Knowing the effect of each change lets you sketch new graphs from a familiar one.
Sketching graphs without plotting many points. Describing how one function is related to another. Understanding the vertex form of a quadratic.
How to solve it
y = f(x) + a moves the graph up by a. y = f(x + a) moves it left by a. y = -f(x) reflects in the x-axis. y = f(-x) reflects in the y-axis. y = a f(x) stretches vertically by factor a. y = f(ax) stretches horizontally by factor 1/a. Apply several transformations in the order given.
Worked examples
The examples marked with a button were worked out by the solver on this page. You can try each one yourself.
Example 1: f(x)=x^2 translate by 3 units right Worked out by the solver on this page. Press the button to try it yourself.
Try this in the solver: f(x)=x^2 translate by 3 units right
Graph transformation Answer checked
Answer
y = x 2 − 6 x + 9 y = x^{2}-6 x+9 y = x 2 − 6 x + 9 Original and transformed -8 -6 -4 -2 0 2 4 6 8 -8 -6 -4 -2 0 2 4 6 8 Original and transformed original transformed Graph with x from -8 to 8 and y from -8 to 8. Shows the curve original; the curve transformed. The curve
y = x 2
Translate by ( 3 0 )
Simplified: x 2 − 6 x + 9
y = f ( x − 3 ) + 0 = ( x − 3 ) 2
Check: a point on the original lands on the new curve
( 1 , 1 ) → ( 4 , 1 ) , and the new curve gives y = 1 ✓
Example 2: f(x)=x^2 translate by 2 units up Worked out by the solver on this page. Press the button to try it yourself.
Try this in the solver: f(x)=x^2 translate by 2 units up
Graph transformation Answer checked
Answer
y = x 2 + 2 y = x^{2}+2 y = x 2 + 2 Original and transformed -8 -6 -4 -2 0 2 4 6 8 -8 -6 -4 -2 0 2 4 6 8 Original and transformed original transformed Graph with x from -8 to 8 and y from -8 to 8. Shows the curve original; the curve transformed. The curve
y = x 2
Translate by ( 0 2 )
Simplified: x 2 + 2
y = f ( x − 0 ) + 2 = x 2 + 2
Check: a point on the original lands on the new curve
( 1 , 1 ) → ( 1 , 3 ) , and the new curve gives y = 3 ✓
Example 3: f(x)=x^3 reflect in the x-axis Worked out by the solver on this page. Press the button to try it yourself.
Try this in the solver: f(x)=x^3 reflect in the x-axis
Graph transformation Answer checked
Answer
y = − x 3 y = -x^{3} y = − x 3 Original and transformed -8 -6 -4 -2 0 2 4 6 8 -8 -6 -4 -2 0 2 4 6 8 Original and transformed original transformed Graph with x from -8 to 8 and y from -8 to 8. Shows the curve original; the curve transformed. The curve
y = x 3
Reflect in the x-axis
Simplified: − x 3
y = − f ( x ) = − x 3
Check: a point on the original lands on the new curve
( 1 , 1 ) → ( 1 , − 1 ) , and the new curve gives y = − 1 ✓
Example 4: f(x)=x^2 stretch vertically by factor 2 Worked out by the solver on this page. Press the button to try it yourself.
Try this in the solver: f(x)=x^2 stretch vertically by factor 2
Graph transformation Answer checked
Answer
y = 2 x 2 y = 2 x^{2} y = 2 x 2 Original and transformed -8 -6 -4 -2 0 2 4 6 8 -8 -6 -4 -2 0 2 4 6 8 Original and transformed original transformed Graph with x from -8 to 8 and y from -8 to 8. Shows the curve original; the curve transformed. The curve
y = x 2
Stretch vertically, scale factor 2
Simplified: 2 x 2
y = 2 f ( x ) = 2 x 2
Check: a point on the original lands on the new curve
( 1 , 1 ) → ( 1 , 2 ) , and the new curve gives y = 2 ✓
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
Translate right f(x − 3) moves right 3
Inside the bracket, opposite sign.
Translate up f(x) + 2 moves up 2
Outside the bracket, same sign.
Reflect −f(x) flips in the x-axis
Multiply y by −1.
Stretch 2f(x) doubles heights
Vertical stretch factor 2.
Word problems
Changes inside the brackets affect x and act the opposite way; changes outside affect y and act as written.
Translate right Describe y = (x − 3)² from y = x².
Inside the bracket x replaced by x − 3 Effect right 3 Check: the vertex moves to (3, 0) ✓ 3
Translate up Describe y = x² + 2.
Outside +2 Effect up 2 Check: the vertex moves to (0, 2) ✓ 2
Reflect Higher Describe y = −x³.
Outside multiply by −1 Effect reflect in the x-axis Check: (1, 1) goes to (1, −1) ✓ -1
Stretch Higher Describe y = 2x².
Outside multiply by 2 Effect stretch vertically by 2 Check: (1, 1) goes to (1, 2) ✓ 2
Common mistakes
Moving left for f(x − 3) left 3 ✗
right 3 ✓
Inside changes act the opposite way.
Stretch factor for f(2x) stretch by 2 ✗
squash horizontally by ½ ✓
Inside changes are inverted.
Mixing inside and outside f(x) + 2 moves left ✗
moves up ✓
Outside affects y.
Wrong order for two changes any order ✗
follow the order of operations ✓
Stretch before translate.
Exam tips
Inside: x, opposite.
Outside: y, as written.
Track key points.
Order matters.
Sketch the invariant points.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. New vertex x for y = (x − 5)² Foundation 5
2. New y-value at x = 0 for y = x² + 4 Foundation 4
3. Image of (2, 3) under y = −f(x): y Foundation -3
4. Image of (2, 3) under y = 3f(x): y Higher 9
5. Image of (4, 1) under y = f(2x): x Higher 2
6. Image of (1, 2) under y = f(x + 3): x Higher -2
Practice generator Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Foundation Higher Mixed New question
Solve: …
The practice generator needs JavaScript.
Key terms
Transformation A change to a graph. Translation A slide. Reflection A flip. Stretch A scaling. Invariant point A point that does not move. Function A rule y = f(x).
Frequently asked questions
What does f(x − a) do? It translates the graph right by a.
What does f(x) + b do? It translates the graph up by b.
What does f(2x) do? It squashes the graph horizontally by a factor of 2.
Which page covers the formula? graph transformations formula.
Which page covers modulus graphs? modulus function.
Which page covers inverse graphs? graph of an inverse function .