A) Assume the mass of a pendulum is 3kg. Calculate the work done by the pendulum on the mass from 0 degrees to 180 degrees ( you will need to integrate with respects to d(theta ) instead of dx

given: the mass at the end of the string experiences a restoring force given by: F=-mgsin(theta) i
B) compare the work done in part A to the amount of potential energy given to the mass as it moves from 0 degrees to 180 degrees using mgh