Which of the diagrams shown in the figure represents the variation of to mechanical energy of a pendulum oscillating in the air as a function of time.

1. 2.
3. 4.