PHYS104: Advanced Mechanics

Calculus of Variation

Concept:

  • function: mapping number to number. Ex. y=f(x)y=f(x)
  • operator: mapping function to function. Ex. ddx\frac{d}{dx}
  • functional: mapping function to number. Ex. max(f(x)=x2)max(f(x) = x^2)

Newton’s Second Law F=ma\bm{F} = m\bm{a}, is essentially stating a ordinary differential equation
r¨=f(t,r,r˙)\ddot\bm{r} = f(t,\bm{r},\dot\bm{r})
which has two degrees of freedom r(0)\bm{r}(0) and r˙(0)\dot\bm{r}(0)


Stationary Point for f(x)f(x): df=0df = 0 for any dxdx. Since df=fdxdf = f'dx, we have f=0f' = 0.
For multi-variable function F(x1,x2,,xn)F(x_1, x_2, \cdots, x_n),
dF=F(dx1,dx2,,dxn)T=0dF = \nabla F \cdot (dx_1, dx_2, \cdots, dx_n)^T = 0
Change variable dxi=ηidαdx_i = \eta_id\alpha
dF=dαi=1nFxiηi=0dF = d\alpha \sum_{i=1}^{n}\frac{\partial F}{\partial x_i}\eta_i = 0
Since dxidx_i is arbitrary, ηi\eta_i is also arbitrary. For the jthj^{th} term, select ηi=0,ij\eta_i = 0, i\neq j and ηj=0\eta_j = 0, we can obtain
Fxi=0,i\frac{\partial F}{\partial x_i} = 0, \forall i


Variation:

  • Virtual Displacement: An imagined displacement with no time change, denoted as δx\delta x. Ex. the δy\delta y in the graph.
  • Virtual Path: an imagined path which is different from the right path. Ex. the pink path on the graph.
    PHYS104: Advanced Mechanics
    Change variable: δy(x)=η(x)dα\delta y(x) = \eta(x)d\alpha, so that
    Y(x)=y(x)+δy(x)=y(x)+αη(x)Y(x) = y(x) + \delta y(x) = y(x) + \alpha\eta(x)

Properties:
δF=F(x1+δx1,x2+δx2,,xn+δxn)F(x1,x2,,xn)\delta F = F(x_1+\delta x_1, x_2+\delta x_2, \cdots, x_n+\delta x_n) - F(x_1, x_2, \cdots, x_n)
δF=F(δx1,δx2,,δxn)T\delta F = \nabla F\cdot (\delta x_1, \delta x_2, \cdots, \delta x_n)^T
δ(ddxy)=ddx(δy)\delta(\frac{d}{dx}y) = \frac{d}{dx}(\delta y)
δabfdx=abδfdx\delta\int_a^bfdx = \int_a^b\delta fdx


Euler-Lagrange Equation

Find the right path making the following integral stationary, with start point and end point fixed.
I=abf(y,y,x)dxI = \int_a^b f(y,y',x)dx


Book’s Method
II is only dependent on α\alpha and it is stationary at α=0,Y(x)=y(x)\alpha = 0, Y(x) = y(x), therefore
dIdαα=0=abf(y,y,x)αdx=0\frac{dI}{d\alpha}\Big|_{\alpha=0} = \int_a^b\frac{\partial f(y,y',x)}{\partial\alpha}dx = 0
Apply the chain rule
ab(fyyα+fyyα)dx=ab(fyη+fyη)dx=0\int_a^b(\frac{\partial f}{\partial y}\frac{\partial y}{\partial\alpha} + \frac{\partial f}{\partial y'}\frac{\partial y'}{\partial\alpha})dx = \int_a^b(\frac{\partial f}{\partial y}\eta + \frac{\partial f}{\partial y'}\eta')dx = 0
Treat the second term in the integral with the Law of Integral by Parts
abfyηdx=fyη(x)ababηddxfydx\int_a^b \frac{\partial f}{\partial y'}\eta'dx = \frac{\partial f}{\partial y'}\eta'(x)\Big|_a^b - \int_a^b\eta\frac{d}{dx}\frac{\partial f}{\partial y'}dx
Since the start point and end point are fixed, the variation η(x1)=η(x2)=0\eta(x_1) = \eta(x_2) = 0, so the first term will vanish. Take the second term back into dIdα\frac{dI}{d\alpha}
dIdαα=0=abη(x)(fyddxfy)dx=0,η(x)\frac{dI}{d\alpha}\Big|_{\alpha=0} = \int_a^b\eta(x)(\frac{\partial f}{\partial y}-\frac{d}{dx}\frac{\partial f}{\partial y'})dx = 0, \quad \forall \eta(x)
Therefore, we get the Lagrange Equation
fyddxfy=0\frac{\partial f}{\partial y}-\frac{d}{dx}\frac{\partial f}{\partial y'} = 0


Lagrange’s Method (1755)
δI=I(α)I(0)=abδf(y,y,x)dx\delta I = I(\alpha) - I(0) = \int_a^b \delta f(y,y',x)dx
δx=0δf=fyδy+fyδy\because \delta x = 0 \quad \therefore \delta f = \frac{\partial f}{\partial y}\delta y + \frac{\partial f}{\partial y'}\delta y'
Use the change of variable for δy\delta y
dδfdα=fyη+fyη\frac{d\delta f}{d\alpha} = \frac{\partial f}{\partial y}\eta + \frac{\partial f}{\partial y'}\eta'
Take back to the integral. And for the stationary right path, δI\delta I should be zero for all infinitesimal dαd\alpha.
dδIdα=ab(fyη+fyη)dx=0\frac{d\delta I}{d\alpha} = \int_a^b(\frac{\partial f}{\partial y}\eta + \frac{\partial f}{\partial y'}\eta')dx = 0
Use the same technique as in the Book’s Method, we can get the Euler-Lagrange Equation
fyddxfy=0\frac{\partial f}{\partial y}-\frac{d}{dx}\frac{\partial f}{\partial y'} = 0


Euler’s Method (1756) Make partition between x0x_0 and xnx_n, with h=xjxj1=(ba)/nh = x_j - x_{j-1} = (b-a)/n. y1,y2,,yn1y_1, y_2, \cdots, y_{n-1} are unknown variables.

By definition of Rieman Sum,
I=limnSn=limnj=1nf(yj,yj,xj)hI = \lim_{n\to \infin}S_n =\lim_{n\to \infin}\sum_{j=1}^nf(y_j,y'_j,x_j)h
By definition of derivatives yj=(yjyj1)/hy'_j = (y_j - y_{j-1})/h. Therefore the Rieman Sum is only function of yj,j{1,,n}y_j, \quad j\in\{1,\cdots,n\}

For stationary II,
Syk=0,k{1,,n}\frac{\partial S}{\partial y_k} = 0, \quad \forall k\in \{1,\cdots,n\}
only two terms (kthk^{th} and (k+1)th(k+1)^{th}) are involved. Apply chain rule
Syk=h(f(yk,yk,xk)yk+f(yk,yk,xk)ykykyk+f(yk+1,yk+1,xk+1)yk+1yk+1yk)=h(fykk+1hfyk1hfyk+1)=h(fykkfyk+1fykh) \begin{aligned} \frac{\partial S}{\partial y_k} &= h(\frac{\partial f(y_k,y'_k,x_k)}{\partial y_k} + \frac{\partial f(y_k,y'_k,x_k)}{\partial y'_k}\frac{y'_k}{y_k} + \frac{\partial f(y_{k+1},y'_{k+1},x_{k+1})}{\partial y'_{k+1}}\frac{y'_{k+1}}{y_k}) \\ &= h(\frac{\partial f}{\partial y_k}\Big|_k + \frac{1}{h}\frac{\partial f}{\partial y'}\Big|_k - \frac{1}{h}\frac{\partial f}{\partial y'}\Big|_{k+1}) \\ &= h(\frac{\partial f}{\partial y_k}\Big|_k - \frac{\frac{\partial f}{\partial y'}\Big|_{k+1} - \frac{\partial f}{\partial y'}\Big|_k}{h}) \end{aligned}
As it is for all kk, we can conclude that
fyddxfy=0\frac{\partial f}{\partial y}-\frac{d}{dx}\frac{\partial f}{\partial y'} = 0


Ex. Length of the curve on a plane
I=ldl=l1+y2dxI = \int_l dl = \int_l\sqrt{1+y'^2}dx
Take into the Euler-Lagrange Equation
0=ddxy1+y2=y1+y2y2y1+y21+y2=y(1+y2)y2y(1+y2)3/20=\frac{d}{dx}\frac{y'}{\sqrt{1+y'^2}} = \frac{y''\sqrt{1+y'^2}-\frac{y'^2y''}{\sqrt{1+y'^2}}}{1+y'^2} = \frac{y''(1+y'^2)-y'^2y''}{(1+y'^2)^{3/2}}
Which implies y=0y'' = 0. Thus, the path that makes the length between two given point shortest is a segment of a line.


Ex. Brachistochrone: under gravity gg, figure out the path x=x(y)x=x(y) between given points a and b, such that an object falls with the shortest time.
T=abdlv=abx2+12gydy=12gabx2+1ydyT = \int_a^b\frac{dl}{v} = \int_a^b\frac{\sqrt{x'^2+1}}{\sqrt{2gy}}dy = \frac{1}{\sqrt{2g}}\int_a^b\sqrt{\frac{x'^2+1}{y}}dy
Take into the Euler-Lagrange Equation (independent variable is y)
0=ddyxx2+1y0 = \frac{d}{dy}\frac{x'}{\sqrt{x'^2+1}\sqrt{y}}
So that we can find the part within the derivative should be a constant. For convenience, square it and denote it as
x2y(x2+1)=12a\frac{x'^2}{y(x'^2+1)} = \frac{1}{2a}
Make a transformation
x=y2ayx' = \sqrt{\frac{y}{2a-y}}
Make substitution y=α(1cosθ)y = \alpha(1-\cos\theta) and integral. Without loss of generallity, fix initial point at (0,0)(0,0), we get
x=α(θsinθ)x=\alpha(\theta-\sin\theta)
Which is exactly the parametric funtion for cycloid.


Beltrami’s Identity
dfdx=fyy+fydydx+fx=ddx(fy)y+fydydx+fx\frac{df}{dx} = \frac{\partial f}{\partial y}y' + \frac{\partial f}{\partial y'}\frac{dy'}{dx} + \frac{\partial f}{\partial x} = \frac{d}{dx}(\frac{\partial f}{\partial y'})y' + \frac{\partial f}{\partial y'}\frac{dy'}{dx} + \frac{\partial f}{\partial x}
fx=dfdxddx(fyy)=ddx(ffyy)\frac{\partial f}{\partial x} = \frac{df}{dx} - \frac{d}{dx}(\frac{\partial f}{\partial y'}y') = \frac{d}{dx}(f-\frac{\partial f}{\partial y'}y')
when ff is independent of xx, we have the Beltrami’s Identity:
ffyy=constantf-\frac{\partial f}{\partial y'}y' = constant

Lagrangian Mechanics

Lagrangian

Sometimes for system with conservation of energy and all potential force, we can obtain the equation of motion by dEdt=0\frac{dE}{dt} = 0. But with multiple degrees of freedom, this cannot work, which requires further technique.

D’Alembert’s Principle

In dynamics, Fma=0\bm{F} - m\bm{a} = \bm{0}. For virtual work δW=(Fma)δr=0\delta W = (\bm{F} - m\bm{a})\cdot\delta\bm{r} = 0
t1t2δWdt=t1t2[Fddt(mv)]δrdt\int_{t_1}^{t_2}\delta Wdt = \int_{t_1}^{t_2}[\bm{F}-\frac{d}{dt}(m\bm{v})]\delta\bm{r}dt
For potential forces,
t1t2Fδrdt=δt1t2Udt\int_{t_1}^{t_2}\bm{F}\cdot\delta\bm{r}dt = -\delta\int_{t_1}^{t_2}Udt
For fixed initial and final problems, we have δr(t1)=δr(t2)=0\delta\bm{r}(t_1) = \delta\bm{r}(t_2) = 0. Thus
t1t2ddt(mv)δrdt=mvδrt1t2+t1t2mvddt(δr)dt=t1t2mvδvdt-\int_{t_1}^{t_2}\frac{d}{dt}(m\bm{v})\delta\bm{r}dt = -m\bm{v}\delta\bm{r}\Big|_{t_1}^{t_2} + \int_{t_1}^{t_2}m\bm{v}\frac{d}{dt}(\delta\bm{r})dt = \int_{t_1}^{t_2}m\bm{v}\delta\bm{v}dt

Note: δ(x2)=2xδx\delta(x^2) = 2x\delta x

t1t2ddt(mv)δrdt=δt1t2mv22dt=δt1t2Tdt-\int_{t_1}^{t_2}\frac{d}{dt}(m\bm{v})\delta\bm{r}dt = \delta\int_{t_1}^{t_2}\frac{m\bm{v}^2}{2}dt = \delta\int_{t_1}^{t_2}Tdt
Take them back into t1t2δWdt\int_{t_1}^{t_2}\delta Wdt, we have
t1t2δWdt=δt1t2(TU)dt=0\int_{t_1}^{t_2}\delta Wdt = \delta\int_{t_1}^{t_2}(T-U)dt = 0
Define Lagrangian as
L=TU\mathcal{L} = T-U
Define Action as
A=t1t2LdtA = \int_{t_1}^{t_2}\mathcal{L}dt

相关文章: