In the case of a vertical translation of the function on the coordinate system, you have that a translation of a units upward is obtained with the function f(x)+a. In the same way, a translation downward is obtined with f(x)-a.
Thus, a translation in the positive y direction of 2 units (a=2) is given by the following function.