B7, B9PureCore

Graphs and Transformations

Once you know the shape of one graph, you can predict a whole family of related graphs by shifting, stretching or reflecting it. The one rule that trips everyone up: changes inside the bracket act horizontally and behave “backwards”.

30 min Video by TLMaths Algebra and Functions

The big picture

Transformations let you understand hundreds of graphs by learning a handful of parent shapes and how they move. It is enormously efficient — sketch y=x2y = x^2 once and you can instantly draw y=(x−3)2+2y = (x-3)^2 + 2 without plotting a single point. The genuine difficulty, and the thing worth really understanding, is the split between outside\textbf{outside} the function (vertical, and intuitive) and inside\textbf{inside} the function (horizontal, and counter-intuitive). Master that distinction and graph sketching, trigonometric graphs and curve-sketching in calculus all become far easier.

A-Level Maths B9-04: Graph Transformations — Translations OverviewCurated by Kepler, not produced by us. Watch it, then work through the notes below.
Open on YouTube

What you'll be able to do

  • Apply vertical and horizontal translations to a graph
  • Apply vertical and horizontal stretches, using the correct scale factor
  • Reflect a graph in the xx- or yy-axis
  • Describe and combine transformations, and track key points
1

Outside vs inside — the master rule

Every transformation is either applied to the whole function (outside\textbf{outside} the bracket) or to the input (inside\textbf{inside} the bracket). Outside changes are vertical\textbf{vertical} and do exactly what you expect. Inside changes are horizontal\textbf{horizontal} and do the opposite\textbf{opposite} of what you expect.

Why the opposite? Because inside changes act on xx before the function runs. To get the same output as before, xx has to compensate in the reverse direction — so f(x+3)f(x + 3) shifts left\textbf{left}, and f(2x)f(2x) squashes\textbf{squashes} horizontally rather than stretching.

Why this works

Say it as a mantra: “outside = vertical = as expected; inside = horizontal = backwards.” Almost every transformation error is a violation of that one sentence.

2

Translations (shifts)

Adding a constant outside slides the graph vertically; adding inside slides it horizontally the “wrong” way.

y=f(x)+a  ⇒  shift UP by ay = f(x) + a \;\Rightarrow\; \text{shift UP by } a
Outside: vertical, intuitive.
y=f(x+a)  ⇒  shift LEFT by ay = f(x + a) \;\Rightarrow\; \text{shift LEFT by } a
Inside: horizontal, reversed. f(x−a)f(x - a) moves right.
Example 1Describe how y=(x−3)2+2y = (x - 3)^{2} + 2 relates to y=x2y = x^{2}.
1Inside the bracket: x−3x - 3 shifts the graph right\textbf{right} by 3 (reversed).
2Outside: +2+2 shifts it up\textbf{up} by 2.
3So the vertex moves from (0,0)(0, 0) to (3,2)(3, 2).
Answer
A translation right 3 and up 2 — vertex at (3,2)(3, 2).

Tip — A vector captures a translation neatly: y=f(x−a)+by = f(x - a) + b is a shift by (ab)\begin{pmatrix} a \\ b \end{pmatrix}.

3

Stretches

Multiplying outside stretches vertically by that factor. Multiplying xx inside stretches horizontally by the reciprocal\textbf{reciprocal} — so f(2x)f(2x) compresses by a factor of 12\tfrac12, not stretches by 2.

y=a f(x)  ⇒  vertical stretch, factor ay = a\,f(x) \;\Rightarrow\; \text{vertical stretch, factor } a
Outside: multiply yy-values by aa.
y=f(ax)  ⇒  horizontal stretch, factor 1ay = f(ax) \;\Rightarrow\; \text{horizontal stretch, factor } \tfrac{1}{a}
Inside: reciprocal factor (a squash if a>1a > 1).
Example 1How does y=f(2x)y = f(2x) transform the graph of y=f(x)y = f(x)?
1The change is inside, so it is horizontal.
2The scale factor is the reciprocal of 2, i.e. 12\tfrac12.
3So the graph is squashed horizontally towards the yy-axis by a factor of 12\tfrac12.
Answer
Horizontal stretch of scale factor 12\tfrac{1}{2} (a compression).
Why this works

A vertical stretch multiplies every yy-coordinate; a horizontal stretch multiplies every xx-coordinate by the reciprocal. Tracking one or two key points through the transformation is the safest way to get it right.

4

Reflections and combining transformations

A minus sign outside flips the graph in the xx-axis; a minus inside flips it in the yy-axis. When several transformations combine, apply them in the right order — generally deal with inside-the-bracket changes together and outside changes together, and always check a couple of known points.

y=−f(x)  ⇒  reflect in the x-axisy = -f(x) \;\Rightarrow\; \text{reflect in the } x\text{-axis}
Outside minus: y→−yy \to -y.
y=f(−x)  ⇒  reflect in the y-axisy = f(-x) \;\Rightarrow\; \text{reflect in the } y\text{-axis}
Inside minus: x→−xx \to -x.
Example 1Where does the point (2,5)(2, 5) on y=f(x)y = f(x) move to on y=−f(x)+1y = -f(x) + 1?
1−f(x)-f(x) reflects in the xx-axis: y=5→−5y = 5 \to -5.
2+1+1 shifts up 1: −5→−4-5 \to -4.
3The xx-coordinate is unchanged (both changes are outside/vertical).
Answer
The point moves to (2,−4)(2, -4).

Tip — When asked to sketch, mark the images of key features — intercepts, turning points, asymptotes — rather than trying to move the whole curve at once.

5

Sketch a polynomial and a reciprocal with their key features

A sketch shows intercepts, asymptotes, end behaviour and relevant turning points. Roots of odd multiplicity cross the axis; roots of even multiplicity touch it. The leading term determines the far-left and far-right behaviour.

For y=a/xy=a/x or y=a/x2y=a/x^2, the axes are asymptotes. A translation moves those asymptotes with the graph. An asymptote is not an intercept, and the graph need not approach it from the same side on both branches.

Example 1Describe the essential features of y=(x+1)2(x−2)(x−3)y=(x+1)^2(x-2)(x-3), then the asymptotes of y=2/(x−1)+3y=2/(x-1)+3.
1The quartic has positive leading coefficient, so both ends rise. It touches the x-axis at -1 and crosses at 2 and 3.
2Its y-intercept is (0,6)(0,6). It is positive on either side of -1, negative between 2 and 3, and positive beyond 3.
3For the reciprocal graph, the denominator vanishes at x = 1, giving a vertical asymptote. The fraction tends to zero as the magnitude of x grows, giving horizontal asymptote y = 3.
Answer
Label roots and the y-intercept on the quartic sketch; label x = 1 and y = 3 as the reciprocal asymptotes.

Think like an examiner

  • State transformations precisely: “translation by (30)\begin{pmatrix} 3 \\ 0 \end{pmatrix}” or “horizontal stretch scale factor 12\tfrac12”, not vague words like “moved across”.
  • Inside-the-bracket direction is the classic trap: f(x+2)f(x + 2) is left, f(x−2)f(x - 2) is right.
  • For a horizontal stretch f(ax)f(ax), the scale factor is 1a\tfrac1a — writing aa loses the mark.
  • On a sketch, label the images of intercepts, turning points and asymptotes; an unlabelled curve rarely scores full marks.

Common misconceptions

Thinking y=f(x+3)y = f(x + 3) shifts the graph right.
Inside changes reverse: f(x+3)f(x + 3) shifts left\textbf{left} by 3.
Saying y=f(2x)y = f(2x) is a horizontal stretch of factor 2.
It is a stretch of factor 12\tfrac12 (a squash) — the reciprocal.
Confusing −f(x)-f(x) and f(−x)f(-x).
−f(x)-f(x) reflects in the xx-axis; f(−x)f(-x) reflects in the yy-axis.
Applying combined transformations in a careless order.
Handle inside changes together and outside together, and verify with a known point.

Transformation summary

f(x)+a: up af(x)+a: \text{ up } a
Vertical translation.
f(x+a): left af(x+a): \text{ left } a
Horizontal translation (reversed).
a f(x): vertical stretch aa\,f(x): \text{ vertical stretch } a
Vertical stretch.
f(ax): horizontal stretch 1af(ax): \text{ horizontal stretch } \tfrac1a
Horizontal stretch (reciprocal).
−f(x),  f(−x)-f(x),\; f(-x)
Reflections in xx- and yy-axis.

Stretch yourself

The graph of y=f(x)y = f(x) has a maximum at (2,5)(2, 5). State the coordinates of the maximum of y=3f(x−1)y = 3f(x - 1).

Hint — Deal with the inside change (horizontal) and the outside change (vertical) separately, and apply them to the point (2,5)(2, 5).

Reveal solution
SolutionInside: f(x−1)f(x - 1) shifts right by 1, so the xx-coordinate 2→32 \to 3. Outside: the factor 3 is a vertical stretch, so the yy-coordinate 5→155 \to 15. The maximum moves to (3,15)(3, 15). Notice how tracking a single key point handles a combined transformation cleanly — far safer than trying to redraw the whole curve. ■\blacksquare

Questions students ask

Why does f(x+a)f(x + a) move the graph left instead of right?
Because the change happens to xx before ff acts. To reach the output the graph had at some xx, the input must now be aa smaller, so every feature slides in the negative (left) direction. Inside-the-bracket changes always reverse.
How do I tell a vertical from a horizontal transformation?
Look at where the change is. Outside the function, af(x)af(x) or f(x)+af(x)+a, it is vertical and behaves intuitively. Inside the function, f(ax)f(ax) or f(x+a)f(x+a), it is horizontal and reversed/reciprocal.
Is y=f(2x)y = f(2x) a stretch or a squash?
A squash. The horizontal scale factor is the reciprocal of 2, i.e. 12\tfrac12, so the graph is compressed towards the yy-axis. A factor of f(12x)f(\tfrac12 x) would stretch it out.
What is the difference between −f(x)-f(x) and f(−x)f(-x)?
−f(x)-f(x) negates the output, reflecting the curve in the xx-axis (flips it upside down). f(−x)f(-x) negates the input, reflecting it in the yy-axis (flips it left–right).

Key takeaways

  • Outside changes are vertical and intuitive; inside changes are horizontal and reversed.
  • f(x)+af(x)+a up; f(x+a)f(x+a) left; af(x)af(x) vertical stretch aa; f(ax)f(ax) horizontal stretch 1a\tfrac1a.
  • −f(x)-f(x) reflects in the xx-axis; f(−x)f(-x) reflects in the yy-axis.
  • Track key points (intercepts, turning points) through the transformation.
  • Describe transformations precisely, with direction and scale factor.

How this fits the course

Test yourself

Answer a few questions, then review anything you missed.

Prefer paper? Open the written self-check

Answer each question before opening its answer. This self-check does not record a quiz score.

  1. y=f(x)−4y = f(x) - 4 transforms y=f(x)y = f(x) by:

    • a shift down 4
    • a shift up 4
    • a shift left 4
    • a shift right 4
    Show answer and explanation

    Answer: a shift down 4

    Outside, subtracting moves the graph down.

  2. y=f(x+2)y = f(x + 2) transforms y=f(x)y = f(x) by:

    • a shift left 2
    • a shift right 2
    • a shift up 2
    • a stretch of 2
    Show answer and explanation

    Answer: a shift left 2

    Inside changes reverse: +2+2 moves the graph left.

  3. y=3f(x)y = 3f(x) is a:

    • vertical stretch, factor 3
    • horizontal stretch, factor 3
    • vertical stretch, factor 13\tfrac13
    • shift up 3
    Show answer and explanation

    Answer: vertical stretch, factor 3

    Multiplying outside stretches vertically by that factor.

  4. y=f(4x)y = f(4x) is a horizontal stretch of scale factor:

    • 14\tfrac14
    • 44
    • −4-4
    • 22
    Show answer and explanation

    Answer: 14\tfrac14

    Inside stretches use the reciprocal: factor 14\tfrac14 (a compression).

  5. y=f(−x)y = f(-x) reflects the graph in the:

    • yy-axis
    • xx-axis
    • line y=xy = x
    • origin
    Show answer and explanation

    Answer: yy-axis

    A minus inside negates xx, reflecting left–right in the yy-axis.

  6. The point (1,4)(1, 4) on y=f(x)y = f(x) maps under y=f(x)+3y = f(x) + 3 to:

    • (1,7)(1, 7)
    • (4,4)(4, 4)
    • (1,1)(1, 1)
    • (−1,4)(-1, 4)
    Show answer and explanation

    Answer: (1,7)(1, 7)

    Add 3 to the yy-coordinate only: (1,4)→(1,7)(1, 4) \to (1, 7).

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 15 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.