- 31
- 3
In Lagrangian mechanics, both q(t) and dq/dt are treated as independent parameters. Similarly, in Hamiltonian mechanics q and p are treated as independent. How is this justified, considering you can derive the generalized velocity from the q(t) by just taking a time derivative. Does it have anything to do with a freedom in choosing boundary conditions?