IB Maths AI HL Transformations of Graphs Paper 1 & 2 af(x)+b, f(ax+b), order rules ~10 min read

Composite Transformations of Graphs

Combining stretches, reflections and translations is mostly mechanical, except for the order. af(x) + b: stretch first, then translate (natural order). f(ax + b): translate first, then stretch (reverse order). Horizontals and verticals are independent — their relative order doesn’t matter.

๐Ÿ“˜ What you need to know

The two order rules

For vertical composites af(x) + b, the order matches the order of operations on the output: first multiply by a (stretch), then add b (translate). For horizontal composites f(ax + b), the order reverses: even though the bracket reads “multiply by a then add b” on the input x, the graph is built by translating first, then stretching. The reason: horizontal transformations act on the input variable, and the input goes through the operations from inside out — the last operation written on x is the first one applied to the graph.

Verticals: stretch first. Horizontals: translate first. af(x) + b โ€” natural order Step 1: start y = f(x) stretch SF a Step 2: vertical stretch y = af(x) translate (0; b) Step 3: vertical translate y = af(x) + b โœ“Stretch first, then translate (matches order of operations) f(ax + b) โ€” reverse order Step 1: start y = f(x) translate (โˆ’b; 0) Step 2: horizontal translate y = f(x + b) stretch SF 1/a Step 3: horizontal stretch y = f(ax + b) โœ“Translate first, then stretch (reverse of order of operations)
Both composites end with the desired equation, but only in the orders shown. Swapping the order changes the constants — see WE 3 and WE 4.
Order rules at a glance af(x) + b:  stretch SF a  →  translate (0; b) f(ax + b):  translate (−b; 0)  →  stretch SF 1/a H and V are independent — relative order doesn’t matter

Why the order matters

Try doing the operations in the wrong order on y = 3f(x) + 2 starting from f(x) = x2 at x = 2 (so f(2) = 4). Doing stretch then translate gives 3(4) + 2 = 14; doing translate then stretch gives 3(4 + 2) = 18. Different answers! The first matches 3f(x) + 2; the second would give 3f(x) + 6 — the constant got multiplied by the stretch. Order matters whenever two transformations are in the same family (both vertical or both horizontal), because each one’s effect compounds with the other’s.

The output rule: for vertical composites, do operations in the natural order they appear in af(x) + b — multiply, then add. The input rule: for horizontal composites, do them in reverse — even though ax + b “looks like” multiply-then-add, the graph must be translated first (because the +b on the input is the last thing the input sees, which means it’s the first thing applied to the graph).

Combining horizontal and vertical

When a problem mixes horizontal and vertical transformations, the relative order between an H and a V doesn’t matter — you can interleave them however you like. What does matter is the order within each family. So for y = 2f(3x + 6) − 1, do verticals in order (stretch SF 2, then translate (0; −1)) and horizontals in order (translate (−6; 0), then stretch SF 1/3) — but you can do all four in any interleaving. A point (p, q) on f ends up at ((p − 6)/3, 2q − 1) on the new graph.

๐Ÿงญ Recipe — composite transformations

  1. Identify horizontals and verticals: anything inside the bracket of f is horizontal; anything outside is vertical.
  2. Verticals first rule: for af(x) + b, stretch by SF a first, then translate by (0; b).
  3. Horizontals reversed rule: for f(ax + b), translate by (−b; 0) first, then stretch by SF 1/a.
  4. Apply to key points: (p, q) → ((pb)/a, aq + b‘) under af(ax + b) + b‘.
  5. Sketch step-by-step: do one transformation at a time, redraw between each — especially helpful for complex composites.

Worked examples

WE 1

Vertical composite af(x) + b

For y = 4f(x) − 3: (a) Describe the transformations in order. (b) Find the image of the point P(2, 5) under this transformation.

(a) read coefficient and constant a = 4, b = โˆ’3 verticals: stretch FIRST, then translate vertical stretch SF 4, then translate (0; โˆ’3) (b) apply to P(2, 5) stretch SF 4: (2, 5) โ†’ (2, 20) translate (0; โˆ’3): (2, 20) โ†’ (2, 17) image: (2, 17) check: new y = 4ยท5 โˆ’ 3 = 17 โœ“
WE 2

Horizontal composite f(ax + b)

For y = f(2x + 6): (a) Describe the transformations in order. (b) Find the image of the point Q(8, −1) under this transformation.

(a) read coefficients a = 2, b = 6 horizontals: translate FIRST (by โˆ’b) translate (โˆ’6; 0), then horizontal stretch SF 1/2 (b) apply to Q(8, โˆ’1) translate (โˆ’6; 0): (8, โˆ’1) โ†’ (2, โˆ’1) stretch SF 1/2: (2, โˆ’1) โ†’ (1, โˆ’1) image: (1, โˆ’1) check: at new x = 1, new equation gives f(2ยท1 + 6) = f(8) = original y = โˆ’1 โœ“
WE 3

Why order matters — vertical

Consider the desired equation y = 3f(x) + 2. (a) Apply “stretch SF 3, then translate (0; 2)” to f. (b) Apply “translate (0; 2), then stretch SF 3” to f. (c) Which gives 3f(x) + 2?

(a) stretch then translate f(x) โ†’ 3f(x) โ†’ 3f(x) + 2 y = 3f(x) + 2 โœ“ (b) translate then stretch f(x) โ†’ f(x) + 2 โ†’ 3ยท[f(x) + 2] y = 3f(x) + 6 โœ— (c) compare only (a) gives 3f(x) + 2 — the stretch acts on the constant if done second, doubling it from 2 to 6.
WE 4

Why order matters — horizontal

Consider the desired equation y = f(2x − 4). (a) Apply “translate (4; 0), then stretch SF 1/2” to f. (b) Apply “stretch SF 1/2, then translate (4; 0)” to f. (c) Which gives f(2x − 4)?

(a) translate then stretch f(x) โ†’ f(x โˆ’ 4) โ†’ f(2x โˆ’ 4) y = f(2x โˆ’ 4) โœ“ (b) stretch then translate f(x) โ†’ f(2x) โ†’ f(2(x โˆ’ 4)) = f(2x โˆ’ 8) y = f(2x โˆ’ 8) โœ— (c) compare only (a) gives f(2x โˆ’ 4) — the stretch doubles the โˆ’4 if applied to the translated form, hence โˆ’8.
WE 5

Mixing H and V — full composite

The graph of y = f(x) undergoes: vertical stretch SF 3, vertical translation (0; −1), horizontal translation (4; 0), horizontal stretch SF 1/2. (a) Write the equation of the new graph. (b) Find the image of A(2, 1) on the new graph.

(a) vertical composite 3ยทf + (โˆ’1) โ†’ 3f(ยท) โˆ’ 1 horizontal composite translate (4; 0): f(x) โ†’ f(x โˆ’ 4) stretch SF 1/2: f(x โˆ’ 4) โ†’ f(2x โˆ’ 4) combine y = 3f(2x โˆ’ 4) โˆ’ 1 (b) apply all 4 to A(2, 1) V stretch: (2, 1) โ†’ (2, 3) V translate: (2, 3) โ†’ (2, 2) H translate: (2, 2) โ†’ (6, 2) H stretch: (6, 2) โ†’ (3, 2) image: (3, 2) verify: 3ยทf(2ยท3 โˆ’ 4) โˆ’ 1 = 3ยทf(2) โˆ’ 1 = 3ยท1 โˆ’ 1 = 2 โœ“
WE 6

Applied: modified spring oscillation

An idealised spring’s displacement (cm) at time t (s) is f(t) = sin t. A real spring has triple the amplitude, half the period, and oscillates about an equilibrium 0.5 cm above the original. (a) Write the new displacement function d(t). (b) State the new amplitude, period, max and min. (c) Find d(π4).

(a) build the composite triple amplitude: vertical SF 3 โ†’ 3 sin t halve period: horizontal SF 1/2 โ†’ 3 sin(2t) shift equilibrium up 0.5: โ†’ 3 sin(2t) + 0.5 d(t) = 3 sin(2t) + 0.5 (b) properties amplitude: 3 cm; period: 2ฯ€/2 = ฯ€ s max: 3 + 0.5 = 3.5; min: โˆ’3 + 0.5 = โˆ’2.5 amp 3 cm ยท period ฯ€ s ยท max 3.5 cm ยท min โˆ’2.5 cm (c) substitute t = ฯ€/4 d(ฯ€/4) = 3 sin(ฯ€/2) + 0.5 = 3ยท1 + 0.5 d(ฯ€/4) = 3.5 cm (max)

๐Ÿ’ก Top tips

โš  Common mistakes

Chapter complete — you now have all four Transformations of Graphs sub-topics: Translations, Reflections, Stretches, and Composite Transformations. Ready for any AI HL Paper 1 or 2 transformation question.

Need help with Composite Transformations?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →