Writing an equation for a function after a vertical translation