Transformations of y = f Explained with Worked Examples

Transformations change a graph: shifts up, shifts left, stretches vertically, stretches horizontally, reflects in the -axis and reflects in the -axis.

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 Transformations of y = f(x) means

Changes outside the function act on in the way you expect: adding moves the graph up by , and multiplying by stretches it vertically.

Changes inside the brackets act on the opposite way to what you expect: shifts the graph units to the left, and stretches it horizontally by a factor .

Apply them in the order you would calculate: inside changes affect first. The summary is in graph transformations, with particular cases the modulus function and the reciprocal graph, and combinations of maps in composite function.

This page is part of Graphs and functions in Algebra. Topics that work alongside it: Graph transformations, Modulus function, Reciprocal graph, Composite function, Tangent to a circle and Reciprocal graphs and asymptotes.

What is it used for?

Transformations move or stretch a graph in predictable ways: adding to x or y shifts it, and multiplying stretches or reflects it.

How to use transformations of y = f(x)

  1. Identify whether the change is inside or outside.
  2. Inside changes: act on , opposite direction.
  3. Outside changes: act on , expected direction.
  4. Transform a few key points to sketch.

Graph

y = x² moved and stretched-3-2-10123450246810y = x² moved and stretchedxyy = x²y = (x − 2)²y = x² + 3Graph with x from -3 to 5 and y from -1 to 10. Shows the curve y = x²; the curve y = (x − 2)²; the curve y = x² + 3.

Subtracting 2 inside the bracket shifts the graph 2 units to the right; adding 3 outside shifts it 3 units up.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: a translation

The point lies on . Find its image on .

Worked example
Answer
(−1, 4)(-1,\,4)
  1. Inside change
    moves the graph 3 units to the left.
  2. Move the point

Example 2: a stretch

The point lies on . Find its image on .

Worked example
Answer
(2, 12)(2,\,12)
  1. Outside change
    stretches vertically by a factor of 3.
  2. Multiply the y-coordinate

Example 3: a vertical translation

The point lies on . Find its image on .

Worked example
Answer
(2, 2)(2,\ 2)
  1. Subtracting 2 outside the brackets moves the graph down 2

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

f(x) = x² at x = 2

f(x) + 3

7.

f(x + 3)

(2 + 3)²

25.

2f(x)

2 × 4

8.

f(2x)

(4)²

16.

Word problems

f(x) + a shifts up; f(x + a) shifts left; af(x) stretches vertically; f(ax) stretches horizontally by 1/a; −f(x) reflects in the x-axis; f(−x) reflects in the y-axis.

Up 3

f(x) = x². Find f(2) + 3.

  1. 4 + 3
  2. Check: ✓7

Left 3

Find f(2 + 3).

  1. 5²
  2. Check: ✓25

Stretch Higher

Find 2f(2).

  1. 2 × 4
  2. Check: ✓8

Compress Higher

Find f(2 × 2).

  1. 4²
  2. Check: ✓16

Common mistakes

f(x + 3) shifts right

right ✗

left ✓

Opposite sign.

Forgetting the order

stretch then shift ✗

follow the bracket order ✓

Order matters.

f(2x) doubles

stretch ×2 ✗

compress ×½ ✓

Horizontal factor 1/a.

−f vs f(−x)

same ✗

different axes ✓

x-axis vs y-axis.

Exam tips

  1. Outside: vertical, same sign.
  2. Inside: horizontal, opposite.
  3. f(x + a) left.
  4. f(ax): ×1/a.
  5. −f: x-axis reflection.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. f(x)+1 for f = x² at 3 Foundation

10

2. f(x−2) for f = x² at 5 Foundation

9

3. 3f(x) for f = x² at 2 Foundation

12

4. f(3x) for f = x² at 1 Higher

9

5. −f(x) for f = x² at 4 Higher

-16

6. f(−x) for f = x² + x at 2 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

Translation
Shift.
Stretch
Scale factor.
Reflection
Mirror.
Vertical
Outside f.
Horizontal
Inside f.
Invariant point
Does not move.

Frequently asked questions

What does f(x + a) do?

Shifts the graph a units left.

What does af(x) do?

Stretches vertically by a.

What does f(ax) do?

Stretches horizontally by 1/a.

What does −f(x) do?

Reflects in the x-axis.

Which page covers the formula version?

graph transformations formula.

Which page covers modulus?

modulus function.

More in Algebra and the formula sheets.