Chapter 3

Large Displacements of a Cantilever Beam — Exact Solution

An exact Euler elastica solution for a straight cantilever under an end force of fixed direction, with the deformed centerline expressed through complete and incomplete elliptic integrals.

Euler–Bernoulli beamSmall strainLarge rotationMATLAB tested in R2017b and R2026a

01

Model and assumptions

Consider a straight, prismatic cantilever of length LL and constant flexural rigidity EIEI. Its free end is loaded by a force PP whose direction remains fixed.

MaterialLinear elastic
StrainSmall
DisplacementPotentially large

The Euler–Bernoulli model is used. Axial and shear deformations are neglected, so the centerline is inextensible and the cross-section remains normal to it.

Cantilever elastica geometry, rotations, local axes, end-force components, and arc-length coordinate
Figure 1.Geometry and notation. The curvilinear coordinate sAOs_{AO} starts at the loaded end and increases toward the clamp.
Meaning of “exact”

The solution is exact within the stated Euler–Bernoulli, inextensible-centerline, linear-moment–curvature assumptions. It is not an exact three-dimensional elasticity solution.

02

The elastica differential equation

Let φ\varphi be the cross-section rotation and β\beta the fixed force-direction angle. Define

θ=β+φ\theta=\beta+\varphi

In the load-aligned local frame, yˉ\bar{y} is the transverse distance from the force line through the free end. The bending moment and curvature satisfy

EIκ=M=PyˉEI\kappa=M=-P\bar{y}
κ=dφds=dθds\kappa=\frac{d\varphi}{ds}=\frac{d\theta}{ds}

Because the centerline is inextensible,

dyˉds=sinθ\frac{d\bar{y}}{ds}=\sin\theta

Differentiating the moment–curvature equation gives the nonlinear pendulum equation for the planar elastica [1]

d2θds2=PEIsinθ\frac{d^2\theta}{ds^2}=-\frac{P}{EI}\sin\theta

03

First integral and boundary conditions

At the free end AA, where s=0s=0, the bending moment and curvature vanish:

θ(0)=θA,dθdss=0=0\theta(0)=\theta_A,\qquad \left.\frac{d\theta}{ds}\right|_{s=0}=0

Multiplying the differential equation by dθ/dsd\theta/ds and integrating once gives:

12(dθds)2=PEI(cosθcosθA)\frac{1}{2}\left(\frac{d\theta}{ds}\right)^2=\frac{P}{EI}\left(\cos\theta-\cos\theta_A\right)
The integration constant is essential

The term cosθA-\cos\theta_A follows from the zero-moment condition at the free end. Without it, the first integral does not satisfy the boundary condition from which the elliptic solution is obtained.

At the clamped end OO, where s=Ls=L, the rotation is zero and therefore:

θ(L)=θ0=β\theta(L)=\theta_0=\beta

04

Elliptic-integral solution

Following the elastica construction in [2], introduce

k=sinθA2,m=k2k=\sin\frac{\theta_A}{2},\qquad m=k^2
sinψ=sin(θ/2)k,sinψ0=sin(β/2)k\sin\psi=\frac{\sin(\theta/2)}{k},\qquad \sin\psi_0=\frac{\sin(\beta/2)}{k}

At the free end, ψA=π/2\psi_A=\pi/2. The incomplete and complete elliptic integrals of the first kind are:

F(ψ,m)=0ψdα1msin2α,K(m)=F(π2,m)F(\psi,m)=\int_0^\psi\frac{d\alpha}{\sqrt{1-m\sin^2\alpha}},\qquad K(m)=F\left(\frac{\pi}{2},m\right)

The arc length measured from the free end is:

s=EIP[K(m)F(ψ,m)]s=\sqrt{\frac{EI}{P}}\left[K(m)-F(\psi,m)\right]

Applying s=Ls=L at the clamp gives the load–parameter relation:

P=EIL2[K(m)F(ψ0,m)]2P=\frac{EI}{L^2}\left[K(m)-F(\psi_0,m)\right]^2

This nonlinear scalar equation determines mm for prescribed PP and β\beta. On the principal real branch,

sin2β2<m<1\sin^2\frac{\beta}{2}<m<1

05

Coordinates of the deformed beam

Define the incomplete and complete elliptic integrals of the second kind:

E(ψ,m)=0ψ1msin2αdα,E(m)=E(π2,m)E(\psi,m)=\int_0^\psi\sqrt{1-m\sin^2\alpha}\,d\alpha,\qquad E(m)=E\left(\frac{\pi}{2},m\right)

In the local frame with origin at the loaded end, the exact centerline is:

xˉ=s[2(E(m)E(ψ,m))K(m)F(ψ,m)1]\bar{x}=s\left[\frac{2\left(E(m)-E(\psi,m)\right)}{K(m)-F(\psi,m)}-1\right]
yˉ=2smcosψK(m)F(ψ,m)\bar{y}=\frac{2s\sqrt{m}\cos\psi}{K(m)-F(\psi,m)}

To place the clamp at the global origin, first translate the local coordinates:

x~(s)=xˉ(L)xˉ(s),y~(s)=yˉ(L)yˉ(s)\widetilde{x}(s)=\bar{x}(L)-\bar{x}(s),\qquad \widetilde{y}(s)=\bar{y}(L)-\bar{y}(s)

The coordinates plotted by the program are then

{xy}=[cosβsinβsinβcosβ]{x~y~}\begin{Bmatrix}x\\y\end{Bmatrix}=\begin{bmatrix}\cos\beta&\sin\beta\\\sin\beta&-\cos\beta\end{bmatrix}\begin{Bmatrix}\widetilde{x}\\\widetilde{y}\end{Bmatrix}

06

MATLAB implementation

Required toolbox

The programs use ellipticF, ellipticK, and ellipticE, which are provided by Symbolic Math Toolbox [3]. This toolbox is included in the current MATLAB and Simulink Home Suite. Users with other MATLAB license configurations should verify that Symbolic Math Toolbox is installed by entering ver in the Command Window.

The calculation has three parts:

  1. findm.m finds the parameter mm by bisection on its physically admissible real interval.
  2. main_cantilever.m evaluates the elliptic integrals, constructs the centerline, and transforms it to the global frame.
  3. eql_chck.m performs an independent bending-moment comparison.
findm.mAdmissible interval and bisection
% Real principal branch
m1 = sin(beta/2)^2 + 1e-12;
m2 = 1 - 1e-12;

% P = (EI/L^2)*(K(m)-F(psi0,m))^2
for iter = 1:itermax
    m = (m1+m2)/2;
    Pc = force_from_m(m,EI,L,beta);
    if Pc<P, m1=m; else, m2=m; end
end
MATLAB compatibility

The default case V=100 NV=100\ \mathrm{N}, H=200 NH=-200\ \mathrm{N} was tested in MATLAB R2017b and MATLAB R2026a, with identical numerical results. The code uses standard MATLAB syntax and is expected to be compatible with intermediate and newer MATLAB versions.

07

Numerical examples

Consider a cantilever with L=100 mmL=100\ \mathrm{mm}, rectangular section 5×1 mm5\times1\ \mathrm{mm}, and Young's modulus E=2×105 MPaE=2\times10^5\ \mathrm{MPa}. The vertical component is V=100 NV=100\ \mathrm{N} in all three cases.

Cantilever elastica for vertical force 100 newtons and zero horizontal force
Case 1.H=0H=0
Cantilever elastica for vertical force 100 newtons and horizontal force 200 newtons
Case 2.H=200 NH=200\ \mathrm{N}
Cantilever elastica for vertical force 100 newtons and horizontal force minus 200 newtons
Case 3.H=200 NH=-200\ \mathrm{N}

Figure 2. Deformed centerlines for the three fixed-direction end-force combinations.

For V=100 NV=100\ \mathrm{N} and H=200 NH=-200\ \mathrm{N}, both tested MATLAB versions returned:

QuantityValue
Elliptic parameterm=0.999682400374605m=0.999682400374605
Loaded-end coordinatexA=46.0156 mmx_A=-46.0156\ \mathrm{mm}
Loaded-end coordinateyA=65.0130 mmy_A=-65.0130\ \mathrm{mm}
Maximum bending-moment magnitudemaxM=8401.05 Nmm\max|M|=8401.05\ \mathrm{N\,mm}

08

Independent bending-moment check

The bending moment is evaluated in two independent ways. The first uses the centerline curvature:

M1=EIκ,κ=dφdsM_1=EI\kappa,\qquad \kappa=\frac{d\varphi}{ds}

The second follows from equilibrium of the end-force components, with (xA,yA)(x_A,y_A) at the loaded end:

M2=V(xxA)H(yyA)M_2=-V(x-x_A)-H(y-y_A)

A consistent solution must satisfy

M1=M2M_1=M_2
Comparison of the bending moment from curvature and from end-force equilibrium
Figure 3.Moment comparison for V=100 NV=100\ \mathrm{N} and H=200 NH=-200\ \mathrm{N}. The two curves are visually indistinguishable at the plotted scale.

09

Program files

The archive contains three commented MATLAB files and a README describing the model, the required toolbox, and the input convention.

10

References

  1. S. P. Timoshenko and J. M. Gere, Theory of Elastic Stability, 2nd ed., McGraw–Hill, New York, 1961.
  2. F. De Bona and S. Zelenika, “A generalized elastica-type approach to the analysis of large displacements of spring-strips”, Proceedings of the Institution of Mechanical Engineers, Part C: Journal of Mechanical Engineering Science, vol. 211, no. 7, pp. 509–517, 1997.
  3. MathWorks, MATLAB documentation for ellipticF, ellipticK, and ellipticE