Allday Education

Vertical Translations of Linear Functions

A vertical translation slides a graph straight up or down without turning or stretching it. For a function ff, the translated function is g(x)=f(x)+kg(x) = f(x) + k: adding a positive number shifts the graph up, and subtracting shifts it down.

The reason is simple — f(x)+kf(x) + k takes every output of ff and adds kk to it. Every point on the graph moves the same distance in the same direction, so the shape is untouched. For a line, that means the slope stays exactly the same.

What stays the same, what changes

The slope stays the same, so the original line and the translated line are parallel. What changes is the yy-intercept: it moves by exactly kk. Translate f(x)=2x+1f(x) = 2x + 1 up 33 units and you get g(x)=2x+4g(x) = 2x + 4 — same slope 22, intercept raised from 11 to 44.

In the graph below, the blue line is f(x)=xf(x) = x and the red line is f(x)+3f(x) + 3. Every point on the blue line moved up 33 to land on the red one.

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

Writing the translated equation

To translate up kk units, add kk to the whole function and simplify. Down kk units means subtract kk. The kk attaches to the constant term only: f(x)=x+5f(x) = x + 5 shifted down 33 becomes g(x)=x+53=x+2g(x) = x + 5 - 3 = x + 2.

To go the other way — reading kk off a graph — compare the two yy-intercepts. If ff crosses the yy-axis at 33 and gg crosses at 1-1, then k=13=4k = -1 - 3 = -4, a shift of 44 units down.

Worked examples

Example 1: translate up

Translate f(x)=xf(x) = x up 44 units to get g(x)g(x).

Add 44 to the functiong(x)=f(x)+4g(x) = f(x) + 4
Substitute f(x)=xf(x) = xg(x)=x+4g(x) = x + 4

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

Example 2: translate down

Translate f(x)=x+5f(x) = x + 5 down 33 units.

Subtract 33 from the functiong(x)=f(x)3g(x) = f(x) - 3
Substitute f(x)=x+5f(x) = x + 5g(x)=x+53g(x) = x + 5 - 3
Simplifyg(x)=x+2g(x) = x + 2

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

Example 3: find kk from two graphs

The line ff has yy-intercept 33. Its translation g(x)=f(x)+kg(x) = f(x) + k has yy-intercept 1-1. Find kk.

The intercept moves by exactly kkk=13k = -1 - 3
Simplifyk=4k = -4
So gg is ff shifted 44 units down

Answer: k=4k = -4

Try one yourself

Common questions

Does a vertical translation change the slope?

No. Every point moves the same distance straight up or down, so the steepness is unchanged and the two lines are parallel.

How is f(x)+kf(x) + k different from f(x+k)f(x + k)?

f(x)+kf(x) + k adds to the output, so the graph moves vertically. f(x+k)f(x + k) changes the input, so the graph moves horizontally. The position of the +k+\,k — outside or inside the parentheses — tells you which.

What if kk is negative?

Then the graph shifts down. g(x)=f(x)7g(x) = f(x) - 7 is a translation 77 units down — the same rule with k=7k = -7.

What's the quickest way to find kk from a graph?

Compare yy-intercepts: kk equals the new intercept minus the original one. Any matching pair of points works, but the intercepts are the easiest to read.

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