Euler-Lagrange Equation

Good video to get intuition :

The Euler-Lagrange equation is a fundamental result of the calculus of variations and is derived from Hamilton’s principle of stationary action. It provides the equations of motion for a physical system once the Lagrangian is known.

Euler-Lagrange Equation:

For each generalized coordinate qi, the Euler-Lagrange equation is:

ddt(Lq˙i)Lqi=0

Intuition:

Soo what I have come to realize is the way this equation works is magical, that somehow it follows the rules stated before and finds the path that does the least action which we already know from Hamiltonian Principle, also this video explains the math behind it, but I didn't really get it, maybe someday I will re-visit this and get it, here's the video I am talking about .

But yeah it makes sense why all of these work in the first place after understanding that essentially what we are gonna solve for is the path with least action and that is what happens in reality.

Derivation:

Starting from Hamilton’s principle, δS=0, we have the action:

S=t1t2L(qi,q˙i,t)dt

Taking the variation of S, we vary the path slightly and compute how the action changes. Setting the variation to zero yields the Euler-Lagrange equations, which are the equations of motion.

Example:

For a simple harmonic oscillator, the Lagrangian is:

L=12mx˙212kx2

Applying the Euler-Lagrange equation:

ddt(Lx˙)Lx=0

yields the equation of motion:

mx¨+kx=0

Pasted image 20241014200827.png