Physlib.ClassicalMechanics.EulerLagrange
Euler-Lagrange equations
In this module we define the Euler-Lagrange operator `eulerLagrangeOp`, and prove the that the variational derivative of the action functional `∫ L(t, q(t), dₜ q(t)) dt` is equal to the Euler-Lagrange operator applied to the trajectory `q`.
4 declarations
Euler-Lagrange operator
Given a Lagrangian function and a trajectory , the Euler-Lagrange operator is a function from to defined at each time by: where is the time derivative of the trajectory at time . Here, the partial derivative denotes the gradient of with respect to its second argument (position), and denotes the gradient of with respect to its third argument (velocity).
Definition of the Euler-Lagrange operator:
For any Lagrangian function and any trajectory , the Euler-Lagrange operator evaluated at time is given by: where is the time derivative of the trajectory, denotes the gradient of with respect to its second argument (position), and denotes the gradient of with respect to its third argument (velocity).
The Euler-Lagrange operator of a zero Lagrangian is zero
For any trajectory , the Euler-Lagrange operator applied to a Lagrangian function that is identically zero (i.e., for all ) results in the zero function.
The variational derivative of the action is the Euler-Lagrange operator:
Let be a finite-dimensional real inner product space. For a smooth () Lagrangian function and a smooth trajectory , the variational derivative (functional derivative) of the action functional with respect to the trajectory is equal to the Euler-Lagrange operator applied to . That is, where is the time derivative of the trajectory.
