MV-08: Continuous Systems – Strings, Bars, and Beams

Summary
From discrete masses to distributed systems. Covers wave equation for strings/bars/shafts, Euler-Bernoulli beam equation, boundary conditions, and Rayleigh's energy method for frequency estimation.

In our journey so far, we have lived in a world of “lumps.” We modeled cars, buildings, and machines as discrete masses connected by weightless springs and dampers. This is called a discrete system. Whether it had one degree of freedom or one hundred, the number was finite.

But look at a guitar string. Or a transmission shaft. Or an airplane wing. These aren’t just lumps of mass connected by springs; the mass and elasticity are distributed continuously throughout the material. These are Continuous Systems (or distributed systems).

Because every infinitesimal point on these bodies can move, they theoretically possess an infinite number of degrees of freedom. Consequently, they have an infinite number of natural frequencies.

The Big Leap: Moving from discrete to continuous systems is like moving from arithmetic to calculus—instead of solving algebraic eigenvalue problems, we now face partial differential equations with infinitely many solutions.

In this post, based on Chapter 8 of Rao’s Mechanical Vibrations, we will explore the wave equations that govern strings, bars, and shafts, tackle the complex fourth-order differential equations of beams, and learn how to estimate frequencies using Rayleigh’s Method.

The Vibration of Strings: The Wave Equation

The simplest continuous system is a tightly stretched string—like a violin string or an overhead transmission cable.

Consider a string of length $l$ under tension $P$. If we take a tiny element of length $dx$ and apply Newton’s second law, we don’t get a standard differential equation; we get a Partial Differential Equation (PDE) because the deflection $w$ depends on both position $x$ and time $t$.

The Governing Equation

The equation of motion for free vibration is the classic Wave Equation:

$$\boxed{c^2 \frac{\partial^2 w}{\partial x^2} = \frac{\partial^2 w}{\partial t^2}}$$

SymbolPhysical MeaningUnit
$w(x,t)$Transverse displacementm
$c$Wave propagation speedm/s
$P$String tensionN
$\rho$Mass per unit lengthkg/m

The wave speed is determined by the tension-to-mass ratio:

$$ c = \sqrt{\frac{P}{\rho}} $$

Physical Insight: Higher tension ($P \uparrow$) means faster waves and higher frequencies. More mass ($\rho \uparrow$) means slower waves and lower frequencies. This is why bass guitar strings are thicker!

Frequencies and Mode Shapes

For a string fixed at both ends (like a guitar string), the boundary conditions are $w(0,t)=0$ and $w(l,t)=0$. Solving the PDE reveals that the string can only vibrate at specific Natural Frequencies:

$$ \omega_n = \frac{n\pi c}{l} = \frac{n\pi}{l} \sqrt{\frac{P}{\rho}}, \quad n = 1, 2, 3, \dots $$

Associated with each frequency is a Mode Shape—a sine wave pattern:

$$ W_n(x) = \sin \left( \frac{n\pi x}{l} \right) $$

ModeShape DescriptionNodesFrequency Ratio
$n=1$Half sine wave0 (interior)$1 \times f_1$
$n=2$Full sine wave1 (center)$2 \times f_1$
$n=3$1.5 sine waves2$3 \times f_1$
$n=4$2 full waves3$4 \times f_1$
Harmonic Series: String frequencies form an exact harmonic series ($f, 2f, 3f, \ldots$). This is why stringed instruments sound musical—the overtones are perfectly consonant with the fundamental.

Bars and Shafts: Same Equation, Different Physics

The wave equation isn’t unique to strings. Longitudinal vibration of bars and torsional vibration of shafts follow identical mathematics—only the physical quantities differ.

Three types of wave motion
Three members of the wave equation family. Each involves different motion (transverse, longitudinal, rotational) but shares the same mathematical structure.
SystemMotion TypeDisplacementWave SpeedRestoring Mechanism
StringTransverse$w(x,t)$$c = \sqrt{P/\rho}$Tension $P$
BarLongitudinal$u(x,t)$$c = \sqrt{E/\rho}$Young’s modulus $E$
ShaftTorsional$\theta(x,t)$$c = \sqrt{G/\rho}$Shear modulus $G$

Effect of Boundary Conditions

The same wave equation produces different frequency spectra depending on the boundary conditions:

ConfigurationNatural FrequenciesPhysical Example
Fixed-Fixed$\omega_n \propto n$ (all integers)Guitar string
Fixed-Free$\omega_n \propto (2n-1)$ (odd only)Diving board, skyscraper
Free-Free$\omega_n \propto n$ + rigid body modeFloating log
Fixed-Free Surprise: A bar clamped at one end can only vibrate at odd multiples of the fundamental frequency ($f, 3f, 5f, \ldots$). The even harmonics are forbidden by the boundary conditions!

Lateral Vibration of Beams: The Fourth-Order Challenge

The analysis complexity increases significantly when we move from axial to lateral (bending) vibration. Unlike strings that resist displacement through tension, beams resist through internal bending stiffness ($EI$).

The Euler-Bernoulli Beam Equation

The governing equation involves a fourth-order spatial derivative:

$$\boxed{\frac{\partial^2}{\partial x^2} \left[ EI \frac{\partial^2 w}{\partial x^2} \right] + \rho A \frac{\partial^2 w}{\partial t^2} = f(x,t)}$$

For a uniform beam in free vibration, this simplifies to:

$$ c^2 \frac{\partial^4 w}{\partial x^4} + \frac{\partial^2 w}{\partial t^2} = 0, \quad \text{where } c = \sqrt{\frac{EI}{\rho A}} $$

SymbolPhysical QuantityUnit
$w$Transverse displacementm
$EI$Flexural rigidityN·m²
$\rho A$Mass per unit lengthkg/m
$c$Wave parameterm²/s

Why Four Boundary Conditions?

Since the equation is fourth-order in space, we need four boundary conditions (two at each end). This contrasts with strings and bars, which only need two.

Boundary TypeDeflection ($w$)Slope ($w’$)Moment ($M = EIw’’$)Shear ($V = EIw’’’$)
Pinned$= 0$Free$= 0$Free
Fixed$= 0$$= 0$FreeFree
FreeFreeFree$= 0$$= 0$

Common Beam Configurations

ConfigurationFrequency Coefficient $\beta_n L$Real-World Example
Simply Supported$\pi, 2\pi, 3\pi, \ldots$ ($n\pi$)Bridge span, ruler on two supports
Cantilever$1.875, 4.694, 7.855, \ldots$Diving board, aircraft wing
Fixed-Fixed$4.730, 7.853, 10.996, \ldots$Welded beam, clamped pipe
The $n^2$ Law: For beams, natural frequencies grow as the square of the mode number: $\omega_n \propto n^2$. This is much faster than strings/bars ($\omega_n \propto n$), meaning beam higher modes are widely separated in frequency.
Beyond Euler-Bernoulli: For thick beams or high-frequency vibrations, use Timoshenko Beam Theory, which includes rotary inertia and shear deformation. Euler-Bernoulli accuracy degrades when beam thickness exceeds ~10% of wavelength.

Rayleigh’s Method: The Energy Shortcut

Solving PDEs analytically for complex structures—tapered wings, variable cross-sections, or unusual boundary conditions—is often intractable. Rayleigh’s Method provides an elegant alternative: estimate the fundamental frequency using energy principles without ever solving the differential equation.

The Core Idea: Energy Conservation

During free vibration, energy continuously transforms between two forms:

StateKinetic Energy ($T$)Potential Energy ($V$)
Maximum displacement0$V_{max}$ (all strain)
Equilibrium position$T_{max}$ (all motion)0

Conservation of energy demands:

$$\boxed{T_{max} = V_{max}}$$

The Recipe

  1. Assume a mode shape $W(x)$ that satisfies the geometric boundary conditions
    • Good choices: static deflection curve, polynomial, or trigonometric function
  2. Compute maximum kinetic energy: $T_{max} = \frac{1}{2}\omega^2 \int_0^L \rho A , W(x)^2 , dx$
  3. Compute maximum potential energy: $V_{max} = \frac{1}{2} \int_0^L EI \left(\frac{d^2W}{dx^2}\right)^2 dx$ (for beams)
  4. Equate and solve for $\omega$

Rayleigh’s Quotient

The result is a powerful formula that directly yields the frequency estimate:

$$ \omega^2 = \frac{\int_0^L EI \left(\dfrac{d^2W}{dx^2}\right)^2 dx}{\int_0^L \rho A , W(x)^2 , dx} = \frac{\text{Stiffness (curvature)}}{\text{Inertia (mass distribution)}} $$

Upper Bound Guarantee: Rayleigh’s method always overestimates the true frequency: $\omega_{Rayleigh} \geq \omega_{exact}$. Why? The assumed shape implicitly adds constraints, increasing effective stiffness. The closer your guess to the true mode shape, the more accurate the estimate.
Pro Tip: Using the static deflection curve under gravity as your assumed shape often gives excellent results (within 1-2% of exact) because it naturally captures the structure’s stiffness distribution.

Julia Example: Plotting Beam Modes

Let’s visualize the first three mode shapes of a simply supported beam. The mode shapes are sinusoidal: $W_n(x) = \sin(n\pi x / L)$.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
using Plots

# Beam parameters
L = 1.0  # Length (normalized)
x = range(0, L, length=101)

# Mode shapes: Wₙ(x) = sin(nπx/L)
W1 = sin.(π .* x ./ L)      # Mode 1 (fundamental)
W2 = sin.(2π .* x ./ L)     # Mode 2
W3 = sin.(3π .* x ./ L)     # Mode 3

# Plot
plot(x, W1, linewidth=2.5, label="Mode 1 (n=1)")
plot!(x, W2, linewidth=2.5, linestyle=:dash, label="Mode 2 (n=2)")
plot!(x, W3, linewidth=2.5, linestyle=:dot, label="Mode 3 (n=3)")
xlabel!("Position along beam (x/L)")
ylabel!("Normalized Deflection W(x)")
title!("Mode Shapes of a Simply Supported Beam")

Expected Output:

1
2
3
4
Natural Frequency Ratios (relative to fundamental):
  Mode 1: ω1/ω₁ = 1
  Mode 2: ω2/ω₁ = 4
  Mode 3: ω3/ω₁ = 9
First three mode shapes of simply supported beam
Mode shapes showing increasing complexity with mode number. Higher modes have more nodes (zero-crossing points).
Frequency Ratio: For a simply supported beam, $\omega_n \propto n^2$. This means Mode 2 vibrates at 4× the fundamental frequency, and Mode 3 at 9×.

Summary

This post extended vibration analysis from discrete masses to continuous structures—systems with infinite degrees of freedom:

System TypeGoverning EquationKey Feature
Strings, Bars, Shafts2nd-order wave equationConstant wave speed $c = \sqrt{T/\rho}$ or $\sqrt{E/\rho}$
Beams (Euler-Bernoulli)4th-order PDEBending stiffness introduces dispersive waves
Boundary ConditionsDetermine mode shapesFixed, free, pinned → different frequency formulas
Rayleigh’s MethodEnergy-based estimationUpper bound: $\omega_{est} \geq \omega_{exact}$

What’s Next?

How do we stop unwanted vibrations? The next post covers vibration control—isolation mounts, rotating machinery balancing, and dynamic vibration absorbers.

References

Rao, S. S. (2018). Mechanical Vibrations (6th ed.). Pearson.