Translate, reflect and stretch a graph

Transformations move or reshape a graph. Each one changes the equation in a predictable way, and the changes inside the brackets often act in the opposite direction to what you expect.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

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.

How to solve it

  1. y = f(x) + a moves the graph up by a. y = f(x + a) moves it left by a.
  2. y = -f(x) reflects in the x-axis. y = f(-x) reflects in the y-axis.
  3. y = a f(x) stretches vertically by factor a.
  4. y = f(ax) stretches horizontally by factor 1/a.
  5. 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.

Graph transformation Answer checked
Answer
y=x2−6x+9y = x^{2}-6 x+9
Original and transformed-8-6-4-202468-8-6-4-202468Original and transformedoriginaltransformedGraph with x from -8 to 8 and y from -8 to 8. Shows the curve original; the curve transformed.
  1. The curve
  2. Translate by
    Simplified:
  3. Check: a point on the original lands on the new curve

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.

Graph transformation Answer checked
Answer
y=x2+2y = x^{2}+2
Original and transformed-8-6-4-202468-8-6-4-202468Original and transformedoriginaltransformedGraph with x from -8 to 8 and y from -8 to 8. Shows the curve original; the curve transformed.
  1. The curve
  2. Translate by
    Simplified:
  3. Check: a point on the original lands on the new curve

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.

Graph transformation Answer checked
Answer
y=−x3y = -x^{3}
Original and transformed-8-6-4-202468-8-6-4-202468Original and transformedoriginaltransformedGraph with x from -8 to 8 and y from -8 to 8. Shows the curve original; the curve transformed.
  1. The curve
  2. Reflect in the x-axis
    Simplified:
  3. Check: a point on the original lands on the new curve

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.

Graph transformation Answer checked
Answer
y=2x2y = 2 x^{2}
Original and transformed-8-6-4-202468-8-6-4-202468Original and transformedoriginaltransformedGraph with x from -8 to 8 and y from -8 to 8. Shows the curve original; the curve transformed.
  1. The curve
  2. Stretch vertically, scale factor 2
    Simplified:
  3. Check: a point on the original lands on the new curve

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².

  1. Inside the bracketx replaced by x − 3
  2. Effectright 3
  3. Check: the vertex moves to (3, 0) ✓3

Translate up

Describe y = x² + 2.

  1. Outside+2
  2. Effectup 2
  3. Check: the vertex moves to (0, 2) ✓2

Reflect Higher

Describe y = −x³.

  1. Outsidemultiply by −1
  2. Effectreflect in the x-axis
  3. Check: (1, 1) goes to (1, −1) ✓-1

Stretch Higher

Describe y = 2x².

  1. Outsidemultiply by 2
  2. Effectstretch vertically by 2
  3. 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

  1. Inside: x, opposite.
  2. Outside: y, as written.
  3. Track key points.
  4. Order matters.
  5. 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.

Solve: …

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.

More in Algebra and the formula sheets.