Note: Gravity Along Curve

Steve Trettel
|
This note records a simple calculation in lagrangian mechanics that is useful when making 2D animations. We consider a curve given by the graph of a function
PICTURE
A particle moving along the graph of a function
The Lagrangian
The kinetic energy of a particle is
Where we’ve written
Putting these together gives the lagrangian for our system,
The Calculus of Variations
Let
The physical trajectory of the particle is that which minimizes the action, which we find using the Euler-Lagrange equation:
Thus we need the derivatives of
Next we need the total time derivative of this latter quantity:
Both sides of the Euler-Lagrange equation are proportional to
To simplify, we solve for
This proves the claimed theorem.