Allday Education

Horizontal Translations of Linear Functions

A horizontal translation slides a graph left or right. The signal is a change inside the parentheses: g(x)=f(xh)g(x) = f(x - h) shifts the graph of ff horizontally by hh units. The shape and the slope stay exactly the same — the line just picks up and moves sideways.

The direction is the part everyone trips on, because it runs opposite to the sign you see. f(x3)f(x - 3) moves the graph 33 units right, and f(x+3)f(x + 3) moves it 33 units left. This article explains why, and how to write the shifted equation.

Why the direction is reversed

Think about what input f(x3)f(x - 3) needs to reproduce an old output. To get the value ff used to give at 00, you now need x3=0x - 3 = 0, which means x=3x = 3. Every output happens 33 units later than it used to — so the whole graph slides right.

The same logic flips for f(x+3)f(x + 3): the output that used to happen at 00 now happens at x=3x = -3, so the graph slides left. Inside the parentheses, subtracting moves right and adding moves left.

-4-3-2-11234-4-3-2-11234xy

Simplifying the shifted equation

To write g(x)=f(xh)g(x) = f(x - h) for a specific linear function, replace every xx in the formula with (xh)(x - h) and simplify. For f(x)=x+1f(x) = x + 1, the shift g(x)=f(x2)g(x) = f(x - 2) becomes g(x)=(x2)+1=x1g(x) = (x - 2) + 1 = x - 1.

Notice the result: the slope is untouched, so the lines are parallel, and only the constant term changed. For lines, a horizontal shift always simplifies to something that looks like a vertical shift — the graph above shows f(x)=xf(x) = x in blue and f(x3)=x3f(x - 3) = x - 3 in red, which you could equally describe as 33 units right or 33 units down.

Worked examples

Example 1: shift right and simplify

Let f(x)=x+1f(x) = x + 1. Find g(x)=f(x2)g(x) = f(x - 2) and simplify.

Replace xx with x2x - 2g(x)=(x2)+1g(x) = (x - 2) + 1
Simplifyg(x)=x1g(x) = x - 1
The graph of ff moved 22 units right

Answer: g(x)=x1g(x) = x - 1

Example 2: shift left and simplify

Let f(x)=x+2f(x) = x + 2. Find g(x)=f(x+3)g(x) = f(x + 3) and simplify.

Replace xx with x+3x + 3g(x)=(x+3)+2g(x) = (x + 3) + 2
Simplifyg(x)=x+5g(x) = x + 5
The graph of ff moved 33 units left

Answer: g(x)=x+5g(x) = x + 5

Example 3: name the direction

The function f(x)=xf(x) = x is transformed to g(x)=f(x+6)g(x) = f(x + 6). Which way does the graph move?

Match the form f(xh)f(x - h)f(x+6)=f(x(6))f(x + 6) = f(x - (-6))
Read off the shifth=6h = -6
Negative hh means the graph moves left

Answer: 66 units left

Try one yourself

Common questions

Why does f(x3)f(x - 3) move right instead of left?

Because the input has to be 33 bigger to make x3x - 3 equal what xx used to be. Every output arrives 33 units later on the xx-axis, which slides the whole graph right.

Does a horizontal translation change the slope?

No. Sliding a line sideways doesn't tilt it, so the new line is parallel to the original. Only the constant term of the equation changes after you simplify.

Why does my shifted line look like it moved down instead of right?

For lines, both descriptions are true at once. Shifting f(x)=xf(x) = x right 33 gives x3x - 3, which is also f(x)f(x) shifted down 33. The two moves land the line in the same place — that only happens because a line's shape never changes.

How do I handle g(x)=f(x5)g(x) = f(x - 5) when f(x)=x+4f(x) = x + 4?

Substitute x5x - 5 everywhere xx appears: g(x)=(x5)+4=x1g(x) = (x - 5) + 4 = x - 1. Replace, then simplify — that's the entire procedure.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1