2.11 Transformations of graphs

2.11 Transformations of graphs

IB Maths: Analysis and Approaches SL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • f(x)+bf(x)+b: up bb. f(x−a)f(x-a): right aa.
  • −f(x)-f(x): reflect in the xx-axis. f(−x)f(-x): reflect in the yy-axis.
  • pf(x)pf(x): vertical stretch, scale factor pp. f(qx)f(qx): horizontal stretch, scale factor 1q\frac1q.
  • Outside the bracket affects yy; inside affects xx, "in reverse".
  • Order matters for composite transformations: apply step by step and check with a point.

Translations

Adding outside the bracket moves the graph vertically; subtracting inside moves it horizontally to the right.

  • y=f(x)+by=f(x)+b: vertical translation by bb, so (x,y)→(x,y+b)(x,y)\to(x,y+b).
  • y=f(x−a)y=f(x-a): horizontal translation by aa, so (x,y)→(x+a,y)(x,y)\to(x+a,y).

y=(x−3)2+4y=(x-3)^2+4 is y=x2y=x^2 moved 3 right and 4 up; the vertex goes from (0,0)(0,0) to (3,4)(3,4). A translation may be written as a vector with top entry aa and bottom entry bb.

−6−4−2246−22468101214xyy = x²y = (x − a)² + b
Change aa and bb to move y=x2y=x^2 (dashed). The vertex is at (a,b)(a,b).

Where is the vertex of y=(x+2)2−5y = (x + 2)^{2} - 5?

Reflections

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

  • 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).

So y=−x2y=-x^2 opens downwards, and y=e−xy=e^{-x} is the reflection of y=exy=e^x in the yy-axis. Points on the mirror line stay fixed: y=−f(x)y=-f(x) leaves xx-intercepts unchanged.

−3−2−11232468xy(0, 1)y = eˣy = e⁻ˣ
y=e−xy=e^{-x} is the mirror image of y=exy=e^x in the yy-axis.

Which equation is y=x3+xy = x^{3} + x reflected in the xx-axis?

Stretches

pf(x)pf(x) stretches vertically by pp; f(qx)f(qx) stretches horizontally by 1q\frac1q.

  • y=pf(x)y=pf(x): vertical stretch, scale factor pp, (x,y)→(x,py)(x,y)\to(x,py).
  • y=f(qx)y=f(qx): horizontal stretch, scale factor 1q\frac1q, (x,y)→(xq,y)(x,y)\to\left(\frac xq,y\right).

y=f(2x)y=f(2x) squashes towards the yy-axis (scale factor 12\frac12); y=f(12x)y=f\left(\frac12x\right) stretches away (scale factor 2). A vertical stretch keeps xx-intercepts; a horizontal stretch keeps yy-intercepts.

−6−4−2246−4−3−2−11234xyy = sin xy = p sin(qx)
Change pp and qq to stretch y=sin⁡xy=\sin x (dashed).

The point (6,4)(6, 4) lies on y=f(x)y = f(x). Where is its image on y=f(12x)y = f\left(\frac{1}{2}x\right)?

Composite transformations

Apply transformations one at a time to the equation, in the stated order; two vertical (or two horizontal) changes do not commute.

From y=x2y=x^2 to y=3x2+2y=3x^2+2: a vertical stretch with scale factor 3, then a translation 2 up. In the other order you get 3(x2+2)=3x2+63(x^2+2)=3x^2+6.

A vertical and a horizontal transformation can be done in either order. At SL you do not need f(ax+b)f(ax+b): keep horizontal stretches and translations as separate steps.

−2.5−2−1.5−1−0.50.511.522.524681012141618xy(1, 5)y = x²y = 3x² + 2y = 3x² + 6
Stretch then translate gives 3x2+23x^2+2; translate then stretch gives 3x2+63x^2+6.

Worked example

The graph of y=x2y = x^{2} is reflected in the xx-axis, then translated 4 units up. Find the equation of the image.

Does stretching vertically by scale factor 3 then translating 2 up give the same graph as translating 2 up then stretching by 3?

Effects on key features

Describe a transformed graph through its features: asymptotes, range, vertex and zeros move or stay fixed predictably.

  • Asymptotes: y=exy=e^x has y=0y=0; y=3−e2xy=3-e^{2x} has y=3y=3.
  • Range: ex>0e^x>0, so −e2x<0-e^{2x}<0 and 3−e2x<33-e^{2x}<3.
  • Maximum: translating a profit function up changes the maximum profit, not the number of items that gives it.
  • Zeros: a vertical stretch keeps zeros fixed, so break-even points do not change.
−3−2.5−2−1.5−1−0.50.511.52−4−3−2−11234xyy = 3(0, 2)y = eˣy = 3 − e²ˣ
y=3−e2xy=3-e^{2x}: reflected, stretched and moved up; the asymptote moves from y=0y=0 to y=3y=3.

What is the horizontal asymptote of y=3−e2xy = 3 - e^{2x}?

Try an exam question

The graph of y=f(x)y=f(x) has its vertex at (2,−3)(2,-3). Write down the coordinates of the vertex of the graph of (a) y=f(x)+4y=f(x)+4, (b) y=f(x−5)y=f(x-5), (c) y=2f(x)y=2f(x), (d) y=−f(x)y=-f(x).

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the coordinates of the image of PP on the graph of y=f(x−4)+1y = f(x - 4) + 1.

1 mark, marked against the mark scheme

Revision notes