On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Advanced Functions · Grade 9-12

Shifting Functions

Shifting (translation) moves a graph horizontally or vertically without changing its shape: f(x−h)+k slides it right h and up k.

y=f(x−h)+k shifts right h and up k

Quick Answer

Shifting (translation) moves a graph horizontally or vertically without changing its shape: f(x−h)+k slides it right h and up k. Use it when a graph is an exact copy of a parent function in a new place, such as a parabola whose vertex sits at (4,1) instead of the origin. The outside constant moves the graph up as written; the inside constant reverses, so f(x−3) moves right 3 and f(x+3) moves left 3. Every point moves the same amount, so widths and slopes are unchanged.

Why This Matters

Shifts let you write a function from its key point: a parabola with vertex (h,k) is a(x−h)2+k, and a signal delayed by 2 seconds is f(t−2). Reading them correctly means you can sketch a graph without a table of values. The inside sign rule is where sketches go wrong: draw f(x−3) three units left and it lands 6 units from where it belongs.

Intuitive Explanation

Take f(x)=x2 with points (−1,1), (0,0), (1,1). For f(x)+5=x2+5, every output gains 5: (−1,6), (0,5), (1,6). The whole parabola lifts 5 units and nothing else about it changes. Adding outside the function moves the graph in the direction you would expect.

Inside, the sign reverses. In g(x)=f(x−2)=(x−2)2, the inside (x−2) is 0 when x=2, so g produces at x=2 what f produced at 0. Every feature arrives 2 units later, which on a graph means 2 units to the right. A delay works the same way: if a song starts at time 0, the same song started 2 minutes late is s(t−2), and at t=2 you hear what the original played at the start.

A shift must leave the shape alone. (x−2)2+1 is a shift of x2: same width, vertex moved to (2,1). But 2x2 is not a shift, even though its graph differs from x2: the vertex stays at (0,0) and other points move up by different amounts, 1 at x=1 and 4 at x=2. Shifts add constants and move every point by the same distance; stretches multiply.

Think of it like this. Sliding a paper cut-out across a grid: the cut-out keeps its exact shape and only its position changes. The outside +k slides it straight up. The inside −h acts like a delayed start, reaching each point h units later, which is why x−h moves it right. A cut-out can also be turned; a shift never rotates anything.

Core idea. Shifting adds a constant to move the entire graph left/right or up/down without changing its shape at all.


When to Use

Look for a constant added to the function, f(x)+k, or added to the input inside it, f(x−h), and for graphs described by a moved vertex, centre or starting point. Read the outside constant as written and reverse the inside one. If a number multiplies the function or its input, it is a scaling; if a negative sign sits in front of f or of x, it is a reflection. Many functions combine these, so name each piece separately.

Tip. Ask: Is the graph the same shape just moved by an added constant (not stretched or flipped)?

How to Recognize It

Before shifting, find the added constant, check whether it sits outside f or inside the brackets with x, and track one key point such as the vertex.

  1. Is the constant inside the brackets with x, as in f(x+4)?

    If yes, the shift is horizontal and runs opposite to the sign: f(x+4) moves the graph 4 to the left. If the constant is outside, as in f(x)+4, it moves the graph up 4, matching the sign.

  2. Does the problem give a new vertex, centre or starting point for a known parent graph?

    If yes, read the shift straight off it: y=x2 moved to vertex (−1,6) is y=(x+1)2+6. If the graph is also wider, narrower or flipped, a scaling or reflection is part of the change.

  3. Is the inside written like f(2x−6), with a number multiplying x?

    If yes, factor first: f(2x−6)=f(2(x−3)), a squeeze by 2 and a shift right 3, not 6. Reading the shift before factoring is a common slip.

  4. Do distances between points, such as the gap between two zeros, stay the same?

    If yes, the change can be a pure shift. If the gap grows or shrinks, as when zeros at 1 and 3 move to 2 and 6, the graph was scaled, and shifting alone cannot explain it.

Shifting Functions compared with Scaling functions, Horizontal vs. vertical shift signs, and Reflecting functions

Shifts, stretches and flips can all appear in one formula like −2f(x−1)+3, so it is easy to read a constant as the wrong move. Ask of each constant whether it is added or multiplied, and whether it sits with x or outside f.

Shifting Functions

Meaning
Use this when a graph is the same shape as a parent moved to a new position with no resizing.
Key test
Is the graph the same shape just moved by an added constant (not stretched or flipped)?
Formula
y=f(x−h)+k shifts right h and up k
Example
Where is the vertex of y=(x−4)2+1 compared to y=x2?

Scaling functions

Meaning
Multiplies to resize the graph rather than relocate it.
Key test
Use when the graph gets taller/narrower, not just moved.
Formula
c f(x), f(cx)
Example
y=3x2 is steeper, not shifted

Horizontal vs. vertical shift signs

Meaning
Outside +k goes up as written; inside (x−h) reverses to move right.
Key test
Use the sign flip only for the inside (horizontal) shift.
Formula
f(x−h)+k
Example
f(x+2) moves LEFT 2

Reflecting functions

Meaning
A negation flips the graph instead of sliding it.
Key test
Use when a minus sign multiplies f or x, mirroring the graph.
Formula
−f(x), f(−x)
Example
y=−x2 flips upside down

Formula & Notation

y=f(x−h)+k shifts right h and up k
g(x)=f(x−h)+k: g(x0+h)=f(x0)+k, so each point (x0,f(x0)) maps to (x0+h, f(x0)+k)

How to read it: f(x)+k: vertical shift. f(x−h): horizontal shift. Signs are opposite for horizontal: f(x−3) shifts right 3.

Worked Examples

Example 1 — Locate the vertex

Easy

Where is the vertex of y=(x−4)2+1 compared to y=x2?
Show the steps and the answer
  1. Match the form f(x−h)+k with f(x)=x2: here h=4 and k=1.

    The inside x−4 gives the horizontal shift and the outside +1 the vertical one.

  2. Apply the inside shift: x−4=0 when x=4, so the vertex moves right 4.

    The new function reaches the old vertex value when its input is 4, not 0.

  3. Apply the outside shift: every output gains 1, so the vertex rises to height 1.

    An outside constant moves the graph exactly as written.

  4. Check with a point: x=5 gives (5−4)2+1=2, one unit right of the vertex and one unit above it.

    On y=x2, one step right of the vertex also rises 1, so the shape is unchanged.

Answer: Vertex at (4,1)

Takeaway: In f(x−h)+k the vertex moves to (h,k): read k as written, and read h with the opposite sign to the one next to x.

Example 2 — Looks like a shift, but stretches

Standard

Is y=2x2 just a shifted version of y=x2?
Show the steps and the answer
  1. Compare outputs: at x=0 both are 0; at x=1, 1 versus 2; at x=2, 4 versus 8.

    A shift would move every point by the same amount, but these points move by 0, 1 and 4.

  2. Locate the vertex: 2x2 is smallest at x=0, where it equals 0.

    The vertex has not moved, so there is no translation.

  3. Name the move: the 2 multiplies the output, a vertical stretch by a factor of 2.

    Multiplying resizes the graph about the x-axis instead of sliding it.

Answer: No — it's a stretch, vertex still (0,0)

Takeaway: A shift moves every point the same distance; when points move by different amounts and the vertex stays put, it is a stretch.

Example 3 — Find the mistake: the inside sign

Application

Write the equation of y=x2 shifted 3 units left and 2 units down. Mia writes: "Left means subtract, so y=(x−3)2−2." Find the mistake and correct it.
Show the steps and the answer
  1. Find the vertex of Mia's equation: x−3=0 at x=3, so it is (3,−2).

    That is 3 units right of the origin, not left.

  2. Name the error: Mia used the outside sign rule for the inside constant.

    Inside, the sign reverses; the vertex sits where the inside expression equals 0.

  3. Choose the inside term that is 0 at x=−3: it is x+3.

    So f(x+3) moves the graph 3 units left.

  4. Assemble and check: y=(x+3)2−2 gives y=0−2=−2 at x=−3.

    The vertex is (−3,−2): 3 left and 2 down, as required.

Answer: y=(x+3)2−2, with vertex (−3,−2)

Takeaway: To move left h units write f(x+h); confirm by finding the x that makes the inside zero.

Where You'll See It

  • A delayed replay of a show

    A channel replays a live show 3 hours later. If v(t) is the live picture at time t, the replay shows v(t−3): at 9 pm it shows what aired live at 6 pm. On a timeline the whole show slides 3 hours to the right, and the minus sign is what means later.

  • Raising a heating schedule

    If T(t) is a home's thermostat setting over the day, turning every setting up 2 °C gives T(t)+2. The daily pattern of warm mornings and cool nights stays the same; the whole graph is lifted 2 degrees at every hour.

Common Mistakes

  1. The slip: Reading f(x−3) as a left shift

    Instead: inside shifts reverse: x−3 moves the graph RIGHT 3.

  2. The slip: Mixing up inside and outside constants

    Instead: inside affects horizontal, outside affects vertical.

  3. The slip: Thinking a shift changes the shape

    Instead: translation only moves position; size and orientation are untouched.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Find the vertex of y=(x+5)2−3 and describe the shift from y=x2.

    Hint: Which x makes the inside zero?

  2. Write y=x shifted left 2 units and up 6 units. Where does the new graph start?

    Hint: Left shifts go inside with the opposite sign you might expect.

  3. The point (1,4) is on y=f(x). Where does it move on y=f(x+3)−2?

    Hint: Inside changes move x; outside changes move y.

  4. y=∣x∣ is shifted so its vertex is at (4,−7). Write the equation and find the x-intercepts.

    Hint: Write y=∣x−h∣+k, then set y=0.

  5. Compared with y=x2, is y=(x−1)2 a horizontal or vertical shift? What about y=x2−1?

    Hint: Is the 1 inside with x or outside on the output?

  6. A student graphs y=x−4 starting at x=−4. Find and correct the mistake.

    Hint: The square root starts where the inside equals zero.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Does the order matter when I shift and stretch?

Yes, for moves on the same axis. Take y=x2y = x^2. Stretching vertically by 2 and then shifting up 3 gives 2x2+32x^2 + 3, but shifting up 3 first and then stretching gives 2(x2+3)=2x2+62(x^2 + 3) = 2x^2 + 6. Moves on different axes, one horizontal and one vertical, can be done in either order. For a formula like af(x−h)+ka f(x - h) + k, apply the stretch aa before the shift kk; that order produces the formula as written.

Can shifting a periodic graph give back the same graph?

Yes. Shifting sin⁡x\sin x right by 2π2\pi, or any whole multiple of it, lands every crest exactly on another crest, so sin⁡(x−2π)=sin⁡x\sin(x - 2\pi) = \sin x. A shift of π2\frac{\pi}{2} turns the sine wave into the cosine wave: sin⁡(x+π2)=cos⁡x\sin\left(x + \frac{\pi}{2}\right) = \cos x. So one graph can have many equations, which is why two students can write different but equally correct answers for the same wave.

How is a time-zone change a horizontal shift?

Suppose T(h)T(h) gives a London temperature hh hours after midnight, London time. New York is 5 hours behind, so a New York clock reading nn matches London time h=n+5h = n + 5, and the same readings are T(n+5)T(n + 5) on New York time. That is a shift left by 5: every event appears 5 hours earlier on the New York clock. The weather is the same; only the labels on the time axis slide.

How does a shift show up in a table of values?

A vertical shift adds the same number to every output: a table of f(x)+3f(x) + 3 is the table of ff with 3 added to each yy. A horizontal shift is subtler. For f(x−3)f(x - 3), the outputs stay the same and every input goes up by 3, so f(1)=7f(1) = 7 becomes the point (4,7)(4, 7) on the shifted graph. Each single shift changes only one column of the table.

Learning Path

Shifting Functions

You are here

Next →

Nothing after this yet
You need Function Transformation, which treats every change to a formula as a change to its graph. Shifting adds the two translations, f(x)+k and f(x−h), and the sign reversal inside. With shifts, scalings and reflections together you can sketch any transformed parent function, write parabolas in vertex form, and later read phase shifts of trig graphs, where sin⁡(x−c) moves the wave right by c.

See Also