Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random |  
Login
create new user
Username:
Password:
forget your password?
Main Menu
Sections

Meta

Talkback

Downloads

Information
Calculus of Variations: Higher-Order Variational Problems (Topic)

Calculus of Variations: Higher-Order Variational Problems

Up to CV07, the basic integral functional depended on a function and its first derivative,

       ∫ b
J[y] =    F (x,y,y′)dx.
        a
(1)

Many important physical models depend on higher derivatives. Bending energy depends on curvature and therefore, in a small-slope beam model, on y′′. Smooth trajectory design can penalize acceleration or jerk. Higher-gradient field theories and regularization methods likewise introduce derivatives beyond first order. The calculus of variations handles these problems by the same central idea used before: vary the function, integrate derivatives off the variation, and apply the Fundamental Lemma. The new feature is that integration by parts must be repeated. Standard treatments are given in [123].

This article develops the classical higher-order Euler–Lagrange equation, with particular attention to the second-order case

       ∫ b
J [y ] =    F(x, y,y′,y ′′)dx,
        a
(2)

because it already contains the essential structure: a fourth-order differential equation and two independent endpoint variations, η and η.

1 Why higher derivatives change the problem

Suppose the functional contains y′′. A perturbation

y𝜖(x ) = y(x) + 𝜖η (x )
(3)

implies

y′𝜖 = y′ + 𝜖η′,   y ′′𝜖 = y′′ + 𝜖η ′′.
(4)

Therefore the first variation contains three kinds of terms:

          ∫ b
δJ[y;η] =    (F η + F  ′η ′ + F ′′η′′) dx.
           a    y     y      y
(5)

The term multiplying ηrequires one integration by parts. The term multiplying η′′ requires two. This repeated transfer of derivatives is the source of both the higher-order Euler–Lagrange equation and the enlarged boundary-term structure.

PIC

Figure. The Fy′′η′′ term must be integrated by parts twice. The interior contribution is reduced to a coefficient multiplying η, while the endpoint contribution retains both η and η.

2 Admissible variations for a second-order problem

There are several possible endpoint specifications. The cleanest theorem first fixes both the value and slope at each endpoint:

y (a ) = A ,     y′(a) = A  ,    y(b) = B  ,    y′(b) = B .
         0               1              0              1
(6)

An admissible variation must preserve all four conditions. Thus

η(a) = η(b) = 0,
(7)

and

η′(a) = η′(b) = 0.
(8)

This is the higher-order analogue of the fixed-endpoint condition in CV04. Because a fourth-order differential equation will emerge, four scalar boundary conditions are also exactly what is normally needed to determine a unique classical solution.

3 Derivation for F(x,y,y,y′′)

Start from

     ∫
        b           ′       ′′
δJ =     (Fyη + Fy′η +  Fy′′η )dx.
       a
(9)

Integrate the Fyηterm once:

∫ b                    ∫ b
   Fy ′η ′dx  = [Fy′η ]b −     d-Fy ′ ηdx.
 a                 a    a  dx
(10)

Now integrate the Fy′′η′′ term once:

∫ b                     ∫  b
   F ′′η ′′dx = [F ′′η ′]b−     -d-F ′′ η ′dx.
 a  y           y    a    a dx  y
(11)

The remaining integral still contains η, so integrate by parts again:

  ∫ b d               [ d      ]b   ∫ b d2
−     --Fy ′′ η′dx = −  ---Fy′′ η +     ---2Fy′′ ηdx.
   a  dx               dx       a    a dx
(12)

Collect the endpoint terms and the interior terms:

δJ = [ (            )          ]
   F  ′ −-d-F ′′ η + F ′′η′
     y   dx  y         yab (13)
+ ab[                2    ]
 Fy − -d-Fy′ + -d--Fy′′
      dx       dx2η dx. (14)

This formula is worth separating into two pieces:

|-----------------[-(------------)----------]b-|
|                          -d-              ′  |
|boundary  term =    Fy ′ − dx Fy′′ η + Fy ′′η  |
----------------------------------------------a-
(15)

and

|------------------------------------------|
|                          d        d2     |
|interior coe fficient = Fy − --Fy ′ +---2Fy′′.|
---------------------------dx------dx-------
(16)

If y and yare fixed at both endpoints, then η = η= 0 there, so the complete boundary term vanishes. Stationarity for every admissible η gives

∫  [                     ]
  b       d--     -d2-
    Fy −  dxFy ′ + dx2 Fy′′ ηdx = 0.
 a
(17)

By the Fundamental Lemma,

|----------------2---------|
|Fy − -d-Fy′ + d--Fy ′′ = 0.|
------dx-------dx2---------|
(18)

This is the second-order Euler–Lagrange equation.

4 Classical theorem for second-order functionals

Theorem. Let

       ∫ b
                  ′  ′′
J[y] =  a F (x,y,y ,y )dx
(19)

with F sufficiently smooth, and suppose y is a sufficiently smooth local extremum among admissible functions satisfying fixed values of y and yat a and b. Then y satisfies

|--------------------------|
|      d--     -d2-        |
|Fy −  dxFy′ + dx2 Fy′′ = 0 |
---------------------------
(20)

throughout the interior of the interval.

Proof. The local-extremum hypothesis implies δJ[y; η] = 0 for every admissible variation. The two integrations by parts derived above produce the boundary term and interior term. Fixed y and yimply η = η= 0 at both endpoints, eliminating the boundary term. The Fundamental Lemma then forces the interior coefficient to vanish pointwise.

As before, this theorem supplies a necessary stationarity condition. It does not by itself prove that a solution is a minimum.

5 The general nth-order Euler–Lagrange equation

Now consider

       ∫ b   (              )
J [y ] =    F  x,y,y′,...,y(n) dx.
        a
(21)

The first variation is

     ∫    n
        b∑        (j)
δJ =        Fy (j)η  dx,
       a j=0
(22)

where y(0) = y and η(0) = η.

Integrating the term containing η(j) by parts exactly j times transfers all derivatives from η onto Fy(j). The interior result is

|------------------------|
|∑n        j  (    )     |
|   (− 1)j d-- Fy(j) =  0.|
|j=0      dxj            |
--------------------------
(23)

Written out,

|---------------2---------3---------------------n----------|
F  −  -d-F ′ +-d--F ′′ −-d--F ′′′ + ⋅⋅⋅ + (− 1)n d--F    = 0.|
--y---dx--y---dx2--y----dx3--y----------------dxn--y(n)------
(24)

The alternating signs are not arbitrary. Each integration by parts introduces one minus sign.

For completely fixed endpoint data through derivative order n 1, the admissible variations satisfy

 (k)      (k)
η  (a) = η   (b) = 0,     k = 0,1,...,n −  1.
(25)

6 The general boundary structure

Repeated integration by parts also produces the boundary expression

|------------------------------------|
|[ n  j−1                        ]b  |
| ∑   ∑       k-dk-(    )  (j−1− k)    |
|        (− 1) dxk  Fy(j) η         .|
--j=1-k=0-------------------------a--
(26)

This formula looks complicated, but its meaning is simple: an nth-order variational problem can contain the independent endpoint variations

η,η′,...,η(n−1).
(27)

If any corresponding endpoint datum is free, the coefficient multiplying that independent variation must satisfy a natural boundary condition.

7 Natural boundary conditions in the second-order case

Return to

       ∫
         b         ′  ′′
J [y ] =    F(x, y,y,y  )dx.
        a
(28)

At a free endpoint the boundary expression is

(             )
        d--             ′
  Fy′ − dxFy ′′  η + Fy′′η .
(29)

If both y and yare free there, then η and ηare independently arbitrary. Therefore stationarity requires

|--------|
-Fy′′ =-0|
(30)

and

|-----------------|
|     -d-         |
Fy ′ − dx Fy′′ = 0.
------------------
(31)

If only y is free but yis fixed, then only the second condition involving the coefficient of η is required. If only yis free, then only Fy′′ = 0 is required.

PIC

Figure. A second-order functional has two independent endpoint variation channels. In beam language, fixing displacement and slope corresponds to essential data, while the two conjugate coefficients become moment-like and shear-like natural data.

8 Example: pure curvature energy

Consider

        ∫
       1-  1  ′′ 2
J[y] = 2    (y ) dx
          0
(32)

subject to

               ′                           ′
y(0) = 0,     y (0 ) = 0,    y(1) = 1,     y(1) = 0.
(33)

Here

     1  ′′2
F =  -(y ) ,
     2
(34)

so

Fy = 0,     Fy′ = 0,    Fy ′′ = y′′.
(35)

The second-order Euler–Lagrange equation gives

 2
d--(y′′) = 0,
dx2
(36)

or

|-′′′′-----|
-y--=--0.-
(37)

Therefore every stationary curve is cubic:

                     2      3
y(x) = A  + Bx +  Cx  + Dx  .
(38)

Apply the four endpoint conditions. From y(0) = 0 and y(0) = 0,

A = 0,     B =  0.
(39)

The two conditions at x = 1 give

C + D = 1, (40)
2C + 3D = 0. (41)

Solving,

C = 3,     D  = − 2.
(42)

Hence

|------------------|
|y∗(x ) = 3x2 − 2x3.|
--------------------
(43)

PIC

Figure. The stationary curve for the quadratic curvature functional is cubic. The endpoint values and endpoint slopes provide the four conditions required by the fourth-order Euler–Lagrange equation.

8.1 Why this stationary curve is actually the unique global minimum

Let any admissible competitor be written

y = y ∗ + η,
(44)

where

        ′              ′
η(0) = η (0) = η(1) = η (1 ) = 0.
(45)

Then

J[y] = 1-
2 01(y ′′ + η′′)2dx (46)
= J[y] + 01y ′′η′′dx + 1-
2 01(η′′)2dx. (47)

Integrating the cross term twice gives

∫                             ∫
   1 ′′′′       ′′ ′    ′′′ 1     1 ′′′′
    y∗η  dx = [y∗η − y ∗ η]0 +   y∗ η dx.
  0                            0
(48)

The boundary term vanishes because η = η= 0, and the interior term vanishes because y′′′′ = 0. Thus

|----------------∫---------------|
|              1   1  ′′2        |
|J[y] − J[y∗] = 2   (η ) dx ≥  0.|
------------------0--------------
(49)

Equality requires η′′ = 0, so η is linear. The four homogeneous endpoint conditions then force η 0. Therefore the cubic is the unique global minimizer in this admissible class.

9 Connection to Euler–Bernoulli beam bending

For a slender beam in the small-deflection approximation, a standard potential-energy functional is [5]

       ∫ L[                  ]
Π[y] =      1EI (y′′)2 − q(x)y  dx,
        0   2
(50)

where E is Young’s modulus, I is the second moment of area, and q(x) is a distributed transverse load.

Here

                                        ′′
Fy =  − q (x ),   Fy′ = 0,     Fy′′ = EIy
(51)

for constant EI. The higher-order Euler–Lagrange equation becomes

        2
− q + -d--(EIy  ′′) = 0.
      dx2
(52)

For constant flexural rigidity,

|--------------|
|EIy ′′′′ = q(x).|
---------------
(53)

This fourth-order beam equation is therefore not an unrelated engineering formula; it is a direct Euler–Lagrange equation for bending energy minus load potential.

At a free beam end, both η and ηare unrestricted. The natural conditions are

EIy ′′ = 0
(54)

and

− EIy ′′′ = 0.
(55)

Up to sign convention, these are zero bending moment and zero shear force. This gives a physical interpretation to the abstract higher-order boundary coefficients.

10 Mixed essential and natural boundary conditions

Consider the beam functional above with the left end clamped:

y(0) = 0,     y′(0) = 0,
(56)

and the right end free. At x = 0,

η (0 ) = η ′(0) = 0,
(57)

so no natural conditions are generated there. At x = L, η(L) and η(L) are arbitrary, so

EIy ′′(L ) = 0,
(58)

and

− EIy ′′′(L ) = 0.
(59)

The fourth-order differential equation therefore receives two essential conditions at the clamped end and two natural conditions at the free end.

This counting principle is useful:

A classical 2nth-order Euler–Lagrange equation normally needs 2n scalar boundary conditions. Essential conditions prescribe endpoint data directly; natural conditions arise from the surviving boundary variation.

11 Example: slope and curvature penalty

Consider

        ∫  b
       1-   [  ′′ 2      ′2]
J[y] = 2  a  (y ) + α (y)   dx,    α  > 0.
(60)

Then

Fy = 0,     Fy′ = αy′,    Fy ′′ = y′′.
(61)

Therefore

− αy ′′ + y′′′′ = 0,
(62)

or

|--------------|
|y′′′′ − αy ′′ = 0.
----------------
(63)

The characteristic equation is

 4     2
r  − αr  = 0,
(64)

so

 2  2
r (r  − α) = 0.
(65)

Thus

|-------------------------√---------------√------|
-y(x)-=-A-+--Bx-+--C-cosh(--α-x) +-D-sinh-(--αx-).-|
(66)

Adding a first-derivative penalty changes the cubic minimum-curvature family into a combination of polynomial and hyperbolic terms.

12 Third-order dependence: minimum jerk

A trajectory-design problem may penalize jerk, the third derivative of position. Consider

         ∫ T
J[x] = 1-    (x ′′′(t))2dt.
       2  0
(67)

The integrand depends only on x′′′, so the n = 3 Euler–Lagrange equation is

   d3
− --3 (x′′′) = 0.
  dt
(68)

Hence

|-----------|
x (6)(t) = 0. |
-------------
(69)

The stationary trajectory is therefore a polynomial of degree at most five.

Suppose position, velocity, and acceleration are fixed at both endpoints:

x(0) = 0, (0) = 0, (0) = 0, (70)
x(T) = D, (T) = 0, (T) = 0. (71)

Introduce normalized time

     t-
τ =  T
(72)

and normalized position

s(τ) = x(t).
        D
(73)

Solving the six endpoint conditions gives

|--------------------------|
|s(τ) = 10τ 3 − 15τ 4 + 6τ 5.|
---------------------------
(74)

Thus

|---------[-------------------------------]--|
|             ( t)3      (  t)4     ( t )5   |
|x(t) = D   10   --  −  15  --   + 6   --    .|
|               T          T          T      |
----------------------------------------------
(75)

This quintic profile is widely known as the minimum-jerk trajectory. Minimum-jerk models also have an important history in studies of smooth human movement [6].

PIC

Figure. The normalized quintic minimum-jerk trajectory. Position, velocity, and acceleration all satisfy the required endpoint values smoothly.

13 Higher-derivative mechanics

A mechanical action may depend on acceleration,

       ∫
          tf
S [q] =     L(t,q, ˙q, ¨q)dt.
         t0
(76)

The stationarity condition is

|---------(----)-----2-(----)------|
|∂L- − -d   ∂L-  + -d-   ∂L-  =  0.|
|∂q    dt   ∂q˙    dt2   ∂q¨       |
-----------------------------------
(77)

The boundary term is

[( ∂L     d ∂L )     ∂L  ]tf
   --- − -- ---  η + ---η˙  .
   ∂ ˙q   dt ∂¨q       ∂ ¨q  t0
(78)

This suggests two momentum-like quantities,

              (    )
     ∂L-   -d   ∂L-
P0 = ∂ ˙q − dt   ∂q¨  ,
(79)

and

P  =  ∂L-.
 1    ∂¨q
(80)

They are conjugate to endpoint variations in position and velocity, respectively. In advanced hamiltonian formulations of nondegenerate higher-derivative mechanics these quantities lead toward the Ostrogradsky construction, which has important stability implications. That subject lies beyond the present classical variational derivation.

14 Regularity and order counting

The appearance of higher derivatives in the functional raises the regularity requirements. A classical derivation assumes enough smoothness that all derivatives generated by repeated integration by parts exist and are continuous as needed.

For

F (x,y,y′,y′′),
(81)

the Euler–Lagrange equation can contain y′′′′. Thus even though the original integrand explicitly contains derivatives only through second order, the stationarity equation is generally fourth order.

More generally, dependence on y(n) commonly produces a differential equation of order as high as 2n. Degeneracies can reduce the actual order. For example, if the integrand is linear rather than quadratic in the highest derivative, cancellation may occur.

15 Necessary versus sufficient conditions

The generalized Euler–Lagrange equation remains a necessary condition for a smooth local extremum under the stated assumptions. It is not automatically sufficient.

The pure curvature functional

         ∫
        1-    ′′2
J [y] = 2   (y  )dx
(82)

was easy to classify because it is a positive quadratic functional, and the direct difference argument established a global minimum. A general higher-order functional can be indefinite, nonconvex, or degenerate. Classification requires second-variation and sufficiency theory, developed later in CV11–CV13.

16 Common mistakes

  • Stopping after one integration by parts. A term multiplying η′′ must be integrated by parts twice before the Fundamental Lemma can be applied directly.
  • Forgetting the ηboundary term. A second-order functional has two independent endpoint variation channels.
  • Fixing y but silently assuming yis fixed. These are different admissible classes and lead to different natural boundary conditions.
  • Missing the alternating signs. The generalized equation contains (1)j because each integration by parts contributes another minus sign.
  • Assuming second-order dependence gives a second-order ODE. Quadratic dependence on y′′ typically produces a fourth-order Euler–Lagrange equation.
  • Calling every fourth-order equation a beam equation. The beam interpretation depends on the specific energy functional and constitutive model.
  • Confusing stationarity with minimality. Higher-order Euler–Lagrange equations still provide necessary conditions unless additional arguments are supplied.

17 A compact workflow

For a higher-order functional, use the following sequence:

  1. Identify the highest derivative y(n) appearing in F.
  2. Determine which endpoint values among y,y,…,y(n1) are fixed and which are free.
  3. Form the first variation
          ∫  ∑n
δJ  =       F  (j)η(j)dx.
         j=0  y

  4. Integrate the jth term by parts j times.
  5. Collect the interior coefficient of η.
  6. Apply the Fundamental Lemma to obtain the generalized Euler–Lagrange equation.
  7. Keep the complete boundary expression and use endpoint freedom to derive natural conditions.
  8. Solve the resulting higher-order boundary-value problem.
  9. Separately determine whether the stationary solution is actually a minimum, maximum, or saddle.

18 What CV09 adds

CV08 has enlarged the derivative order while keeping the admissible functions otherwise unconstrained except for endpoint data. CV09 introduces a different complication: integral constraints and isoperimetric conditions. Those problems require variational Lagrange multipliers and an augmented integrand.

The conceptual progression is therefore

|-------------------------------------------------------------------------------------------------------------------|
|higher derivatives − → repeated integration by parts −→  generalized Euler–Lagrange  −→  higher-order boundary  data.|
---------------------------------------------------------------------------------------------------------------------
(83)

Summary

For

       ∫
         b   (     ′      (n))
J [y ] =    F  x,y,y ,...,y    dx,
        a
(84)

a smooth stationary function satisfies

|-n----------------------|
|∑       j dj-(    )     |
|   (− 1) dxj  Fy(j) =  0.|
-j=0----------------------
(85)

For the important second-order case,

|----------------2---------|
|Fy − -d-Fy′ + d--Fy ′′ = 0,|
------dx-------dx2---------|
(86)

with boundary term

|------------------------------|
|[(        d    )          ]b  |
|   Fy′ − ---Fy′′  η + Fy′′η′   .|
----------dx----------------a--|
(87)

These formulas explain why bending-energy problems produce fourth-order equations, why free beam ends produce moment and shear natural conditions, why minimum-curvature interpolation is cubic, and why minimum-jerk trajectories are quintic.

References

[1]   I. M. Gelfand and S. V. Fomin, Calculus of Variations, Dover Publications, 2000.

[2]   Bruce van Brunt, The Calculus of Variations, Springer, 2004.

[3]   Hans Sagan, Introduction to the Calculus of Variations, Dover Publications, 1992.

[4]   Cornelius Lanczos, The Variational Principles of Mechanics, 4th ed., Dover Publications, 1986.

[5]   L. D. Landau and E. M. Lifshitz, Theory of Elasticity, 3rd ed., Butterworth-Heinemann, 1986.

[6]   Tamar Flash and Neville Hogan, “The coordination of arm movements: an experimentally confirmed mathematical model,” Journal of Neuroscience, Vol. 5, No. 7, pp. 1688–1703, 1985.


"Calculus of Variations: Higher-Order Variational Problems" is owned by bloftin.
(view preamble)
View style:
Other names:  CV08
Keywords:  calculus of variations, higher-order functional, generalized Euler-Lagrange equation, repeated integration by parts, higher-order boundary conditions, natural boundary conditions, bending energy, Euler-Bernoulli beam, minimum curvature, cubic interpolation, minimum jerk, trajectory planning

Attachments:
Calculus of Variations: Euler-Bernoulli Beam Problems and Worked Solutions (Example) by bloftin

Cross-references: implications, mechanics, hamiltonian, velocity, position, forces, formula, boundary, scalar, CV04, theorem, differential equation, field, acceleration, energy, function
There is 1 reference to this object.

This is version 1 of Calculus of Variations: Higher-Order Variational Problems, born on 2026-09-13.
Object id is 1205, canonical name is CalculusOfVariationsHigherOrderVariationalProblems.
Accessed 5 times total.

Classification:
Physics Classification02.30.Xx (Calculus of variations)
 45.20.Jj (Lagrangian and Hamiltonian mechanics)
 46.70.De (Beams, plates and shells)
Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:

No messages.

Interact
rate | post | correct | update request | add example | add (any)