Guide

Translating graphs: f(x) + k and f(x − k)

By Viktor Lassen5 min readUpdated 3 September 2026

There are two ways to translate a graph: up the y-axis or along the x-axis. Up is easy, you add to the function. Sideways is the one that catches people, because moving right means subtracting from x.

When we translate a function, there are 2 ways we can do it. We can push the graph along the x-axis, or up the y-axis. The vertical one is straightforward. The horizontal one is the one that catches people, because it doesn't feel intuitive, so it gets the most room here.

When do I use this?

Whenever a question shows you the graph of y=f(x)y = f(x) and asks you to sketch y=f(x)+3y = f(x) + 3 or y=f(x−2)y = f(x - 2), or asks which translation takes one graph onto another. You need function notation for the f(x)f(x) language, and the parabola is the running example because it's the shape the book uses.

Shifting up the y-axis

Let's say we have the function

f(x)=x2f(x) = x^2

Right now the graph crosses the y-axis at 0, but let's say we wanted to translate the function so that it crossed the y-axis at 5. So that it lands like the dotted graph in the picture below.

f(x) = x² (solid) and the shifted graph x² + 5 (dotted): every point has moved up by 5

We can see a shift up the y-axis as just taking all the points on the graph and pushing them upwards, that is, adding some particular value to their y-value. If we move one point up, we simply have to add 5 to the y-value before the point has been translated upwards: the point (x,y)(x, y) becomes (x,y+5)(x, y + 5).

If we want to translate the whole function by 5, we therefore have to add 5 to our function:

f(x)=x2+5f(x) = x^2 + 5

and then the whole function is translated upwards by 5.

We can write in general that if we want to move a function up the y-axis, that is, translate the function up the y-axis, we add a value to the function:

f(x)+kf(x) + k

Shifting along the x-axis

When we translate a function along the x-axis, we can see it as just taking all the points' x-values on the graph and pushing them. That is, we add or subtract some value from the x-value. But this one is a bit more involved than shifting up the y-axis. When we want to translate a graph to the right by, say, 5, we actually have to subtract 5 from our x-value:

f(x−5)f(x - 5)

Here the function gets translated 5 to the right. When we shift to the left, we add instead:

f(x+5)f(x + 5)

If our function was f(x)=sin⁡(x)f(x) = \sin(x), a translation of 5 to the right would be sin⁡(x−5)\sin(x - 5).

It doesn't feel intuitive to subtract when we want to translate the function to the right, and add when we translate to the left, but there is actually an explanation for it. Let's take an example.

Why moving right means subtracting

A graph f and its copy g pushed 1 to the right: the point (2, 2) on g sits over the point (1, 2) on f

Here we have our function f(x)f(x) and the translated function, which we call g(x)g(x). g(x)g(x) has been pushed to the right along the x-axis. We've marked the point (2,2)(2, 2), which lies on g(x)g(x). If we wanted to move this point across onto f(x)f(x), we'd just have to subtract 1 from the point's x-value. The point over on f(x)f(x) therefore gets the name

(2−1,2)=(1,2)(2 - 1, 2) = (1, 2)

All we did was take one off the x-coordinate:

(x−1,y)(x - 1, y)

We can say that if the point (x,y)(x, y) lies on the graph gg, then the point (x−1,y)(x - 1, y) lies on the graph ff. That was specific to our example, so if we wanted to say it in general, we could write that if the point (x,y)(x, y) lies on the graph gg, then the point (x−k,y)(x - k, y) lies on the graph ff. Here kk is the value we want to translate by, which in our example was 1.

Because our point (x,y)(x, y) lies on the graph gg, we can say in general that

y=g(x)y = g(x)

that is, the y-value of the point is simply the function value of the function, just as the picture shows. We also know that

y=f(x−k)y = f(x - k)

because we can find the point across on the graph of ff by subtracting kk from the x-value. So we can find the "shifted" point across on the graph of ff by taking kk off the x-value, just like we did in our example.

Here we can see that both g(x)g(x) and f(x−k)f(x - k) are equal to yy, so they're also equal to each other:

g(x)=f(x−k)g(x) = f(x - k)

What this says is that if we want to translate a function to the right by the value kk, we have to subtract the value kk from xx in our function. It can feel strange that translating a function to the right means we subtract.

Worked example: x² pushed 1 to the right

If we translate the function f(x)=x2f(x) = x^2 by 1 to the right, we subtract 1 from the x-value:

f(x−1)f(x - 1)

Here it's important to remember that it's only the x-value we subtract 1 from, so we write

(x−1)2(x - 1)^2

If we draw it, the graphs look like this:

f(x) = x² (solid) and g(x) = (x − 1)² (dotted): the graph has been pushed 1 to the right

It doesn't feel so intuitive to subtract a value when the graph is to be moved to the right, but you get used to it quickly.

The rule in short

If we want to translate a function f(x)f(x) to the right along the x-axis by a value kk, we subtract kk from xx:

f(x−k)f(x - k)

If we want to translate a function f(x)f(x) to the left along the x-axis by a value kk, we add kk to xx:

f(x+k)f(x + k)

And up the y-axis by kk:

f(x)+kf(x) + k

Common mistakes

  • "f(x − 5) moves the graph 5 to the left." It moves it 5 to the right. A point (x,y)(x, y) on the shifted graph sits over the point (x−5,y)(x - 5, y) on the original, which is why the 5 is subtracted inside the bracket. It feels backwards, and you get used to it quickly.
  • "To move x² 1 to the right I write x² − 1." That moves it down by 1. Only the x-value gets the 1 taken off, so the shifted function is (x−1)2(x - 1)^2.

Frequently asked questions

Read next

Want to get good at maths?

Mathara explains every topic step by step with videos, exercises and personal feedback.

👉 Get started for free