- Graphs of sin, cos and tan · coming soon
- Exponential functions · coming soon
- The chain rule · coming soon
Same two moves, two different graphs
Start with the graph of . Its lowest point is the origin. Amara and Wei are each asked to do two things to it: stretch it vertically with scale factor 2, and translate it up 3.
Amara stretches first. Every height doubles, so she has . Then she moves it up 3, and gets . Its lowest point is .
Wei translates first. He has . Then he stretches it, so every height of that graph doubles: . Its lowest point is .
They did the same two moves. Neither of them made a mistake. And they drew two different graphs.
The translations lecture promised that its main sentence would come back for every combined transformation. The reflections lecture promised that order would not always be as harmless as it was for two reflections. This lecture keeps both promises. It answers three questions. When does the order matter? How do you read the order from an equation? And how do you write an equation when the order is given?
Follow one point, one move at a time
The safest way to see what is happening is to follow one point. Take the point on . Only its height changes in these two moves, so watch the height.
- Amara: .
- Wei: .
Now the reason is clear. In Wei's order, the 3 is added before the doubling. So the doubling doubles the 3 as well. That is where the extra 3 comes from: .
Look at Amara's equation, , with . Read it as a calculation. To find , you first work out . Then you multiply by 2. Then you add 3. That is exactly the order of her moves. So for changes outside the function, the order of the moves is the order of the arithmetic.
The bracket is the whole difference. It tells you that the 3 was added before the stretch.
When order matters, and when it does not
Order does not always matter. Here are three kinds of pairs where it never does.
One horizontal move and one vertical move. A horizontal move changes only the -coordinate. A vertical move changes only the -coordinate. They work on different numbers, so neither can affect the other. "Right 2, then up 3" and "up 3, then right 2" both send to .
Two additions to the same coordinate. Up 3 and then up 5 is up 8 in either order, because .
Two multiplications of the same coordinate. A stretch with scale factor 2 and a stretch with scale factor 3 give a stretch with scale factor 6 in either order. The stretches lecture showed that a reflection is a stretch with scale factor . So a reflection and a stretch in the same direction also give the same graph in either order: .
Order matters only when one move adds and the other multiplies, and both change the same coordinate. In other words, a translation together with a stretch or a reflection, in the same direction. Then the multiplication either catches the added amount or it does not. Try every pair in the machine below.
The ink graph is with . Choose a first move and a second move. The solid teal graph does them in your order. The dashed teal graph does them in the other order. When the two graphs lie on top of each other, the order does not matter.
Try:
Four pairs of moves applied to , with , in both orders. The point is the lowest point of the starting graph.
- Stretch vertically (scale factor 2) and up 2. Stretch first: , and moves to . Up first: , and it moves to . Different graphs.
- Stretch horizontally (scale factor 2) and right 2. Stretch first: , and moves to . Right first: , and it moves to . Different graphs.
- Reflect in the -axis and up 2. Reflect first: , and moves to . Up first: , and it moves to . Different graphs.
- Up 2 and right 2. Either order: , and moves to . The same graph.
What should you have seen? Every pair with one horizontal and one vertical move gave a single graph. So did two stretches, or a stretch and a reflection in the same direction. Only a translation paired with a stretch or a reflection in the same direction split into two graphs.
A graph is reflected in the -axis and translated up 3. Does the order matter? If it does, write both equations.
Show the answer
Yes. Both moves change the -coordinate, and one multiplies (by ) while the other adds. Reflect first: every height becomes , then . So . Translate first: becomes , then . So . Many students expect "a reflection is just a flip, so it cannot depend on order". But a reflection in the -axis multiplies every height by , and multiplying after adding catches the added amount.
Inside the bracket, the order runs backwards
Now the hard part of the lecture. Spend time here. What happens when both changes are inside the bracket? Before you read on, make a prediction.
The graph of has its lowest point at . Where is the lowest point of ? Choose before you look.
The figure shows , then , then . The lowest point moves from to , and then to .
The lowest point of is , because the bracket is zero when .
Here is the reason, built from the sentence the translations lecture gave you. A change to the input moves the graph the opposite way, because the input must be changed back before the function sees the number it needs.
Look at what does to an input before sees it. It multiplies by 2. Then it adds 6. Suppose the old graph had a point , so . Which new input makes the function see ? You must undo the two steps. You undo the last step first, as you do when you take off your shoes before your socks:
So the point moves to . Read the arrows as moves of the graph. First every -coordinate decreases by 6: a translation 6 to the left. Then every -coordinate is divided by 2: a horizontal stretch with scale factor . For the lowest point, . That matches the figure.
Look at what just happened. The calculation inside the bracket was "multiply, then add". The moves of the graph were "subtract, then divide". Each step was undone, so each move is the opposite of what is written. And the steps were undone from the last one backwards, so the order is reversed as well. This is the same rule that the inverse functions lecture used to undo a function: undo each step with its opposite, in the reverse order.
There is a second correct description. Factorise the inside first: . Now the calculation is "add 3, then multiply by 2". Undo it backwards: divide by 2, then subtract 3. So the graph is stretched horizontally with scale factor first, and then translated 3 to the left. Check the lowest point: . The same answer, from a different pair of moves.
That is it. That is the whole idea. Outside the bracket, the moves happen in the order of the arithmetic. Inside the bracket, each step is undone, so the moves are the opposites, in the reverse order. And a horizontal move never interferes with a vertical one, so the inside and the outside can be dealt with separately.
For , every point on moves to
Vertical moves, in the order of the arithmetic: stretch with scale factor , then translate by .
Horizontal moves, undoing the inside in reverse: translate by , then stretch with scale factor . Or, with : stretch with scale factor , then translate by .
Worked examples
Describe the transformations that map to . The point lies on . Find its image.
Outside, the arithmetic is "multiply by 3, then add 5". So: a vertical stretch with scale factor 3, then a translation up 5.
Inside, the arithmetic is "multiply by 2, then subtract 4". Undo it backwards: add 4, then divide by 2. So: a translation 4 to the right, then a horizontal stretch with scale factor .
Or factorise: . The arithmetic is now "subtract 2, then multiply by 2". Undo it backwards: divide by 2, then add 2. So: a horizontal stretch with scale factor , then a translation 2 to the right. Both descriptions are correct. "Translate right 2, then stretch" is not. It gives , a different graph.
The image of : : . : . So the image is .
Check by substitution. At , the inside is , and . So . ✓
The point lies on . Find its image on , and on .
For the first curve, the inside is "add 2", so the graph moves 2 to the left: goes from 4 to 2. The outside is "multiply by , then subtract 1": the height goes . The image is .
For the second curve, the inside is the same, so is again 2. But the outside is now "subtract 1, then multiply by ": . The image is .
Check: the second equation is . At , , so . ✓ One bracket moved the point 2 units.
Write the equation of the graph after each sequence of moves on . (a) Translate 3 to the left, then stretch vertically with scale factor 4. (b) Stretch horizontally with scale factor , then translate 3 to the left. (c) Translate 3 to the left, then stretch horizontally with scale factor .
Build the equation one layer at a time. Each new move acts on the whole of what you have so far. A horizontal move replaces every by something. A vertical move acts on the whole output.
(a) Left 3: . Stretch vertically: multiply the whole output by 4. . One move is horizontal and the other vertical, so the order does not matter here.
(b) Stretch: . Then left 3: replace every by . .
(c) Left 3: . Then stretch: replace every by . .
Check (b) and (c) with a point . In (b), the stretch sends 4 to 2, and the translation sends 2 to . The formula gives . ✓ In (c), , and the formula gives . ✓ So (b) and (c) are different graphs.
Describe as transformations of . Find its turning point and its roots.
With , the equation is . Inside: a translation 1 to the right. Outside, in the order of the arithmetic: multiply by (a stretch with scale factor 2 and a reflection in the -axis, in either order), then add 8 (up 8).
The turning point goes to , then , then . It is now the highest point, because of the reflection.
Roots: , so , and . The roots are and .
Check: at , . ✓ The roots are equally spaced on either side of , as they must be for a parabola. ✓
Three classic mistakes
is not "stretch, then translate 4 to the right". That order gives . Inside the bracket the moves come in reverse: translate right 4, then stretch. Or factorise first: stretch, then translate right 2. If you are unsure, follow one point.
"Translate up 3, then stretch vertically with scale factor 2" is , not . When a stretch comes after a translation, it acts on the whole output so far, so it needs a bracket around it.
In , the 6 is a translation only if you do it first. After you factorise to , the translation is 3, and it comes after the stretch. Mixing the two descriptions, "stretch, then left 6", gives , a different graph.
Work each one on paper first. Open a hint only when you are stuck.
-
The point lies on . Find its image on (a) , (b) , (c) .
Hint 1
All three changes are outside the bracket, so only the height changes. The -coordinate stays 3.
Hint 2
Follow the arithmetic in order, starting from the height .
Full answer
(a) . The image is . (b) . The image is . (c) . The image is . Check (b) by expanding: at gives . ✓ (a) and (b) use the same two moves in different orders, and differ by 5.
-
Describe as two moves in two different ways. The point lies on . Find its image.
Hint 1
The inside does "multiply by 3, then add 6". Undo it from the last step backwards.
Hint 2
For the second description, factorise: .
Full answer
Undoing "×3, then +6" backwards gives "−6, then ÷3": translate 6 to the left, then stretch horizontally with scale factor . With , the inside is "+2, then ×3", undone as "÷3, then −2": stretch with scale factor , then translate 2 to the left. The image of : , or . So it is . Check: at , the inside is , and . ✓
-
Let . Write the equation of the graph after each pair of moves. (a) Reflect in the -axis, then translate 2 to the right. (b) Translate 2 to the right, then reflect in the -axis. Give the domain of each, and the image of the starting point .
Hint 1
Build each equation in layers. A horizontal move replaces every in what you have so far.
Hint 2
For (a): , then replace by .
Full answer
(a) , then . The domain is . The point goes to , then . (b) , then . The domain is . The point goes to , then . Check (b): at , . ✓ Both moves change , and one adds while the other multiplies by , so the order matters.
-
A weather station records the temperature during one day. The graph gives the temperature in °C at hours after midnight. (a) To change °C to °F, you multiply by 1.8 and then add 32. Write the equation of the same graph in °F. (b) Explain why "add 32, then multiply by 1.8" gives the wrong graph, and by how many degrees it is wrong. (c) The station now measures time in hours after 6 a.m. Write the equation of the graph in °F with this new time . Check your answer at 9 a.m., when the temperature was 20 °C.
Hint 1
(a) and (b) are changes to the output. (c) is a change to the input: 9 a.m. is , but it was .
Hint 2
For (c), the function needs the time after midnight. Given , that time is .
Full answer
(a) : a vertical stretch with scale factor 1.8, then a translation up 32. (b) . The stretch also multiplies the 32, so every value is 25.6 degrees too high. (c) The function needs , so . This is a translation 6 to the left: the graph starts 6 hours later, so every time is 6 smaller. Check: at 9 a.m., , and . So °F. ✓ The wrong order would give °F.
Order matters far beyond graphs. Putting on your socks and then your shoes is not the same as shoes then socks. Turning a book over and then rotating it ends differently from rotating it first. In mathematics, two operations that give the same result in either order are said to commute. Adding and multiplying the same number do not commute, and that single fact explains this whole lecture.
The backwards order inside the bracket is the same rule you met with inverse functions. To undo a chain of steps, you undo the last one first. You will meet it again in calculus, where the chain rule works through a composite function from the outside in. And you will meet it with matrices, where the order of two transformations of the plane matters in the same way.
- The order of two transformations matters only when both change the same coordinate and one adds while the other multiplies, such as a translation and a stretch in the same direction.
- Changes outside the function happen in the order of the arithmetic, so is a stretch with scale factor followed by a translation by .
- Changes inside the bracket are undone before the function sees the number, so they happen as opposite moves in the reverse order: is a translation by followed by a stretch with scale factor .
- Factorising the inside, , gives a second correct description: the stretch first, then a translation by .
- For , every point moves to , and following one point is the safest check of any description.