Calculating energy from the Lagrangian

  • Thread starter Thread starter mjordan2nd
  • Start date Start date
  • Tags Tags
    Energy Lagrangian
Click For Summary
SUMMARY

The discussion centers on calculating energy from the Lagrangian, specifically L=\frac{1}{2}m \dot{r}^2 \left( 1 + 4a^2r^2 \right) + \frac{1}{2}mr^2 \dot{\theta}^2 -mgar^2. The user encounters discrepancies in energy calculations based on different approaches to substituting angular momentum, leading to conflicting results. The correct method involves maintaining all variables during differentiation, as eliminating a variable prematurely results in incorrect partial derivatives. The solution manual confirms that the angular momentum should be substituted directly into the Lagrangian.

PREREQUISITES
  • Understanding of Lagrangian mechanics
  • Familiarity with angular momentum concepts
  • Knowledge of partial derivatives
  • Ability to manipulate Lagrangian equations
NEXT STEPS
  • Study the derivation of energy from the Lagrangian in classical mechanics
  • Learn about the implications of angular momentum in Lagrangian formulations
  • Review the rules of partial differentiation in multivariable calculus
  • Explore examples of energy calculations in Lagrangian mechanics
USEFUL FOR

Students and professionals in physics, particularly those studying classical mechanics and Lagrangian dynamics, as well as anyone interested in advanced calculus applications in physics.

mjordan2nd
Messages
173
Reaction score
1

Homework Statement



While doing a problem I have found the Lagrangian to be [itex]L=\frac{1}{2}m \dot{r}^2 \left( 1 + 4a^2r^2 \right) + \frac{1}{2}mr^2 \dot{\theta}^2 -mgar^2[/itex]. I have also shown that the angular momentum l is constant and is equal to [itex]l=mr^2 \dot{\theta}[/itex]. I want to calculate the energy given this. I am getting two different answers based on how I do the problem and I'm not sure I understand why.

Homework Equations



[tex]E=\sum_{\alpha} \dot{q}^{\alpha} \frac{\partial L}{\partial \dot{q}^{\alpha}} - L[/tex]

The Attempt at a Solution



If I substitute the angular momentum into the Lagrangian first my Lagrangian becomes

[tex]L=\frac{1}{2}m \dot{r}^2 \left( 1 + 4a^2r^2 \right) + \frac{l^2}{2mr^2}-mgar^2.[/tex]

To get the energy I only have to sum the r variable in the energy equation, which gives me an energy equal to

[tex]E=\frac{1}{2}m \dot{r}^2 \left( 1 + 4a^2r^2 \right) - \frac{l^2}{2mr^2} + mgar^2.[/tex]

However, if I take the first Lagrangian, plug it into the energy equation this time summing for both r and theta, and then substitute in the angular momentum I get

[tex]E=\frac{1}{2}m \dot{r}^2 \left( 1 + 4a^2r^2 \right) + \frac{l^2}{2mr^2} + mgar^2.[/tex]

Basically the sign of my second term is different. Intuitively, the second one seems correct but I don't quite understand what is wrong with the first approach. If I look at the solutions manual for the problem the angular momentum is plugged in directly to the Lagrangian, but the solution still comes out with an energy where all terms are positive. Can someone help me out with what's going on here?

Thanks
 
Physics news on Phys.org
Your first method is not legal. You cannot eliminate a variable before taking the partial derivative.

See the example: f(x,y)= x+y. Determine the partial derivatives in case when y=x.

With the correct method [itex]\partial f/ \partial x =1[/itex], [itex]\partial f/ \partial y =1[/itex]

With your method, [itex]f(x,y)=2x[/itex], [itex]\partial f/ \partial x =2[/itex]. Is it correct? Now you calculated the directional derivative along the line y=x. It is not the partial derivative.

ehild
 

Similar threads

Replies
6
Views
2K
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
6
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 16 ·
Replies
16
Views
2K
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
25
Views
4K