## College Physics (7th Edition)

The formula is $U=mg(final-initial)$. We know that mass m and gravitational constant g are constants. Thus, the change in GPU only depends on initial and final positions.