The Euler Lagrange Equations
Given an action functional
we desire to find the functions which extremize it by considering small perturbations around the extremal path (): . We require only (we don’t vary the endpoints) and look at:
To extremize the functional, we require and the fundamental lemma of the calculus of variations tells us then that the expression inside the parentheses of the final line in the above equation must equal 0 everywhere in the interval along the extremal path. This gives us the Euler Lagrange equations (dropping the subscript since we are now always on the extremal path):
Explanation of (1) and (2)
In (1) use the product rule on the middle term to see how terms cancel to give us the right answer.
In (2) use the fundamental theorem of calculus (part 2) to get this first boundary term, which then vanishes because
Musing
Most physics texts that I recall (and I might not recall them very well so take this with a grain of salt) tend to do the above derivation much faster using functional variation notation instead of with the and .