upvote
Yea, and place to start reading is Hamilton’s equations or Lagrangian mechanics.
reply