Explicit vs implicit time dependence in Lagrangian mechanics

In summary, the conversation is discussing the topic of conservation of energy and the introduction of Hamiltonian from Lagrange's equations. The main focus is on the fact that the Lagrangian cannot depend explicitly on time, and the question of whether q_i can have explicit time dependence. The conversation concludes that the time dependence of q_i is determined by the equation of motion, and thus it cannot have explicit time dependence.
  • #1
paracheirodon
8
1
I'm trying to understand something that's coming from my Marion & Thornton (4th edition 1995 on p. 264 in a section titled "Conservation Theorems Revisited"). The topic is conservation of energy and introduction of the Hamiltonian from Lagrange's equations.

We're told that the Lagrangian ([tex]L[/tex]) cannot depend explicitly on time. I think my problem is that I don't really understand what this means. Let me explain why.

I understand that if [tex]L[/tex] cannot depend explicitly on time then its partial derivative with respect to time is necessarily zero:

[tex]\frac{\partial}{\partial t}L=0 [/tex]

Then it seems that there is still one hope left for [tex]L[/tex] to be dependent on time, namely if it depends implicitly rather than explicitly on time. In such a case it is not true that the total derivative is zero:

[tex]\frac{d}{d t}L=\sum_j\frac{\partial L}{\partial {q_j}} \dot{q_j}+\sum_j\frac{\partial L}{\partial \dot{q_j}} \ddot{q_j} + \frac{\partial}{\partial t}L = \sum_j\frac{\partial L}{\partial {q_j}} \dot{q_j}+\sum_j\frac{\partial L}{\partial \dot{q_j}} \ddot{q_j}[/tex]

[tex]\dot{q}[/tex] is clearly the total derivative of [tex]q[/tex] with respect to time. But it seems to me that we can arrive at an equation for [tex]q[/tex] that can depend explicitly on time.
In other words, what I'm saying is that the particle's position will have some dependence on time, and we can express that dependence in an explicit manner, not to me a very astonishing idea since that's what much of freshman physics is about.

But [tex]L[/tex] depends explicitly on [tex]q[/tex] since the first term in the second equation above is nonzero.
So if [tex]L[/tex] depends explicitly on [tex]q[/tex] and [tex]q[/tex] can be expressed explicitly in terms of time, then why can we not just plug the equation for [tex]q[/tex] in terms of [tex]t[/tex] into the expression for [tex]L[/tex] and then take a nonzero partial time derivative of [tex]L[/tex]?

Clearly I'm missing something and I would appreciate someone filling me in.

Many thanks for reading this!
 
Last edited:
Physics news on Phys.org
  • #2
Hmmm. You seem to be arguing about a definition. Stating that L cannot depend explicitly on time, which is equivalent to saying that the partial derivative is zero - does not imply that the total derivative is zero.

In a non-conservative ( dissipative ?) system L can depend on time.

I could be wrong, or we could be talking past each other here.
 
  • #3
Hi, thanks for the reply. I think we are talking past each other though. Like you, I'm stating that the total derivative need not be zero. However, I think I see now where my question may have been unclear.
I'll try rephrasing, and will state the question clearly at the end.

We start with the Lagrangian having no explicit time dependence. The direct quote from Marion & Thornton (4th edition 1995 on p. 264 in a section titled "Conservation Theorems Revisited") is:

= begin quote =

... the Lagrangian that describes a closed system (i.e. a system not interacting with anything outside the system) cannot depend explicitly on time, that is,

[tex]\frac{\partial}{\partial t}L=0 [/tex]

so that the total derivative of the Lagrangian becomes

[tex]\frac{d}{d t}L= \sum_j\frac{\partial L}{\partial {q_j}} \dot{q_j}+\sum_j\frac{\partial L}{\partial \dot{q_j}} \ddot{q_j}[/tex]

where the usual term, [tex]\frac{\partial}{\partial t}L[/tex], does not now appear.

= end quote =

[tex]q_i[/tex] are the generalized position coordinates of the particle. [tex]\dot{q}_i[/tex] is the total derivative of [tex]q_i[/tex] with respect to time and [tex]\ddot{q}_i[/tex] is the total derivative of [tex]\dot{q}_i[/tex] with respect to time.

The fact that the total derivatives are there indicates to me that [tex]q_i[/tex] and [tex]\dot{q}_i[/tex] can depend at least implicitly on time. But say for example we find an expression for [tex]q_i[/tex] that has explicit time dependence. Then we could just plug the expression for [tex]q_i[/tex] into the expression for L, and then wouldn't L have explicit time dependence?

So this made me think that [tex]q_i[/tex] could not have explicit time dependence either, which leads me to my questions.

====(Question 1)
If it's really true that [tex]q_i[/tex] can not have explicit time dependence, then what on Earth is going on in freshman physics when we solve Newton's equations and describe the trajectories of particles in terms of time?
====

====(Question 2)
If we make the statements that:

(i) [tex]L[/tex] depends on [tex]q_i[/tex];
(ii) [tex]L[/tex] has no explicit time dependence,
(iii)from freshman physics [tex]q_i[/tex] can depend explicitly on time, as pointed out in question 1,

then does this mean that if we plug the expressions for [tex]q_i(t)[/tex] and [tex]\dot{q}_i(t)[/tex] into the expression for [tex]L(q_i(t),\dot{q}_i(t))[/tex]

(i)all terms explicitly containing t magically cancel out?
(ii)or when we take the derivative [tex]\frac{\partial L}{\partial t}[/tex] we just always get equal numbers of negative and positive terms that cancel each other out?
====
 
Last edited:
  • #4
paracheirodon said:
But say for example we find an expression for [tex]q_i[/tex] that has explicit time dependence.

From where?

paracheirodon said:
Then we could just plug the expression for [tex]q_i[/tex] into the expression for L, and then wouldn't L have explicit time dependence?

I suppose we could, but again, where would we obtain this expression for q(t)? Isn't that the crux of the matter? The particle trajectories aren't known a priori. If they were, then we would have the information we needed about the system and we wouldn't have to resort to Lagrangian Mechanics to find it in the first place! Basically the time-dependence of the generalized coordinate q is determined by the equation of motion i.e. in this formalism by Lagrange's equations applied to the Lagrangian for that system. If I remember right, Lagrange's equations have some time derivatives in them, and I guess that is how the time-dependence is introduced. If my argument has any merit at all, then it takes care of your Question 1, and it follows that the answer to your Question 2 would be that the Lagrangian has no explicit time dependence while the problem is being formulated, but it does assuming we have the solution. Either that, or I am wrong, and the answer to your Question 2 is one of those highly improbable-seeming mathematical coincidences you suggested (all terms with time dependence magically vanish).

Keep in mind that it has been a while since I've done Lagrangian mechanics and I could be essentially spewing nonsense here. I just don't know. I'm really looking forward to seeing some other people weigh in on this.
 
  • #5
Cepheid, I think you might be stabbing in the right direction. In fact I remember now that when the concept of Lagrangians was introduced to me, it was done by treating the displacements as virtual displacements, some kind of hypothetical displacement that happens without any time passing. So that's necessarily independent of time and definitely different from the actual trajectory of the particle. I still don't understand it, and I really don't feel we're at the answer, but I think this may be heading somewhere in the right direction.
 
Last edited:
  • #6
I think I now what you're asking, but it's just a mathematical and terminological question.
Consider this example:

f:Rx[-1,1]x[-1,1] -> R f(x,y,z) = y + z,

g1: R -> [-1,1] g1(x)= sin(x)
g2: R -> [-1,1] g2(x) = cos(x)

denote y =g1(x) and z = g2(x) , f(x,g1(x),g2(x)) = f(x,y,z);

Now what you're trying to say is that you can write f(x) = sin(x) + cos(x) and now when you make the derivative you get something what is non-zero.

The problem is that you cannot write f(x)=sin(x)+cos(x) because f is a function of three variables and not just one. You can define a new function
h: R -> R h(x) = f(x,g1(x),g2(x))
and this is a function of one variable and the derivative is really non-zero. But [tex] \frac{\partial f}{\partial x}[/tex] remains zero forever.

Does this make more sense?
 
Last edited:
  • #7
Think of it this way: The Lagrangian (and, hence, the action) is something that you can calculate for any trajectory a particle could possibly take. That is to say, if you pick any old function of time and plug that in for q, you will find some related function of time, L(t), and it's time integral, S, will just be some number. In general this function of time will be different for different functions q(t). This is what is meant by implicit time dependence.

Then, we can say that the physical trajectory is that one for which the value of S is the smallest. So, we use this to pick out one specific trajectory - that is, one specific function q(t) - that represents the actual physical motion.
 
  • #8
r4nd0m said:
f is a function of three variables and not just one.

Okay, thanks. I think this clinched it for me and what you guys are saying now makes sense.

In other words, I'm forgetting that by definition of L, [tex]q[/tex] and [tex]\dot{q}[/tex] are independent variables. As Parlyne explains, this is the whole point of Lagrangian mechanics: looking at different paths by varying possible ([tex]q[/tex],[tex]\dot{q}[/tex],t) trajectories. If I start saying that [tex]q[/tex] and [tex]\dot{q}[/tex] depend on [tex]t[/tex], then I'm completely ignoring the notion that [tex]q[/tex] and [tex]\dot{q}[/tex] are independently variable quantities.

So we must have:
[tex]\frac{\partial}{\partial t}q=\frac{\partial}{\partial t}\dot{q}=0[/tex]
since that's just what happens in mutivariable calculus when you try to take a partial derivative of one independent variable with respect to another.

Okay thanks, this is making a lot more sense now and seems consistent also with what cepheid has said.
 
Last edited:
  • Like
Likes sri sayye
  • #9
At least I hope that's the end of it. Please let me know if it doesn't make sense.

The reason I say this is that there's one nagging thing. If [tex]q[/tex] is really truly independent of [tex]t[/tex], then why do we have [tex]\dot{q}=\frac{d}{dt}q[/tex]?

An independent variable must have any partial derivative zero. But can we really have an independent variable with a nonzero total derivative?

Normally the chain rule is:

[tex]\frac{dz}{dt}=\frac{\partial z}{\partial x}\frac{dx}{dt}+\frac{\partial z}{\partial y}\frac{dy}{dt}[/tex]

where z=f(x,y) is a differentiable function of x and y, and where x = g(t) and
y=h(t) are both differentiable functions of t. In other words, x and y do
depend on t. Otherwise I don't think we could ever take the derivatives with respect to t.

So I'm afraid I must have gone astray on my interpretation and am still confused.
 
Last edited:
  • #10
Well, q depends on t, but you don't know how, which makes it an independent variable.
Lets say that you have
L = q + q'
q = t^2 + 5t
q' = 2t + 5
Now you cannot write L(t) = t^2 + 7t + 5 but you have to write
L(t^2 + 5t, 2t + 5, t) = t^2 + 7t + 5

Makes more sense?
 
  • #11
Yes, I think I am now beginning to bend my brain around this.

I think my problem was that I was thinking of [tex]L[/tex] as the kind of function that you learn about in beginning-level multivariable calculus, i.e. the kind of environment where you'd encounter the chain rule statement that I mentioned in my last post. In that kind of an environment, the independent variables cannot be functions. In fact, if any variable turns out to be a function, then it is by definition not independent.

On the other hand, [tex]L[/tex] varies as a function of independent functions, not as a function of the independent points on a number line that I'm used to thinking of. So [tex]t[/tex] is a function of [tex]t[/tex], [tex]q[/tex] is a function of [tex]t[/tex] and [tex]\dot{q}[/tex] is a function of [tex]t[/tex].
But the dependence on [tex]t[/tex] of [tex]q[/tex] and [tex]\dot{q}[/tex] is entirely undetermined. Indeed, for all anyone knows, [tex]\dot{q}[/tex] may also end up being a function of [tex]q[/tex] and [tex]q[/tex] may end up being a function of [tex]\dot{q}[/tex]. Who knows! I believe some people would call [tex]L[/tex] a functional (a word that I've heard thrown around but never actually studied or found a use for until now).

Okay yes this finally seems to make sense.
Let me know if it doesn't.
Thanks.
 
Last edited:
  • #12
Well I think you got the concept, but what you wrote is not allright.

L is a normal function which you encountered in multivariable calculus. It's a function from (R^3 x R^3 x R) to R. q is a function from R -> R^3 and so is q'.

The core of the chain rule is the fact, that the function is in fact a composite function, which is our case (L = L(q(t), q'(t), t)).

The point is that q, q' and t act as independent in the function L, because
L:R^3 x R^3 x R -> R so you can compute L in any point from R^7.

The function L doesn't care wheather q or q' has any kind of dependence on t, you just throw in the point in which you want to compute L and you get the solution. So from the L point of view this variables are independent and so if L doesn't depend on L explicitely (i.e. L is somtething like L(q,q',t) = q + q'^2), then [tex]\frac{\partial L}{\partial t} = 0[/tex].

BTW functional is something quite different. It's a function from the space of functions to R. An example of a functional is the definite integral for example (it takes some function to the area under the graph of this function).
 
  • Like
Likes aihere
  • #13
I understand that if cannot depend explicitly on time then its partial derivative with respect to time is necessarily zero:

Yes, that's true. But the partial of L w.r.t. time is zero, but d\dt of L is the TOTAL derivative w.r.t time.

[tex]\frac{\partial}{\partial t}L=0 [/tex]

[tex]\frac{dL}{dt}=\frac{\partial L}{\partial q_1}\frac{dq_1}{dt}+\frac{\partial L}{\partial q_n}\frac{dq_n}{dt}+\frac{\partial L}{\partial t}[/tex]

What its saying is that the very last term of above is always zero, not the entire expression.

This makes sense because L is defined as T-V. But T (Kinetic Energy) and (V) potential energy are not explicit functions of time themselves, therefore L can't be explicit in time either. However, the [tex]\dot{x}[/tex] is an indirect function of time because its changing with time. So you would keep derviatives of things like [tex]\frac{dq_1}{dt}=\dot{x}[/tex]
 
Last edited:
  • Like
Likes davidbenari and aihere
  • #14
[tex]\dot{q}[/tex] is clearly the total derivative of [tex]q[/tex] with respect to time.

[tex]\dot{q}[/tex] and [tex]q[/tex] are independent generalized coordinates, so they are only going to vary with time. So, yes it is the total derivative w.r.t. time.

But it seems to me that we can arrive at an equation for [tex]q[/tex] that can depend explicitly on time.

No, you can't. Thats why we use the Lagrange equations to derive the equations of motion and do a numerical integration on the generalized coordinates. In general, you can't find that explicit function of time for the q's. They are the spatial variables you will solve for in the numerical integration.

In other words, what I'm saying is that the particle's position will have some dependence on time, and we can express that dependence in an explicit manner, not to me a very astonishing idea since that's what much of freshman physics is about.

No, that's what I disagree with.

But [tex]L[/tex] depends explicitly on [tex]q[/tex] since the first term in the second equation above is nonzero.

Of course.

So if [tex]L[/tex] depends explicitly on [tex]q[/tex] and [tex]q[/tex] can be expressed explicitly in terms of time, then why can we not just plug the equation for [tex]q[/tex] in terms of [tex]t[/tex] into the expression for [tex]L[/tex] and then take a nonzero partial time derivative of [tex]L[/tex]?

Because you will never know that explicit equation. If you did, why are you doing Lagranges method when you already have the answers?

In general, you will get equations of motion that are coupled and a convoluted mess. You won't be able to find any explicit functions of time for each q, or any q.
 
Last edited:
  • #15
Thanks r4nd0m for taking the time to offer those clarifications. In any case, as you say, I think I got it straightened out or at least have it at a point where I am comfortable with it. Thanks again for the insight.
 
  • #16
For the sake of the argument, let us entertain your question 1.

I will consider the simple freshman case where a ball is thrown up into the air.

Clearly, in this system we have only a change in the height given by the classical formula:

[tex]y=y_0+V_0t+\frac{1}{2}at^2[/tex]

Now, we define the lagrangian as:

[tex]L=T-V[/tex]

We can then substitute in values such that:

[tex]L=\frac{1}{2}m(V_0+gt)^2 - mg(y+V_0t+\frac{1}{2}gt^2)[/tex]

We now take the derivative of the lagrangian as I described to you earlier using the partials. Now, all the partials of the spatial variables disappear and we ONLY have an explicit derivative w.r.t time.

Performing the derivative and using the chain rule for T we obtain :

[tex]\frac{dL}{dt} = m*(V_0+gt)*g - m*g*(V_0 + gt) =0[/tex]

Indeed, the partial of L w.r.t t is zero, as Marion claims it to be.

But this was all a big waste of time, because the lagrangian is useful for cases where we dont know the functional dependence of the generalized coordinates!

There is a physical significance to this statement as well. If we consider the variation of the energy and the explicit time equation we are stating the following:

[tex] \delta L= \delta T - \delta V =0[/tex]

Or:

[tex] \delta T = \delta V [/tex]

This says that the variation of the kinetic energy is equal to the variation of the potential energy, i.e. that energy in your system with no outside forces is conserved.
 
Last edited:
  • Like
Likes aihere
  • #17
cyrusabdollahi said:
Indeed, the partial of L w.r.t t is zero, as Marion claims it to be.
Interesting! So at least in the case of this specific solution that has time dependence explicitly stated, [tex]\frac{\partial}{\partial t}L[/tex] does disappear! Thanks cyrusabdollahi for pointing that out.

In fact, before taking the partial derivative, if we just expand your expression for L we get:

[tex]L=\frac{1}{2}m(V_0+gt)^2 - mg(y_0+V_0t+\frac{1}{2}gt^2)=\frac{1}{2}mV_0^2-mgy_0[/tex]

which does not contain t explicitly. Now looking at that result it seems like it could not have been any other way.

I have to take off right away, but I'll look through the other things you mentioned as well.
 
Last edited:

Related to Explicit vs implicit time dependence in Lagrangian mechanics

1. What is the difference between explicit and implicit time dependence in Lagrangian mechanics?

Explicit time dependence refers to when the Lagrangian explicitly depends on time, meaning that the equations of motion and energy conservation equations will explicitly contain the time variable. Implicit time dependence, on the other hand, refers to when the Lagrangian does not explicitly depend on time, but the equations of motion and energy conservation equations still contain the time variable through the use of partial derivatives.

2. How do explicit and implicit time dependence affect the equations of motion in Lagrangian mechanics?

Explicit time dependence will result in a term involving the time derivative of the generalized coordinates in the equations of motion, while implicit time dependence will result in a term involving the partial derivative of the Lagrangian with respect to time. These terms will impact the overall behavior of the system and its motion.

3. Can a Lagrangian have both explicit and implicit time dependence?

Yes, a Lagrangian can have both explicit and implicit time dependence. In fact, most Lagrangians will have some degree of both, as they may depend on time through some variables but not others.

4. How does energy conservation differ between explicit and implicit time dependence in Lagrangian mechanics?

In explicit time dependence, the energy conservation equation will include a term involving the time derivative of the generalized coordinates, while in implicit time dependence, the energy conservation equation will include a term involving the partial derivative of the Lagrangian with respect to time. This can lead to different forms of energy conservation and different behaviors of the system.

5. Which type of time dependence is more commonly used in practical applications of Lagrangian mechanics?

Explicit time dependence is more commonly used in practical applications of Lagrangian mechanics, as it is easier to work with mathematically and can provide more straightforward solutions. However, implicit time dependence is still important in certain systems and can provide more accurate results in some cases.

Similar threads

Replies
3
Views
981
  • Mechanics
Replies
3
Views
1K
Replies
2
Views
223
Replies
3
Views
768
  • Mechanics
Replies
24
Views
1K
Replies
14
Views
2K
Replies
7
Views
751
Replies
25
Views
1K
Replies
4
Views
1K
  • Mechanics
Replies
1
Views
639
Back
Top