Euler-Lagrange: Vary the Path, Then Differentiate Correctly

From a functional to a differential equation

In ordinary calculus, one chooses a number that makes a function extreme. In the calculus of variations, one chooses an entire function, or path, that makes a functional stationary. A common functional is an integral whose integrand L depends on a coordinate, its derivative, and the independent variable.

The local condition

For fixed endpoint values, perturb the path by a small variation that vanishes at those endpoints. After integrating the derivative-of-the-variation term by parts, the remaining coefficient must vanish at each interior point.


This gives partial L over partial q minus the derivative with respect to the independent variable of partial L over partial q prime equal to zero.

Use partial and total derivatives deliberately

First hold q prime fixed while computing the coordinate partial derivative. Then hold q fixed while computing the velocity partial derivative. Finally take a total derivative of that latter expression; it may depend on the independent variable, q, and q prime. That final differentiation is where product and chain rules enter.

Mechanical interpretation

For a conservative coordinate, L is often kinetic energy minus potential energy. The variational equation then gives a mass times acceleration equal to minus the spatial derivative of potential energy.


This is not an extra assumption: it is the Euler-Lagrange equation applied to that particular Lagrangian. Boundary conditions are still needed to select a particular path from the differential equation.

For a stationary path of the functional integral of L(q, q prime, t) with fixed endpoint values, which equation is required along the path?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Let L(y, y prime, x) equal one half times y prime squared plus 3y. What differential equation follows from the Euler-Lagrange equation?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A particle has L(x, x dot) equal one half m x dot squared minus V(x). Which equation is produced by Euler-Lagrange?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors