Some loads never stop: a reciprocating engine bolted to a floor, an unbalanced fan, a rotor, a pump, and a crowd bouncing in time to music all push a structure with a force that repeats. The simplest repeating force is a single sinusoid:
with amplitude and forcing frequency (rad/s). This chapter hands that to the engine from Chapter 3 and reads the answers straight off the plots. It shows how the response settles into a steady rhythm, why it can blow up near one special frequency, how to turn a measured response curve into a damping estimate, and what happens when the “harmonic” load is really a periodic train of pulses. The recurring idea is the frequency ratio
the forcing frequency measured in units of the structure’s own natural frequency. Almost everything in this chapter is a story about .
We will carry one system the whole way through: a small machine mounted on a steel frame.
# One frame carrying a machine. SI units: tonnes, kN, m, s.
m = 2.0 # mass (machine + tributary floor) (t)
k = 200.0 # lateral stiffness of the frame (kN/m)
zeta = 0.05 # damping ratio (5%)
c = 2 * zeta * np.sqrt(k * m) # damping coefficient (kN*s/m)
p0 = 2.0 # harmonic force amplitude (kN)
props = sd.natural(m, c, k)
wn, Tn, fn = props["wn"], props["Tn"], props["fn"]
print(f"omega_n = {wn:.2f} rad/s f_n = {fn:.3f} Hz Tn = {Tn:.3f} s")
print(f"static deflection u_st = p0/k = {1000*p0/k:.1f} mm")omega_n = 10.00 rad/s f_n = 1.592 Hz Tn = 0.628 s
static deflection u_st = p0/k = 10.0 mm
The quantity , the deflection the frame would have if we applied slowly, is our yardstick. Every dynamic amplitude below is reported as a multiple of it.
1From transient to steady state¶
Switch the machine on at and the frame does two things at once. It tries to vibrate at its own frequency (the transient, which damping kills off), and it is forced to follow the drive frequency (the steady state, which lasts as long as the machine runs). Figure 1 separates the two for a drive below resonance, . The transient is a free vibration of the kind studied in Chapter 2, so it rings at the damped frequency inside a shrinking envelope. The steady state is a plain sinusoid at the drive frequency, and the total response the frame actually performs is their sum, which starts from rest because the transient begins by exactly canceling the steady state.
Figure 1:The response of the machine frame to a harmonic force switched on at (), split into a decaying transient and a lasting steady state.
The engine produces the total directly, and the next cell overlays it on the closed-form steady state derived just below.
beta = 0.8
w = beta * wn
dt = Tn / 400
t = np.arange(0, 12 * Tn, dt)
p = p0 * np.sin(w * t)
t, u, v, a = sd.sdof_response(m, c, k, p, dt)
# Closed-form steady state, for comparison (derived just below).
Rd = 1.0 / np.sqrt((1 - beta**2)**2 + (2 * zeta * beta)**2)
phi = np.arctan2(2 * zeta * beta, 1 - beta**2)
u_ss = (p0 / k) * Rd * np.sin(w * t - phi)
fig, ax = plt.subplots(figsize=(7.6, 3.1))
ax.plot(t, u * 1000, color=sd.PLT[0], label="full response (engine)")
ax.plot(t, u_ss * 1000, "--", color=sd.PLT[1], lw=1.8, label="steady state only")
ax.axhline(0, color="#9aa3ab", lw=1.0)
ax.set_xlabel(r"time $t$ (s)")
ax.set_ylabel(r"displacement $u$ (mm)")
ax.legend(loc="lower left", bbox_to_anchor=(0.0, 1.0), ncol=2)
plt.show()

Figure 2:Switching on a harmonic force at : the full engine response (solid) and the steady-state sinusoid alone (dashed).
The total response (solid) starts at rest and, after a brief transient, locks onto the steady-state sinusoid (dashed). Two numbers describe that final rhythm, its amplitude and its phase lag behind the force, and the question is where they come from. The transient is just the damped free vibration of Chapter 2, which dies out; the lasting steady state must be a sinusoid at the drive frequency (nothing else can balance a on the right-hand side forever). So we try
a sine and a cosine at the forcing frequency, and let the equation of motion fix the two constants. Differentiating gives and ; substituting all three into and grouping the and terms separately yields
The two sides must match at every instant, so the sine coefficients balance and the cosine coefficients balance: two linear equations for and . Divide through by and use , so and (recall from Chapter 2 and ). Solving the pair gives
Finally, collapse the sine-plus-cosine into a single shifted sine, with amplitude and lag . The common denominator makes the square root collapse neatly, and we arrive at
is the deformation response factor: the dynamic amplitude divided by the static deflection . Notice the physics already hiding in the denominator: the spring contributes the 1, inertia the , and the dashpot the ; when the first two cancel and only damping is left to limit the amplitude. We will confirm in a moment by measurement instead of algebra: sweep , read the steady amplitude off each run, and divide. First, Example 1 evaluates (6) by hand for the run of Figure 2.
The next cell measures the same two numbers from the tail of the engine run, the amplitude as half the peak-to-peak swing of the last forcing cycle and the lag from the time of its last positive peak.
# Steady amplitude measured from the tail of the run (last full forcing cycle).
n_cycle = int(round((2 * np.pi / w) / dt))
tail = u[-n_cycle:]
u0_num = 0.5 * (tail.max() - tail.min())
print(f"measured amplitude u0 = {1000*u0_num:.2f} mm")
print(f"formula (p0/k)*Rd = {1000*(p0/k)*Rd:.2f} mm")
print(f"Rd = {u0_num/(p0/k):.4f} (closed form {Rd:.4f})")
# Phase lag from a longer run (60 forcing cycles): project the last cycle on sin and cos.
# A step ten times finer makes the half-step delay of the zero-order hold (Chapter 3) negligible.
n_l = 10 * n_cycle
t_l = np.arange(0, 60 * n_l) * (dt / 10)
u_l = sd.sdof_response(m, c, k, p0 * np.sin(w * t_l), dt / 10)[1][-n_l:]
C_l = 2 * np.mean(u_l * np.sin(w * t_l[-n_l:]))
D_l = 2 * np.mean(u_l * np.cos(w * t_l[-n_l:]))
print(f"60-cycle run: u0 = {1000*np.hypot(C_l, D_l):.2f} mm lag phi = {np.arctan2(-D_l, C_l):.3f} rad"
f" (closed form {phi:.3f} rad = {np.degrees(phi):.1f} deg, time lag {phi / w:.3f} s)")measured amplitude u0 = 27.05 mm
formula (p0/k)*Rd = 27.12 mm
Rd = 2.7050 (closed form 2.7116)
60-cycle run: u0 = 27.12 mm lag phi = 0.219 rad (closed form 0.219 rad = 12.5 deg, time lag 0.027 s)
They match to a fraction of a percent. The 0.07 mm gap in the amplitude is just the last sliver of transient that has not quite died in this 12-period run, exactly what Figure 2 shows. The 60-cycle run, with the transient long gone, recovers both the amplitude and the lag to the digits printed.
2The resonance curves: versus ¶
Now repeat that measurement at every frequency: we sweep from near zero to 3, run the engine to steady state at each value, read the amplitude, and divide by . Repeating the sweep for several damping ratios traces the famous family of resonance curves.
def steady_amplitude(beta, zeta, m=m, k=k, p0=p0, n_cyc=60, ppc=200):
"""Run the engine at frequency ratio beta to steady state and return the
steady displacement amplitude (read off the last forcing cycle)."""
wn = np.sqrt(k / m)
w = beta * wn
c = 2 * zeta * np.sqrt(k * m)
Tf = 2 * np.pi / w
dt = Tf / ppc
t = np.arange(0, n_cyc * Tf, dt)
_, u, _, _ = sd.sdof_response(m, c, k, p0 * np.sin(w * t), dt)
last = u[-ppc:] # one full forcing cycle
return 0.5 * (last.max() - last.min())
betas = np.linspace(0.05, 3.0, 70)
zetas = [0.05, 0.10, 0.20, 0.50]fig, ax = plt.subplots(figsize=(7.4, 4.2))
bb = np.linspace(0.01, 3.0, 400)
for i, z in enumerate(zetas):
Rd_num = np.array([steady_amplitude(b, z) / (p0 / k) for b in betas])
Rd_cf = 1.0 / np.sqrt((1 - bb**2)**2 + (2 * z * bb)**2)
ax.plot(bb, Rd_cf, color=sd.PLT[i], lw=2.0, label=fr"$\zeta={z}$")
ax.plot(betas, Rd_num, "o", color=sd.PLT[i], ms=3.5, mfc="white", mew=1.1)
ax.axvline(1.0, color="#9aa3ab", lw=1.0, ls=":")
ax.set_xlabel(r"frequency ratio $\beta=\omega/\omega_n$")
ax.set_ylabel(r"response factor $R_d$")
ax.set_xlim(0, 3); ax.set_ylim(0, 10.5)
ax.legend(title="markers = engine sweep")
plt.show()
Read the curves of Figure 3 from left to right. At low (slow forcing) : the structure has time to follow the load quasi-statically, so it just deflects by . At high (fast forcing) : the mass cannot keep up and barely moves, no matter how hard you push. In between, near , the two effects cancel in the denominator of (6) and the amplitude peaks sharply for light damping. That peak is resonance, and the markers sitting exactly on the curves confirm that the engine and the formula are the same physics.
The companion curve is the phase angle , the lag of the response behind the force.
fig, ax = plt.subplots(figsize=(7.4, 3.4))
for i, z in enumerate(zetas):
phi = np.degrees(np.arctan2(2 * z * bb, 1 - bb**2))
ax.plot(bb, phi, color=sd.PLT[i], lw=2.0, label=fr"$\zeta={z}$")
ax.axvline(1.0, color="#9aa3ab", lw=1.0, ls=":")
ax.axhline(90, color="#9aa3ab", lw=1.0, ls=":")
ax.set_xlabel(r"frequency ratio $\beta=\omega/\omega_n$")
ax.set_ylabel(r"phase lag $\phi$ (deg)")
ax.set_xlim(0, 3); ax.set_ylim(0, 180)
ax.set_yticks([0, 45, 90, 135, 180])
ax.legend()
plt.show()

Figure 4:Phase lag of the steady-state response behind the force, versus frequency ratio, for four damping ratios.
The phase tells you who is in charge. Below resonance the spring dominates and the structure tracks the force (). Above resonance the mass dominates and the structure fights the force (). The hand-off is at , where regardless of damping: the response there is governed entirely by the dashpot, which is the whole story of the next section.
▶ Interactive: who carries the force across the frequency range
The machine frame runs at steady state while the timeline sweeps the frequency ratio from = 0.1 to 3, lingering near resonance; the machine keeps turning throughout, one forcing cycle per second of playback. Above the frame, the red arrow is the applied force at this instant, and below it the spring force , the damping force , and the inertia force are laid head to tail, always ending under the tip of . The force phasors on the right show the same balance in amplitude and phase: lies along the axis, and , which points along the response , is turned clockwise from it by the lag . Below, the left plot draws two cycles of and with the lag marked, and the right plots place the current state on the and curves. The buttons jump to = 0.5, 1, and 2, and the slider sets the damping ratio (5 % to start).
At = 0.5 the spring carries the load: its force amplitude is 2.66 kN against = 2.00 kN, the inertia force takes back 0.67 kN, the damping force is only 0.13 kN, and the response follows the force with a lag of 3.8°. At = 1 the spring and inertia forces both reach 20.00 kN, ten times the applied force, yet they cancel exactly, and the dashpot alone balances with an amplitude of 2.00 kN; the lag is 90.0° and the amplitude 100.0 mm. At = 2 the spring and the mass trade places (inertia 2.66 kN, spring 0.67 kN) and the lag reaches 176.2°. The shaded band marks where the damping force outweighs the net of the other two, . For light damping that band is narrow, which is why the hand-off from spring to mass looks so abrupt on the phase curve.
▶ Interactive: resonance building up, cycle by cycle
The machine frame is driven exactly at its natural frequency (), starting from rest. The left panel shows the frame swaying under the machine, whose rotating eccentric mass produces the force , and the right panel draws the roof displacement as it happens. The timeline counts the forcing cycles, and the note reports the largest swing so far as a fraction of the steady amplitude mm. The dashed curves are the build-up envelope derived in the next section. The two sliders below the timeline change the damping ratio and the frequency ratio, so you can also watch a heavily damped frame settle quickly or an off-resonance drive beat.
The amplitude grows almost linearly over the first few cycles, then more and more slowly as damping catches up with the energy the force pumps in: 27 % of the steady value after one cycle, 92 % after eight. Light damping means a tall ceiling reached slowly, and that slow, relentless growth is what makes resonance dangerous for a machine left running at the wrong speed.
3Resonance: damping is all that is left¶
With exactly, the first term of the denominator in (6) vanishes, leaving
The static deflection is multiplied by , a factor of 10 at our 5 % damping. But that final amplitude is not reached instantly; it has to build up, as the next run from rest shows.
dt = Tn / 400
t = np.arange(0, 30 * Tn, dt)
t, u, v, a = sd.sdof_response(m, c, k, p0 * np.sin(wn * t), dt)
env = (p0 / k) / (2 * zeta)
fig, ax = plt.subplots(figsize=(7.6, 3.2))
ax.plot(t, u * 1000, color=sd.PLT[0])
ax.axhline( env * 1000, ls="--", color=sd.PLT[1], lw=1.6,
label=r"$\pm\,(p_0/k)/2\zeta$")
ax.axhline(-env * 1000, ls="--", color=sd.PLT[1], lw=1.6)
ax.axhline(0, color="#9aa3ab", lw=1.0)
ax.set_xlabel(r"time $t$ (s)")
ax.set_ylabel(r"displacement $u$ (mm)")
ax.legend(loc="lower right")
plt.show()

Figure 5:Driving at resonance () from rest: the response (solid) climbing toward the steady-state envelope (dashed).
The envelope of the build-up follows , and the reason is the same superposition we used for the steady state. At the system is at rest, so the transient must start out exactly canceling the steady-state sinusoid (the two add to zero). The transient is a free vibration and therefore decays as (Chapter 2); as it dies, the cancellation it was providing fades, and the response climbs from zero toward the full steady amplitude like . Lighter damping means a slower decay and a higher ceiling reached over more cycles. A short transient blast at resonance may be survivable simply because it ends before the amplitude has grown, which is exactly the question Chapter 5 takes up for pulses and shocks. Example 2 puts a number on the build-up time.
The next cell reads the peak of each cycle off the build-up run and finds the first one above 90 % of the steady amplitude.
# Peak of each forcing cycle in the build-up run, against 1 - exp(-2 pi zeta n).
n_per = int(round(Tn / dt))
peaks_cyc = np.array([np.max(np.abs(u[i * n_per:(i + 1) * n_per])) for i in range(12)])
theory = env * (1 - np.exp(-2 * np.pi * zeta * np.arange(1, 13)))
for n in (1, 2, 4, 7, 8, 12):
print(f"cycle {n:2d}: peak {1000*peaks_cyc[n-1]:5.1f} mm theory {1000*theory[n-1]:5.1f} mm")
first = int(np.argmax(peaks_cyc >= 0.9 * env)) + 1
print(f"first cycle above 90 %: {first} (ln 10 / (2 pi zeta) = {np.log(10)/(2*np.pi*zeta):.1f} cycles,"
f" {np.log(10)/(2*np.pi*zeta)*Tn:.1f} s)")cycle 1: peak 27.0 mm theory 27.0 mm
cycle 2: peak 46.7 mm theory 46.7 mm
cycle 4: peak 71.6 mm theory 71.5 mm
cycle 7: peak 88.9 mm theory 88.9 mm
cycle 8: peak 91.9 mm theory 91.9 mm
cycle 12: peak 97.7 mm theory 97.7 mm
first cycle above 90 %: 8 (ln 10 / (2 pi zeta) = 7.3 cycles, 4.6 s)
4The frequency-response function ¶
Everything above is encoded in one complex-valued function, and complex numbers make the algebra trivial. Feed the oscillator a unit complex harmonic and look for a steady response of the same form, , with a complex amplitude to be found. Because each time derivative of just multiplies by , the equation of motion becomes purely algebraic: . Cancel the common and solve for :
where the second form divides through by exactly as in the derivation. This frequency-response function (FRF) is the transfer function of the structure. It is not new physics but the steady-state result repackaged: its magnitude is the amplitude gain per unit force, , and its phase is the lag, (the minus sign because lags the drive). Plotting both against frequency is a Bode plot, the everyday tool of vibration testing. The magnitude below is in amplitude decibels, , normalized to its peak, so a level of -3 dB means an amplitude of of the peak and a power of one half.
beta = np.linspace(0.01, 3.0, 1000)
H = 1.0 / (k * ((1 - beta**2) + 1j * 2 * zeta * beta))
mag, phase = np.abs(H), np.degrees(np.angle(H))
mag_db = 20 * np.log10(mag / mag.max()) # normalized to the peak
half_db = -3.0103 # |H| = peak/sqrt(2)
fig, (axm, axp) = plt.subplots(2, 1, figsize=(7.4, 5.0), sharex=True,
gridspec_kw=dict(height_ratios=[1.4, 1]))
axm.plot(beta, mag_db, color=sd.PLT[0])
axm.axhline(half_db, ls="--", color=sd.PLT[1], lw=1.5, label="$-3$ dB (half power)")
axm.set_ylabel(r"$|H|/|H|_{\max}$ (dB)")
axm.set_ylim(-30, 3)
axm.legend(loc="upper right")
axp.plot(beta, phase, color=sd.PLT[2])
axp.axvline(1.0, color="#9aa3ab", lw=1.0, ls=":")
axp.set_yticks([-180, -135, -90, -45, 0])
axp.set_xlabel(r"frequency ratio $\beta=\omega/\omega_n$")
axp.set_ylabel(r"$\angle H$ (deg)")
axp.set_xlim(0, 3)
plt.show()

Figure 6:The frequency-response function as a Bode plot: magnitude in decibels (top) and phase (bottom) versus frequency ratio, with the -3 dB half-power level marked on the magnitude.
4.1Half-power bandwidth: reading off the peak¶
The Bode plot holds a payoff for an experimenter. The peak of sits at (for light damping), so peaks at . The half-power points are the two frequencies where has fallen to half that peak (hence “half power”; in amplitude they are , which is 3 dB down). Setting in (10) and canceling means the denominator must equal twice its value at the peak, which (for light damping, where the peak is essentially at ) reduces to , i.e. . So and, taking the square root for small , the two roots straddle the peak symmetrically:
So you do not need to know the force, the mass, or the stiffness: just sweep the frequency, find the peak, and measure how wide it is at the -3 dB level. Let us recover the damping of our frame from its own FRF, pretending we only have the measured curve.
# Pretend we only measured |H(beta)|. Recover zeta from the peak width.
beta = np.linspace(0.001, 3.0, 20000)
H = 1.0 / (k * ((1 - beta**2) + 1j * 2 * zeta * beta))
mag = np.abs(H)
peak = mag.max()
half_pow = peak / np.sqrt(2.0) # half-POWER => amplitude/sqrt(2)
band = beta[mag >= half_pow]
b1, b2 = band.min(), band.max()
zeta_est = (b2 - b1) / 2.0
print(f"half-power band: beta1 = {b1:.4f} beta2 = {b2:.4f}")
print(f"estimated zeta = (beta2 - beta1)/2 = {zeta_est:.4f}")
print(f"true zeta = {zeta:.4f}")half-power band: beta1 = 0.9462 beta2 = 1.0464
estimated zeta = (beta2 - beta1)/2 = 0.0501
true zeta = 0.0500
The estimate lands within a fraction of a percent of the true value. This half-power (3 dB) bandwidth method is one of the most common ways damping is measured on real structures: from a single forced-vibration test you read the period off the peak location and the damping off the peak width.
5Beating: two frequencies, almost equal¶
Drive a lightly damped structure at a frequency close to, but not equal to, its natural frequency, and the transient does not simply die. For a while it is nearly as large as the steady state, and the two sinusoids, at and , drift slowly in and out of phase. The result is beating: a fast oscillation inside a slowly pulsing envelope.
zeta_b = 0.01
c_b = 2 * zeta_b * np.sqrt(k * m)
beta_b = 1.10
w_b = beta_b * wn
wd_b = wn * np.sqrt(1 - zeta_b**2)
dt = Tn / 400
t = np.arange(0, 60 * Tn, dt)
t, u, v, a = sd.sdof_response(m, c_b, k, p0 * np.sin(w_b * t), dt)
# Beat envelope = magnitude of two rotating phasors that drift in and out of
# phase: the steady state at omega (constant) plus the transient at omega_d
# (decaying as e^{-zeta*wn*t}). Their slow interference IS the beat; as the
# transient dies the envelope settles to the steady amplitude (p0/k)*Rd.
Rd = 1.0 / np.sqrt((1 - beta_b**2)**2 + (2 * zeta_b * beta_b)**2)
phi = np.arctan2(2 * zeta_b * beta_b, 1 - beta_b**2)
ust = (p0 / k) * Rd
A = ust * np.sin(phi) # zero-IC transient coeffs
B = (zeta_b * wn * A - ust * w_b * np.cos(phi)) / wd_b
P_ss = ust * np.exp(-1j * phi) # steady-state phasor
P_tr = (B + 1j * A) * np.exp(-zeta_b * wn * t) # decaying transient phasor
env = np.abs(P_ss * np.exp(1j * w_b * t) + P_tr * np.exp(1j * wd_b * t))
fig, ax = plt.subplots(figsize=(7.8, 3.2))
ax.plot(t, u * 1000, color=sd.PLT[0], lw=1.6)
ax.plot(t, env * 1000, "--", color=sd.PLT[1], lw=1.5)
ax.plot(t, -env * 1000, "--", color=sd.PLT[1], lw=1.5)
ax.axhline(0, color="#9aa3ab", lw=1.0)
ax.set_xlabel(r"time $t$ (s)")
ax.set_ylabel(r"displacement $u$ (mm)")
plt.show()
# Quiet points of the beat: local minima of the peak envelope.
from scipy.signal import find_peaks
pk_b, _ = find_peaks(np.abs(u))
q_b, _ = find_peaks(-np.abs(u[pk_b]))
t_q = t[pk_b][q_b][:4]
print(f"quiet points at t = {np.round(t_q, 2)} s, spacing {np.mean(np.diff(t_q)):.2f} s"
f" (2 pi / |omega - omega_n| = {2 * np.pi / abs(w_b - wn):.2f} s)")
quiet points at t = [ 6.15 12.42 18.7 24.98] s, spacing 6.28 s (2 pi / |omega - omega_n| = 6.28 s)

quiet points at t = [ 6.15 12.42 18.7 24.98] s, spacing 6.28 s (2 pi / |omega - omega_n| = 6.28 s)
Figure 7:Beating in a lightly damped frame () driven just off resonance (), with the slowly pulsing envelope dashed.
The carrier wave runs at the average frequency , while the envelope swells and fades once every beat period , so the closer the drive is to resonance, the slower and longer the beats. Here rad/s and rad/s, so s, and the quiet points of Figure 7 indeed fall about 6.3 s apart. With finite damping the natural-frequency tone fades, the beats with it, and the motion relaxes to the steady state of Figure 2. Beating is therefore a transient signature of a structure forced near resonance: hear it as the throb of an engine running just off a structure’s tune.
6Base excitation and transmissibility¶
So far the force pushed the mass; now let the base move instead, as when a machine vibrates the floor it sits on or traffic shakes a building. From Chapter 1, a harmonic base acceleration enters the equation of motion as the effective force . The engineering question flips: how much of the base motion is transmitted to the mass? The answer is the transmissibility TR, the ratio of the transmitted (absolute mass) acceleration amplitude to the input base-acceleration amplitude:
The denominator is just the resonance shape we already derived, because the base drives the same oscillator through the same . The extra in the numerator is the new part. The mass feels the base not directly but through the spring and the dashpot in parallel, so the force reaching it combines a spring part, proportional to the relative motion, with a dashpot part, proportional to times it. The two parts are out of phase and add in quadrature, which is exactly the factor. (The same ratio governs the force transmitted through a mount.) Rather than carry that algebra further, we read TR straight from the engine: drive with a known base acceleration, recover the total acceleration of the mass (), and take the amplitude ratio.
def TR_numeric(beta, zeta, ag0=1.0, m=m, k=k, n_cyc=80, ppc=300):
"""Transmissibility measured from the engine: amplitude of total mass
acceleration divided by base-acceleration amplitude."""
wn = np.sqrt(k / m); w = beta * wn
c = 2 * zeta * np.sqrt(k * m)
dt = (2 * np.pi / w) / ppc
t = np.arange(0, n_cyc * 2 * np.pi / w, dt)
ag = ag0 * np.sin(w * t)
_, u, v, a = sd.sdof_response(m, c, k, -m * ag, dt) # base excitation
a_total = a + ag # absolute accel of mass
last = a_total[-ppc:]
return 0.5 * (last.max() - last.min()) / ag0
# spot check at one point against the closed form
print("TR engine vs formula at beta=1.5, zeta=0.10:",
round(TR_numeric(1.5, 0.10), 4),
round(np.sqrt((1 + (2*0.10*1.5)**2) / ((1-1.5**2)**2 + (2*0.10*1.5)**2)), 4))TR engine vs formula at beta=1.5, zeta=0.10: 0.8121 0.8122
bb = np.linspace(0.05, 4.0, 400)
betas_m = np.linspace(0.1, 4.0, 26)
fig, ax = plt.subplots(figsize=(7.4, 4.0))
for i, z in enumerate([0.05, 0.10, 0.20, 0.50]):
TR_cf = np.sqrt((1 + (2*z*bb)**2) / ((1 - bb**2)**2 + (2*z*bb)**2))
TR_num = np.array([TR_numeric(b, z) for b in betas_m])
ax.plot(bb, TR_cf, color=sd.PLT[i], lw=2.0, label=fr"$\zeta={z}$")
ax.plot(betas_m, TR_num, "o", color=sd.PLT[i], ms=3.5, mfc="white", mew=1.1)
ax.axvline(np.sqrt(2), color="#9aa3ab", lw=1.0, ls=":")
ax.axhline(1.0, color="#9aa3ab", lw=1.0, ls=":")
ax.text(np.sqrt(2) + 0.04, 3.4, r"$\beta=\sqrt{2}$", color="#5B6770")
ax.set_xlabel(r"frequency ratio $\beta=\omega/\omega_n$")
ax.set_ylabel(r"transmissibility $\mathrm{TR}$")
ax.set_xlim(0, 4); ax.set_ylim(0, 4)
ax.legend()
plt.show()

Figure 8:Transmissibility versus frequency ratio for several damping ratios (markers = engine; lines = closed form), with the crossover marked.
The crossover at , where every curve passes through regardless of damping, is the central fact of vibration isolation. Below it, the mount makes things worse (TR > 1); only by tuning the system soft, pushing above , does the mass feel less than the floor. And the counter-intuitive twist: in the isolation region, adding damping raises TR. Damping tames the resonance peak but spoils the high-frequency roll-off: the classic isolation trade-off.
7Periodic but not harmonic: the Fourier route¶
Most repeating loads are not pure sinusoids: a reciprocating engine delivers a periodic train of pulses, and a footfall pattern repeats a sharp double hump. The key idea, and the reason this chapter generalizes so cleanly, is superposition in frequency. Any periodic force of period is a sum of harmonics at and its multiples (a Fourier series):
Because the structure is linear, superposition applies: the response to the sum is the sum of the responses. Each harmonic is exactly the complex harmonic drive of the FRF section, so it produces , scaled and phase-shifted by the frequency-response function (10) at that harmonic’s frequency. Adding them back:
So we never need a new solver: take the FFT of one period to get the , multiply each by , and add the responses back up. A real force has conjugate-symmetric coefficients (), so the and terms combine into a single real cosine. That is the origin of the factor of 2 and the that appear in the code below, which keeps only the non-negative harmonics from NumPy’s real FFT. Let us do exactly that for a periodic triangle-wave force and check it against a direct time-history run of the engine.
from scipy.signal import sawtooth
zeta_p = 0.05
c_p = 2 * zeta_p * np.sqrt(k * m)
T0 = 3.0 * Tn # forcing period: fundamental well below omega_n
w0 = 2 * np.pi / T0
dt = Tn / 600
# --- harmonics of ONE period via the FFT ---
M = int(round(T0 / dt)); dt = T0 / M
tp = np.arange(M) * dt
sig = p0 * sawtooth(w0 * tp, width=0.5) # triangle wave, zero mean
P = np.fft.rfft(sig) / M # complex Fourier coefficients
freq = np.fft.rfftfreq(M, dt) # harmonic frequencies (Hz)fig, (axt, axf) = plt.subplots(1, 2, figsize=(8.4, 3.0),
gridspec_kw=dict(width_ratios=[1.3, 1]))
axt.plot(tp, sig, color=sd.PLT[0])
axt.set_xlabel(r"time $t$ (s)"); axt.set_ylabel(r"force $p$ (kN)")
axt.set_title("one period of the load")
amp_n = 2 * np.abs(P)
markers, stems, base = axf.stem(freq[:12], amp_n[:12], basefmt=" ")
plt.setp(stems, color=sd.PLT[1], lw=2.0)
plt.setp(markers, color=sd.PLT[1], ms=5)
axf.axvline(fn, color="#9aa3ab", lw=1.0, ls=":")
axf.text(fn + 0.05, amp_n[1:].max() * 0.8, r"$f_n$", color="#5B6770")
axf.set_xlabel(r"frequency (Hz)"); axf.set_ylabel(r"harmonic amplitude (kN)")
axf.set_title("harmonics (FFT)")
plt.show()

Figure 9:A periodic triangle-wave force (left) and its harmonic content from the FFT of one period (right).
The triangle wave carries only odd harmonics, their amplitudes falling off as (Figure 9). Now build the response harmonic by harmonic with , and overlay the direct engine run.
t = np.arange(0, 8 * T0, dt)
# (a) Fourier superposition of harmonic responses
u_sup = np.full(t.shape, P[0].real / k) # DC term -> static
for n in range(1, len(P)):
wh = 2 * np.pi * freq[n]
b = wh / wn
Hn = 1.0 / (k * ((1 - b**2) + 1j * 2 * zeta_p * b))
u_sup += 2 * np.real(P[n] * Hn * np.exp(1j * wh * t))
# (b) direct engine run on the full periodic force
p_full = p0 * sawtooth(w0 * t, width=0.5)
_, u_dir, _, _ = sd.sdof_response(m, c_p, k, p_full, dt)
# compare over the steady-state tail
sl = slice(int(0.6 * t.size), None)
err = np.max(np.abs(u_sup[sl] - u_dir[sl])) / np.max(np.abs(u_dir[sl]))
fig, ax = plt.subplots(figsize=(7.8, 3.1))
ax.plot(t[sl], u_dir[sl] * 1000, color=sd.PLT[0], lw=2.2,
label="direct engine run")
ax.plot(t[sl], u_sup[sl] * 1000, "--", color=sd.PLT[1], lw=1.7,
label="Fourier superposition")
ax.set_xlabel(r"time $t$ (s)")
ax.set_ylabel(r"displacement $u$ (mm)")
ax.legend(loc="lower left", bbox_to_anchor=(0.0, 1.0), ncol=2)
plt.show()
print(f"max relative difference over the steady state: {100*err:.2f} %")
# Contribution of the first odd harmonics: force amplitude in, response amplitude out.
for n in (1, 3, 5):
b = n * w0 / wn
Hn = 1.0 / (k * ((1 - b**2) + 1j * 2 * zeta_p * b))
print(f"harmonic {n}: force {2*abs(P[n]):.3f} kN x R_d = {k*abs(Hn):5.2f}"
f" -> response {2000*abs(P[n]*Hn):.2f} mm")
max relative difference over the steady state: 0.87 %
harmonic 1: force 1.621 kN x R_d = 1.12 -> response 9.11 mm
harmonic 3: force 0.180 kN x R_d = 10.00 -> response 9.01 mm
harmonic 5: force 0.065 kN x R_d = 0.56 -> response 0.18 mm

max relative difference over the steady state: 0.87 %
harmonic 1: force 1.621 kN x R_d = 1.12 -> response 9.11 mm
harmonic 3: force 0.180 kN x R_d = 10.00 -> response 9.01 mm
harmonic 5: force 0.065 kN x R_d = 0.56 -> response 0.18 mm
Figure 10:Steady-state response to the triangle-wave force: the dashed curve sums the individual harmonic responses () from the FFT, and the solid curve is a single direct run of the engine on the full load.
The two routes agree to within 1 %, and the Fourier picture is more than a computational trick, because it explains the response. Any harmonic of the load that lands near is amplified by . Here , so the third harmonic falls exactly on resonance: its force is only one ninth of the fundamental’s (0.180 against 1.621 kN), but lifts its response to 9.01 mm, as large as the 9.11 mm of the fundamental. That is why the response above mixes two frequencies of equal strength, a slow swing at the load period with a fast ripple at the natural period, and why a slow periodic load can shake a structure hard. This is the bridge to the frequency-domain view used throughout signal-based structural health monitoring, and the complementary, time-domain superposition (Duhamel’s integral, for loads that do not repeat) is the subject of Chapter 5.
8Summary¶
A harmonic force produces a transient (at the natural frequency, killed by damping) plus a lasting steady state at the drive frequency (Figure 1, Figure 2).
The steady amplitude is with the deformation response factor ; sweeping the engine over reproduces the resonance curves exactly (Figure 3, Figure 4).
At resonance () the amplitude is limited only by damping, , and it builds up over many cycles (Figure 5): about seven at 5 % damping to reach 90 % of the steady value (Example 2).
The frequency-response function packages magnitude and phase into a Bode plot (Figure 6); the half-power (-3 dB) bandwidth gives from a measured peak alone.
Light damping plus a near-resonant drive gives beating (Figure 7); base motion is governed by the transmissibility (12), with isolation only beyond (Figure 8).
A periodic non-harmonic load is a Fourier sum of harmonics; superposing each harmonic’s response through matches a direct engine run (Figure 10), so one engine covers every periodic load.
Every load in this chapter repeated forever, and Chapter 5 turns to loads that do not: a single impulse, a step, a short pulse, or a measured force history with no pattern at all. The same engine handles them unchanged, and the impulse response it produces there is the time-domain twin of the frequency-response function met here. Where this chapter added harmonics, the next one adds impulses, and the two views describe the same linear oscillator.