Variational Calculus
Variational Calculus
Patrick Pletscher
1 Euler-Lagrange equation
A functional can be thought of as a special “function” mapping from the space of
functions to R. Here we’ll consider a functional J, which has the form
Z b
J(f ) = F (x, f, fx ) dx (1)
a
we want to find the function f (x) that minimizes J. We’ll assume that F (· ) is twice
continuously differentiable, i.e. the first and second derivative of F are continuous. We’ll
show that the following Euler-Lagrange equation has to hold for f for being a stationary
point of the functional in (1):
∂ d ∂
F (x, f, fx ) − F (x, f, fx ) = 0
∂f dx ∂fx
1
And thus the equation in (2) in explicit form becomes:
Ff − Ffx ,x − Ffx ,f fx − Ffx ,fx fxx = 0.
We now prove the Euler-Lagrange equation.
Proof. We add a test function η(x) with η(a) = η(b) = 0 and a scaled amplitude to
the function f (x):
f (x) ← f (x) + η(x).
We’re thus now considering the varied functional
Z b
d
J(f ) = F (x, f + η, (f + η)) dx,
a dx
a necessary condition of extremality is given by
dJ
∀η : = 0,
d =0
i.e. there does not exist a better function value in the “neighborhood” of f , this is very
similar to the standard maximization/minimization problems. We now perform a Taylor
approximation of the integrand in :
∂ ∂
F (x, f + η, fx + ηx ) = F (x, f, fx ) + η(x) F (x, f, fx ) + ηx (x) F (x, f, fx ) + O(2 ).
∂f ∂fx
Because of the extremality condition above, the linear terms have to vanish:
d b
Z
∂ ∂
F (x, f, fx ) + η(x) F (x, f, fx ) + ηx (x) F (x, f, fx ) dx = 0
d a ∂f ∂fx
Z b
d d ∂ d ∂
F (x, f, fx ) + η(x) F (x, f, fx ) + ηx (x) F (x, f, fx ) dx = 0
a d d ∂f d ∂fx
Z b
∂ ∂
0 + η(x) F (x, f, fx ) + ηx (x) F (x, f, fx ) dx = 0.
a ∂f ∂fx
2
We combine the two terms again to get:
Z b
∂ ∂
η(x) F (x, f, fx ) + ηx (x) F (x, f, fx ) dx =
a ∂f ∂fx
Z b
∂ d ∂
η(x) F (x, f, fx ) + F (x, f, fx ) dx = 0.
a ∂f dx ∂fx
Since the equation has to hold for all test functions η(x) the term in the big braces has
to be equal to zero, which proves our claim.