Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 2.11 · SL and HL
Transformations of graphs
If you know the graph of , what does the graph of look like, and how do you get from one to the other without plotting a single new point?
What you will learn
- Know how translations, reflections and stretches change the equation y = f(x) and its graph
- Understand why changes inside the bracket move the graph sideways in the opposite sense to their sign
- Understand when the order of two transformations matters and when it does not
- Know how points, asymptotes, intercepts, domain and range are carried through a transformation
You must be able to
- Describe fully a sequence of transformations, giving each vector, axis or scale factor
- Find the equation of a graph after a given sequence of transformations
- Write down the image of a point under a transformation, or find the point it came from
- Sketch a transformed graph, labelling the images of key points and every asymptote
- State the domain and range of a transformed function
- Show that two different transformations give the same graph, using laws of indices or logs
In the exam. Paper 1 and Paper 2 Section A, usually 3 to 6 marks: "write down the coordinates of the image of the point", "describe fully a sequence of transformations", "find an expression for ", "sketch the graph of on the same axes". It also sits inside longer questions on quadratics (vertex form, 2.6), rational functions (2.8), exponentials and logarithms (2.9) and trigonometric graphs (3.7), because each of those families is one basic graph, transformed. Most questions are Paper 1, so expect to do all of this by hand.
1The graph we will move
One function stays fixed through the page so that you can compare like with like:
Watch four points:
- .
- , its local maximum.
- , the -intercept.
- , where it touches the -axis.
It is lopsided on purpose, so that the different flips look different. In every figure the original is teal and the image is amber.
2Translations
Vertical:
- Each output of has added. The inputs are untouched. So every point rises by (falls, if is negative).
- Figure 1(a) draws : lands on , and every other point rises 2 with it.
Horizontal:
- The graph slides units to the right, although the bracket holds a minus.
- To see why, take . It needs to make the bracket zero, and at it returns the value . Whatever does at , does 3 units later. Every feature turns up 3 units further right.
- Figure 1(b) draws : lands on . Likewise is , a slide 3 units to the left.
- A translation is described by a vector: the horizontal slide on top and the vertical slide underneath, in a column. In these notes the column is typed on one line, so "the vector " means 3 right and 0 up.
- Horizontal and vertical slides combine. is the translation by the vector . Every point goes to .
3Reflections
: reflection in the -axis
- The sign of every output flips, so goes to . What was above the axis is now below it, and the reverse.
- Points on the axis stay put. In Figure 2(a), and do not move, while the maximum turns into a minimum at .
: reflection in the -axis
- Now the input has its sign flipped. At the new graph returns . So what did at , the new graph does at . Every point goes to .
- A point on the -axis is fixed: stays in Figure 2(b), while goes to .
- A quick test for any sketch: a reflection leaves every point on its mirror line exactly where it was.
Both at once:
- The two flips act on different coordinates, so the order is irrelevant. goes to . goes to .
- Only the origin is left fixed. This is a half-turn about the origin.
- A question may ask you to show, with an algebraic approach, that is the reflection of in the -axis followed by the -axis. Work with the general equation. Substitute to get , then negate the whole result.
- One point carried through two flips shows nothing about the rest of the graph.
- Example: for :
Check with : , so , and .
4Stretches
: vertical stretch, scale factor
- Every output is multiplied by , so goes to . Each point ends up times as far from the -axis as before.
- With in Figure 3(a), goes to and to . and sit on the axis at distance zero, and twice zero is zero, so they stay.
- When the graph is pressed towards the axis. It is still a stretch, with a scale factor below 1.
: horizontal stretch, scale factor
- Every point goes to .
- With , the new graph reaches at the value reached at . It gets everywhere twice as fast, so the picture is squeezed to half its width. The scale factor is , not 2.
- In Figure 3(b), goes to and to , while on the -axis is unmoved.
- Reversed: is , so and the scale factor is 3: three times as wide.
- Invariant line = the axis a stretch pulls away from. Points on it do not move.
- A vertical stretch pulls away from the -axis. A horizontal one pulls away from the -axis. So "a vertical stretch, scale factor 3" and "a stretch parallel to the -axis with scale factor 3" are both full descriptions.
Words for a "describe" question.
- Stretch. Use stretch (dilation is also used). Give the scale factor as a positive number, even a fraction: "a horizontal stretch with scale factor ".
- Some course books say "compression" or "shrink" for a factor below 1. Write "stretch" and let the number carry the size.
- Slide. Write translation, with its vector, or in words "2 left, 7 up". Avoid the vague "move".
- Flip. Give the axis.
5The whole set on one table
Every standard level transformation, what it does to a point, and taken through each one:
| Equation | Described fully | goes to | goes to |
|---|---|---|---|
| translation by the vector | : | ||
| translation by the vector | : | ||
| reflection in the -axis | |||
| reflection in the -axis | |||
| vertical stretch, scale factor | : | ||
| horizontal stretch, scale factor | : | ||
| horizontal stretch, scale factor 2 |
Figure 4 explains the table. Read as a production line.
- The input is treated first, before sees it. That is the inside. It governs sideways movement, and it works against its sign.
- Then runs.
- Then the output is multiplied and added to. That is the outside. It governs vertical movement, and it works as written, in the order written.
This is the composite functions of 2.5 under another name.
- is with . The extra function runs after , on the output.
- is with . The extra function runs before , on the input.
Which side of the extra function sits on decides which coordinate it changes.
6Building a graph from one you know: to
The guide's own illustration is sketching from . Follow what happens to : it is squared, then multiplied by 3, then 2 is added. The transformations come in that order:
- A vertical stretch with scale factor 3, giving .
- A translation by the vector , giving .
- Figure 5 draws both steps and tracks . The stretch sends it to , the translation to .
- The vertex lies on the -axis, so the stretch leaves it alone. The translation lifts it to .
- A good sketch shows the vertex , the axis of symmetry , and a parabola narrower than , since all the heights have been tripled.
Vertex form is this idea
- is slid right, stretched by (and flipped if ), then slid up. That is why the vertex is .
- Example: take . The vertex goes to , is unmoved by the stretch, and ends at . Every parabola is one parabola, transformed.
From an expanded quadratic to a sequence. To describe how becomes , complete the square first:
Now read the production line:
- A translation by the vector .
- A vertical stretch with scale factor 3.
- A translation by the vector .
The vertex goes .
One graph, two descriptions. Sometimes two different transformations produce the very same curve. Test a claim by rewriting the equation.
- : a horizontal stretch of with scale factor , or a vertical stretch with scale factor 25.
- This works because happens to hold for . It fails for , so the two are not interchangeable in general.
- : a translation by the vector of , or a vertical stretch with scale factor 16.
- , because : a translation by the vector of , or a horizontal stretch with scale factor .
- When a question names the kinds ("a stretch and a translation"), split the equation into those pieces. Use the laws of logarithms or exponents.
- Example: is a vertical stretch with scale factor 3 of , then a translation by the vector .
- The 3 in the exponent belongs to alone, so is not . Translating first would need the vector , since the stretch triples it.
7Two or more transformations, and when the order matters
A question may give a sequence and ask for the equation, or give the equation and ask for the sequence. One rule covers both:
Vertical changes act in the order they are applied to . Horizontal changes act on . A horizontal change and a vertical change never interfere with one another.
(Two horizontal changes do depend on order. A stretch with scale factor followed by a shift of 3 right gives , while the shift first gives . That is the form , which SL does not ask for and HL meets in 2.16.)
Two vertical changes: order matters
- Take a vertical stretch by 2 and a translation up 1, starting from .
- Stretch, then translate: becomes , then .
- Translate, then stretch: becomes , then .
- These are different graphs, because the stretch has also stretched the translation. Figure 6 follows : it ends at one way and the other.
- A reflection and a translation do not commute either. Start with .
- Reflect, then add 4: . The vertex is at .
- Add 4, then reflect: . The vertex is at .
Some pairs can be swapped freely.
- A stretch and a reflection in the same direction. is both and .
- A horizontal change and a vertical change. In the slide of 2 to the right may come first, last or in the middle. Only the stretch by 3 must come before the .
Worked example 1 · from words to an equation (Paper 1). Let . The graph of is translated by the vector and then stretched vertically with scale factor 3 to give the graph of . Find .
Had the stretch come first, the result would be .
Worked example 2 · from an equation to words. Describe a sequence of transformations that maps onto .
Put it in production-line order: . The outputs are multiplied by , then 1 is added. So:
- A vertical stretch with scale factor .
- A reflection in the -axis (these two in either order).
- A translation by the vector .
Check with the point on : it goes to , then , then . The equation agrees: .
Worked example 3 · image of a point. The point lies on . Find its image on .
The inside, , pushes the point 4 to the right, so becomes . The outside triples the height and then takes off 2: . The image is .
Worked example 4 · back from the image. The point lies on the graph of . Find the point on that produced it.
Undo in reverse, outside first. For : , so . For : the inside shifted points 3 to the left, so .
The original is . Forward check: .
8Asymptotes, intercepts, turning points, domain and range
- An asymptote is a line the graph approaches, and a transformation carries it exactly as it carries the curve. When you sketch, transform the asymptote first, then draw the curve to hug it.
- Take , with horizontal asymptote and -intercept . Reflect in the -axis to get . The asymptote lies on the mirror and stays, and becomes .
- Now translate by the vector to get . Figure 7 draws both stages.
- The horizontal asymptote rises 3, to . Sliding a horizontal line sideways changes nothing.
- The -intercept does not come from moving , because that point goes to , which is off the -axis. Get the new intercept from the new equation: at , .
- The -intercept: gives , so .
That second bullet is the trap. Transformations carry points to points, but an intercept is defined by an axis, and the axes do not move.
- Turning points are carried faithfully. A local maximum of at becomes a local maximum of at , and a local minimum of at . A reflection in the -axis swaps maxima and minima.
- The same thinking handles rational functions (2.8). is stretched vertically by 4 and translated by . So its asymptotes are and : the two axes, carried along.
Domain, range and end points
- If a graph stops, its end points are carried like any other point. Inside changes act on the domain. Outside changes act on the range.
- Let have domain and range .
- : the bracket needs , so the domain is . The range is , which is .
- : , so the domain is ; the range is unchanged.
- : , so the domain is . And has range . A reflection or a negative factor reverses the order of the ends.
To sketch a transformed graph from a given one:
- Carry the end points, turning points and intercepts across first.
- Keep straight pieces straight and curves the same shape.
- Mark the end points.
The domain of the image is a separate thing to get right.
9With technology
- A dynamic graphing package with a slider for each of , , and shows every rule on this page in seconds. Use it to learn them.
- On Paper 2, you can plot and the new function together to check where the key points went. Or use the GDC once to find a feature of , such as a turning point, and transform it.
- That second route is what a "hence" question wants (Q5).
Practice questions
34 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.