In this guide
← Maths AI guides

Functions · AI HL

Graph transformations

AI HL: translate, reflect and stretch graphs, combine transformations and track their domains and ranges.

Course focus: AI HL only: graph transformations are AHL 2.8. AI SL students interpret parameter effects in models, but are not required to learn this general transformation toolkit. Modulus and reciprocal graph transformations are not taught here as AI requirements.

Before you start: Function notation and key graph features.

Start with a small example

Build it from the beginning

HL content

Imagine marking points on a familiar graph before moving it. An outside change acts on the height of each point; an inside change asks which new input reaches the old input. One tracked point often resolves a confusing sign.

A first walkthrough

A point \((2,5)\) lies on \(y=f(x)\). Where does it move on \(y=f(x-3)+1\)?

  1. The old input 2 is reached when \(x-3=2\), so the new input is 5.
  2. The outside +1 changes the output from 5 to 6.
  3. The new point is \((5,6)\): right 3, up 1.
Try the practice ladder after learning the methods ↓

The foundations behind the method

Understand what the symbols mean

Think of a graph as a set of input-output points. An operation outside f changes outputs; an operation inside f changes the input needed to reach the same old output. Track a known point, especially an intercept or turning point, rather than relying only on memorised descriptions.

How the ideas connect

If (u,v) lies on y=f(x), then \(y=af(b(x-h))+k\) has corresponding point \((h+u/b,av+k)\), for nonzero b. Solve the inner input equation to derive the horizontal change. This explains why horizontal scale factors are reciprocal and why several transformations must be applied in a stated order.

01

Start with the idea

Build your understanding

Transformations move known points and features without requiring a new graph calculation from scratch. Separate changes to inputs from changes to outputs: this prevents the common mistake of reading an inside shift in the same direction as an outside shift.

Point mapping

For \(y=af(b(x-c))+d\), an original point \((u,v)\) maps to \((c+u/b,av+d)\), provided \(b\ne0\).

Features travel too

Endpoints, asymptotes and excluded inputs transform along with ordinary points. A plausible-looking curve with the wrong domain is still the wrong graph.

Compare the approaches

Choose by the information in the question, rather than the formula you recognise first.

Outside change

When it helpsScale, reflect or shift the output coordinate.

Check before using itNegative output scale reflects in the x-axis.

Inside change

When it helpsSolve for the new input that produces an old input.

Check before using itA factor of 2 inside compresses horizontal distances by one half.

Your method plan

  1. Write a coordinate mapping instead of guessing an order.
  2. Transform several landmarks and the domain boundaries.
  3. Check asymptotes, reflections and range.
02

Learn the methods

Learn step by step

1. Outside affects output

Adding k outside f raises every y-coordinate by k. Multiplying outside by a scales y-coordinates by a, and a negative multiplier also reflects in the x-axis. Track a known point rather than relying entirely on memorised wording.

Reflections

Why this formula works

A minus sign outside reverses every output’s sign. A minus sign inside asks for the old value at the opposite input. These are reflections in different axes because they change different coordinates.

The formula

\(y=-f(x)\): x-axis reflection. \(y=f(-x)\): y-axis reflection.

Quick example

The point \((2,3)\) becomes \((2,-3)\) on −f(x), but (−2,3) on \(f(-x)\).

2. Inside affects input

Replacing x by \(x-h\) shifts the graph right by h: the original input \(x_{0}\) is reached at the new \(x=x_{0}+h\). Replacing x by bx scales horizontal coordinates by \(\frac{1}{b}\), with reflection in the y-axis if \(b<0\). The apparent reversal of horizontal signs comes from solving for the new input location.

Track a landmark through a transformation

-20240246810xy
  • Original: y = x²
  • Shifted: y = (x − 2)² + 1
The vertex of y = x² moves from (0,0) to (2,1) in y = (x − 2)² + 1. The bracket shifts the input right; the outside addition shifts the output up.

3. Combined transformations

For \(y=af(b(x-h))+k\), a point (u,v) becomes \((h+\frac{u}{b},k+av)\), \(b\ne 0\). This formula fixes the order: scaling and reflection relative to the inside bracket precede the shift h. Expressions such as \(f(2x-6)\) should first be rewritten \(f(2(x-3))\).

General point mapping

Why this formula works

The original point uses input u and output v. On the new graph, solve \(b(x-h)=u\) for its x-coordinate, then transform its output to \(av+k\). This derives the coordinate mapping and explains the reciprocal horizontal scale.

The formula

\((u,v)\mapsto(h+u/b,k+av)\) for \(y=af(b(x-h))+k\) \(b\ne 0\).

Quick example

Under \(y=2f(3(x-1))+4\), a point \((6,5)\) becomes \((3,14)\): solve \(3(x-1)=6\), then \(2\times 5+4=14\).

Worked example: A combined transformation

The graph \(y=f(x)\) contains \((2,3)\). Find its corresponding point on \(y=-2f(3(x-1))+4\).

  1. Set the new inside input to 2: \(3(x-1)=2\), so \(x=\frac{5}{3}\).
  2. The output becomes −\(2(3)+4=-2\).
  3. The new point is \((\frac{5}{3},-2)\).
Worked example: A transformed domain

f has domain [\(0,6\)]. Find the domain of \(y=f(2(x-1))\).

  1. The inner input must lie in [\(0,6\)]: \(0\le 2(x-1)\le 6\).
  2. Divide by 2 and add 1, giving \(1\le x\le 4\).
  3. The domain contracts horizontally and shifts right. Applying a vertical scale to this graph would not alter that domain.

4. Order matters in successive transformations

Compare shifting then stretching with stretching then shifting. A vertical shift of 2 followed by a stretch of 3 gives 3(f(x)+2), whereas a stretch followed by the shift gives 3f(x)+2. Expand both expressions and track one point to see why the resulting heights differ. Read the operations in their stated order.

Successive output changes

Why this formula works

A stretch applied after a translation scales the translation as well as the original output. Changing the order changes the constant term. Comparing the expanded expressions gives an algebraic check of the geometric sequence.

The formula

\(a(f(x)+k)=af(x)+ak\), which generally differs from \(af(x)+k\).

Quick example

At an original output 4, shifting up 2 then tripling gives 18; tripling then shifting up 2 gives 14.

Worked example: Compare two orders

For \(f(x)=x^2\), compare shifting up 2 then stretching vertically by 3 with the reverse order.

  1. Shift then stretch: \(g(x)=3(x^2+2)=3x^2+6\).
  2. Stretch then shift: \(h(x)=3x^2+2\). Both have the same quadratic coefficient but different intercepts.
  3. At \(x=0\), the heights are 6 and 2, so the transformations do not commute.

5. Sketch with landmarks

A useful sketch labels transformed roots, stationary points, endpoints, holes and asymptotes. Transform known points exactly before joining them with the original curve shape. Keep the original restrictions visible: a point mapping can move a hole, but cannot fill it. Use the next sections to verify transformed domains and recover mappings from corresponding landmarks.

6. Transform domains and ranges as well as points

A point mapping changes every permitted x and y, including interval endpoints and holes. A negative scale reverses endpoint order, so rewrite the result from least to greatest. For an inside transform \(b(x-h)\), solve the original domain inequality rather than guessing shifts. A vertical transform \(ay+k\) acts on range values. Open endpoints remain open under a nonzero affine transformation, and closed endpoints remain closed.

Transform domains and ranges as well as points

Why this formula works

The allowed inner inputs are the original domain values u, so solving \(b(x-h)=u\) gives their new locations. The same output calculation \(y=av+k\) transports range values, with a negative a reversing their order.

The formula

\(x=h+u/b\) \(y=k+av\), for \(b\ne 0\). Apply these maps to the complete allowed sets.

Quick example

If the original range is [−\(1,3\)], then −\(2f(x)+4\) has range [−\(2,6\)], not [\(6,-2\)].

Worked example: Move both restrictions

f has domain [\(1,5\)] and range [−\(2,4\)]. Find the domain and range of \(g(x)=-3f(2x-1)+2\).

  1. Require \(1\le 2x-1\le 5\), giving \(1\le x\le 3\).
  2. Map the range endpoints: −\(3(-2)+2=8\) and −\(3(4)+2=-10\).
  3. The new range is [−\(10,8\)]. It is closed because both original endpoints are attained.

7. Recover a transformation from paired points

Match corresponding landmarks before fitting a transformation. Use two output pairs to recover the vertical scale and shift, and two input pairs to recover the horizontal map. Verify a third point or an asymptote when available: two arbitrarily paired points do not establish that entire graphs correspond. State any assumptions about matching features.

Recover an output mapping

Why this formula works

Two corresponding output values satisfy two linear equations in scale a and shift k. Subtracting the equations eliminates the shift. After solving the scale, substitute into either equation to recover the translation and check the mapping.

The formula

\(a=(y_2-y_1)/(v_2-v_1)\) \(k=y_1-av_1\), when \(v_1\ne v_2\).

Quick example

If outputs 1 and 3 become 5 and 9, then \(a=(9-5)/(3-1)=2\) and \(k=5-2=3\).

Worked example: Compare two orders

For \(f(x)=x^2\), compare shifting up 2 then stretching vertically by 3 with the reverse order.

  1. Shift then stretch: \(g(x)=3(x^2+2)=3x^2+6\).
  2. Stretch then shift: \(h(x)=3x^2+2\). Both have the same quadratic coefficient but different intercepts.
  3. At \(x=0\), the heights are 6 and 2, so the transformations do not commute.
Quick formula reference

For revision once you understand the methods above. Check the conditions before using a formula.

General point mapping

\((u,v)\mapsto(h+u/b,k+av)\) for \(y=af(b(x-h))+k\), \(b\ne 0\).

Return to the explanation →

Reflections

\(y=-f(x)\): x-axis reflection. \(y=f(-x)\): y-axis reflection.

Return to the explanation →

Successive output changes

\(a(f(x)+k)=af(x)+ak\), which generally differs from \(af(x)+k\).

Return to the explanation →

Transform domains and ranges as well as points

\(x=h+u/b\), \(y=k+av\), for \(b\ne 0\). Apply these maps to the complete allowed sets.

Return to the explanation →

Recover an output mapping

\(a=(y_2-y_1)/(v_2-v_1)\), \(k=y_1-av_1\), when \(v_1\ne v_2\).

Return to the explanation →

Learn to diagnose an error

Spot the mistake

The statement below is incorrect. Identify the missing condition or reasoning before opening the explanation.

Incorrect reasoning

\(y=f(2x)\) doubles every horizontal coordinate.

Explain and repair the mistake

It halves them. The old input u is reached when \(2x=u\). An old point (6,4) becomes (3,4), demonstrating a horizontal compression.

03

Connect and apply

Put the ideas together

A more demanding application of this guide’s methods. This is a learning stage; any additional HL content is labelled separately.

Worked application

Map an endpoint and an asymptote

For \(f(x)=\sqrt{x}\), describe \(g(x)=3\sqrt{2(x-1)}-4\).

  1. The mapping is \((u,v)\mapsto(1+u/2,3v-4)\). The endpoint \((0,0)\) becomes \((1,-4)\).
  2. Points \((1,1)\) and \((4,2)\) become \((1.5,-1)\) and \((3,2)\). These provide accurate sketch landmarks.
  3. The radicand requires \(x\ge1\); the positive output scale gives range \(y\ge-4\).
  4. The factor 2 halves horizontal distances from the new endpoint. It does not double the x-coordinates.
Pause and explain

What would a negative outside multiplier change?

Check your reasoning

It would reflect outputs about the shifted horizontal baseline and reverse the range inequality. The valid input domain would still come from the radicand.

Common mistakes and how to avoid them

  • Horizontal scaling uses the reciprocal factor.
  • Factor the inside expression before identifying a translation.
  • f(
  • x
  • ) and
  • f(x)
  • are different graphs.
04

Practise independently

Build confidence, then apply it

Try each question before opening its hint or solution. If a method is new, return to the walkthrough, then try again. These learning stages describe the practice sequence; additional HL content is labelled separately.

  1. 1

    Build confidence

    HL extension

    Where does \((4,7)\) move on \(y=f(x)+2\)?

    Need a starting point?

    Only the output changes.

    Show the worked solution
    1. Keep the input 4 and add 2 to the output.
    2. The image is \((4,9)\).
  2. 2

    Apply and explain

    HL extension

    Where does \((4,7)\) move on \(y=-f(x)\)?

    Need a starting point?

    A negative outside multiplier changes the output sign.

    Show the worked solution
    1. The input remains 4 and the output becomes -7.
    2. The image is \((4,-7)\), a reflection in the x-axis.
  3. 3

    Check your understanding

    Where does (2,3) move under \(y=2f(x-1)-4\)?

    Show the worked solution

    It moves to (3,2): shift the input right by 1, double the output, then subtract 4.

  4. 4

    Use the method

    Where does \((4,5)\) move under \(y=f(x+2)-3\)?

    Show the worked solution

    The graph shifts two left and three down, so the point becomes \((2,2)\).

  5. 5

    Combine the skills

    Transform domains and ranges as well as points

    If f is defined for \(x>2\), what is the domain of \(f(-x)\)?

    Show the worked solution

    Require −\(x>2\). Dividing by −1 reverses the inequality, giving \(x<-2\).

Finished? Use the linked question bank below to practise selecting the method without a guide telling you which rule to use.

Using these methods in exam questions

AI Paper 1

GDC required

Short-response questions still need mathematical setup and interpretation. Choose the correct tool, enter the model or data carefully, and check units and rounding.

AI Paper 2

GDC required

Extended-response questions connect several steps. Keep intermediate values at full precision and explain how each result answers the context.

For this topic: Label axes, intercepts and relevant asymptotes. For a numerical root, state the equation and search interval; a graph window that misses an intersection is not evidence that no solution exists.

HL only · GDC required

Paper 3: build a connected argument

Both AA HL and AI HL Paper 3 contain two extended problem-solving questions. A question develops a theme, so keep useful earlier results, test small cases and explain any proposed general rule. A calculator pattern can suggest a result; your mathematical reasoning must support it.

  1. Identify what the first part establishes and record the conditions under which it holds.
  2. When a later part introduces a new definition or model, connect it to methods you already know rather than assuming a new formula must have been memorised.
  3. Check the conclusion against an earlier numerical case and explain its meaning or limitation.

For the first-assessment-2021 courses. IB assessment reference ↗

Combine the skills

These questions need more than one step. Check all cases and justify why your answers are valid.

Find a specific method or formula

Now practise the method

If you opened this guide from a question, return to that tab and try the method without looking at the example. Your answer stays in the question tab.

Practise this subtopic →

Want a broader practice session? Explore IB Maths AI SL practice questions →Explore IB Maths AI HL practice questions →Try free IB Maths exam-style questions and worked solutions →

Original Arc Practice teaching notes for Maths AI. Core and HL sections are distinguished above. These notes follow the first-assessment-2021 course and are not an official IB publication or a complete syllabus checklist. IB course reference. Report a correction.