Commutativity of Differential Operators in Lagrangian Mechanics

AI Thread Summary
The discussion revolves around the commutativity of differential operators in Lagrangian mechanics, specifically in the context of deriving the Euler-Lagrange equation. Participants clarify the relationship between the total time derivative and partial derivatives of the position vector with respect to generalized coordinates. They emphasize the importance of treating all generalized coordinates as independent variables during differentiation. The confusion arises from whether to consider the position vector as a function of a single coordinate or multiple coordinates, leading to a deeper understanding of the differentiation process. Ultimately, the participants reach a consensus on the necessity of including all variables in the differentiation to maintain accuracy in the derivation.
campo133
Messages
5
Reaction score
0
Hello.

I am having trouble realizing the following relation holds in Lagrangian Mechanics. It is used frequently in the derivation of the Euler-Lagrange equation but it is never elaborated on fully. I have looked at Goldstein, Hand and Finch, Landau, and Wikipedia and I still can't reason this. Could anybody elaborate or provide a proof? Thanks!

Let \vec{r} = \vec{r} \left( q_1, q_2, ..., q_i \right) be the position vector of a particle where q_1, q_2, ..., q_i are the respective generalized coordinates and. Each q_i = q_i(t), that is each coordinate is a function of time. In all derivations of the Euler-Lagrange equation, I see the following:

\frac{d}{dt} \left( \frac{\partial \vec{r}}{\partial q_i} \right) = \frac{\partial}{\partial q_i} \left( \frac{d \vec{r}}{dt} \right)

Why is this so?
 
Physics news on Phys.org
It follows from the commutativity of differentiation with respect to different q's. Use the chain rule to write out the total time derivative explicitly as a sum of partial derivatives of r with respect to all the q's, each multiplied by the time derivative of the q-variable.

Then both sides differ only in the order of differentiation with respect to the q's. If the function r is sufficiently regular it will therefore be true.

Torquil
 
I ended up working it out, quite simply really. I was getting held up with q dot, as I was treating it as a function of qs instead of strictly t.

Working out the left side using the chain rule you get:

\frac{d}{dt} \left( \frac{\partial \vec{r}}{\partial q_i} \right) \Rightarrow \frac{\partial^2 \vec{r}}{\partial q_i^2} \dot{q_i}

Working the right side out using the chain rule also give:
\frac{\partial}{\partial q_i} \left( \frac{\partial \vec{r}}{\partial q_i} \dot{q_i} \right) \Rightarrow \frac{\partial^2 \vec{r}}{\partial q_i^2} \dot{q_i}

since q_i = q_i(t).

This shows both sides are equal, and the differentiation commutes.
 
Last edited:
campo, thanks for posting this. I remember also being confused by that, but I had forgotten how I convinced myself. Your explanation is very clear and comforting.
 
Campo133, I think you forgot that \vec{r} is a function of all the q's:

<br /> \frac{d}{dt} \left( \frac{\partial \vec{r}}{\partial q_i} \right) =<br /> \sum_j \dot{q_j} \frac{\partial}{\partial q_j} \frac{\partial \vec{r}}{\partial q_i}<br />

On the other hand:

<br /> \frac{\partial}{\partial q_i} \left( \frac{d \vec{r}}{dt} \right) =<br /> \frac{\partial}{\partial q_i}\sum_j \frac{\partial \vec{r}}{\partial q_j} \dot{q_j}=<br /> \sum_j \frac{\partial}{\partial q_i}\frac{\partial \vec{r}}{\partial q_j} \dot{q_j}<br />

Notice that the q_i differentiation doesn't act upon \dot{q}_j on the right hand side, even for the term j=i, because those are treated as inpedentent variables in the Lagrangian formalism.

The difference between these two expressions is the order of the q-differentiation. If \vec{r} is sufficiently regular as a function of the q's, then this doesn't matter. This is what I expressed with words in my first reply.

Torquil
 
torquil said:
Campo133, I think you forgot that \vec{r} is a function of all the q's ...
Isn't that exactly what Campo did here:
campo133 said:
\frac{d}{dt} \left( \frac{\partial \vec{r}}{\partial q_i} \right) \Rightarrow \frac{\partial^2 \vec{r}}{\partial q_i^2} \dot{q_i}
...
\frac{\partial}{\partial q_i} \left( \frac{\partial \vec{r}}{\partial q_i} \dot{q_i} \right) \Rightarrow \frac{\partial^2 \vec{r}}{\partial q_i^2} \dot{q_i}
I'm confused.
 
Well, when you do the time derivative on the first expression, you need to time-differentiate "through" all the different q_j-variables, not only q_i. The vector r was already differentiated once with respect to q_i (for a given i). So the result should be what I wrote in my post, right, where i is fixed, and there is a sum over j? My expression is not the same as campo's, so only one of us can be right :-)

Torquil
 
Yes torquil is correct in the most general sense. My explanation only works if r is a function of qi. Typically, r has many variables, so you need to sum over all of them. In my case, r just had one.
 
Oh, I thought that you were using an implicit summation convention for repeated indices. People don't do that anymore? I thought that it was standard practice.
 
  • #10
turin said:
Oh, I thought that you were using an implicit summation convention for repeated indices. People don't do that anymore? I thought that it was standard practice.

No they still use that convention, but it wouldn't be the same as my expression anyway. If I were to interpret it as a sum over the index i, the expression would still not contain any "cross-terms", i.e. the terms in my sum that have j \neq i, e.g. terms where r is differentiated with respect to e.g. both q_1 and q_2.

Torquil
 
  • #11
torquil said:
... the expression would still not contain any "cross-terms", i.e. the terms in my sum that have j \neq i, ...
I totally missed that! Thanks, torquil.
 
Back
Top