2.8 Transformations of graphs

2.8 Transformations of graphs

IB Maths: Applications and Interpretation HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • y=f(x)+by=f(x)+b moves the graph up bb; y=f(x−a)y=f(x-a) moves it right aa.
  • y=−f(x)y=-f(x) reflects in the xx-axis; y=f(−x)y=f(-x) reflects in the yy-axis.
  • y=p f(x)y=p\,f(x) is a vertical stretch, scale factor pp.
  • y=f(qx)y=f(qx) is a horizontal stretch, scale factor 1q\frac1q.
  • The order of a composite transformation can change the result.
  • Test the new equation on one point from the original graph.

Translations

A translation slides the whole graph without turning or resizing it.

The translation by (3−2)\begin{pmatrix}3\\ -2\end{pmatrix} is 3 right and 2 down, giving y=f(x−3)−2y=f(x-3)-2. Each point (x,y)(x,y) moves to (x+3,y−2)(x+3,y-2).

Example: f(x)=x2f(x)=x^2 becomes y=(x−3)2−2y=(x-3)^2-2 with vertex (3,−2)(3,-2). Drag the sliders to move it.

−6−4−22468−4−224681012xyy = x²y = (x − a)² + b
y=(x−a)2+by=(x-a)^2+b; the dashed curve is y=x2y=x^2.
  • y=f(x)+by=f(x)+bup bb
  • y=f(x−a)y=f(x-a)right aa

Which equation is y=f(x)y=f(x) translated 2 units left and 5 units up?

Reflections

A minus sign outside ff reflects in the xx-axis; a minus sign inside reflects in the yy-axis.

If P(4,6)P(4,6) lies on y=f(x)y=f(x), then (4,−6)(4,-6) lies on y=−f(x)y=-f(x) and (−4,6)(-4,6) lies on y=f(−x)y=f(-x). Points on the line of reflection do not move.

For f(x)=(x−1)2+1f(x)=(x-1)^2+1 the vertex (1,1)(1,1) goes to (1,−1)(1,-1) in the xx-axis and (−1,1)(-1,1) in the yy-axis.

−5−4−3−2−112345−8−6−4−22468xy(1, 1)(1, −1)(−1, 1)y = f(x)y = −f(x)y = f(−x)
A function and its two reflections.

y=−f(x)y=-f(x)

  • Reflection in the xx-axis
  • (x,y)→(x,−y)(x,y)\to(x,-y)

y=f(−x)y=f(-x)

  • Reflection in the yy-axis
  • (x,y)→(−x,y)(x,y)\to(-x,y)

The point (2,−3)(2,-3) is on y=f(x)y=f(x). Which point is on y=f(−x)y=f(-x)?

Stretches

A vertical stretch multiplies each yy-value by pp; a horizontal stretch divides each xx-value by qq.

y=p f(x)y=p\,f(x) is a vertical stretch, scale factor pp. y=f(qx)y=f(qx) is a horizontal stretch, scale factor 1q\frac1q.

Points on the xx-axis are invariant under a vertical stretch, and points on the yy-axis under a horizontal one. Under y=f(3x)y=f(3x), (4,6)(4,6) moves to (43,6)\left(\frac43,6\right).

123456−4−224xy(π/4, 4)y = sin xy = 4 sin 2x
y=sin⁡xy=\sin x (dashed) and y=4sin⁡2xy=4\sin 2x: amplitude 4, period π\pi.

The point (6,4)(6,4) is on y=f(x)y=f(x). Where does it go on y=f(2x)y=f(2x)?

Composite transformations

Two transformations in the same direction cannot be swapped; ones in different directions can.

A composite transformation is two or more transformations applied in sequence.

To find an equation, build it up in the order described: after each step write the new equation and use it as the start of the next. y=sin⁡xy=\sin x to y=4sin⁡2x+1y=4\sin 2x+1 uses two stretches (any order), then a translation up 1.

−2−1.5−1−0.50.511.5224681012141618xyy = x²stretch then translatetranslate then stretch
Order matters: stretch then translate gives 3x² + 2; translate then stretch gives 3x² + 6. Dashed: y = x².

Stretch, then translate up 2

  • x2→3x2→3x2+2x^2\to3x^2\to3x^2+2

Translate up 2, then stretch

  • x2→x2+2→3x2+6x^2\to x^2+2\to3x^2+6

Worked example

Describe y=x2→y=3x2+2y=x^2\to y=3x^2+2 and show why order matters.

Which describes y=2f(x)+1y=2f(x)+1 from y=f(x)y=f(x)?

Transformations in context

Transformations adapt a known model: a shift in tt changes when things happen, a stretch scales every output.

In g(t)=f(t−2)g(t)=f(t-2) the graph of ff moves 2 units right, so every value happens 2 hours (or weeks) later. In y=f(x)+by=f(x)+b every value rises by bb. A vertical stretch y=pf(x)y=pf(x) scales every output, for example doubling the population at every time.

1234561020304050xyf(t) = 2^tf(t − 2)3f(t − 2)
f(t) = 2^t (dashed), shifted right 2, then stretched by 3. The result equals ¾ × 2^t.
  • g(t)=f(t−2)g(t)=f(t-2)everything happens 2 units later
  • y=pf(x)y=pf(x)every output multiplied by pp

Worked example

If f(t)=2tf(t)=2^t, simplify 3f(t−2)3f(t-2).

In a model g(t)=f(t−2)g(t)=f(t-2), what happens to the graph of ff?

Try an exam question

The graph of y=f(x)y=f(x) has a point P(4,6)P(4,6). Write down the coordinates of the image of PP on the graph of (a) y=f(x−3)+2y=f(x-3)+2, (b) y=−f(x)y=-f(x), (c) y=f(2x)y=f(2x).

[3 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

The point (1,5)(1,5) lies on the graph of y=f(x)y=f(x). Which point lies on the graph of y=g(x)y=g(x)?

1 mark, marked against the mark scheme

Revision notes