functional: mapping function to number. Ex. max(f(x)=x2)
Newton’s Second LawF=ma, is essentially stating a ordinary differential equation r¨=f(t,r,r˙)
which has two degrees of freedom r(0) and r˙(0)
Stationary Point for f(x): df=0 for any dx. Since df=f′dx, we have f′=0.
For multi-variable function F(x1,x2,⋯,xn), dF=∇F⋅(dx1,dx2,⋯,dxn)T=0
Change variable dxi=ηidα dF=dαi=1∑n∂xi∂Fηi=0
Since dxi is arbitrary, ηi is also arbitrary. For the jth term, select ηi=0,i=j and ηj=0, we can obtain ∂xi∂F=0,∀i
Variation:
Virtual Displacement: An imagined displacement with no time change, denoted as δx. Ex. the δy in the graph.
Virtual Path: an imagined path which is different from the right path. Ex. the pink path on the graph.
Change variable: δy(x)=η(x)dα, so that Y(x)=y(x)+δy(x)=y(x)+αη(x)
Find the right path making the following integral stationary, with start point and end point fixed. I=∫abf(y,y′,x)dx
Book’s Method I is only dependent on α and it is stationary at α=0,Y(x)=y(x), therefore dαdI∣∣∣α=0=∫ab∂α∂f(y,y′,x)dx=0
Apply the chain rule ∫ab(∂y∂f∂α∂y+∂y′∂f∂α∂y′)dx=∫ab(∂y∂fη+∂y′∂fη′)dx=0
Treat the second term in the integral with the Law of Integral by Parts ∫ab∂y′∂fη′dx=∂y′∂fη′(x)∣∣∣ab−∫abηdxd∂y′∂fdx
Since the start point and end point are fixed, the variation η(x1)=η(x2)=0, so the first term will vanish. Take the second term back into dαdI dαdI∣∣∣α=0=∫abη(x)(∂y∂f−dxd∂y′∂f)dx=0,∀η(x)
Therefore, we get the Lagrange Equation ∂y∂f−dxd∂y′∂f=0
Lagrange’s Method (1755) δI=I(α)−I(0)=∫abδf(y,y′,x)dx ∵δx=0∴δf=∂y∂fδy+∂y′∂fδy′
Use the change of variable for δy dαdδf=∂y∂fη+∂y′∂fη′
Take back to the integral. And for the stationary right path, δI should be zero for all infinitesimal dα. dαdδI=∫ab(∂y∂fη+∂y′∂fη′)dx=0
Use the same technique as in the Book’s Method, we can get the Euler-Lagrange Equation ∂y∂f−dxd∂y′∂f=0
Euler’s Method (1756) Make partition between x0 and xn, with h=xj−xj−1=(b−a)/n. y1,y2,⋯,yn−1 are unknown variables.
By definition of Rieman Sum, I=n→∞limSn=n→∞limj=1∑nf(yj,yj′,xj)h
By definition of derivatives yj′=(yj−yj−1)/h. Therefore the Rieman Sum is only function of yj,j∈{1,⋯,n}
For stationary I, ∂yk∂S=0,∀k∈{1,⋯,n}
only two terms (kth and (k+1)th) are involved. Apply chain rule ∂yk∂S=h(∂yk∂f(yk,yk′,xk)+∂yk′∂f(yk,yk′,xk)ykyk′+∂yk+1′∂f(yk+1,yk+1′,xk+1)ykyk+1′)=h(∂yk∂f∣∣∣k+h1∂y′∂f∣∣∣k−h1∂y′∂f∣∣∣k+1)=h(∂yk∂f∣∣∣k−h∂y′∂f∣∣∣k+1−∂y′∂f∣∣∣k)
As it is for all k, we can conclude that ∂y∂f−dxd∂y′∂f=0
Ex. Length of the curve on a plane I=∫ldl=∫l1+y′2dx
Take into the Euler-Lagrange Equation 0=dxd1+y′2y′=1+y′2y′′1+y′2−1+y′2y′2y′′=(1+y′2)3/2y′′(1+y′2)−y′2y′′
Which implies y′′=0. Thus, the path that makes the length between two given point shortest is a segment of a line.
Ex. Brachistochrone: under gravity g, figure out the path x=x(y) between given points a and b, such that an object falls with the shortest time. T=∫abvdl=∫ab2gyx′2+1dy=2g1∫abyx′2+1dy
Take into the Euler-Lagrange Equation (independent variable is y) 0=dydx′2+1yx′
So that we can find the part within the derivative should be a constant. For convenience, square it and denote it as y(x′2+1)x′2=2a1
Make a transformation x′=2a−yy
Make substitution y=α(1−cosθ) and integral. Without loss of generallity, fix initial point at (0,0), we get x=α(θ−sinθ)
Which is exactly the parametric funtion for cycloid.
Beltrami’s Identity dxdf=∂y∂fy′+∂y′∂fdxdy′+∂x∂f=dxd(∂y′∂f)y′+∂y′∂fdxdy′+∂x∂f ∂x∂f=dxdf−dxd(∂y′∂fy′)=dxd(f−∂y′∂fy′)
when f is independent of x, we have the Beltrami’s Identity: f−∂y′∂fy′=constant
Lagrangian Mechanics
Lagrangian
Sometimes for system with conservation of energy and all potential force, we can obtain the equation of motion by dtdE=0. But with multiple degrees of freedom, this cannot work, which requires further technique.
D’Alembert’s Principle
In dynamics, F−ma=0. For virtual work δW=(F−ma)⋅δr=0 ∫t1t2δWdt=∫t1t2[F−dtd(mv)]δrdt
For potential forces, ∫t1t2F⋅δrdt=−δ∫t1t2Udt
For fixed initial and final problems, we have δr(t1)=δr(t2)=0. Thus −∫t1t2dtd(mv)δrdt=−mvδr∣∣∣t1t2+∫t1t2mvdtd(δr)dt=∫t1t2mvδvdt
Note: δ(x2)=2xδx
−∫t1t2dtd(mv)δrdt=δ∫t1t22mv2dt=δ∫t1t2Tdt
Take them back into ∫t1t2δWdt, we have ∫t1t2δWdt=δ∫t1t2(T−U)dt=0
Define Lagrangian as L=T−U
Define Action as A=∫t1t2Ldt