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=0x1x2ϵF(x,y¯,y¯)|ϵ=0dx=0x1x2[Fy¯y¯ϵ+Fy¯y¯ϵ]ϵ=0dx=0x1x2[Fy¯η+Fy¯η]ϵ=0dx=0

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

x1x2[Fyη+Fyη]dx=0

Using integration by parts on the second segment of the equation. Let u=Fy¯ and v=η.

uv=uvuv

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

x1x2Fyηdx=Fy¯[η]x1x2ddx(Fy)η=0ddx(Fy)η

Thus plugging it back into the above equation.

x1x2[Fyη+Fyη]dx=0x1x2[FyηddxFyη]dx=0x1x2[FyddxFy]η dx=0

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

Fyddx(Fy)=0

This is the most famous Euler Lagrange Equation.