Euler–Lagrange equation
DefinitionPartial derivative of the Lagrangian in position#✓fully proved
For a real function \(L(t, y, v)\) of three real variables, a function \(x : \mathbb{R} \to \mathbb{R}\) and a real number \(t\), this is the value \(\frac{\partial L}{\partial y}(t, x(t), x'(t))\), the derivative at \(y = x(t)\) of the function \(y \mapsto L(t, y, x'(t))\).
By convention, a derivative that does not exist is taken to be \(0\), both for \(x'(t)\) and for the derivative in \(y\).
noncomputable def lagrangianPartialX
(L : ℝ → ℝ → ℝ → ℝ) (x : ℝ → ℝ) (t : ℝ) : ℝ :=
deriv (fun y => L t y (deriv x t)) (x t)
Used by 1
DefinitionPartial derivative of the Lagrangian in velocity#✓fully proved
For a real function \(L(t, y, v)\) of three real variables, a function \(x : \mathbb{R} \to \mathbb{R}\) and a real number \(t\), this is the value \(\frac{\partial L}{\partial v}(t, x(t), x'(t))\), the derivative at \(v = x'(t)\) of the function \(v \mapsto L(t, x(t), v)\).
By convention, a derivative that does not exist is taken to be \(0\), both for \(x'(t)\) and for the derivative in \(v\).
noncomputable def lagrangianPartialV
(L : ℝ → ℝ → ℝ → ℝ) (x : ℝ → ℝ) (t : ℝ) : ℝ :=
deriv (fun z => L t (x t) z) (deriv x t)
Used by 1
DefinitionVariational extremum#✓fully proved
Let \(a, b\) be real numbers and let \(L(t, y, v)\) be a real function of three real variables. A function \(x : \mathbb{R} \to \mathbb{R}\) is a variational extremum of the action of \(L\) on \((a, b)\) if \(x\) is continuously differentiable and, for every infinitely differentiable function \(h : \mathbb{R} \to \mathbb{R}\) of compact support whose closed support lies in the open interval \((a, b)\), the derivative at \(\varepsilon = 0\) of
is \(0\).
By convention, a derivative that does not exist is taken to be \(0\), and so is the integral of a function that is not integrable.
def IsVariationalExtremum
(a b : ℝ) (L : ℝ → ℝ → ℝ → ℝ) (x : ℝ → ℝ) : Prop :=
ContDiff ℝ 1 x ∧
∀ h : ℝ → ℝ, ContDiff ℝ ∞ h → HasCompactSupport h →
tsupport h ⊆ Set.Ioo a b →
deriv (fun ε : ℝ => ∫ t in Set.Ioo a b,
L t (x t + ε * h t) (deriv x t + ε * deriv h t)) 0 = 0
Used by 1
TheoremEuler–Lagrange equation#●ready to prove
Let \(a < b\) be real numbers, let \(L(t, y, v)\) be a real function of three real variables that is twice continuously differentiable on \(\mathbb{R}^3\), and let \(x : \mathbb{R} \to \mathbb{R}\) be twice continuously differentiable. Write \(\partial L / \partial y\) and \(\partial L / \partial v\) for the partial derivatives of \(L\) in its second and third arguments. If \(x\) is a variational extremum of the action of \(L\) on \((a, b)\), then for every \(t \in (a, b)\)
public theorem_wanted euler_lagrange_equation
{a b : ℝ} (L : ℝ → ℝ → ℝ → ℝ) (x : ℝ → ℝ) (_hab : a < b)
(_hL : ContDiff ℝ 2 (fun p : ℝ × ℝ × ℝ => L p.1 p.2.1 p.2.2))
(_hx : ContDiff ℝ 2 x)
(_hxe : IsVariationalExtremum a b L x) :
∀ t ∈ Set.Ioo a b,
lagrangianPartialX L x t = deriv (lagrangianPartialV L x) t
def IsVariationalExtremum
(a b : ℝ) (L : ℝ → ℝ → ℝ → ℝ) (x : ℝ → ℝ) : Prop :=
ContDiff ℝ 1 x ∧
∀ h : ℝ → ℝ, ContDiff ℝ ∞ h → HasCompactSupport h →
tsupport h ⊆ Set.Ioo a b →
deriv (fun ε : ℝ => ∫ t in Set.Ioo a b,
L t (x t + ε * h t) (deriv x t + ε * deriv h t)) 0 = 0
WantedExt/Analysis/EulerLagrangeWanted.lean:82
noncomputable def lagrangianPartialX
(L : ℝ → ℝ → ℝ → ℝ) (x : ℝ → ℝ) (t : ℝ) : ℝ :=
deriv (fun y => L t y (deriv x t)) (x t)
WantedExt/Analysis/EulerLagrangeWanted.lean:68
noncomputable def lagrangianPartialV
(L : ℝ → ℝ → ℝ → ℝ) (x : ℝ → ℝ) (t : ℝ) : ℝ :=
deriv (fun z => L t (x t) z) (deriv x t)
WantedExt/Analysis/EulerLagrangeWanted.lean:74
Sources
- L. Euler (1744) and J.-L. Lagrange (1755). Listed as §44 in O. Knill, Some Fundamental Theorems in Mathematics (https://people.math.harvard.edu/~knill/graphgeometry/papers/fundamental.pdf). Problem
euler_lagrange_equationof the lean-eval benchmark.
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.