Graph Shifts: Vertical and Horizontal Translations

Graph Shifts: Vertical and Horizontal Translations

Understanding graph translations allows us to sketch and analyze complex functions from a familiar base function — without recalculating a value table from scratch. On this page we learn both types of shift — vertical and horizontal — understand why the horizontal shift behaves 'backwards' from what it seems, and practice identifying and combining shifts.

Background and Basic Definitions

A shift (transformation) changes the position of a graph in the plane without changing its shape. There are two basic types.

Vertical shift: \(g(x)=f(x)+k\). The graph moves up when \(k \gt 0\) and down when \(k \lt 0\). This is intuitive: adding \(k\) to every \(y\) value raises (or lowers) every point by \(k\).

Horizontal shift: \(g(x)=f(x-h)\). The graph moves right by \(h\) when \(h \gt 0\), and left when \(h \lt 0\). This seems backwards, but the explanation is simple: for the inner expression \(x-h\) to return the same value as before, \(x\) must be larger by \(h\) — so the graph 'waits' for a later \(x\) value, meaning it shifts right.

TransformationEffect on the graph
\(f(x)+k,\ k \gt 0\)Shift up by \(k\)
\(f(x)-k,\ k \gt 0\)Shift down by \(k\)
\(f(x-h),\ h \gt 0\)Shift right by \(h\)
\(f(x+h),\ h \gt 0\)Shift left by \(h\)

A point \((a,b)\) on the original graph moves under \(f(x-h)+k\) to the point \((a+h,\ b+k)\).

Solution Steps

  1. Step 1 — Identify the base function \(f(x)\) you are starting from (e.g., \(x^2\) or \(x\)).
  2. Step 2 — Look for an addition or subtraction outside \(f\) (such as \(+k\)) — this is a vertical shift, in the same direction as the sign.
  3. Step 3 — Look for a change inside the argument of the variable (such as \(x-h\)) — this is a horizontal shift, in the direction opposite to the sign in the expression.
  4. Step 4 — If there are several vertical additions, combine them into a single number \(k\) (ordinary addition).
  5. Step 5 — Translate the shift to specific points: every point \((a,b)\) becomes \((a+h,\ b+k)\).
  6. Step 6 — Check yourself on one familiar point (such as the vertex or an axis intercept).

Worked Examples

Example 1: Vertical Shift of a Parabola

Problem: Given \(f(x)=x^2\). Describe the graph of \(g(x)=f(x)+4=x^2+4\) and state its vertex.

Solution:

  1. The \(+4\) is outside \(f\), so this is a vertical shift.
  2. Since \(4 \gt 0\), the graph moves up by \(4\) units.
  3. The vertex of \(x^2\) is \((0,0)\), and it shifts vertically to \((0,4)\).
  4. The shape of the parabola is preserved — only the position changes.

Answer: The graph is \(x^2\) shifted \(4\) units upward; vertex at \((0,4)\).

Example 2: Horizontal Shift — The 'Backwards' Direction

Problem: Given \(f(x)=x^2\). In which direction does the graph of \(g(x)=f(x-3)=(x-3)^2\) shift?

Solution:

  1. The change \(x-3\) is inside the argument, so this is a horizontal shift.
  2. Despite the minus sign, the shift is to the right by \(3\) units.
  3. Explanation: for the inner expression to return \(0\) (the vertex of the parabola) we need \(x=3\), so the vertex moves from \((0,0)\) to \((3,0)\).
  4. Check with another point: at \(x=1\) we had \(y=1\); now the same value occurs at \(x=4\) — confirming the rightward shift.

Answer: The graph shifts \(3\) units to the right; vertex at \((3,0)\).

Example 3: Combining Multiple Vertical Shifts

Problem: Given \(g(x)=f(x)+5-8\). Describe the overall vertical shift relative to \(f(x)\).

Solution:

  1. Both additions \(+5\) and \(-8\) are vertical, so they can be combined.
  2. We add: \(5-8=-3\).
  3. This gives \(g(x)=f(x)-3\).
  4. Since the constant is negative, the graph shifts \(3\) units downward.

Answer: An overall shift of \(3\) units downward (\(g(x)=f(x)-3\)).

Example 4: Combining a Vertical and a Horizontal Shift

Problem: Given \(f(x)=x^2\) with vertex \((0,0)\). Find the vertex of the graph of \(g(x)=(x+2)^2-5\).

Solution:

  1. The inner expression \(x+2\) is \(x-(-2)\), meaning a horizontal shift of \(2\) units to the left.
  2. The \(-5\) outside the power is a vertical shift of \(5\) units downward.
  3. The original vertex \((0,0)\) moves to \((0-2,\ 0-5)\).
  4. The new vertex is \((-2,-5)\).

Answer: The vertex is \((-2,-5)\).

Example 5: Finding the Shift Constant from a Point

Problem: It is known that \(f(3)=6\), and the graph of \(g(x)=f(x)+k\) passes through the point \((3,10)\). Find \(k\).

Solution:

  1. Substitute \(x=3\) into \(g\): \(g(3)=f(3)+k\).
  2. Use \(f(3)=6\) and \(g(3)=10\): \(10=6+k\).
  3. Isolate: \(k=10-6=4\).
  4. The graph was shifted \(4\) units upward.

Answer: \(k=4\).

Common Mistakes

✗ Common mistake: Students think \(f(x-h)\) shifts the graph to the left (in the direction of the minus sign).

✓ The correct way: A horizontal shift works backwards: \(f(x-h)\) with \(h \gt 0\) shifts to the right. Check with the vertex: in \((x-3)^2\) the vertex is at \(x=3\), which is to the right.

✗ Common mistake: Students confuse vertical and horizontal shifts — treating \(+k\) outside the function as if it moves the graph sideways.

✓ The correct way: A change outside \(f\) (such as \(+k\)) affects \(y\) — it is a vertical shift. A change inside the argument of the variable affects \(x\) — it is a horizontal shift.

✗ Common mistake: When combining multiple vertical shifts, students add them with the wrong sign — for example writing \(+5-8=+3\).

✓ The correct way: Combine the constants by ordinary addition while keeping the signs: \(5-8=-3\). A negative result means a downward shift.

Practice Tips

  • Tip — Remember the rule: 'outside the parentheses → vertical, in the direction of the sign; inside the parentheses → horizontal, opposite to the sign'.
  • Tip — To determine the horizontal direction, ask 'which \(x\) makes the inner expression zero?' — that is where the vertex or reference point will be.
  • Tip — Track one characteristic point (vertex, axis intercept) rather than the whole graph — it is easier and faster.
  • Tip — The general form \(g(x)=f(x-h)+k\) maps every point \((a,b)\) to \((a+h,\ b+k)\) — one formula to remember.

Summary and Key Formulas

Two types of shifts:

  • Vertical shift: \(g(x)=f(x)+k\) — up if \(k \gt 0\), down if \(k \lt 0\) (follows the sign).
  • Horizontal shift: \(g(x)=f(x-h)\) — right if \(h \gt 0\), left if \(h \lt 0\) (opposite to the sign).
  • Combined: \(g(x)=f(x-h)+k\) maps \((a,b)\) to \((a+h,\ b+k)\).
  • Multiple vertical shifts are combined by ordinary addition: \(+5-8=-3\).