This site is a work in progress. New lessons are added regularly.
Contact us
Shifting Graphs
Learning goals
Move a graph up by k with y=f(x)+k
Shift right by h with y=f(x−h)
Explain why subtracting inside moves the graph rightward
Combine both into y=f(x−h)+k
Track how a shift moves intercepts, domain and range
Sliding a graph without replotting it
A shift, also called a translation, moves every point of a graph the same distance in the same
direction, without turning it, stretching it, or flipping it. The shape stays identical; only its location
changes. Because a graph is the set of points (x,f(x)), a shift acts on those points. We can predict
exactly where each point goes by looking at how the rule changes.
There are only two directions to move: up or down (a vertical shift) and left or right (a
horizontal shift). We handle each on its own first, then combine them. Throughout, keep one fact from
the last lesson in front of you: a point (a,b) lies on the graph of y=f(x) exactly when b=f(a).
So the second coordinate is an output and the first is an input. Every rule below comes straight from
tracking what happens to that pairing.
Vertical shifts: change the output
Start with the graph of y=f(x) and build a new rule by adding a constant k to the output:
y=f(x)+k.
Every input still passes through f, but whatever comes out is then increased by k. Since the output is
the height of the graph, raising every output by k raises the whole graph by k.
Let g(x)=f(x)+k. Pick any input a. The original graph has the point (a,f(a)), sitting at height
f(a) directly above the input a. The new graph has the point (a,g(a)), and
g(a)=f(a)+k,
so that point is (a,f(a)+k). The two points share the same first coordinate a, so they lie on the
same vertical line. The new point is exactly k higher than the old one, because its second coordinate is
larger by k. Nothing about the input changed, so the point did not move left or right at all.
Since a was an arbitrary input, this happens to every point at once: each one rises by k when k>0,
or drops by ∣k∣ when k<0. A rigid slide of every point by the same amount in the same
direction is exactly a translation. So the graph of y=f(x)+k is the graph of y=f(x) moved
vertically by k, and its shape is untouched.
∎
The dashed parabola is y = x squared. Adding 3 to every output lifts each point straight up by 3, giving the solid parabola y = x squared + 3. The vertex moves from the origin to (0, 3) and the shape is unchanged.
The same reasoning reads points off a graph directly. If (a,b) is on y=f(x), then (a,b+k) is
on y=f(x)+k: keep the input, add k to the height.
Worked example 1Graph y=x2+3 by sliding y=x2 upward
The rule y=x2+3 takes the familiar bowl y=x2 and adds 3 to every output, so the whole graph
rises by 3. There is no need to build a new table; shift the points you already know.
The vertex of y=x2 sits at (0,0). Adding 3 lifts it to
(0,0+3)=(0,3).
Take two more anchor points and raise each by 3. On y=x2 the points (1,1) and (2,4) appear;
after the shift they become
(1,1+3)=(1,4),(2,4+3)=(2,7).
Plot the lifted vertex (0,3) and the lifted points, then draw the identical bowl through them. Because
the lowest output is now 3, the graph never dips below the line y=3, and its y-intercept is (0,3).
The parabola has not changed shape at all; it simply sits three units higher.
Check your understanding
The point (5,2) lies on the graph of y=f(x). Which point must lie on the graph of y=f(x)−4?
Subtracting 4 is a vertical shift, so keep the input the same and lower the output by 4.
(5,2−4)=(5,−2)
The input 5 does not change, which rules out (1,2) and (9,2); the height drops rather than rises, which rules out (5,6).
Horizontal shifts: the direction that looks backward
Now change the input instead of the output. Replace x with x−h to get
y=f(x−h).
Here is the trap. Almost everyone expects x−h, with its minus sign, to move the graph left, in the
negative direction. It does the opposite: for h>0 the graph moves right by h. Rather than
memorize that, derive it, because the derivation shows exactly why the sign feels reversed.
Let g(x)=f(x−h). Fix any input a, so the original graph has the point (a,f(a)) at height
f(a). Ask the key question: at which input x does the new function g produce that same height
f(a)?
The function f returns the value f(a) when its input equals a. But the input handed
to f inside g is not x; it is x−h. So g(x) produces that same height f(a) when the inside matches a:
x−h=a⟹x=a+h.
Therefore g(a+h)=f((a+h)−h)=f(a), which means the new graph has the point
(a+h,f(a)). Compare it with the old point (a,f(a)): both sit at the same height f(a). The new
point, though, is at input a+h, exactly h units to the right of a when h>0.
Since a was arbitrary, every point moves right by h, so y=f(x−h) is y=f(x) shifted right by
h. The reason the minus sign feels backward is now visible: subtracting h inside means the function
needs a larger input x to feed f the same inside value. So each feature of the graph shows up h
units later, that is, farther to the right. Reading it the other way, y=f(x+h) is y=f(x−(−h)),
a shift right by −h, which is a shift left by h.
∎
The clean way to say it: a horizontal shift asks the inside expression to hit its old values. To make
x−h reach a value it used to reach at some input, you must push x up by h. The general curve below
shows the same logic on a shape that is not a parabola, so you can see it has nothing to do with symmetry.
Shifting y = f(x) to y = f(x minus 3) moves the whole curve right by 3. The peak that sat at input a reappears at input a + 3, because the inside x minus 3 equals a exactly when x = a + 3.
On a parabola the same shift moves the vertex, and the backward direction is easy to check point by point.
The dashed parabola is y = x squared. Subtracting 3 inside gives y = (x minus 3) squared, the solid parabola, which sits 3 to the right, not left. The point (1, 1) reappears at (4, 1) and the vertex moves from (0, 0) to (3, 0).
Worked example 2Relate y=(x−3)2 to y=x2
The rule y=(x−3)2 has the form f(x−h) with f(x)=x2 and h=3. By the derivation, it is
y=x2 shifted right by 3, even though the sign inside is a minus.
Check the direction with the vertex. The bowl y=x2 bottoms out where its input is 0. For
y=(x−3)2, the lowest output happens where the inside is 0:
x−3=0⟹x=3,
so the new vertex is (3,0), three units right of the origin. Track one more point the same way. The
point (1,1) is on y=x2; to make the inside of (x−3)2 equal 1, solve x−3=1, giving
x=4. So the matching point on the new graph is (4,1), again shifted right by 3:
(1,1)⟶(4,1).
Every point moves the same way, so the parabola lands three units to the right, exactly as the picture
shows.
Check your understanding
How is the graph of y=f(x+4) related to the graph of y=f(x)?
Changing the input is a horizontal shift, and x+4 is x−(−4), so h=−4. A shift right by −4 is a shift left by 4.
y=f(x+4)=f(x−(−4))⇒left 4
Adding inside moves the graph in the negative direction (left), the mirror of the case y=f(x−4), which moves right 4.
Combining a horizontal and a vertical shift
The two moves do not interfere, so you can apply both at once. Starting from y=f(x), the rule
y=f(x−h)+k
shifts the graph right by h (from the x−h inside) and up by k (from the +k outside). Track a
single point to see both at work: a point (a,f(a)) on the original graph reappears at
(a+h,f(a)+k),
its input increased by h and its height increased by k. Negative values of h or k just reverse the
corresponding direction.
This is where vertex form finally makes complete sense. Applying the combined shift to y=x2 gives
y=(x−h)2+k, and since the vertex of y=x2 is at the origin, it lands at (h,k). The numbers
h and k in vertex form are not mysterious; they are simply how far the basic bowl was slid right and up.
Nothing in the argument used the fact that f was a squaring function, so try it on a different shape.
Below is y=a∣x−h∣+k, with a corner instead of a smooth vertex. Raise h and read the
expression at the same time. The number you are adding shows up as a minus sign inside, and the corner
moves the other way. Then raise k and watch that one behave itself. If you want to see the two act
independently, park h somewhere and sweep k through its whole range: the corner slides straight up a
line, never sideways.
Move the corner of y=a∣x−h∣+k
Stretch a1Inside h0Outside k0
y = |x|.
Its corner sits at (0, 0), not shifted at all.
Its two arms point upward, rising one unit for every unit across.
An absolute value graph on a coordinate plane, with its corner placed by the inside and outside shifts and its arms set by the coefficient. The inside shift moves the graph across, the outside shift moves it up and down. Shifting y = x squared right 2 and up 1 gives y = (x minus 2) squared + 1, the solid parabola. Its vertex is at (2, 1). This is vertex form, and (2, 1) is the point the vertex was moved to.
Worked example 3Shift y=x2 into vertex form y=(x−2)2+1
Read the rule y=(x−2)2+1 as a set of directions applied to y=x2. The inside x−2 says
shift right 2, and the +1 outside says shift up 1.
Move the vertex first. It starts at (0,0), then goes right 2 and up 1:
(0,0)⟶(0+2,0+1)=(2,1).
To confirm with the rule, the lowest output happens where the squared part is 0, at x−2=0, so
x=2; there the output is (0)+1=1, matching the vertex (2,1). Carry one more point along for the
shape: the point (1,1) on y=x2 moves right 2 and up 1 to (3,2). Plot the vertex (2,1) and a
few shifted points, then draw the same bowl. The graph is y=x2 resting with its bottom at (2,1),
which is precisely what vertex form announces.
A combined shift also relocates the intercepts. A horizontal shift slides the x-intercepts sideways by
h, while a vertical shift raises or lowers the graph. A vertical shift can also change how many
x-intercepts there are, since it may push the curve across or away from the horizontal axis. Vertex form
makes them easy to find by solving directly.
Worked example 4Find the vertex and x-intercepts of y=(x−3)2−4
The rule y=(x−3)2−4 shifts y=x2 right 3 and down 4, so the vertex moves from (0,0) to
(0+3,0−4)=(3,−4).
Because the vertex sits below the horizontal axis and the bowl opens upward, the graph must cross that axis
twice, so expect two x-intercepts. Find them by setting the output to 0:
(x−3)2−4=0⟹(x−3)2=4.
A number whose square is 4 is 2 or −2, so x−3=2 or x−3=−2, giving
x=5orx=1.
The x-intercepts are (1,0) and (5,0), sitting symmetrically on either side of the vertex’s input
x=3. The down-4 shift is what dropped the vertex below the axis and created two crossings; without it,
y=(x−3)2 would only touch the axis at its vertex.
Worked example 5Shift a general function and track its domain and range
Suppose f has domain 0≤x≤6 and range −1≤y≤5, and the point (4,−1) lies on its
graph. Describe the graph of y=f(x−2)+3.
The rule shifts the graph right 2 and up 3, so apply that to the point first:
(4,−1)⟶(4+2,−1+3)=(6,2).
The domain is the horizontal spread of the graph, so a shift right by 2 slides both ends of the domain
right by 2, adding 2 to each:
0≤x≤6⟶2≤x≤8.
The range is the vertical spread, so a shift up by 3 raises both ends of the range by 3:
−1≤y≤5⟶2≤y≤8.
The horizontal shift touches only the inputs (the domain) and the vertical shift touches only the outputs
(the range). The two moves can therefore be handled separately even when they happen together.
The four basic translations are worth keeping in one place. In each row, h and k stand for positive
numbers.
Rule
Effect on the graph of y=f(x)
y=f(x)+k
up k
y=f(x)−k
down k
y=f(x−h)
right h
y=f(x+h)
left h
Check your understanding
What is the vertex of the parabola y=(x−5)2+2?
Vertex form y=(x−h)2+k is y=x2 shifted right h and up k, landing the vertex at (h,k). Here h=5 (from x−5) and k=2.
(0,0)⟶(0+5,0+2)=(5,2)
The inside x−5 moves the vertex right to x=5, not left, so (−5,2) is the reversed-sign trap.
Common mistakes
Practice
Multiple Choice Questions (MCQ)
Progressively harder sets of questions. Each opens on its own page.
Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its
own so you can check yourself and try again, then the full worked solution, plus a rubric
to mark your own work against.
Every place on the Earth carries a number for how far east or west it lies. East or west of what, though?
For centuries each seafaring nation answered that with a line of its own, drawn through a home observatory.
The same harbor then carried one number on a French chart and a different number on a British one.
An international conference settled the question in 1884. It chose the line through Greenwich, an
observatory on a hill above the river in London, and charts have mostly followed it since. Nothing on the
ground moved that day: cliffs, ports and islands all stayed exactly where they were. What moved was the
zero. On every chart that changed over, each longitude shifted by the same amount, and all of them shifted
the same way.
That is the heart of a shift, and it is why the sign inside a function looks backward. A shift never
changes an object. It changes where the counting starts. In y=f(x−h) the subtraction reaches the
input before f ever sees it. So x must grow by h to hand f its old value. Every feature of the
curve then turns up h units later, meaning h units to the right.
Vertex form is that idea at its shortest. Writing y=(x−h)2+k does not describe some new bowl. It
hands the familiar bowl a new zero, and (h,k) is simply where its lowest point ended up.