Functionals of Several Functions and Higher Derivatives
Ordinary calculus of variations tells one story: a single curve threading two fixed endpoints so as to make stationary, and the single Euler–Lagrange equation that story produces. Physics almost never presents itself so tidily. A double pendulum has two angles; a planet has three coordinates; and the energy stored in a bent ruler does not care about its slope at all — it cares about its curvature, the second derivative. Both departures from the textbook case — many functions, and derivatives beyond the first — are handled by the same variational reflex, and mastering them turns the calculus of variations from a geometry curiosity into the working language of mechanics, elasticity, and field theory. Two moves do all the work. When the integrand depends on several functions , each is perturbed by its own independent bump ; because the bumps are independent, the first variation splits into pieces that must each vanish on their own — one Euler–Lagrange equation per function, a coupled system. When the integrand depends on , the single bump appears differentiated up to times, and each derivative is integrated by parts back off the bump — times for the -th slot, flipping the sign each time. The alternating tower this builds is the Euler–Poisson equation, an ODE of order . The leftover surface terms are not debris; they are the boundary physics — clamped, hinged, or free.
- A functional of several functions is varied one function at a time; independence of the variations yields one Euler–Lagrange equation per function — a coupled system of ODEs.
- A functional with higher derivatives up to yields a single Euler–Poisson equation of order , with the signature alternating sign .
- Higher-derivative problems demand more boundary data: an order- ODE needs conditions, supplied by fixing at each end or by natural boundary conditions on the conjugate quantities.
- These two generalizations turn the calculus of variations into Lagrangian mechanics (several coordinates) and Euler–Bernoulli beam theory (curvature energy ).
- Key idea: independent variations decouple — each independent function gives its own Euler–Lagrange equation, and each higher derivative contributes an integration-by-parts term with an alternating sign, .
Where this lives today
The two branches are anything but historical. The several-functions branch is the skeleton of computational physics: molecular dynamics, robotics, and spacecraft trajectory optimization all integrate coupled Euler–Lagrange equations for thousands of generalized coordinates, and the same structure underlies every Lagrangian field theory in the Standard Model. The higher-derivative branch is just as alive. Euler–Bernoulli beam theory and its curvature functional govern everything from bridges to the silicon microcantilevers of atomic force microscopes, where a beam tens of micrometres long deflects by nanometres to read a single molecule; the same elastica energy models the buckling of DNA. And at the frontier, higher-derivative Lagrangians are a live and dangerous tool: modified-gravity theories and the Pais–Uhlenbeck oscillator contain terms in or higher and run into the Ostrogradsky instability — the theorem that a non-degenerate higher-derivative theory has an energy unbounded below. Deciding when that "ghost" is fatal and when it can be tamed is an open problem, and it is nothing but the physics of equation (4) taken seriously.
The physical picture
Picture the action as a machine with a bank of knobs — one knob for the value of each function at each point along the interval. A stationary configuration is one where nudging any single knob by an infinitesimal amount leaves the action unchanged to first order. If the problem has several functions, the knobs belonging to are physically independent of the knobs belonging to : you can wiggle one family while holding the other fixed. So the "no first-order change" demand must hold separately for each family, and that is precisely why independent functions give separate Euler–Lagrange equations rather than one blended condition. The equations may still be coupled — can mix the functions — but they are counted one per function.
Now let the action feel curvature. A bent beam stores energy according to how sharply it bends — its second derivative — not merely how steeply it tilts. To extract a pointwise equation you must repeatedly push derivatives off the variation and onto the integrand, and each push through an integration by parts flips a sign; that alternating bookkeeping is the whole content of the Euler–Poisson equation. The price of curvature is paid at the ends: each integration by parts deposits a surface term, so a second-derivative problem leaves two boundary contributions — one proportional to , one to — and whether you kill them by fixing the end or by cancelling the coefficient is the difference between a clamped beam and a free one.
The core equations
A functional of several functions is the natural home of a mechanical system with many coordinates. The integrand carries all functions and all their derivatives over one shared interval.
where: — the -th unknown function, ; — its derivative ; — the integrand (a "Lagrangian density"), a function of slots; — the interval with endpoints fixed. Reading: one scalar action assembled from competing profiles. Demanding stationarity under independent variations of each function produces not one equation but of them, each with the familiar Euler–Lagrange shape. They are coupled through but indexed one per function.
where: — partial derivative holding every other slot fixed; — the total derivative, through and every . Reading: second-order ODEs for unknowns — a well-posed system. The higher-derivative functional keeps one unknown but lets depend on derivatives up to order . Curvature energy () is the important case, but the structure is general.
where: — the -th derivative ; — the highest derivative present in . Reading: the action now senses slope, curvature, and beyond, not just position. Stationarity of (3) yields a single ordinary differential equation of order : the Euler–Poisson equation. Each derivative slot is integrated by parts back onto , and the number of integrations is recorded as an alternating sign.
where: — the sign left by integrations by parts; — derivative of with respect to its -th derivative slot. Reading: for this is Euler–Lagrange; for it is . Integrating a second-derivative term by parts twice leaves two surface terms behind. Their vanishing is a separate demand from the field equation, and it encodes the endpoint physics.
where: — variation of the deflection at an endpoint; — variation of the slope there. Reading: at each end, fix and (essential/clamped), or annihilate the coefficients (natural/free). Feeding the curvature energy of a slender rod into the Euler–Poisson equation collapses everything to the workhorse of structural engineering — the fourth-order Euler–Bernoulli beam equation.
where: — Young's modulus; — second moment of area; — transverse load per unit length; — transverse deflection. Reading: the fourth derivative of the deflection, weighted by the stiffness , balances the load. Finally, choosing time as the variable and generalized coordinates as the functions turns (2) into the central equation of analytical mechanics.
where: — the Lagrangian; — generalized coordinate; — generalized velocity. Reading: several-functions Euler–Lagrange is Lagrange's equations of motion.
The goal is to show that a functional built from functions splits under variation into separate stationarity conditions. We perturb every function by its own independent bump, expand the action to first order, integrate each velocity term by parts to strip the derivative off the bump, then switch the bumps on one at a time. The fundamental lemma does the final work, converting "the integral vanishes for every admissible set of bumps" into "each coefficient vanishes pointwise" — which is equations, one per function.
Step 1. Perturb each function independently, , with smooth comparison functions obeying . Why: pinning every at the endpoints keeps the competitors inside the same fixed-endpoint class, so the boundary terms will later drop and only the bulk equation survives.
Step 2. Form the first variation by differentiating under the integral and setting , giving . Why: to first order the change in the action is linear in the bumps, and the chain rule distributes it across every function and every velocity slot.
Step 3. Integrate each velocity term by parts, , and drop the boundary term since vanishes at both ends. Why: this moves the derivative off the arbitrary and onto , so every term now multiplies the undifferentiated bump — the only form the fundamental lemma can act on.
Step 4. Collect to get , then switch on one bump at a time (set all except ). Why: with only active the sum reduces to a single integral, and the fundamental lemma forces its bracket to vanish for all ; sweeping over delivers all equations. *For this is the ordinary Euler–Lagrange equation; for in time it is Lagrange's equations of motion.*
Go deeper · Derivation B · 1 minThe Euler-Poisson equation for higher derivatives
The aim is to establish the alternating-sign tower for a functional depending on derivatives up to order , and to see clearly where the signs come from. A single bump enters the first variation differentiated up to times, and each differentiated copy must be integrated by parts enough times to land back on a bare . The count is exact: the -th slot needs integrations by parts, each contributing a factor , so the -th term arrives with sign . Assembling all terms and invoking the fundamental lemma produces one ODE of order .
Step 1. Write the first variation, , where is the -th derivative of the bump. Why: because lists as separate arguments, the chain rule attaches one term to each, and the -th carries differentiated times.
Step 2. Integrate the -th term by parts times to reach . Why: each integration by parts trades one derivative on for one derivative on and flips the sign; after of them the bump is bare and the accumulated sign is .
Step 3. Impose so every surface term vanishes, leaving . Why: fixing the function and its first derivatives at both ends is exactly the data that annihilates all the boundary terms generated by the repeated parts, isolating the bulk integrand.
Step 4. Apply the fundamental lemma to the arbitrary , forcing the whole bracket to vanish pointwise — the Euler–Poisson equation, an ODE of order . Why: the lemma converts "vanishes against every admissible " into "vanishes identically", and the highest derivative present, of , makes it order . *For the Euler–Poisson equation collapses to Euler–Lagrange; for and it yields , the Euler–Bernoulli equation.*
Go deeper · Derivation C · 1 minNatural boundary conditions for a free beam end
The purpose here is to show that the surface terms left over from the higher-derivative integration by parts are the source of the physical boundary conditions at any end you do not clamp. We keep the boundary bracket, refuse to prescribe or at the right end, and let the variational principle decide what holds there. Because and are then free and independent, each coefficient must vanish separately, and inserting the beam energy turns those into "zero bending moment" and "zero shear force" — the free-end conditions, derived rather than assumed.
Step 1. From the analysis, the surviving right-end terms are . Why: at a free end nothing pins the deflection or slope, so unlike the clamped case we cannot set — the terms stay and must be dealt with honestly.
Step 2. Because and are arbitrary and independent, set each coefficient to zero separately: and . Why: a sum can vanish for all independent choices of the two variations only if — the same independence argument that gave one equation per function now gives one condition per free variation.
Step 3. Insert the pure curvature energy , so and , yielding and . Why: is the bending moment and its derivative is the shear force, so the natural conditions read directly as an unloaded free end carrying neither moment nor shear. *These are the standard free-end conditions , ; a clamped end instead prescribes , and a simple (hinged) support gives , .*
Limiting cases
The machinery reduces to a chain of familiar special cases as you dial down the functions, the highest derivative, or the coupling:
| Case | Result | Meaning |
|---|---|---|
| Single function, first derivative | recovers ordinary Euler–Lagrange when , | |
| functions, no cross-terms | the system separates into independent Euler–Lagrange equations | |
| No explicit (higher order) | a Beltrami-type first integral — the higher-order energy is conserved | |
| Pure curvature energy | Euler–Poisson gives , the unloaded Euler–Bernoulli beam | |
| Time as variable, | Lagrange's equations for generalized coordinates |
Worked examples
1 · Deflection of a loaded cantilever (fully worked)
A steel cantilever of length is clamped at and free at , and carries a uniform transverse load . Its rectangular cross-section is wide and deep, with . Find the stiffness , the deflection profile, and the tip droop.
Step 1. The bending stiffness needs the second moment of area of a rectangle, , so . This is the coefficient multiplying in the field equation.
Step 2. With constant and constant , the Euler–Bernoulli equation (6) is , integrated four times to . The four constants are exactly the four boundary conditions the fourth-order equation demands.
Step 3. Apply the clamped end at (essential conditions , ): these force and . Apply the free end at (natural conditions , ): from we get , and from we get . The free-end conditions are the natural boundary conditions derived above — zero moment and zero shear.
Step 4. Assemble the profile and evaluate at the tip : the bracket is , so . Numerically .
Step 5. The tip droops by , about — comfortably small, so the linear small-slope theory is self-consistent. The calculation used both the higher-derivative field equation and its natural boundary conditions; drop either and the answer is wrong. δ = qL⁴/(8EI) = 2.4 mm.
2 · A central-force orbit as a two-function system
A particle of mass moves in a plane under a central potential . Using polar coordinates and as the two functions, derive its equations of motion and identify the conserved quantity that the -equation hands you.
Step 1. The Lagrangian in polar coordinates is , a functional of two independent functions and — the several-functions setting with and time as the variable.
Step 2. The -equation is : with and , this gives — Newton's radial law with the centrifugal term restored.
Step 3. The -equation is : since is cyclic ( has no bare ), and . The bracket is constant.
Step 4. That constant is the angular momentum — conservation falls out directly because one function was cyclic. Two functions give two coupled equations; the cyclic one delivers a conservation law .
Physics of the portrait
The generalization to several functions and higher derivatives is where the calculus of variations grew up into physics — carrying the names of Euler, who first minimized a bending energy; Lagrange, who made "several functions" the coordinates of mechanics; and Poisson, whose name rides the higher-derivative equation and whose elasticity work is exactly where curvature functionals live.
Origins · 1 minSiméon Denis Poisson and how this was discovered
Siméon Denis Poisson was Laplace and Lagrange's most prodigious student at the École Polytechnique, and he spent a career turning their methods into equations that still bear his name — the Poisson equation of potential theory, the Poisson brackets of mechanics, the Poisson distribution, and, in the theory of stressed solids, Poisson's ratio. That last thread is why his name attaches to this subject. When a variational integrand depends on curvature or higher derivatives, the stationarity condition generalizes Euler–Lagrange into the alternating-sign tower now called the Euler–Poisson equation, and Poisson's memoirs on the calculus of variations wrestled directly with such higher-order integrands and the extra boundary conditions they force. His work on the bending and vibration of elastic plates and rods — the first serious continuum theories of curvature energy — is the physical shadow of that mathematics: the plate and beam equations are exactly the Euler–Poisson equations of an elastic energy that cares about the second derivative. This variational calculus is his natural monument.
Going further
Texts. Gelfand & Fomin, Calculus of Variations, §§10–12 (several functions and higher derivatives) · Stone & Goldbart, Mathematics for Physics, ch. 1 · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., ch. 22 · Lanczos, The Variational Principles of Mechanics, ch. 2 · Landau & Lifshitz, Theory of Elasticity, §§17–20. The sign structure follows by induction on the integrations by parts. The case reduces to , and the cantilever tip deflection is with ; for steel is standard.
Prerequisites. First Variation and Stationarity · Euler–Lagrange Equation · Fundamental Lemma of the Calculus of Variations · Functionals and Function Spaces. Leads to. Lagrangian Mechanics · Hamilton's Principle of Stationary Action · Natural and Essential Boundary Conditions · Geodesics as Variational Problems.
Ask the tutor: Want to see the clamped, simply-supported, and free versions of the same beam solved side by side, or how the Ostrogradsky ghost emerges from a concrete Lagrangian?
Why does having several functions give a coupled system rather than one big equation?
Because you vary the functions independently. When you perturb , the bump for one function has nothing to do with the bump for another — you can switch one on while holding the rest at zero. The first variation is a sum of integrals, one per function, and setting all bumps but one to zero isolates a single integral whose bracket the fundamental lemma forces to vanish. Doing this for each function produces equations. They can still be coupled — may mix and , so each equation contains the others — but there are exactly of them, which is what makes the system well-posed.
Where exactly does the alternating sign in the Euler-Poisson equation come from?
It is pure integration-by-parts bookkeeping. In the first variation the -th derivative slot contributes times , the bump differentiated times. To apply the fundamental lemma you need the bump bare, so you integrate by parts times, each move shifting one derivative from onto and introducing one factor . After moves the accumulated sign is : position () is , slope () is , curvature () is , and so on. That is the entire origin of the pattern — no deeper principle, just counting sign flips.
How many boundary conditions do I actually need, and why do people get it wrong?
An Euler–Poisson equation from an integrand of highest derivative is an ODE of order , so it needs boundary conditions — for a beam, and you need four. People get it wrong by importing the habit from first-order problems, where two conditions (one per end) suffice, and simply prescribing at both ends of a beam. That leaves two constants undetermined. The fix is to supply conditions at each end: fix or free the whole set . For a beam that means specifying, at each end, either the deflection or the shear, and either the slope or the bending moment — the essential/natural pairing.
What is the difference between essential and natural boundary conditions?
Essential (or "geometric") conditions are ones you impose by hand because the setup fixes them: a clamped beam end has and because the wall holds it there, and these are built into the space of admissible functions. Natural conditions are ones the variational principle derives: at any end you do not constrain, the leftover boundary terms must vanish on their own, and since the variations there are free, their coefficients must be zero — for a beam, (no moment) and (no shear) at a free end. Essential conditions constrain the trial functions; natural conditions come out of the mathematics, and together they always add up to .
Is a functional of several functions the same thing as a Lagrangian in mechanics?
Structurally, yes — that is the point. Take the variable to be time , the functions to be generalized coordinates , and the integrand to be . Then the several-functions Euler–Lagrange system is precisely Lagrange's equations of motion, . The abstract "coupled stationarity conditions of a multi-function action" and the concrete "equations of motion" are the same equations in different clothes — which is exactly why Hamilton's principle can serve as the foundation of mechanics.
Why are higher-derivative theories considered dangerous in modern physics?
Because of the Ostrogradsky instability. When a Lagrangian depends non-trivially on accelerations or higher derivatives (and is "non-degenerate"), Ostrogradsky's 1850 canonical analysis shows the Hamiltonian is linear in one conjugate momentum, so the energy is unbounded below — the system can lower its energy without limit by exciting a "ghost" degree of freedom, and coupling to matter makes it unstable. This is why fundamental theories are kept first-order in time, and why higher-derivative modified-gravity models must be built with special degeneracies to dodge the ghost. The threat is a direct consequence of the order- structure the Euler–Poisson equation makes explicit.