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
[parent] Calculus of Variations: Euler-Bernoulli Beam Problems and Worked Solutions (Example)

Calculus of Variations: Euler–Bernoulli Beam Problems and Worked Solutions

CV08 showed that a functional containing a second derivative generally produces a fourth-order Euler–Lagrange equation and a boundary term containing both the endpoint variation η and its derivative η. The Euler–Bernoulli beam is one of the clearest physical realizations of this structure. In the small-deflection theory of a slender elastic beam, curvature is approximated by w′′(x) and the bending strain energy is quadratic in that curvature [32]. The resulting potential-energy functional provides a direct bridge from higher-order calculus of variations to structural mechanics.

Throughout this companion set, w(x) denotes transverse deflection, E Young’s modulus, I the second moment of area, and

D (x ) = EI (x )
(1)

is the flexural rigidity. When D is constant, it will simply be written EI.

For a beam under a distributed load q(x), with the sign convention that positive q acts in the positive w direction, the total potential energy is

        ∫  [                          ]
          L  1-      ′′  2
Π [w ] =      2D (x) w (x)  − q(x)w (x ) dx + endpoint  potential terms.
         0
(2)

The small-slope Euler–Bernoulli model neglects transverse shear deformation and rotary inertia; those assumptions should be kept distinct from the variational method itself [34].

PIC

Figure. The beam problem exposes the two endpoint channels of a second-order functional. Prescribed displacement and slope are essential data. When they are free, their conjugate natural quantities are bending-moment-like and shear-like boundary terms.

1 Exercises

Exercise 1: derive the Euler–Bernoulli equation from total potential energy

Consider

       ∫  L[ 1                 ]
Π[w ] =      -D (x)w ′′2 − q(x)w  dx.
         0   2
(3)

  1. Compute the first variation δΠ[w; η].
  2. Integrate by parts twice and identify the interior equation.
  3. Identify the two natural boundary quantities conjugate to η and η.
  4. Specialize the differential equation to constant EI.

Exercise 2: uniformly loaded cantilever

A beam of length L and constant flexural rigidity EI is clamped at x = 0 and free at x = L. It carries a constant distributed load q > 0.

  1. State the essential conditions at the clamped end.
  2. Derive the natural conditions at the free end.
  3. Solve the beam equation for w(x).
  4. Find the free-end slope w(L) and deflection w(L).

Exercise 3: uniformly loaded simply supported beam

A uniform beam has simple supports at x = 0 and x = L and carries the same constant load q.

  1. Explain why w = 0 is essential at each support while the zero-moment condition is natural.
  2. Solve for w(x).
  3. Find the maximum deflection and its location.

Exercise 4: clamped–clamped beam under uniform load

A uniform beam is clamped at both ends and carries constant q.

  1. State the four essential endpoint conditions.
  2. Solve for w(x).
  3. Compare the midspan deflection with the simply supported result from Exercise 3.

Exercise 5: cantilever with a concentrated tip force

A uniform cantilever has no distributed load. A force P > 0 acts at the free tip in the positive w direction. Use

        1 ∫ L
Π [w ] = --   EI  w′′2 dx − P w(L ).
        2  0
(4)

  1. Derive the differential equation and free-end natural conditions directly from δΠ = 0.
  2. Solve for w(x).
  3. Find the tip slope and tip deflection.
  4. Explain how the endpoint force appears through a boundary condition rather than through the interior differential equation.

Exercise 6: variable flexural rigidity with a tip moment

A cantilever has

            (      x)
D (x ) = EI0  1 + α L  ,     α > − 1,
(5)

and a terminal moment M applied at x = L. There is no distributed load. Use

         ∫
       1-   L       ′′2         ′
Π[w ] = 2    D (x)w   dx − M w  (L).
          0
(6)

  1. Derive the free-end conditions.
  2. Show that the bending moment D(x)w′′(x) is constant.
  3. For α≠0, determine w(x) and w(x) when w(0) = w(0) = 0.
  4. Check the limit α 0.

Exercise 7: endpoint springs and generalized natural conditions

A beam has no distributed load near its right end, but the endpoint is attached to a translational spring of stiffness kt and a rotational spring of stiffness kr. An external tip force P also acts there. The endpoint contribution to the potential is

Φ  = 1k w (L)2 + 1k  w′(L)2 − Pw (L).
     2  t        2  r
(7)

For constant EI, derive the two natural conditions at x = L when both w(L) and w(L) are free.

Exercise 8: beam under axial tension

Consider the functional

        ∫ L [                          ]
             1-    ′′2   1-   ′2
Π [w] =  0   2EI  w   + 2 T w  − q(x )w   dx,     T > 0.
(8)

  1. Derive the Euler–Lagrange equation.
  2. Derive the two natural boundary conditions at a completely free end.
  3. Explain physically why the quantity conjugate to endpoint displacement is no longer simply EIw′′′.

Exercise 9: one-parameter Rayleigh–Ritz estimate for a tip-loaded cantilever

Return to the cantilever of Exercise 5. Instead of solving the exact fourth-order boundary-value problem, restrict the admissible set to

           2
wa (x) = ax .
(9)

This trial family satisfies the clamped essential conditions but does not impose the free-end natural conditions in advance.

  1. Substitute wa into the exact potential energy and find Π(a).
  2. Minimize with respect to a.
  3. Compute the Ritz estimate of the tip deflection.
  4. Compare with the exact result from Exercise 5.
  5. Explain why essential conditions must be built into a Ritz trial function but natural conditions need not be.

2 Worked solutions

Solution 1: derive the Euler–Bernoulli equation from total potential energy

The integrand is

          ′  ′′    1       ′′2
F (x,w, w ,w  ) = -D (x)w   − q (x )w.
                  2
(10)

Therefore

                                     ′′
Fw  = − q,    Fw ′ = 0,    Fw ′′ = Dw  .
(11)

The first variation is

     ∫  L
δΠ =     [− qη + Dw ′′η′′]dx.
       0
(12)

Integrate the second term by parts once:

∫                           ∫
   L    ′′ ′′          ′′ ′L     L     ′′ ′′
    Dw   η dx = [Dw  η ]0 −    (Dw   )η dx.
  0                          0
(13)

Integrate the remaining integral by parts again:

  ∫ L                              ∫ L
−    (Dw  ′′)′η′dx = − [(Dw ′′)′η]L+     (Dw  ′′)′′ηdx.
   0                           0    0
(14)

Hence

δΠ = [Dw  ′′η′ − (Dw  ′′)′η ] 0L (15)
+ 0L[(Dw  ′′)′′ − q] η dx. (16)

For arbitrary interior variations, the Fundamental Lemma gives

|----′′′′-----|
-(Dw---)--=-q.-
(17)

The two boundary quantities are therefore

|----------|
Mb  = Dw  ′′|
------------
(18)

as the quantity conjugate to the slope variation η, and

|--------------|
|Qb = − (Dw ′′)′|
----------------
(19)

as the quantity conjugate to the displacement variation η. The symbols Mb and Qb are deliberately called moment-like and shear-like because detailed structural sign conventions differ. The variational statement itself fixes their signs once the positive directions of w, q, endpoint force, and endpoint moment have been chosen.

For constant EI,

|------------|
|EI w ′′′′ = q.|
-------------
(20)

This is the static Euler–Bernoulli beam equation in the present sign convention [32].

Solution 2: uniformly loaded cantilever

At the clamp,

               ′
w(0) = 0,     w (0) = 0.
(21)

These are essential conditions, so

η(0) = 0,     η′(0) = 0.
(22)

At the free end there is no applied endpoint moment or force. Both η(L) and η(L) are arbitrary, so the boundary term requires

EIw  ′′(L) = 0,     − EIw ′′′(L) = 0.
(23)

Thus

|--------------------------|
w ′′(L) = 0,     w′′′(L) = 0.|
----------------------------
(24)

The differential equation is

w ′′′′ = -q-.
       EI
(25)

Integrate four times:

w′′′ = -q-
EIx + C1, (26)
w′′ =   q
-----
2EIx2 + C 1x + C2, (27)
w =   q
-----
6EIx3 + 1
--
2C1x2 + C 2x + C3, (28)
w = --q---
24EIx4 + 1-
6C1x3 + 1-
2C2x2 + C 3x + C4. (29)

The free-end conditions give

                         2
C1 =  − qL-,    C2  = qL--,
        EI            2EI
(30)

while the clamped conditions give

C3 =  C4 = 0.
(31)

Therefore

|-----------2--------------------|
|w(x) =  qx---(6L2 −  4Lx + x2 ).|
---------24EI---------------------
(32)

PIC

Figure. Normalized deflection of a uniformly loaded cantilever. The clamp enforces zero displacement and slope; the free end satisfies zero natural bending moment and shear.

Differentiate:

          q  (                 )
w′(x) = ----- 3L2x −  3Lx2 + x3  .
        6EI
(33)

At x = L,

|--------------|
|  ′      qL3  |
|w (L ) = 6EI--|
---------------
(34)

and

|--------------|
|         qL4  |
|w (L) = -----.|
---------8EI---
(35)

Solution 3: uniformly loaded simply supported beam

A simple support prevents transverse displacement but does not prescribe the slope. Hence

w (0) = w (L ) = 0
(36)

are essential conditions, giving

η (0) = η(L) = 0.
(37)

The slope variations η(0) and η(L) remain free. Therefore the coefficients of those variations must vanish:

EIw  ′′(0) = EIw ′′(L ) = 0.
(38)

Thus the zero bending moment at a simple support emerges as a natural boundary condition.

Solving

EIw  ′′′′ = q
(39)

with

w (0) = w (L ) = 0,    w ′′(0) = w ′′(L ) = 0
(40)

gives

|------------------------------------------------------------|
|        --q---( 3        3    4)   --qx--(  3      2    3)  |
-w-(x) =-24EI---L-x-−-2Lx---+-x---=-24EI---L--−-2Lx---+-x---.|
(41)

PIC

Figure. The simply supported beam has prescribed displacement at both ends but free slope. Zero endpoint moment therefore arises naturally from stationarity.

By symmetry, the maximum occurs at

     L
x =  -.
     2
(42)

Substitution gives

|--------------------------|
|          (  )         4  |
|wmax =  w   L-  = -5qL---.|
-------------2-----384EI---
(43)

Solution 4: clamped–clamped beam under uniform load

Both displacement and slope are prescribed at both ends:

w (0) = 0,  w ′(0) = 0,   w(L ) = 0,  w′(L) = 0.
(44)

All four endpoint variations therefore vanish. There are no natural conditions to derive because no endpoint kinematic variable is free.

Solving EIw′′′′ = q gives

|---------q----2-------2-|
w (x) = ------x (L − x) .|
--------24EI--------------
(45)

At midspan,

|--(--)------------|
|    L       qL4   |
|w   --  = -------.|
-----2-----384EI----
(46)

The simply supported maximum from Exercise 3 was

     4
-5qL---.
384EI
(47)

Thus the clamped–clamped midspan deflection is only one fifth as large:

|--------------------|
|wclamped–clamped    1 |
|---------------=  -.|
-wsimply-supported----5--
(48)

The stronger kinematic restrictions make the beam substantially stiffer under the same loading.

Solution 5: cantilever with a concentrated tip force

The potential is

          ∫
        1-  L      ′′2
Π [w] = 2     EI w  dx −  Pw (L).
           0
(49)

Its variation is

      ∫ L
δΠ =      EIw ′′η′′dx −  Pη(L ).
       0
(50)

After two integrations by parts,

δΠ =      ′′ ′       ′′′
[EIw  η  − EIw   η] 0L (51)
+ 0LEIw′′′′η dx (L). (52)

The clamped end removes the x = 0 terms. Since there is no distributed load,

|------------|
-EIw--′′′′ =-0.|
(53)

At the free end, η(L) and η(L) are independent. Their coefficients give

|--------------|
|EIw  ′′(L) = 0 |
---------------
(54)

and

|--------------------|
− EIw  ′′′(L ) − P = 0.|
----------------------
(55)

Equivalently,

    ′′′
EIw   (L ) = − P.
(56)

Solving with w(0) = w(0) = 0 gives

|-----------2----------|
|w (x ) = P-x-(3L − x ).|
---------6EI-----------|
(57)

Therefore

|--------------|
|  ′      P-L2-|
|w (L ) = 2EI  |
---------------
(58)

and

|-----------3--|
|w (L) = P-L--.|
---------3EI---|
(59)

The key variational point is that the tip force is represented by the endpoint potential Pw(L). It therefore modifies the boundary equation but not the load-free interior equation EIw′′′′ = 0.

Solution 6: variable flexural rigidity with a tip moment

Now

        1∫  L
Π [w ] = --   D (x)w ′′2dx − M w ′(L ).
        2  0
(60)

The first variation is

δΠ = [Dw  ′′η′ − (Dw ′′)′η] 0L (61)
+ 0L(Dw′′)′′η dx (L). (62)

At the free end,

|----′′-′-------|
(Dw---)(L-) =-0-
(63)

and

|-------′′----------|
-D-(L)w--(L)-=-M.--|
(64)

The interior equation is

(Dw  ′′)′′ = 0.
(65)

Hence Dw′′ is linear in x. The zero-shear condition says its derivative vanishes at L, so the linear function is actually constant. The moment condition then gives

|----------------|
|D (x )w′′(x) = M  |
------------------
(66)

throughout the beam.

Therefore

w ′′(x) = ------M--------.
         EI0 (1 + αx ∕L)
(67)

PIC

Figure. Under a pure terminal moment the internal bending moment is constant, but the curvature is inversely proportional to the local flexural rigidity. A beam that becomes stiffer toward the tip bends less there.

For α≠0, integrate once and use w(0) = 0:

|----------------(--------)--|
|  ′     -M-L--         x-   |
|w (x) = EI0 α ln  1 + αL   .|
-----------------------------
(68)

Integrate again and use w(0) = 0:

|-------------2-[(-------)---(--------)---(--------)----]--|
|w (x) = -M-L---  1 + α x- ln  1 + αx-  −   1 + α x  + 1  .|
---------EI0-α2---------L-----------L------------L---------|
(69)

As α 0,

  ′′    M---
w  →   EI0,
(70)

so

|----------------|
|         M    2 |
w (x) →  2EI--x ,|
-------------0----
(71)

which is the familiar constant-curvature result.

Solution 7: endpoint springs and generalized natural conditions

The beam contribution at x = L is

EIw  ′′(L)η′(L) − EIw ′′′(L)η(L ).
(72)

The endpoint potential contributes

                              ′    ′
δΦ =  [ktw (L) − P ]η(L) + krw (L )η (L ).
(73)

Collect the coefficients of the independent endpoint variations.

For η(L):

    ′′         ′
EIw  (L ) + krw (L ) = 0.
(74)

Thus

|----------------------|
|EIw ′′(L ) = − k w ′(L ).
----------------r-------
(75)

For η(L):

− EIw ′′′(L ) + k w (L) − P = 0.
               t
(76)

Hence

|--------------------------|
-−-EIw-′′′(L-) +-ktw-(L)-=-P.--
(77)

These are mixed, or Robin-type, natural boundary conditions. The endpoint springs interpolate continuously between free and strongly restrained endpoint behavior.

Solution 8: beam under axial tension

The integrand is

     1     ′′2  1    ′2
F =  2EIw    + 2-Tw   − qw.
(78)

Therefore

                        ′                ′′
Fw  = − q,    Fw ′ = Tw  ,    Fw ′′ = EIw  .
(79)

The second-order Euler–Lagrange equation is

       d        d2
Fw  − ---Fw′ + --2-Fw′′ = 0.
      dx       dx
(80)

For constant T and EI,

− q − T w ′′ + EIw ′′′′ = 0.
(81)

Thus

|------------------|
EIw--′′′′ −-Tw-′′-=-q.-
(82)

The boundary term is

[(T w ′ − EIw ′′′)η + EIw  ′′η′]L .
                           0
(83)

At a completely free end with no endpoint loads,

|----------|
|EIw ′′ = 0|
------------
(84)

and

|------------------|
|T w′ − EIw ′′′ = 0.|
-------------------
(85)

The displacement-conjugate boundary quantity now contains both the bending contribution EIw′′′ and the transverse component associated with axial Tension, Tw. This is exactly what the variational boundary term predicts.

Solution 9: one-parameter Rayleigh–Ritz estimate for a tip-loaded cantilever

Choose

wa (x) = ax2.
(86)

Then

w′a′= 2a
(87)

and

wa (L) = aL2.
(88)

Substitute into

          ∫
        1   L     ′′2
Π [w ] = --    EIw   dx − P w (L ) :
        2  0
(89)

Π(a) = 1
2- 0LEI(2a)2dx PaL2 (90)
= 2EILa2 PL2a. (91)

Stationarity in the one-dimensional trial space requires

d Π
--- =  4EILa  − P L2 = 0.
 da
(92)

Hence

|----------|
|a = -P-L-.|
-----4EI---|
(93)

The Ritz approximation is therefore

          P-L--2
wR (x ) = 4EI x ,
(94)

with tip deflection

|--------------|
|            3 |
wR (L ) = P-L-.|
----------4EI---
(95)

The exact result from Exercise 5 is

            P-L3-
wexact(L ) = 3EI .
(96)

Thus

|--------------|
|-wR-(L)--   3-|
|wexact(L) =  4.|
----------------
(97)

The one-parameter approximation underestimates the compliance by 25%.

PIC

Figure. Exact and one-parameter Rayleigh–Ritz cantilever shapes, normalized by the exact tip deflection. The Ritz curve satisfies the clamped essential conditions but is not forced to satisfy the free-end moment condition beforehand.

This last point is fundamental. Essential boundary conditions define the admissible function space, so every trial function must satisfy them. Natural boundary conditions arise from stationarity of the functional itself. A Ritz approximation should therefore be allowed to discover them only approximately through energy minimization rather than impose them as artificial kinematic restrictions [2].

3 What the beam examples teach about higher-order variational problems

The beam equations make several abstract points from CV08 concrete.

  1. A functional depending on w′′ naturally produces a fourth-order differential equation.
  2. The endpoint variables w and ware independent kinematic channels.
  3. Their conjugate boundary quantities arise directly from repeated integration by parts.
  4. Loads can enter either through the interior functional, as q(x) does, or through endpoint potentials, as P and M do.
  5. A boundary condition is not “essential” or “natural” because of its physical name; the distinction is variational. Essential data are imposed on the admissible class. Natural data emerge from free endpoint variations.
  6. Variable stiffness is handled without changing the variational principle: one simply retains derivatives of D(x)w′′ rather than replacing them prematurely by EIw′′′′.
  7. Rayleigh–Ritz methods are finite-dimensional restrictions of the same energy principle.

4 Common mistakes

  • Replacing (Dw′′)′′ by Dw′′′′ when D varies with x. That simplification is valid only for constant flexural rigidity.
  • Imposing zero slope at a simple support. A simple support fixes displacement but ordinarily leaves rotation free.
  • Imposing w′′ = w′′′ = 0 at every endpoint. Those are free-end natural conditions for a uniform beam with no endpoint loads, not universal beam conditions.
  • Forgetting endpoint work. A tip force or moment changes the natural boundary condition even when the interior loading is zero.
  • Using the wrong sign convention for shear or moment without declaring it. The variational derivation is internally consistent, but engineering sign conventions differ across texts.
  • Building natural conditions into every Ritz trial function. Trial functions must satisfy essential conditions; natural conditions generally follow from stationarity.
  • Assuming Euler–Bernoulli theory is exact for every beam. Short, thick beams or cases with important transverse shear require more refined theories such as Timoshenko beam theory.

Summary

For the Euler–Bernoulli potential

       ∫   [                   ]
          L  1-      ′′2
Π[w ] =      2D (x)w   − q(x)w  dx,
         0
(98)

stationarity gives

|----′′′′-----|
-(Dw---)--=-q.-
(99)

For constant rigidity,

|-----′′′′-----|
-EIw----=--q.|
(100)

The associated boundary term is

|----′′-′------′′′--L-|
[Dw---η-−-(Dw--)-η]0 .-
(101)

This compact expression contains the essential/natural boundary-condition logic for clamped, simply supported, free, elastically restrained, force-loaded, and moment-loaded endpoints. It is one of the most useful physical examples of the higher-order calculus of variations.

References

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

[2]   J. N. Reddy, Energy Principles and Variational Methods in Applied Mechanics, 2nd ed., John Wiley & Sons, 2002.

[3]   S. P. Timoshenko and J. M. Gere, Mechanics of Materials, Van Nostrand Reinhold, 1972.

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

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


"Calculus of Variations: Euler-Bernoulli Beam Problems and Worked Solutions" is owned by bloftin.
(view preamble)
View style:
Other names:  CV08E1
Keywords:  calculus of variations, Euler-Bernoulli beam, bending energy, total potential energy, fourth-order Euler-Lagrange equation, natural boundary conditions, bending moment, shear force, cantilever beam, simply supported beam, clamped beam, variable flexural rigidity, endpoint load, endpoint moment, Rayleigh-Ritz method

This object's parent.

Cross-references: work, variational principle, Tension, kinematic, static, function, force, differential equation, deformation, mechanics, energy, boundary, CV08

This is version 1 of Calculus of Variations: Euler-Bernoulli Beam Problems and Worked Solutions, born on 2026-09-13.
Object id is 1206, canonical name is CalculusOfVariationsEulerBernoulliBeamProblemsAndWorkedSolutions.
Accessed 7 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)