To find the value of \( k \) in the function \( g(y) = y + k \) that describes the translation from the point (4, -1) to (4, 2), we can analyze the change in the \( y \)-coordinate.
- The original \( y \)-coordinate is \( -1 \).
- The new \( y \)-coordinate after the translation is \( 2 \).
We need to determine how much we need to add to the original \( y \)-coordinate to reach the new \( y \)-coordinate:
\[ 2 = -1 + k \]
To find \( k \), we solve the equation:
\[ k = 2 + 1 \] \[ k = 3 \]
So, the value of \( k \) is \( 3 \).
Thus, the answer is \( 3 \).