Skip to main content

Shape functions for a beam element

Short answer

For a two-node Euler–Bernoulli beam of length L, the cubic Hermite shape functions are N1=1-3x²/L²+2x³/L³, N2=x-2x²/L+x³/L², N3=3x²/L²-2x³/L³, N4=-x²/L+x³/L². They interpolate deflection and slope, with N1(0)=1, N1′(0)=0, etc. N1+N3=1 ensures rigid-body translation.

Derive shape functions for a beam element.

Beam element

A two-node beam element of length LL (Euler-Bernoulli) has at each node a transverse deflection vv and a rotation θ=dv/dx\theta=dv/dx: {d}={v1,θ1,v2,θ2}T\{d\}=\{v_1,\theta_1,v_2,\theta_2\}^T. Because the bending moment EI d2v/dx2EI\,d^2v/dx^2 must be finite, both vv and dv/dxdv/dx must be continuous at the nodes, so the displacement function must contain a cubic, the lowest polynomial with four constants:

v(x)=α1+α2x+α3x2+α4x3=[1  x  x2  x3]{α}v(x)=\alpha_1+\alpha_2x+\alpha_3x^2+\alpha_4x^3=[1\ \ x\ \ x^2\ \ x^3]\{\alpha\} θ(x)=α2+2α3x+3α4x2\theta(x)=\alpha_2+2\alpha_3x+3\alpha_4x^2

Nodal conditions

At x=0x=0: v=v1v=v_1, θ=θ1\theta=\theta_1. At x=Lx=L: v=v2v=v_2, θ=θ2\theta=\theta_2.

{v1θ1v2θ2}=[100001001LL2L3012L3L2]{α1α2α3α4} ⇒ {d}=[C]{α}\begin{Bmatrix}v_1\\\theta_1\\v_2\\\theta_2\end{Bmatrix}=\begin{bmatrix}1&0&0&0\\0&1&0&0\\1&L&L^2&L^3\\0&1&2L&3L^2\end{bmatrix}\begin{Bmatrix}\alpha_1\\\alpha_2\\\alpha_3\\\alpha_4\end{Bmatrix}\ \Rightarrow\ \{d\}=[C]\{\alpha\} {α}=[C]−1{d}=[10000100−3L2−2L3L2−1L2L31L2−2L31L2]{d}\{\alpha\}=[C]^{-1}\{d\}=\begin{bmatrix}1&0&0&0\\0&1&0&0\\-\dfrac{3}{L^2}&-\dfrac{2}{L}&\dfrac{3}{L^2}&-\dfrac{1}{L}\\\dfrac{2}{L^3}&\dfrac{1}{L^2}&-\dfrac{2}{L^3}&\dfrac{1}{L^2}\end{bmatrix}\{d\}

Shape functions

v(x)=[1 x x2 x3][C]−1{d}=[N1 N2 N3 N4]{d}v(x)=[1\ x\ x^2\ x^3][C]^{-1}\{d\}=[N_1\ N_2\ N_3\ N_4]\{d\} N1=1−3x2L2+2x3L3N2=x−2x2L+x3L2N3=3x2L2−2x3L3N4=−x2L+x3L2\begin{aligned} N_1&=1-\frac{3x^2}{L^2}+\frac{2x^3}{L^3}\\ N_2&=x-\frac{2x^2}{L}+\frac{x^3}{L^2}\\ N_3&=\frac{3x^2}{L^2}-\frac{2x^3}{L^3}\\ N_4&=-\frac{x^2}{L}+\frac{x^3}{L^2} \end{aligned}

These are the Hermite cubic functions. With s=x/Ls=x/L: N1=1−3s2+2s3N_1=1-3s^2+2s^3, N2=L(s−2s2+s3)N_2=L(s-2s^2+s^3), N3=3s2−2s3N_3=3s^2-2s^3, N4=L(−s2+s3)N_4=L(-s^2+s^3).

Properties

Functionv(0)v(0)v′(0)v'(0)v(L)v(L)v′(L)v'(L)
N1N_11000
N2N_20100
N3N_30010
N4N_40001

Also N1+N3=1N_1+N_3=1, so a rigid-body translation is represented.

Use: stiffness matrix

Curvature κ=d2vdx2=[B]{d}\kappa=\dfrac{d^2v}{dx^2}=[B]\{d\} with [B]=[−6L2+12xL3, −4L+6xL2, 6L2−12xL3, −2L+6xL2][B]=\left[-\dfrac{6}{L^2}+\dfrac{12x}{L^3},\ -\dfrac{4}{L}+\dfrac{6x}{L^2},\ \dfrac{6}{L^2}-\dfrac{12x}{L^3},\ -\dfrac{2}{L}+\dfrac{6x}{L^2}\right], and

[k]=∫0LEI [B]T[B] dx=EIL3[126L−126L6L4L2−6L2L2−12−6L12−6L6L2L2−6L4L2][k]=\int_0^L EI\,[B]^T[B]\,dx=\frac{EI}{L^3}\begin{bmatrix}12&6L&-12&6L\\6L&4L^2&-6L&2L^2\\-12&-6L&12&-6L\\6L&2L^2&-6L&4L^2\end{bmatrix}

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computational Techniques in Civil Engineering chapter 4 questions →