How is the function changing? and by how much is it changing? every single time the pendulum swings? We we have to be able to understand at every moment what the pendulum position is. To do this we take the derivative of both possibilities as follows.