The pendulum: from constrained fall to the concept of potential