Theory
Start visually: slide the entire curve left or right. Every point keeps the same height, so the y-coordinate stays the same. This is the easiest check before looking at the algebra.
Use y = f(x) = x². If the curve moves right 2, its turning point goes from (0, 0) to (2, 0). The point (1, 1) moves to (3, 1); (2, 4) moves to (4, 4).
The rule for this move is y = f(x - 2), which is y = (x - 2)² here. Why the minus sign? To get the old height f(0) at the new position x = 2, the input inside f must be 2 - 2 = 0.
Likewise, y = f(x + 2) moves the original graph left 2: the old input 0 now occurs when x = -2. Its turning point is (-2, 0). This sign feels backwards only if you look at the symbol rather than where the old inputs now occur.
Track a landmark point, then move the whole shape without stretching it. For y = f(x - a), a point (x, y) becomes (x + a, y); for y = f(x + a), it becomes (x - a, y). Do not confuse this with adding outside f(x), which moves a graph vertically.