Euler-Lagrange Equation#
Calculus of variations attempts to solve the shortest path problem problem in a form of the following integral,
Generally,
What we wish to find is \(y(x)\) which is a curve that minimizes \(S\).
Any function that satisfies the Euler-Lagrange equation (or shortly Lagrange equations) can construct the proper \(y(x)\). The Lagrange equation is written as,
Proof#
The method to find \(y(x)\) is weird because we are going to find the wrong answer/curve first. The wrong curve is in some form
\(\eta(x)\) : some deviation from the correct curve \(y(x)\)
\(\alpha\) : a coefficient of the deviation
You can see that the correct answer occurs when \(\alpha = 0\). We may also write \(S\) as a function with parameter \(\alpha\) such that \(S(\alpha)\) is minimum at \(S(0)\). The condition for a minimum, (more correct, an extrema) is \(dS/d\alpha=0\),
For the last line to be true, this must be true by integration by parts,
Thus it is necessary for any arbitrary \(\eta(x) \ne 0\),
Properties#
The two properties of the Lagrange equation are theorems that makes solving for the Lagrange equation much simpler,
**Theorem 1: ** : If \(f[x(t),x'(t),t]\) is independent on any of its zeroth order derivative parameters \(x\) such that,
$$ \frac{\partial f}{\partial x} = 0$$
: then its derivative along say \(x'\) is a constant \(C\),
$$ \boxed{\frac{\partial f}{\partial x'} = C} $$
: This theorem applies to all functions that satisfies the Lagrange equations.
**Theorem 2: ** : If \(f[x(t),x'(t),t]\) is independent on it’s free parameter \(t\) such that,
$$ \frac{df}{dt} = 0 $$
: then the rest of the Lagrange equation follow for some constant \(C\),
$$ \boxed{f - x'\frac{\partial f}{\partial x'} = C} $$
Example: Shortest Path#
The shortest path between two points is,
\begin{gather} \frac{\partial f}{\partial y} = 0, \quad \frac{\partial f}{\partial y’} = \frac{y’}{(1+y’^2)^{1/2}} \nonumber\ \frac{y’}{(1+y’^2)^{1/2}} = C\ \end{gather} $\( For some constant \)C$.
Let’s set the constant to be \(m\) such that \(y' = m\). We can integrate \(y'(x)\) to get \(y(x)\)
{} hello
Now you see that the shortest path is a straight line!
Multivariable#
The Lagrange equation solves the integral,