The gravitational field is conservative. This means, that its work done from one point to another depends only on the vertical distance between these points, not on the path they are connected with.
Thus the work against gravity:
where is the mass of the bob, is the gravitational acceleration, and is the vertical distance between and . The work will be negative if is higher than and positive otherwise.
Answer. mgh.
Comments
Thanks