Calculus of Variation

Calculus of variation aims to determine a function that minimises/maximises a value: distance, time, energy etc.

Introduction

A Functional accepts a function to produce a scalar. For eg. Distance functional I[y] calculates the distance traversed by the function y from x1 to x2. By setting the boundary condition of (x1,y1) and (x2,y2) we can get a finite value from the Functional.

I[y]=∫x1x2(dx2+dy2)=∫x1x2(1+(dydx)2)dx

It adds up small arc length ds along y(x). Thus computing the distance effectively.

This particular integrand (Function being integrated) (1+(dydx)2) requires only the derivative of the function, but other types of Integrant might use x, y or y′. Thus we can make a general integrant given as F below.

Suppose y=f(x) is an extremal (minimises/maximises Functional I). The boundary condition is given as y(x1)=y1 and y(x2)=y2.

I[y]=∫x1x2F(x,y,y′)dx

Suppose we slightly perturb y with an arbitrary function η to get y¯ , to ensure it satisfies a boundary condition we set η(x1)=0 and η(x2)=0. Since y is an extremal. The perturbation will cause a small difference to the Functional I[y¯].

y¯(x)=y(x)+ϵ⋅η

If y is truly extremal, then I should be at the minimum/maximum when ϵ=0.

dI[y¯]dϵ|ϵ=0=0

Thus

ddϵ∫x1x2F(x,y¯,y¯′)dx|ϵ=0=0∫x1x2∂∂ϵF(x,y¯,y¯′)|ϵ=0dx=0∫x1x2[∂F∂y¯⋅∂y¯∂ϵ+∂F∂y¯′⋅∂y¯′∂ϵ]ϵ=0dx=0∫x1x2[∂F∂y¯⋅η+∂F∂y¯′⋅η′]ϵ=0dx=0

Next we evaluate the partial derivatives at ϵ=0 thus replacing y¯ with y.

∫x1x2[∂F∂y⋅η+∂F∂y′⋅η′]dx=0

Using integration by parts on the second segment of the equation. Let u=∂F∂y¯′ and v′=η′.

∫uv′=uv−∫u′v

Since η(x2)=η(x1)=0.

∫x1x2∂F∂y′⋅η′dx=∂F∂y¯⋅[η]x1x2−∫ddx(∂F∂y)⋅η=0−∫ddx(∂F∂y)⋅η

Thus plugging it back into the above equation.

∫x1x2[∂F∂y⋅η+∂F∂y′⋅η′]dx=0∫x1x2[∂F∂y⋅η−ddx∂F∂y′⋅η]dx=0∫x1x2[∂F∂y−ddx∂F∂y′]⋅η dx=0

Since η is an arbitrary function (with fixed boundary points). The only way for the integral to be 0. Is if

∂F∂y−ddx(∂F∂y′)=0

This is the most famous Euler Lagrange Equation.