MTH 442 · Mathematical Methods II
Our notes
2 min readDerivation
Φ(ε) = ∫ₐᵇ F(x, y + εη, y′ + εη′) dx. Differentiate under the integral and set ε = 0:
Φ′(0) = ∫ₐᵇ (F_y η + F_y′ η′) dx = 0
Integrate the second term by parts; the boundary term [F_y′ η]ₐᵇ vanishes because η(a) = η(b) = 0:
∫ₐᵇ (F_y − d/dx F_y′) η dx = 0 for all η.
The fundamental lemma
If ∫ₐᵇ M(x)η(x) dx = 0 for every smooth η that vanishes at the ends, and M is continuous, then M ≡ 0. (If M were positive somewhere, choose η as a bump there and the integral would be positive.)
The Euler-Lagrange equation
∂F/∂y − d/dx(∂F/∂y′) = 0
It is usually a second-order ODE for y, with the two end conditions to fix the constants. Its solutions are called extremals: candidates, not yet proved minima.
Expanded form
d/dx F_y′ = F_y′x + F_y′y y′ + F_y′y′ y″, so the equation is second order whenever F_y′y′ ≠ 0.
Worked example 1: shortest path
F = √(1 + y′²). F_y = 0, so F_y′ = y′/√(1 + y′²) = constant, so y′ = constant: a straight line.
Worked example 2
Minimise J = ∫₀¹ (y′² + y²) dx with y(0) = 0, y(1) = 1.
- F_y = 2y, F_y′ = 2y′. Euler-Lagrange: 2y − 2y″ = 0, so y″ = y.
- General solution: y = A cosh x + B sinh x. y(0) = 0 gives A = 0; y(1) = 1 gives B = 1/sinh 1.
- y = sinh x / sinh 1.
- The minimum value: integrating y′² by parts and using y″ = y gives J = [yy′]₀¹ = y′(1) = coth 1 = 1.313. The straight line y = x gives ∫(1 + x²) dx = 1.333, slightly more, as expected.
Several functions
For J = ∫F(x, y₁, ..., y_n, y₁′, ..., y_n′) dx, there is one Euler-Lagrange equation for each y_i. This is how Lagrange's equations of mechanics arise (topic 4).
Higher derivatives
If F contains y″, the condition becomes F_y − (F_y′)′ + (F_y″)″ = 0, a fourth-order equation; four end conditions are needed (as for a bending beam, where the energy contains y″²).
Functions of several variables
For J = ∬F(x, y, u, u_x, u_y) dx dy: F_u − ∂/∂x F_ux − ∂/∂y F_uy = 0. With F = u_x² + u_y², this gives Laplace's equation u_xx + u_yy = 0: the equilibrium of a membrane minimises its energy.
Exams usually ask
- Derive the Euler-Lagrange equation, stating the fundamental lemma.
- Find the extremal of a given functional with fixed end-points.
Common mistake
Treating y and y′ as related when taking partial derivatives of F. In F_y and F_y′ they are independent variables; only in d/dx does y′ become the derivative of y.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
No reading links here yet
Our team adds free books, videos and practice for each topic, and opens every link before it goes up.