Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Pull a structure to one side, release it, and walk away. Nobody is pushing it anymore (the right-hand side of the equation of motion is zero), yet it keeps moving. It swings back through its rest position, overshoots, comes back, and repeats, each swing a little smaller than the last until it finally settles. This is free vibration, and it is the purest experiment in all of structural dynamics: with the loading switched off, the motion you see is the structure talking about itself.

Everything the structure has to say comes down to two numbers. How fast it swings is set by the natural frequency ωn\omega_n, the balance of stiffness against mass. How quickly the swinging dies is set by the damping ratio ζ\zeta, how much energy leaks out each cycle. This chapter takes the free-decay curve from the end of Chapter 1 apart, piece by piece, and shows you how to read both numbers straight off a trace, the exact skill an engineer uses to identify a real building from a measured vibration.

As always we derive by running code, not algebra. The solver sd.sdof_response (built from scratch in Chapter 3) is our engine; here we simply feed it p(t)=0p(t)=0 and a nonzero starting position, and look at what comes out. Where a closed form is derived, as for the undamped oscillator below, the code checks it, so the formula and the plot never disagree.

1The undamped oscillator: pure ringing

Start with the idealized case: no damping at all, c=0c=0. Free vibration also switches off the load, p=0p=0. The Chapter 1 equation of motion m u¨+c u˙+k u=p(t)m\,\ddot u + c\,\dot u + k\,u = p(t) then loses both its middle term and its right-hand side; dividing through by mm, as in the normalization that produced the standard form (7), leaves

m u¨+k u=0,⟺u¨+km u=0.m\,\ddot u + k\,u = 0, \qquad\Longleftrightarrow\qquad \ddot u + \frac{k}{m}\,u = 0 .

Figure 1 previews, in a single moving picture, where the derivation below lands. Picture a vector of length ρ\rho that turns clockwise at a steady rate ωn\omega_n: the undamped displacement is simply its shadow on the horizontal axis, swinging between +ρ+\rho and −ρ-\rho forever, and the trace below the circle records that shadow while time runs down the page. At release (the gray vector), the vector’s two components are the starting displacement u0u_0 and the starting velocity scaled to a length, u˙0/ωn\dot u_0/\omega_n, and the angle φ\varphi between the vector and the axis says how far into its cycle the motion begins. The figure uses the release of Example 1 below, so ρ\rho = 25 mm and φ\varphi = 53.1°, and the shadow reaches its first peak once the vector has turned through φ\varphi, at tt = 0.185 s. The algebra that follows derives exactly this picture from (1). The damping slider looks ahead to the damped oscillator later in this chapter: the vector then shrinks as it turns, its tip spirals inward, and the trace dies away inside a narrowing envelope.

Figure 1:Free vibration as the horizontal shadow u(t)u(t) of a vector of length ρ\rho turning clockwise at ωn\omega_n, traced on a time axis that runs down the page; with damping the vector shrinks and turns at ωd\omega_d.

This is a linear, second-order, homogeneous differential equation, and a general fact about such equations tells us what its solutions must look like. A second-order equation needs two numbers to single out one motion (where the mass starts, u0u_0, and how fast it is moving, u˙0\dot u_0), so its general solution is a combination of two independent building-block solutions, each carrying one free constant: u(t)=A u1(t)+B u2(t)u(t)=A\,u_1(t)+B\,u_2(t). Find any two independent solutions and you have captured every motion the equation allows. For u¨=−(k/m) u\ddot u = -(k/m)\,u the blocks almost name themselves: a function whose second derivative is a negative multiple of itself is a sine or a cosine. So we try a cosine and a sine ringing at some still-unknown rate ω\omega:

u(t)=Acos⁡ωt+Bsin⁡ωt,u(t)=A\cos\omega t + B\sin\omega t ,

with AA and BB the two constants the start of the motion will later fix. Differentiating twice turns every term back into itself times −ω2-\omega^2, so u¨=−ω2u\ddot u = -\omega^2 u. Substituting into (1) gives (−ω2+k/m)u=0\big(-\omega^2 + k/m\big)u = 0, which can hold for all tt only if the bracket vanishes. That single condition fixes the ringing rate: ω2=k/m\omega^2 = k/m, i.e.

ωn=k/m,fn=ωn2π,Tn=2πωn.\omega_n = \sqrt{k/m}, \qquad f_n = \frac{\omega_n}{2\pi}, \qquad T_n = \frac{2\pi}{\omega_n} .

This is the natural circular frequency ωn\omega_n (rad/s), the single number the structure rings at; fnf_n is the same in hertz and TnT_n the period in seconds. With the rate pinned, only the two amplitudes remain, and that is where the start of the motion enters, supplying exactly the two numbers a second-order equation needs. Setting t=0t=0 in u(t)u(t) gives A=u0A=u_0; setting t=0t=0 in u˙=−Aωnsin⁡ωnt+Bωncos⁡ωnt\dot u = -A\omega_n\sin\omega_n t + B\omega_n\cos\omega_n t gives B=u˙0/ωnB=\dot u_0/\omega_n. The motion released from displacement u0u_0 with velocity u˙0\dot u_0 is therefore

u(t)=u0cos⁡ωnt+u˙0ωnsin⁡ωnt.u(t) = u_0\cos\omega_n t + \frac{\dot u_0}{\omega_n}\sin\omega_n t .

That is simple harmonic motion, a perfect sinusoid that never decays. Collecting its cosine and sine into a single cosine gives the amplitude-phase form, which is the turning vector of Figure 1 written as an equation:

u(t)=ρcos⁡(ωnt−φ),ρ=u02+(u˙0ωn)2,tan⁡φ=u˙0/ωnu0.u(t) = \rho\cos(\omega_n t - \varphi), \qquad \rho = \sqrt{u_0^2 + \left(\frac{\dot u_0}{\omega_n}\right)^2}, \qquad \tan\varphi = \frac{\dot u_0/\omega_n}{u_0}.

The amplitude ρ\rho is the length of the vector, and φ\varphi is its starting angle, with its quadrant set by the signs of u0u_0 and u˙0\dot u_0. The first peak therefore arrives once the vector has turned through φ\varphi, at t=φ/ωnt = \varphi/\omega_n, and Example 1 evaluates all three numbers for the frame of Chapter 1.

Rather than trust the formulas, let us hand c=0c=0 to the engine and overlay (4) on top. If the book’s numerical solver and the textbook closed form agree, the two curves should sit exactly on each other, and the amplitude, phase, and first peak should match Example 1.

omega_n = 5.000 rad/s    f_n = 0.796 Hz    T_n = 1.257 s
max |solver - analytic| = 7.53e-16 m   (machine precision)

The two agree to roughly 10-15 m: the solver’s matrix-exponential step is exact for this undamped problem, so the numbers below are the genuine SHM, not an approximation, and the next cell draws them with the amplitude and period marked.

<Figure size 988x416 with 1 Axes>
amplitude rho = 25.00 mm     phase phi = 0.927 rad (53.1 deg)
first peak at phi/omega_n = 0.185 s   (simulated: 0.186 s)
energy at release: 5.6 J strain + 10.0 J kinetic;  at the peak: 15.6 J strain
<Figure size 988x416 with 1 Axes>
amplitude rho = 25.00 mm     phase phi = 0.927 rad (53.1 deg)
first peak at phi/omega_n = 0.185 s   (simulated: 0.186 s)
energy at release: 5.6 J strain + 10.0 J kinetic;  at the peak: 15.6 J strain

Figure 2:Undamped free vibration released from u0=15u_0=15 mm with u˙0=0.10\dot u_0 = 0.10 m/s: the solver output (solid) overlaid on the closed-form SHM (dashed), with the amplitude ρ\rho (dotted) and one period TnT_n marked.

Three quantities are written all over Figure 2, and they are worth naming because the rest of the book leans on them.

2The phase portrait: motion as a point on a circle

A displacement-versus-time plot tells one half of the story; the other half is the velocity. A neat way to see both at once is to forget time entirely and plot displacement against velocity. To keep both axes in the same units we scale velocity by ωn\omega_n, so the vertical axis is u˙/ωn\dot u/\omega_n (a length). The resulting phase portrait turns the whole history into a single traveling point.

For undamped SHM the algebra is suggestive: u=ρcos⁡(ωnt−φ)u=\rho\cos(\omega_n t-\varphi) and u˙/ωn=−ρsin⁡(ωnt−φ)\dot u/\omega_n=-\rho\sin(\omega_n t-\varphi), so

u2+(u˙ωn)2=ρ2.u^2 + \left(\frac{\dot u}{\omega_n}\right)^2 = \rho^2 .

That is the equation of a circle of radius ρ\rho, which the system orbits forever without losing energy; it is the path traced by the tip of the turning vector in Figure 1. Add damping and the radius must shrink, so the orbit becomes an inward spiral, and the next cell draws both cases.

<Figure size 1014x507 with 2 Axes>
<Figure size 1014x507 with 2 Axes>

Figure 3:Phase portraits of undamped motion (left) and of motion with 8 % damping (right), each starting from the dot.

The phase portrait is more than decoration: the closed circle is the geometric signature of energy conservation, and the inward spiral is the signature of dissipation, since every lap of the damped orbit is smaller than the last. The dot marks the release point (u0, u˙0/ωn)(u_0,\,\dot u_0/\omega_n), and the point travels clockwise: rightward displacement first, then the velocity goes negative as the spring pulls it back. A closed curve returns in Chapter 7 in a different plane, force against deformation, where a yielding spring traces hysteresis loops whose area is the energy it dissipates in each cycle.

3Adding damping: under, critical, and over

Now restore the dashpot: with c≠0c\neq 0 and still no applied force, the free-vibration equation of motion is

m u¨+c u˙+k u=0.m\,\ddot u + c\,\dot u + k\,u = 0 .

The cosine-plus-sine trial no longer works, because a damped motion must also shrink. So we reach for the more general guess u(t)=estu(t)=e^{st}, where the exponent ss may be complex: a real part will give growth or decay, an imaginary part will give oscillation. Then u˙=s est\dot u = s\,e^{st} and u¨=s2est\ddot u = s^2 e^{st}, and substituting into (8) and canceling the never-zero este^{st} collapses the differential equation into a plain algebraic one, the characteristic equation ms2+c s+k=0m s^2 + c\,s + k = 0. It is an ordinary quadratic in ss, so the quadratic formula gives its two roots at once, s=(−c±c2−4mk )/(2m)s = \big(-c \pm \sqrt{c^2 - 4mk}\,\big)/(2m); taking the factor 4m24m^2 inside the square root writes them in the form that will matter below:

ms2+c s+k=0⟹s=−c2m±(c2m)2−km.m s^2 + c\,s + k = 0 \qquad\Longrightarrow\qquad s = -\frac{c}{2m} \pm \sqrt{\left(\frac{c}{2m}\right)^2 - \frac{k}{m}} .

Everything hinges on the sign of the quantity under the root. It changes sign exactly when (c/2m)2=k/m(c/2m)^2 = k/m, i.e. when cc reaches the critical value

ccr=2km=2mωn,ζ≡cccr=c2mωn.c_\text{cr} = 2\sqrt{km} = 2m\omega_n , \qquad \zeta \equiv \frac{c}{c_\text{cr}} = \frac{c}{2m\omega_n} .

The second definition introduces the damping ratio ζ\zeta, the damping expressed as a fraction of that critical amount. It is the dimensionless number Chapter 1 already used in code (c = 2*zeta*sqrt(k*m)), and the most important single descriptor of how a structure decays. Now substitute the two normalized groupings c/2m=ζωnc/2m = \zeta\omega_n and k/m=ωn2k/m=\omega_n^2 into the roots (9). The quantity under the root becomes (ζωn)2−ωn2(\zeta\omega_n)^2-\omega_n^2, and pulling the common ωn2\omega_n^2 out as ωnζ2−1\omega_n\sqrt{\zeta^2-1} collapses both roots onto a single compact expression that makes the three cases transparent:

s=−ζωn±ωnζ2−1=(−ζ±ζ2−1 ) ωn.s = -\zeta\omega_n \pm \omega_n\sqrt{\zeta^2-1} = \big(-\zeta \pm \sqrt{\zeta^2 - 1}\,\big)\,\omega_n .

Figure 4 tracks these two roots in the complex plane as ζ\zeta grows from zero. Without damping they sit on the imaginary axis at ±i ωn\pm i\,\omega_n, a pure oscillation with no decay. Light damping slides them left along a circle of radius ωn\omega_n, so the real part, which sets the decay rate, grows while the imaginary part, which sets the ringing frequency, shrinks. At ζ=1\zeta = 1 the two meet at −ωn-\omega_n, and beyond it they split along the negative real axis, one creeping toward the origin and the other racing away, so the slow one ends up dominating the motion.

The two roots s of the characteristic equation in the complex plane as the
damping ratio \zeta grows from zero.

Figure 4:The two roots ss of the characteristic equation in the complex plane as the damping ratio ζ\zeta grows from zero.

The cleanest way to feel these three regimes is to release all three from the same position and watch.

<Figure size 1014x442 with 1 Axes>
<Figure size 1014x442 with 1 Axes>

Figure 5:Three damping regimes released from the same u0=20u_0 = 20 mm: under-damped (ζ=0.05\zeta=0.05), critically damped (ζ=1\zeta=1), and over-damped (ζ=2\zeta=2), with the under-damped decay envelope ±u0e−ζωnt\pm u_0 e^{-\zeta\omega_n t} dotted.

Figure 5 makes the vocabulary concrete: each curve is one of the three cases of the root condition (11).

undamped:  T_n = 1.2566 s   omega_n = 5.0000 rad/s
damped:    T_d = 1.2582 s   omega_d = 4.9937 rad/s  (zeta = 0.05)
period stretch T_d/T_n = 1.00125  ->  only 0.125% slower

4Logarithmic decrement: measuring ζ\zeta from a record

In practice nobody hands you the damping ratio of a building, so you have to measure it, and this is where free vibration pays off. The cleanest method is the logarithmic decrement, and it works on nothing more than the peaks of a free-decay trace. Figure 6 shows why the peaks alone carry enough information to find ζ\zeta. Successive peaks one damped period apart all ride on the same exponential envelope, so each is smaller than the one before by the same factor. On a logarithmic scale a constant factor becomes a constant step, and the peaks fall on a straight line that drops by the same amount every cycle, the logarithmic decrement δ\delta.

Successive peaks of a free decay one damped period T_d apart (left) and the
same peaks on a logarithmic scale, falling by the same step \delta every cycle
(right).

Figure 6:Successive peaks of a free decay one damped period TdT_d apart (left) and the same peaks on a logarithmic scale, falling by the same step δ\delta every cycle (right).

Consider two successive peaks of the under-damped response (14), one period TdT_d apart at times tit_i and ti+1=ti+Tdt_{i+1}=t_i+T_d. Each peak rides on the envelope, and the oscillatory factor repeats from one peak to the next, because the cosine and sine advance by exactly one period Td=2π/ωdT_d=2\pi/\omega_d. Taking the ratio of the two peaks therefore cancels the oscillatory part and leaves only the envelope:

uiui+1=e−ζωntie−ζωn(ti+Td)=eζωnTd.\frac{u_i}{u_{i+1}} = \frac{e^{-\zeta\omega_n t_i}}{e^{-\zeta\omega_n (t_i+T_d)}} = e^{\zeta\omega_n T_d} .

Taking the natural log defines the logarithmic decrement δ\delta, and substituting Td=2π/ωdT_d = 2\pi/\omega_d with ωd=ωn1−ζ2\omega_d=\omega_n\sqrt{1-\zeta^2} (12) collapses ζωnTd\zeta\omega_n T_d to a function of ζ\zeta alone:

δ  =  ln⁡uiui+1  =  ζ ωnTd  =  ζ ωn 2πωn1−ζ2  =  2πζ1−ζ2.\delta \;=\; \ln\frac{u_i}{u_{i+1}} \;=\; \zeta\,\omega_n T_d \;=\; \zeta\,\omega_n\,\frac{2\pi}{\omega_n\sqrt{1-\zeta^2}} \;=\; \frac{2\pi\zeta}{\sqrt{1-\zeta^2}} .

Invert this last equality (square it, solve for ζ2\zeta^2) and you recover the damping ratio from the measured peak ratio alone:

ζ=δ4π2+δ2.\zeta = \frac{\delta}{\sqrt{4\pi^2 + \delta^2}} .

Because every cycle removes the same factor, peaks jj cycles apart obey ui/ui+j=ejδu_i/u_{i+j} = e^{j\delta}, which spreads the decrement over several cycles:

δ=1j ln⁡uiui+j.\delta = \frac{1}{j}\,\ln\frac{u_i}{u_{i+j}} .

Example 2 applies (18) and (17) to two peaks read off a record.

The next cell repeats Example 2 and also prints the two terms under the square root.

delta = 0.1751    zeta = 0.0279    shortcut delta/2pi = 0.0279
delta^2 = 0.031   versus   4 pi^2 = 39.5

To prove the method works on a whole record, we simulate a decay at a known ζ=0.04\zeta=0.04, pretend we do not know it, find the peaks, compute δ\delta, and check whether (17) hands the true value back.

detected 6 peaks
log decrement   delta      = 0.2515
measured damping zeta_meas = 0.04000
true     damping zeta_true = 0.04000
error                      = 0.00 %
<Figure size 988x416 with 1 Axes>
detected 6 peaks
log decrement   delta      = 0.2515
measured damping zeta_meas = 0.04000
true     damping zeta_true = 0.04000
error                      = 0.00 %
<Figure size 988x416 with 1 Axes>

Figure 7:Logarithmic decrement on a simulated decay with a hidden ζ=0.04\zeta=0.04: the free-decay trace, its detected peaks (dots), and the envelope e−ζωnte^{-\zeta\omega_n t}.

The recovered ζ\zeta matches the true value to all five printed digits, from peaks alone, with no knowledge of mm, cc, or kk. Two practical notes make the method robust on real, noisy data:

The next cell applies both notes to the simulated record.

N-cycle (5 cycles):  zeta = 0.04000
small-zeta shortcut delta/2pi: zeta ~ 0.04003   (true 0.04)

Both estimates land within 0.1 % of the true value; at 4 % damping the shortcut δ/2π\delta/2\pi costs less than a tenth of a percent.

5A glance at the energy

The amplitude shrinks because the dashpot is quietly converting the structure’s mechanical energy into heat. At any instant the oscillator holds kinetic energy 12mu˙2\tfrac12 m\dot u^2 in the moving mass and potential energy 12ku2\tfrac12 k u^2 in the stretched spring. Without damping their sum is constant and the energy just sloshes between the two forms; with damping the total slides downhill, as the next cell shows.

<Figure size 988x416 with 1 Axes>
energy remaining after 5 s: 8.1 % of the initial
squared envelope exp(-2 zeta wn t) at 5 s: 8.2 %
<Figure size 988x416 with 1 Axes>
energy remaining after 5 s: 8.1 % of the initial
squared envelope exp(-2 zeta wn t) at 5 s: 8.2 %

Figure 8:Kinetic, potential, and total mechanical energy of the frame during a 5 %-damped free decay.

The kinetic and potential energies trade back and forth twice per cycle, since each peaks twice per swing, while their sum (black) falls without ever rising, because the dashpot only removes energy, at the rate c u˙2c\,\dot u^2. The total energy curve is the shrinking envelope seen from the side: a structure that loses amplitude is a structure losing energy, and the rate of loss is set by exactly the same ζ\zeta we just measured from the peaks. After 5 s only 8.1 % of the initial energy remains, close to the e−2ζωnt=e−2.5e^{-2\zeta\omega_n t} = e^{-2.5}, or 8.2 %, predicted by squaring the amplitude envelope.

6Cross-check with OpenSees

Everything so far rode on sd.sdof_response, so before trusting it further we confirm it against an entirely independent engine: a real finite-element solve in OpenSeesPy (McKenna, 2011; Zhu, McKenna, and Scott, 2018). The helper opensees_sdof (built line by line in Appendix A) builds a one-node mass on an elastic spring with matched damping and integrates it with Newmark’s average-acceleration rule (Newmark, 1959), the standard workhorse of nonlinear time-history analysis. We release it from the same u0u_0 and overlay.

<Figure size 988x416 with 1 Axes>
max discrepancy = 0.04 % of the peak amplitude  (dt = 5 ms)
<Figure size 988x416 with 1 Axes>
max discrepancy = 0.04 % of the peak amplitude  (dt = 5 ms)

Figure 9:Free decay from sd.sdof_response (exact matrix exponential, solid) versus an independent OpenSeesPy Newmark integration (dashed) at Δt=5\Delta t = 5 ms.

The agreement is excellent: the curves overlap to within a few hundredths of a percent. That residual is not a bug in either tool: sd.sdof_response uses an exact matrix-exponential step, while OpenSees marches with Newmark, which introduces a tiny period elongation at finite Δt\Delta t. That period error is O(Δt2)O(\Delta t^2) and makes successive peaks drift slightly out of phase, so the discrepancy we measure grows with the number of cycles. It should also shrink quadratically in Δt\Delta t, which the next cell checks by halving the step twice.

dt =  5.00 ms    gap = 0.0380 % of the peak
dt =  2.50 ms    gap = 0.0095 % of the peak
dt =  1.25 ms    gap = 0.0024 % of the peak

Each halving cuts the gap by a factor of four, from 0.038 % to 0.0095 % and then 0.0024 %, the signature of a second-order error that vanishes in the limit. Chapter 3 is exactly the story of why the exact stepper is exact and the Newmark stepper is not, and why, for the nonlinear problems of Chapter 7, we happily accept that gap in exchange for a method that handles a yielding spring.

7Summary

Free vibration showed us the structure in isolation. Next we open the engine itself: Chapter 3 recasts the equation of motion in state-space form and builds sd.sdof_response from scratch, so that from Chapter 4 onward we can hand it any load p(t)p(t) and simply read the answer off the plot. The exact sinusoid and the enveloped decay of this chapter become the reference solutions against which that engine is tested.