2.11 Transformations of graphs

2.11 Transformations of graphs

IB Maths: Analysis and Approaches HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

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

Translations

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

y=f(x)+by=f(x)+b is a vertical translation by bb: (x,y)→(x,y+b)(x,y)\to(x,y+b). y=f(x−a)y=f(x-a) is a horizontal translation by aa to the right: (x,y)→(x+a,y)(x,y)\to(x+a,y). A translation may be written as a column vector with horizontal entry aa on top and vertical entry bb below.

Changes inside the bracket act on xx in reverse: f(x−4)f(x-4) moves 4 units right.

−4−22468−22468101214xy(0, 0)(3, 4)y = x²y = (x − 3)² + 4
y=x2y=x^2 translated 3 right and 4 up: vertex (0,0)(0,0) moves to (3,4)(3,4).

Worked example

Describe the transformation from y=f(x)y=f(x) to y=f(x+2)−3y=f(x+2)-3.

Which transformation maps y=f(x)y=f(x) onto y=f(x+5)y=f(x+5)?

Reflections

−f(x)-f(x) reflects in the xx-axis and f(−x)f(-x) reflects in the yy-axis.

y=−f(x)y=-f(x) sends (x,y)→(x,−y)(x,y)\to(x,-y). y=f(−x)y=f(-x) sends (x,y)→(−x,y)(x,y)\to(-x,y). For example 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, so the xx-intercepts are unchanged by y=−f(x)y=-f(x).

−3−2−1123−8−6−4−22468xy(0, 1)(0, −1)y = eˣy = −eˣy = e⁻ˣ
y=exy=e^x (dashed) with its reflections in the two axes.

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

Stretches

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

A vertical stretch y=pf(x)y=pf(x) sends (x,y)→(x,py)(x,y)\to(x,py) and leaves the xx-intercepts fixed. A horizontal stretch y=f(qx)y=f(qx) sends (x,y)→(xq,y)(x,y)\to\left(\frac xq,y\right) and leaves the yy-intercept fixed.

So f(2x)f(2x) squashes towards the yy-axis (scale factor 12\frac12) and f(12x)f\left(\frac12x\right) stretches away (scale factor 2). f(3x)f(3x) is scale factor 13\frac13, not 3.

−6−4−2246−4−3−2−11234xyy = sin xy = p sin(qx)
pp changes the height and qq the width, compared with y=sin⁡xy=\sin x (dashed).

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

Combining transformations

Apply transformations one at a time in the stated order; two vertical changes do not commute.

From y=x2y=x^2 to y=3x2+2y=3x^2+2 is 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. Reflecting y=x2y=x^2 in the xx-axis then translating up 4 gives −x2+4-x^2+4; translating first and then reflecting gives −x2−4-x^2-4.

Two vertical changes do not commute, nor do two horizontal ones. A vertical and a horizontal change can be done in either order.

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

Worked example

Check that y=3x2+2y=3x^2+2 comes from a stretch (factor 3) then a translation 2 up, using (1,1)(1,1) on y=x2y=x^2.

Starting from y=x2y=x^2, translate 4 up and then reflect in the xx-axis. What is the new equation?

Effects on key features

Describe a transformed graph by its asymptotes, range, vertex and zeros.

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 3−e2x<33-e^{2x}<3. In context, a vertical translation of a profit function changes the maximum profit but not the number of items that gives it.

A vertical stretch keeps zeros fixed, so break-even points do not change when all profits are scaled.

−3−2.5−2−1.5−1−0.50.511.52−4−224xyy = 3(0, 2)(½ ln 3, 0)y = eˣy = 3 − e²ˣ
y=3−e2xy=3-e^{2x}: asymptote y=3y=3, range y<3y<3, yy-intercept (0,2)(0,2).

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

Try an exam question

(a) Describe fully the transformations that map the graph of y=f(x)y=f(x) onto the graph of y=f(x+2)−3y=f(x+2)-3. (b) The graph of y=x2y=x^2 is stretched vertically with scale factor 3 and then translated 2 units up. Write down the equation of the new graph.

[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