Wednesday, 9 October 2019

Classical Mechanics - 1: Derivation of Euler Lagrange Equation

Classical Mechanics - 1: Derivation of Euler Lagrange Equation

In this blog post we will discuss the Lagrangian approach to Classical Mechanics, this forms a major chapter of almost every Classical Mechanics textbook.

This formulation is very important and plays an important role in Classical physics.

I am solely following John Taylor’s book on Classical Mechanics.

Refer image below,
Figure 1

blog

In the above image, the curve y(x)y(x) is the correct path and the curve Y(x)Y(x) is the incorrect path (basically y(x)+error(x)y(x)+\text{error}(x)).

We will for now will only concentrate on curve y(x)y(x),

The length of a small segment on y(x)y(x) is given by,
ds=dx2+dy2(1) \mathrm{d}s = \sqrt{\mathrm{d}x^2+\mathrm{d}y^2}\tag*{(1)}
And since, y=y(x)y=y(x),
dy=dydxdx \mathrm{d}y = \frac{\mathrm{d}y}{\mathrm{d}x}\mathrm{d}x
Which is,
dy=y(x)dx(2) \mathrm{d}y = y'(x)\mathrm{d}x \tag*{(2)}
Use (2)(2) in (1)(1),
ds=1+(y(x))2dx(3) \mathrm{d}s = \sqrt{1+(y'(x))^2}\mathrm{d}x \tag*{(3)}

Now, to find the total length of the curve y(x)y(x), say the total length is L\mathrm{L}, so,
L=12ds=x1x21+(y(x))2dx(4) \mathrm{L}=\int_1^2 \mathrm{d}s = \int_{x_1}^{x_2}\sqrt{1+(y'(x))^2}\mathrm{d}x \tag*{(4)}
To go further, we will introduce the concept of least time given by Fermat. It’s called Fermat’s principle.
In 1650, Fermat discovered a way to explain reflection and refraction as the consequence of one single principle. It is called the principle of least time or Fermat’s principle.
Fermat’s principle says that the correct path from point 1 to 2 (refer figure) is the path for which the time of travel is the least. So, the correct y(x)y(x) will the one for which,
(time of travel)=12dt=12dsv=1c12nds(5) \text{(time of travel)}=\int_{1}^{2}dt = \int_{1}^{2}\frac{\mathrm{d}s}{v}=\frac{1}{c}\int_{1}^{2}n\mathrm{d}s \tag*{(5)}
is minimum.

For the sake of generalization, we assume that nn is variable and we, from now on, denote it as n(x,y)n(x,y).
Now, using (3)(3) in (5)(5), we have (neglecting cc because it is a constant - the speed of light) (nn assumed as a variable),
12n(x,y)ds=x1x2n(x,y)1+(y(x))2dx(6) \int_{1}^{2}n(x,y)\mathrm{d}s=\int_{x_1}^{x_2}n(x,y)\sqrt{1+(y'(x))^2}\mathrm{d}x \tag*{(6)}
So, our task is to find a y(x)y(x) such that (6)(6) is minimum.
Eqn (6)(6) can be denoted as integral S\mathbb{S} for the sake of simplicity of reference,
S=x1x2n(x,y)1+(y(x))2dx \boxed{\mathbb{S}=\int_{x_1}^{x_2}n(x,y)\sqrt{1+(y'(x))^2}\mathrm{d}x}
For the sake of analysis, we write S\mathbb{S} as
S=x1x2f[x,y(x),y(x)]dx(7) \mathbb{S}=\int_{x_1}^{x_2}\mathbb{f}[x, y(x), y'(x)]\mathrm{d}x \tag*{(7)}
We must appreciate now that, y(x)y(x) is still unknown.
From the figure, we assume Y(x)Y(x) is the wrong path with error value η(x)\eta(x), thus,
Y(x)=y(x)+η(x) Y(x) = y(x)+\eta(x)
Understand that η(x)\eta(x) is the error function and therefore,
η(x1)=η(x2)=0(8) \eta(x_1)=\eta(x_2)=0 \tag*{(8)}
The η(x)\eta(x) can be of any form and type.
The integral S\mathbb{S} taken along the wrong curve Y(x)Y(x) must be larger than the right curve y(x)y(x), to express we introduce a factor α\alpha, thus, Y(s)Y(s) becomes,
Y(s)=y(s)+αη(x)(9) Y(s) = y(s) + \alpha \eta(x) \tag*{(9)}
Therefore, the integral S\mathbb{S} will now be written as S(α)\mathbb{S(\alpha)},
the requirement is S(α)\mathbb{S(\alpha)} is minimum for right curve y(x)y(x), therefore, at α=0\alpha=0, S(α)\mathbb{S(\alpha)} is minimum.

Get into the mathematics now,

S(α)=x1x2f(Y,Y,x)dx \mathbb{S}(\alpha)=\int_{x_1}^{x_2}f(Y,Y', x)\mathrm{d}x
Which is,
S=x1x2f(y+αη,y+αη,x)dx(10) \mathbb{S}=\int_{x_1}^{x_2}f(y+\alpha\eta, y'+\alpha\eta',x)\mathrm{d}x \tag*{(10)}

Now, we need to find the differential of S\mathbb{S} with respect to α\alpha,
dSdα=x1x2fαdx(11) \frac{\mathrm{d}\mathbb{S}}{\mathrm{d}\mathbb{\alpha}}=\int_{x_1}^{x_2}\frac{\partial f}{\partial \alpha}\mathrm{d}x \tag*{(11)}
Now,
fα=f(y+αη,y+αη,x)α=ηfy+ηfy(12) \frac{\partial f}{\partial \alpha}=\frac{\partial f(y+\alpha\eta, y'+\alpha\eta',x )}{\partial \alpha}=\eta\frac{\partial f}{\partial y}+\eta'\frac{\partial f}{\partial y'}\tag*{(12)}
Use (12)(12) in (11)(11),
dSdα=x1x2fαdx=x1x2(ηfy+ηfy)dx(13) \frac{\mathrm{d}\mathbb{S}}{\mathrm{d}\mathbb{\alpha}}=\int_{x_1}^{x_2}\frac{\partial f}{\partial \alpha}\mathrm{d}x=\int_{x_1}^{x_2}(\eta\frac{\partial f}{\partial y}+\eta'\frac{\partial f}{\partial y'})\mathrm{d}x \tag*{(13)}
For finding minimum, we equate dSdα\frac{\mathrm{d}\mathbb{S}}{\mathrm{d}\mathbb{\alpha}} to 00.
Thus,
dSdα=x1x2fαdx=x1x2(ηfy+ηfy)dx=0(14) \frac{\mathrm{d}\mathbb{S}}{\mathrm{d}\mathbb{\alpha}}=\int_{x_1}^{x_2}\frac{\partial f}{\partial \alpha}\mathrm{d}x=\int_{x_1}^{x_2}(\eta\frac{\partial f}{\partial y}+\eta'\frac{\partial f}{\partial y'})\mathrm{d}x =0\tag*{(14)}
We try to simplify the second part of (14)(14),
x1x2fyη(x)dx=[fy(η(x))dxddx(fy)dxη(x)dx]x1x2 \int_{x_1}^{x_2}\frac{\partial f}{\partial y'}\eta'(x)\mathrm{d}x=[\frac{\partial f}{\partial y'}\int(\eta'(x))\mathrm{d}x-\int \frac{\mathrm{d}}{\mathrm{d}x}(\frac{\partial f}{\partial y'})\mathrm{d}x\int\eta'(x)\mathrm{d}x]_{x_1}^{x_2}

=[η(x)fyη(x)ddx(fy)dx]x1x2(15) =[\eta(x)\frac{\partial f}{\partial y'}-\int \eta(x)\frac{\mathrm{d}}{\mathrm{d}x}(\frac{\partial f}{\partial y'})\mathrm{d}x]_{x_1}^{x_2} \tag*{(15)}
Using condition (8)(8), we get,
x1x2fyη(x)dx=x1x2η(x)ddx(fy)dx(16) \int_{x_1}^{x_2}\frac{\partial f}{\partial y'}\eta'(x)\mathrm{d}x=-\int_{x_1}^{x_2}\eta(x)\frac{\mathrm{d}}{\mathrm{d}x}(\frac{\partial f}{\partial y'})\mathrm{d}x\tag*{(16)}
Using (16)(16) in (14)(14),
dSdα=x1x2fαdx=x1x2(ηfyηddxfy)dx=0 \frac{\mathrm{d}\mathbb{S}}{\mathrm{d}\mathbb{\alpha}}=\int_{x_1}^{x_2}\frac{\partial f}{\partial \alpha}\mathrm{d}x=\int_{x_1}^{x_2}(\eta\frac{\partial f}{\partial y}-\eta\frac{\mathrm{d}}{\mathrm{d}x}\frac{\partial f}{\partial y'})\mathrm{d}x =0
Thus, we have,
x1x2η(x)(fyddxfy)dx=0(17) \int_{x_1}^{x_2}\eta(x)(\frac{\partial f}{\partial y}-\frac{\mathrm{d}}{\mathrm{d}x}\frac{\partial f}{\partial y'})\mathrm{d}x =0 \tag*{(17)}
The above equation should satisfy for any value of η(x)\eta(x), thus,
fyddxfy=0(18) \boxed{\frac{\partial f}{\partial y}-\frac{\mathrm{d}}{\mathrm{d}x}\frac{\partial f}{\partial y'}=0} \tag*{(18)}
Equation (18)(18) is called the Euler Lagrange Equation.

Cheers.


No comments:

Post a Comment