find the gravitational potential energy of the chain.