Calculus of Variations
Calculus of Variations
Calculus of Variations
Motivation
x1 , y1
x2 , y 2
dS 1 y 2 dx
x2
I
x1
1 y 2 dx
2022/3/1
dS 1 y 2 dx
I L x, y, y dx
x1 Kinetic energy Potential energy
x2
I Ag y 1 y 2 dx
x1
In this problem, there is a constrain
x2
which is the chain length.
l
x1
1 y2 dx constrain
0
Just like x dx y x x
F x F y F y
x2
Take derivative
y x y x x x x y y dx 0
1 0
y x x
Consider
x 2
F F
x2
a udv vu a a vdu
x2 b
F F d F
x2
dx 0
y x1 x1 y dx y
Strong form
x1 x2 0 Since is arbitrary function, F d F Euler-Lagrange
0 equation
the only solution is y dx y
x2 , y 2 x2 , y 2
y x
2
C2
1 y x
2
F d F
0
x2
y dx y
y x C 2 C 2 y x
2 2
I 1 y dx
2
x1 F
0
1 C y x
2
y
2
C2
F x, y , y 1 y2 2
F y y x
C
A
y 1 y 2 1 C2
y x Ax B Straight line!
d y x
0
dx 1 y x 2
Bounded at x1 , y1 and x2 , y2
y x A and B can be solved accordingly.
const. C
1 y x
2
2022/3/1
x2 dx 1 2 n 1 2 n
I y L x, y , y , y ,, y k dx dy
x1
yj j 1, 2,, n
dx j
L n d L
x1
0
L d L d 2 L k d
k
L y j 1 dx j y j
1 0
y dx y dx 2 y dx k y k
Several functions of single variable with single derivative More generalization can be found in wiki.
x2
I y1 , y2 ,, ym L x , y , y ,, y
1 2 m , y1, y2 ,, ym dx
x1
L d L
0 i 1, 2,, m
yi dx yi
https://en.wikipedia.org/wiki/Euler%E2%80%93Lagrange_equation