MathemagiciansLibraryExplorationsDeep Dives
← Mathematics · Upper Secondary
MathematicsUpper Secondary

Translations — shifting graphs up down left right

U2 — Algebra Advancing › U2.6 — Graph TransformationsLecture 1 of 4~2700 words

A minus sign that moves a graph to the right

You know the graph of . It is a U-shaped curve, and its lowest point, the vertex, is at the origin.

Now change one thing. Replace with , to get . The new graph has the same shape, but it is somewhere else. The question is where.

A minus sign usually means "go back" or "go left". So most people expect the graph to move 3 to the left. Before you read on, make your own prediction.

Predict, then reveal — which way does the graph move?

Compared with the graph of y = x², where is the graph of y = (x − 3)²? Choose one answer.

The graph of is the graph of moved 3 units to the right. Its vertex is at , because .

xyO−2−1124562468y = x²y = (x − 3)²
The graph of (ink) and the graph of (teal). Every point has moved 3 units to the right: to , to , to , and the vertex from to .

If you chose "left", you are in good company. The instinct is a good one, used in the wrong place. This lecture shows exactly where it goes wrong. By the end, "right" will feel like the only thing that could happen.

Two places to change a function

A function is a machine. An input goes in, the function works on it, and an output comes out. A graph shows every pair: the input along the bottom, and the output up the side.

So there are only two places where you can make a change. You can change the output, after the function has worked. Or you can change the input, before the function works. These two changes move the graph in different ways. That difference is the whole of this lecture.

Changing the output: up and down

Start with the output. Compare with .

41014
74347

The inputs are the same. Each output is 3 bigger. So each point moves to . It goes straight up by 3.

xyO−3−2−11232468y = x²y = x² + 3
The graph of (ink) and the graph of (teal). The arrows show three points moving straight up by 3. The shape does not change.

Every point moves the same distance in the same direction, so the shape does not change at all. A move like this is called a translation. It is the same idea as a translation in geometry, where a whole shape slides without turning or changing size. Here the shape is a graph.

In the same way, is the graph of moved down by 5. Adding to every height moves the graph up. Taking away from every height moves it down.

For any function , the graph of is the graph of moved up by 3.

Changing the input: left and right

Now the change inside the bracket. Compare with .

10149162536
169410149

Look for outputs you recognise. The old function gives 0 at . The new one gives 0 at . The old function gives 4 at . The new one gives 4 at . Every output of the old function appears again in the new row, 3 places further right.

Now ask why. Look at what the new function does with an input. It takes , subtracts 3, and only then squares. So at , it squares 2. That is exactly what the old function did at .

The new function always works on a number 3 smaller than the input you give it. So to get the same output as before, you must give it an input 3 bigger. Bigger inputs are further to the right. This means that the whole graph moves right.

This is the hard part of the lecture. Spend time here. The same argument works for any function , so let us write it once in general.

Take any point on the graph of . This means that . Where does give the same output ? It needs . That happens when , so when .

If is on , then is on .

Every point has moved 3 to the right, and nothing else has changed.

That is it. That is the whole idea. The "− 3" is not an instruction to the graph. It is something the function does to the input before it works. To cancel it, the input must be 3 bigger. That is why the graph moves right.

A picture to hold in your mind

Think of a song that starts at time . Let be the sound at time seconds. Now start the same song 3 seconds late. At time , you hear what the song would normally play at time . So the late song is . The sound you used to hear at time 0 now arrives at time 3. On a graph against time, later means further to the right. Subtracting 3 from the clock makes everything happen 3 seconds later.

Now you can see why the two kinds of change feel so different. A change to the output acts on the height you see, so it moves the graph the way it looks. A change to the input acts before the function works. The graph must move the opposite way to undo it. You will meet the same "opposite" effect again for stretches, later in this topic.

Translations of graphs

is the graph of moved units up. If is negative, it moves down.

is the graph of moved units to the right. If is negative, it moves left. For example, , so it moves 2 to the left.

is a translation by the vector . Every point moves to .

In a column vector, the top number is the move to the right and the bottom number is the move up. Negative numbers mean left and down.

See it on four different graphs below. Each graph has one marked point. Watch where it goes.

Graph builder — translate a graph by a vector

Choose a graph. Move a (right or left) and b (up or down). Watch the marked point, and read the new equation. For 1/x, watch the two dashed lines as well.

The graph of translated 3 units right and 2 units up becomes . The point moves to . The two lines that the graph approaches, the axes and , move to and .

xyO−1124567−112345(4, 3)x = 3y = 2y = 1/xy = 1/(x − 3) + 2
The graph of (ink) and its translation by (teal). The point moves to . The dashed lines and are where the axes, which approaches, have moved to.
Starting graphMoveNew equationMarked point
y = x²2 right, 3 upy = (x − 2)² + 3(0, 0) to (2, 3)
y = x³1 left, 2 downy = (x + 1)³ − 2(1, 1) to (0, −1)
y = √x2 left, 1 upy = √(x + 2) + 1(0, 0) to (−2, 1)
y = 1/x3 right, 2 upy = 1/(x − 3) + 2(1, 1) to (4, 3)

What should you have seen? Whatever the shape, every point moves by the same vector. The marked point always goes from to . The special features of each graph move with it: the vertex of , the starting point of , and the two dashed lines of .

A quick check that comes from the reason

Here is a fast check for the left-right move. Ask: which input makes the inside of the bracket zero?

For , the bracket is zero when . At that input, the new function works on 0, exactly as the old function did at . So whatever the old graph did at , the new graph does at . The graph has moved 4 to the right. For , the bracket is zero at , so the graph has moved 4 to the left.

Use this as a check, not as a replacement for the reason. When a bracket is less simple, it is the reason that will help you.

Stop and think

Move the line 3 units to the right. Then, separately, move the same line 6 units down. Do you get two different lines?

Show the answer

No. The same line. Moving right by 3 gives , which is . Moving down by 6 also gives . The reason is the gradient. On this line, every 3 steps right go with 6 steps up. So the move "3 right" and the move "6 down" differ by "3 right and 6 up", which is a move along the line. Sliding a line along itself changes nothing. A curved graph like has no such direction, so for a curve, moving right and moving down always give different graphs.

Worked examples

Worked Example 1 — Following the vertex

Describe how to get the graph of from the graph of . Find its vertex and where it crosses the -axis.

There are two changes. Inside the bracket, changes the input, so the graph moves 4 to the right. Outside, changes the output, so it moves 3 up. Together, this is a translation by .

The vertex moves to .

The graph crosses the -axis where : . So it crosses at .

Check with another point. is on , so should be on the new graph. Put : . ✓

Worked Example 2 — Tracking one point

The graph of passes through . Find the matching point on the graph of .

You do not need to know what is. Follow the point.

Inside the bracket, , so the graph moves 1 to the left. The -coordinate becomes .

Outside, moves the graph 2 down. The -coordinate becomes .

The matching point is .

Check by substituting. At , the new function gives . ✓ Notice how the check works: the input 1 is changed back to 2 inside the bracket. That is the "opposite" effect again.

Worked Example 3 — A translation hidden in a completed square

Show that the graph of is a translation of . Find its lowest point and its range.

Complete the square. Half of is , and . So:

, so .

So the graph is translated by . The lowest point moves from to .

The range of is . Every height has gone up by 2, so the range is now .

Check at : the original form gives , and the completed form gives . ✓

This is what completing the square really does. It shows that every graph is the same parabola as , moved to a new place.

Worked Example 4 — Why g never gives the output 2

Translate the graph of by . Find the new equation, its domain and its range.

Replace with , then add 2:

The graph of approaches the two axes, and , but never meets them. After the translation, these lines are and . So the domain is , and the range is .

In the domain and range lecture, we wrote as . So the graph of is just the graph of , moved 3 right and 2 up. The function can never give 0. Move every output up by 2, and can never give 2. The strange missing output is the -axis, moved up.

Check: , and . ✓

Worked Example 5 — The roots move too

. Find the roots of , then the roots of .

Factorise: . So the roots are , and . These are where the graph of crosses the -axis.

The graph of is the same graph moved 1 to the right. A move to the right does not change any heights, so the crossing points simply move right by 1. The new roots are , and .

Check by substituting : . ✓ In factor form, : each factor has had its replaced by .

Three classic mistakes

Trap 1 — Moving f(x − 3) to the left

The minus sign inside the bracket does not mean "left". It is done to the input, so the graph moves the opposite way: moves 3 to the right, and moves 3 to the left. If you are unsure, find the input that makes the bracket zero, and check one point.

Trap 2 — Confusing f(x) − 3 with f(x − 3)

is the graph of moved 3 down. is the graph of moved 3 right. The bracket decides which: outside the function changes the output, inside changes the input. Always write the bracket. Without it, means , which is a straight line.

Trap 3 — Forgetting that the domain moves

The graph of starts at . The graph of starts at , not at 0. Every feature of the graph moves with it: starting points, vertices, roots and the lines it approaches. So when you translate a graph, translate its domain and range as well.

Try it yourself

Work each one on paper first. Open a hint only when you are stuck.

  1. Describe the translation that takes to , as a column vector. Give the vertex of the new graph and the point where it crosses the -axis.

    Hint 1

    Inside the bracket changes ; outside changes . Write as .

    Hint 2

    The move is 5 left and 1 down. For the -axis, put .

    Full answer

    , so the graph moves 5 to the left. The outside moves it 1 down. The vector is . The vertex moves from to . At : , so the graph crosses the -axis at . Check: at , , the vertex. ✓

  2. The graph of has a highest point at . Find the highest point of (a) and (b) .

    Hint 1

    A translation moves every point, including the highest point, by the same vector.

    Hint 2

    (a) is 3 right and 1 up. (b) is 4 left, with no vertical move.

    Full answer

    (a) The vector is , so moves to . (b) The vector is , so moves to . Check (a): at , the new function gives . ✓ A translation does not change the shape, so the highest point is still the highest point.

  3. Translate the graph of by . Write the new equation, its domain and its range. Which point does move to?

    Hint 1

    Replace with , then add 1.

    Hint 2

    The starting point moves to . The domain and range start there.

    Full answer

    The new equation is . The number under the root must be 0 or more, so , and the domain is . The smallest output is , so the range is . The point moves to . Check: . ✓

  4. A ball is thrown upwards. Its height in metres after seconds is . A second ball is thrown in exactly the same way, but 1.5 seconds later and from a platform 2 m higher. (a) Write the second ball's height using . (b) Find the greatest height of each ball, and when it happens. (c) At , which ball is higher? (d) When does the second ball come back down to the height it was thrown from?

    Hint 1

    "1.5 seconds later" is a move to the right on a time graph. "2 m higher" is a move up.

    Hint 2

    . Complete the square on to find its highest point, then translate it.

    Full answer

    (a) Later in time means a move right on the time axis, and higher means a move up. So . (b) . So the first ball is highest at , at 20 m. The second graph is translated by , so the second ball is highest at , at 22 m. (c) m. m. The second ball is higher. (d) The first ball is back at its starting height (0 m) when , at and . Move these 1.5 to the right: the second ball is back at 2 m at . Check: . ✓

The bigger idea

A translation is the simplest way to change a graph, but the idea behind it reaches far. A change to the input moves a graph the opposite way, because the function must undo it. You will use that sentence again for reflections, for stretches, and for every combined transformation in this topic.

It also explains how waves move. In physics, a wave of fixed shape that travels to the right at speed is written . After seconds the whole shape has moved to the right, exactly as moves 3 to the right. The minus sign that looked backwards is what makes a wave go forwards.

Key concepts in this lesson