A pendulum initially is at rest in vertical position. The bob is pulled slowly towards right. Find the change in gravitational potential energy of the pendulum bob of mass m as the function of x.