- #1
Daaavde
- 30
- 0
So, I should prove that:
[itex]- \frac{\partial H}{\partial q_i} = \dot{p_i}[/itex]
And it is shown that:
[itex]- \frac{\partial H}{\partial q_i} = - p_j \frac{\partial \dot{q_j}}{\partial q_i} + \frac{\partial \dot{q_j}}{\partial q_i} \frac{\partial L}{\partial \dot{q_j}} + \frac{\partial L}{\partial q_i} = \dot{p_i}[/itex]
Where the first two terms delete each other [itex](\frac{\partial L}{\partial \dot{q_j}} = p_j)[/itex] and the third one is equal to [itex]\dot{p_i}[/itex] because of the Lagrange equation.
The problem is that when I take the partial derivative of [itex]H = \sum \dot{q_i}p_i - L[/itex], I get:
[itex]- \frac{\partial H}{\partial q_i} = - p_j \frac{\partial \dot{q_j}}{\partial q_i} - \dot{q_j} \frac{\partial p_j}{\partial q_i} + \frac{\partial L}{\partial q_i} = \dot{p_i}[/itex]
Because I derive a product.
Now, my second term is completely different (even the sign doesn't match). Why is that?
[itex]- \frac{\partial H}{\partial q_i} = \dot{p_i}[/itex]
And it is shown that:
[itex]- \frac{\partial H}{\partial q_i} = - p_j \frac{\partial \dot{q_j}}{\partial q_i} + \frac{\partial \dot{q_j}}{\partial q_i} \frac{\partial L}{\partial \dot{q_j}} + \frac{\partial L}{\partial q_i} = \dot{p_i}[/itex]
Where the first two terms delete each other [itex](\frac{\partial L}{\partial \dot{q_j}} = p_j)[/itex] and the third one is equal to [itex]\dot{p_i}[/itex] because of the Lagrange equation.
The problem is that when I take the partial derivative of [itex]H = \sum \dot{q_i}p_i - L[/itex], I get:
[itex]- \frac{\partial H}{\partial q_i} = - p_j \frac{\partial \dot{q_j}}{\partial q_i} - \dot{q_j} \frac{\partial p_j}{\partial q_i} + \frac{\partial L}{\partial q_i} = \dot{p_i}[/itex]
Because I derive a product.
Now, my second term is completely different (even the sign doesn't match). Why is that?