According to Hamiltion's principle, dynamical systems minimize time integral of difference between kinetic and potential energy. I think minimizing time is reasonable but why is the difference between kinetic and potential energy in the integral?
valid question