0
$\begingroup$

Please do correct me if I am wrong here - but it is my understanding that the following paragraph holds true:

Let $L$ be the lagrangian of a system with generalised energy $h$ and with $N$ particles, with particle $i$ at position $\bf{r}$$_i$. Then generalised energy of this system is conserved if and only if $\frac{\partial L}{\partial t}=0$ for all time $t$. Also, the generalised energy equals the total energy if $\frac{\partial\bf{r}_i }{\partial t}=0$ for all $i$. And so if both of these conditions are satified then the total energy is conserved.

Assuming I am correct with the above paragraph, let's consider one mass of $m$ on a spring with negligable mass and spring constant $k$. Let's assume that the position of the mass at time $t$ is $x(t)=1-\cos(t)$.

This means that $v(t)=\sin(t)$. And so the Lagrangian of the system is as follows:

$$L=\frac{1}{2}m\sin^2(t)-\frac{1}{2}k(1-\cos(t))^2$$

It then is clear that $\frac{\partial L}{\partial t}\neq0$. And so this would suggest that the generalised energy is not conserved. However this goes against my intuition and doesn't sound right?

I've usually seen Lagrangians written just in terms of the particles' positions. So if we write our Lagrangian in terms of $x$, we get:

$$L=\frac{1}{2}m\dot{x}^2-\frac{1}{2}kx^2$$

Now taking a partial derivative with respect to $t$, if would now follow that $\frac{\partial L}{\partial t}=0$. Ok, so generalised energy is conserved here, but this method neglects the fact that $x$ is a function of time.

This is where my confusion lies - my mathematical intuition tells me $x$ is a function of time and so the generalised energy cannot be conserved. But physically, it should be true that generalised energy is conserved? So my question is whether either of my two approaches above are correct, or whether I have misunderstood something regarding conservation of generalised energy?

$\endgroup$

2 Answers 2

1
$\begingroup$

Okay, two things.

1.) The Lagrangian does not need to be conserved. It is the difference in KE and PE. The sum or total energy is the part that must be conserved. So KE+PE needs to be time invariant, not KE-PE

2.) You can’t assume $x(t)=1-\cos{t}$. The spring force ($-kx$) and Newton’s Second Law ($ma$) must be used to determine the equation of motion. If you work through this, you get $x(t)=A\cos{\sqrt{\frac{k}{m}}t}$. You can determine the total energy from it, and with this function the energy is conserved.

$\endgroup$
2
  • $\begingroup$ Thank you for this - I should have known the 2nd point since this is obvious. However for the 1st point, I saw a theorem which states that if the Lagrangian of a system is time-independent then the generalised energy is conserved. Perhaps I was wrong saying “if and only if” in my 2nd paragraph - so is it true that if the partial derivate wrt $t$ of the Lagrangian is zero, then generalised energy is conserved? $\endgroup$
    – maths54321
    Commented Jan 17, 2022 at 2:21
  • $\begingroup$ Yes, and think about what it mean if $\frac{\partial L}{\partial t}=0$. This means that the system is in equilibrium. Either it’s moving along at a constant speed and has constant potential energy (so we can say there’s no net force), or it’s not moving at all. If r isn’t changing, then the object is at rest, so the first term of the Lagrangian will be 0. The second term will then be the potential energy, which will also be the total energy. $\endgroup$ Commented Jan 17, 2022 at 2:34
0
$\begingroup$

form the Lagrangian $~L~$ you obtain the EOM

$$m\,\ddot x+k\,x=0$$ the solution with the initial conditions $~x(0)=x_0~,\dot x(0)=v_0~$ is

$$x(\tau)=v_{{0}}\sqrt {m}\sin \left( {\frac {\sqrt {k}\,\tau}{\sqrt {m}}} \right) {\frac {1}{\sqrt {k}}}+x_{{0}}\cos \left( {\frac {\sqrt {k} \,\tau}{\sqrt {m}}} \right) $$

the energy is

$$E=\frac m2(\dot{x}(\tau))^2+\frac k2\,(x(\tau))^2= \frac m2 v_0^2+\frac k2 x_0^2=\text{constant}$$

hence the energy is conserved (not the Lagrangian)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.