Shifting graphs
f(x − h) + k moves the graph h across and k up.
g(x) = f(x − h) + k is the graph of f moved h units right and k units up. A number added outside the function moves it up or down as you’d expect. Inside, it’s backwards: f(x − 4) moves right 4, and f(x + 4) moves left 4.
Example: g(x) = f(x − 4) + 2
- x − 4 inside — Inside is backwards: minus moves right
- + 2 outside — Outside moves up
- 4 right, 2 up — Answer
Why it works: Subtracting h inside means x has to be h bigger to get the same output, so the graph moves right. Adding k outside lifts every output.
Tip: Check with one point: if f(0) is on f’s graph, then g(4) = f(0) + 2, so that point moved 4 right and 2 up.