Learning Objectives
By the end of this section you will be able to:
- Derive the equation of motion from Newton's second law for a mass on a spring with viscous damping.
- Re-cast any free mechanical vibration into the dimensionless standard form and read off the natural frequency and damping ratio .
- Classify the four regimes (undamped, underdamped, critically damped, overdamped) directly from .
- Write the closed-form solution in each regime and apply both initial conditions .
- Connect the mathematical formulas to physical intuition: kinetic energy, potential energy, the damped period , and the logarithmic decrement .
- Implement a vibration simulator in Python and a system-identification routine in PyTorch that recovers from measured peaks.
The Big Picture: Why Vibrations?
"The whole of engineering vibration analysis is a one-page story: mass × acceleration plus damping × velocity plus stiffness × position equals zero — and the discriminant decides everything."
Look around. A guitar string after you pluck it. The bridge deck of a skyscraper in a gust. The needle of a galvanometer settling on its reading. A car wheel after you drive over a pothole. A drug molecule rattling around inside a binding pocket. Every one of these systems obeys the SAME second-order linear ODE with the SAME three coefficients. Get the math right once and you have understood half of mechanical engineering and a sizeable slice of physics.
The previous five sections built the toolkit: characteristic equation, three root cases, undetermined coefficients, variation of parameters. This section is the moment those abstract tools meet a physical reality you can feel under your hand.
The mechanical vibration ODE
A mass attached to a spring of stiffness , with a dashpot supplying viscous damping , satisfies
Everything in this section follows from this single equation. No new physics is needed — only careful reading of the three coefficients.
🚗 Automotive
- Suspension & shock absorbers
- Engine mounts and exhaust hangers
- Steering-wheel shimmy
🏗️ Civil & structural
- Earthquake response of buildings
- Bridge oscillations (Tacoma Narrows redux)
- Tuned mass dampers in skyscrapers
🎵 Acoustics & instruments
- String, drum, plate vibrations
- Loudspeaker cone dynamics
- Tuning-fork ring-down
🔬 Precision instruments
- Atomic-force microscope cantilevers
- MEMS gyroscopes and accelerometers
- Galvanometer needles, seismometers
From Newton's Law to the ODE
Set up coordinates so that is the spring's natural (unstretched) length. Pull the mass to the right by . Three forces act:
| Force | Expression | Why this form |
|---|---|---|
| Spring (restoring) | F_spring = −k x | Hooke's law: spring force is proportional to displacement and points back toward equilibrium. |
| Viscous damping | F_damp = −c x' | Resistance from a dashpot or air drag at low speed: proportional to velocity, opposing motion. |
| External (zero for now) | F_ext = 0 | Free vibration: no driving force. Section 22.7 will add F_ext = F₀ cos(ω t). |
Plug into Newton's second law :
Move everything to the left-hand side to obtain the canonical form:
Sign of the damping term
The damping force is because it always opposes the direction of motion. Moving to the right () ⇒ damping points left. Moving to the left () ⇒ damping points right. The minus sign is what guarantees that damping always drains energy from the system, never adds it.
Standard Form: Reading and
Divide the equation by :
The two dimensional groups and have natural interpretations. Define
With these substitutions the ODE becomes
Two parameters now describe every linear free vibration in the universe: sets the time scale (how fast it wants to oscillate), and sets the dissipation (how strongly the oscillation is suppressed).
Why this rescaling is worth doing
Two systems with very different masses, springs and dampers can have the SAME and . They will then behave identically up to a change of time units. This is the same idea as the Reynolds number in fluid dynamics: collapse a high-dimensional design space onto a low-dimensional one. Engineers TUNE directly.
The characteristic equation of the rescaled ODE is
whose discriminant simplifies beautifully:
Sign of ⇔ sign of ⇔ position of relative to 1. The famous boundary is exactly the knife edge from Section 22.1.
Free Undamped Vibrations ()
Set . The equation collapses to
The characteristic roots are : pure imaginary. The general real solution is
which any trigonometry textbook lets us repackage in amplitude–phase form:
This is simple harmonic motion (SHM): a pure sinusoid of constant amplitude , angular frequency , and phase . The mass would oscillate forever — a physically idealised limit, never quite achievable in any real system because some damping is always present.
Period and frequency
The period is . Heavy mass on weak spring ⇒ long period. Light mass on stiff spring ⇒ short period (high-pitched). The frequency in Hz is .
Damped Free Vibrations
Turn damping back on (). The characteristic roots are
Notice the structure: there is always a real, negative common piece that drives the envelope. The square root then decides whether the second piece is real or imaginary — exactly the discriminant classification.
| ζ | Roots r₁, r₂ | Solution form | Name |
|---|---|---|---|
| ζ = 0 | ±iω₀ | C₁ cos(ω₀t) + C₂ sin(ω₀t) | Undamped (SHM) |
| 0 < ζ < 1 | −ζω₀ ± iω_d, with ω_d = ω₀√(1−ζ²) | e^(−ζω₀t)·(C₁ cos ω_d t + C₂ sin ω_d t) | Underdamped |
| ζ = 1 | −ω₀ (repeated) | (C₁ + C₂t) e^(−ω₀t) | Critically damped |
| ζ > 1 | −ζω₀ ± ω₀√(ζ²−1) (both real, negative) | C₁ e^(r₁ t) + C₂ e^(r₂ t) | Overdamped |
Three observations worth memorising:
- The exponential envelope appears in EVERY stable regime. The time constant is .
- Damping slows oscillation: . For light damping this shift is small (≈ relative).
- Critical damping () returns the system to equilibrium as fast as possible without overshoot. Door-closers and oven-thermostat positioners aim for this regime.
The Four Regimes — Side by Side
Each regime corresponds to one of the three discriminant cases, with split out for clarity:
ζ = 0 — Undamped
Pure SHM. Pendulum in a vacuum, ideal LC tank, frictionless mass on a spring. Energy is conserved. The phase-portrait trajectory is a closed ellipse.
0 < ζ < 1 — Underdamped
Oscillates while decaying. Car suspensions, guitar strings, RLC circuits with light R. Phase trajectory: inward spiral. Most physical systems live here.
ζ = 1 — Critically damped
The boundary. Fastest non-oscillating return to equilibrium. Door closers, instrument indicators, the design target for precision positioning.
ζ > 1 — Overdamped
Sluggish, no oscillation. Heavy hydraulic dampers, screen-door closers in winter, signal probes designed for slew-rate-limited response.
Why the slow root dominates overdamped systems
For the two real roots satisfy and . The root closer to zero (smaller in magnitude) has the LONGER time constant and dominates the late-time behaviour. The faster root dies off quickly and matters mostly near .
Energy in Vibrations
Multiply the equation of motion by :
Recognise the first and third terms as time derivatives of the kinetic and potential energies:
On the left is the total mechanical energy . On the right is the dissipation rate — never positive, zero only when the mass is instantaneously at rest. So:
- Undamped (c = 0): is conserved. The phase-plane trajectory is the ellipse .
- Damped: decreases monotonically toward zero. Energy bleeds into heat at the rate .
For an underdamped vibration the envelope of decays like , so the envelope of — quadratic in amplitude — decays like . Energy decays at twice the amplitude rate.
Logarithmic Decrement: Measuring Damping from Data
In the lab you cannot read off directly. You can, however, hit the structure with a hammer and watch successive peaks of the response at times .
Because the underdamped solution is an exponentially decaying sinusoid,
Take the natural log:
This is the logarithmic decrement. It is independent of which two peaks you pick — every consecutive pair gives the same . From a measurement of two peaks you recover
Practical estimator
For more accuracy use peaks and average: . This averages out individual measurement errors and is the basis of all standard ring-down damping tests (ASTM E756, ISO 2017-1).
Worked Example (Step-by-Step)
A 200 kg quarter-car (one wheel's share of an 800-kg sedan's sprung mass) is supported by a spring of stiffness 18 000 N/m and a shock absorber providing viscous damping N·s/m. The car is lifted by 5 cm and released from rest. Describe the motion.
Click to expand the full hand calculation
From : , , . Initial conditions: m, .
rad/s. In hertz this is Hz.
. Since the system is underdamped — exactly the regime a passenger car suspension is tuned for.
rad/s. Damped period s.
1/s. The amplitude envelope is : every second the oscillation amplitude shrinks by a factor — about 20×.
At : .
Differentiate: . At : ⇒ .
m. Phase rad ≈ 18.4°. So m.
. Ratio of successive peaks: . Each peak is about 8× smaller than the previous one — by the third bounce the oscillation is essentially gone.
Define settling when the envelope falls below 2% of its initial value: ⇒ s. So the car stops bouncing in just over a second — exactly the comfort target of an automotive damper engineer.
Interactive Mass–Spring–Damper
Drag the sliders for , the initial displacement , and initial velocity . Watch the mass move and the trajectory plot itself in real time. The damping classification updates live as you cross the boundary.
Things to try
- Set . You will see a perfectly constant amplitude oscillation — undamped SHM.
- Slowly raise . The amplitude envelope shrinks faster and faster, but the system still oscillates — that is the underdamped regime.
- Tune to make . The oscillation just disappears. That is critical damping.
- Push well past critical. The return to equilibrium gets slower — the overdamped regime is not faster, contrary to a common misconception.
Interactive: All Four Regimes Side-by-Side
The same natural frequency is kept across four curves with different damping ratios . Watch how the same initial perturbation evolves so differently. The right panel shows the phase portrait — position on the horizontal axis, velocity on the vertical axis.
What to notice in the phase portrait
The undamped curve closes into an ellipse — energy conserved. The underdamped curve spirals inward, slowly. The critically damped and overdamped curves head straight for the origin without looping — no rotation, just attraction. The four geometries are the visual signatures of the four regimes.
Interactive: Logarithmic Decrement
Watch successive peaks of an underdamped trace shrink by a constant ratio . The table below the plot confirms that is the same for every consecutive pair — this is the property that makes a reliable experimental fingerprint of the damping.
Computation in Python
Math first, code second. The function below implements the three analytic branches (over-, critically-, and underdamped) using the closed-form solutions we just derived.
Closed-form vibration simulator
Phase portrait via the matrix exponential
For plotting trajectories in the plane and for sanity-checking energy conservation, it is sometimes cleaner to reduce the second-order ODE to a first-order vector ODE and apply the matrix exponential. Same physics, different bookkeeping.
PyTorch View: System Identification from Measurements
So far the recipe was parameters → trajectory. In practice you often have the opposite problem: given a measured trajectory, find the parameters. For an underdamped free vibration, the simplest such procedure is the logarithmic decrement fit: a linear regression of against . PyTorch tensors make this both fast and compatible with autograd, so the same routine can sit inside a larger learning pipeline (a neural physics model, a Kalman filter, a differentiable simulator).
From log-decrement fitting to differentiable simulators
The same idea generalises: write the full underdamped expression , build a loss , and minimise via . Modern ML libraries treat physical parameters as just another set of weights — system identification becomes a special case of training. The starting point is always the analytic understanding you developed in this section.
Common Pitfalls
Confusing ω₀ with ω_d
They differ by a factor of . For lightly damped systems they are nearly equal, but for the damped frequency is already about 13% lower than . Always be clear which one your formula or measurement refers to.
Forgetting the second initial condition
A second-order ODE needs both and . Many problems specify only and tacitly assume ("released from rest"). Read the wording carefully.
Critical damping is not the fastest decay
The amplitude envelope appears to grow faster (faster envelope decay) as grows. But for the SLOWER of the two real roots dominates and overall settling becomes slower. Critical damping gives the fastest non-oscillating return; lightly underdamped systems can reach equilibrium even faster, at the cost of a small overshoot.
Don't reach for natural log if x_n is negative
In the logarithmic-decrement formula , both and must be SAME-SIGN peaks of the envelope. If you mix a positive peak with a negative trough the ratio is negative and the log is undefined. Use and only pair maxima with maxima (or minima with minima).
Summary
Every free linear mechanical vibration is governed by the same two-parameter equation
and the damping ratio alone classifies the response:
| ζ | Regime | x(t) | Key quantity |
|---|---|---|---|
| 0 | Undamped (SHM) | A cos(ω₀ t − φ) | Period T = 2π/ω₀ |
| 0 < ζ < 1 | Underdamped | A e^(−ζω₀t) cos(ω_d t − φ) | Log decrement δ = 2πζ/√(1−ζ²) |
| ζ = 1 | Critically damped | (C₁ + C₂t) e^(−ω₀t) | Fastest non-oscillating return |
| ζ > 1 | Overdamped | C₁ e^(r₁t) + C₂ e^(r₂t) | Dominant time constant 1/|r_slow| |
Three working tools to remember:
- Standard form. Divide by and read off and . These two numbers carry all the qualitative information.
- Energy. decays at rate ; the envelope of falls twice as fast as the envelope of .
- Logarithmic decrement. Measure two peaks, take a log of their ratio, recover . This is the bread-and-butter experimental test of damping.
Coming next: Section 22.07 reintroduces a driving force . The result is the magnificent phenomenon of resonance: when the drive frequency approaches the steady-state amplitude blows up — gently if is large, catastrophically if is small. The Tacoma Narrows bridge, a child on a swing, and an NMR machine are all variations on this single theme.