A move up or down is a change in "y"- that is, it will be added or subtracted after applying function f to get the initial value of y. But a move left or right will be a change in x. Think of it as f(x- a) and choose a so that, in the second one, for example, f(1- a)= f(0).