A real building has thousands of degrees of freedom. Yet its response to an earthquake, to wind, or to a passing crowd is dominated, more often than not, by a single swaying motion. Strip that motion down to its essentials and you are left with the single-degree-of-freedom (SDOF) oscillator: a mass, a spring, and a dashpot, which together form the atom of structural dynamics. Understand this one oscillator deeply and everything else in the book is repetition at larger scale.
This chapter does three things: it shows where the SDOF model comes from, it writes down the one equation that governs it, and it ends by running that equation so you can watch a structure ring. Along the way it turns the three physical constants of the model into the two numbers, the natural frequency and the damping ratio, in which the rest of the book is written. The short simulation at the end only previews the solver; Chapter 3 builds it from scratch.
1From a structure to three numbers¶
Figure 1:A one-story frame swaying sideways (left) and its idealization as a mass-spring-dashpot oscillator (right).
When the one-story frame in Figure 1 sways, nearly all the moving weight is concentrated at the roof, and the only motion that matters is the sideways drift of that roof. Three physical properties capture the entire dynamic personality of the frame:
Mass , the inertia. It is the part of the structure that resists acceleration; give it a shove and decides how hard it is to get moving. For our frame it is essentially the roof’s mass (in tonnes).
Stiffness , the elastic restoring force per unit drift. Push the roof sideways by and the columns push back with a force . A stiff, short-column frame has a large ; a tall, slender one has a small .
Damping , the energy leak. Real structures lose a little energy every cycle to friction in connections, micro-cracking, and the surrounding air. The dashpot models that loss with a force proportional to velocity, .
Everything that follows is built from these three numbers. The first two come straight from the drawings: from the weight that moves with the roof, and from the bending stiffness of the columns, as the worked example at the end of this chapter shows. Damping cannot be computed that way, so it is measured on similar structures and quoted as a damping ratio, the number that Chapter 2 learns to read off a vibration record.
2The equation of motion¶
To find how evolves, we balance the forces on the mass. It is easiest to draw the free body of the mass and use d’Alembert’s idea: treat the inertia as a force that, like the others, resists the motion.
Figure 2:Free body of the mass: the applied force drives the motion to the right; the inertia , the damping , and the elastic force all resist it.
Setting the applied force equal to the sum of the three resistances in Figure 2 gives the equation of motion of the SDOF system:
Read it as a sentence, inertia plus damping plus stiffness equals the applied force, and three things stand out right away.
The overdots mean time derivatives: is the velocity and is the acceleration.
It is a single, linear, second-order differential equation. “Linear” because , , are constants: the spring force is exactly proportional to displacement. We keep this assumption until Chapter 7, where the structure is allowed to yield.
The left-hand side belongs to the structure; the right-hand side, , belongs to the loading. This split is the whole strategy of the book.
3When the ground moves¶
An earthquake does not push on the roof; it shakes the base, and the structure must keep up as the ground accelerates by .
Figure 3:Base excitation: the ground accelerates by and the mass displaces by relative to its base.
As Figure 3 shows, if is the displacement of the mass relative to the ground, the spring and dashpot still feel only that relative motion, so they contribute and exactly as before. This relative drift is also the quantity that bends the columns, which is why it is the response we track. The inertia, however, responds to the total acceleration . Balancing forces and moving the known ground term to the right gives
This is the same equation as (1) with an effective force . The minus sign and the factor say something physical: heavier structures attract larger earthquake forces from the same shaking. But mathematically nothing new has happened: we still have one linear oscillator driven by some right-hand side.
▶ Interactive: a shaking ground and the force that replaces it
The same frame is shaken in two ways. On the left the ground moves: it swings through four cycles of period inside a smooth envelope that starts and ends at rest, peaking at 20 mm, and the frame is drawn where it really is, so the roof travels the total displacement measured from a fixed point. On the right the base stays put and the roof is pushed instead by the effective force , whose arrow always points against the ground acceleration arrow on the left. The frame is the light one whose free vibration closes this chapter (Figure 5), with = 1.26 s. In the plot below, the open markers are the drift of the left frame and the blue line is the drift of the right frame, each computed from its own equation of motion. The slider sets the ground period from to ; it starts at .
The markers sit on the line from start to finish: the moving ground and the effective force produce the same drift, which is exactly what (2) states. How large that drift becomes depends on the ground period. Shaken at its own period, the frame drifts up to 81.9 mm, more than four times the ground motion, and keeps ringing after the ground stops. Shaken slowly (), it rides with the ground: the roof travels 21.4 mm and the drift never exceeds 1.4 mm. Shaken fast (), the roof hardly moves (1.5 mm), so the drift of 21.3 mm is the ground sliding back and forth beneath it, even though now peaks at 16.50 kN against 1.03 kN at .
4One equation, every load¶
That is the punchline of this short chapter, and the plan for the rest of the book. Whether the right-hand side is a harmonic machine force, a blast pulse, a gust of wind, or an earthquake, the left-hand side never changes. A classical textbook derives a different closed-form solution for every kind of load. We instead build one numerical solver for (1) (Chapter 3) and then meet every loading simply by handing it a different and looking at the plot.
5Three numbers, three natural properties¶
Before we run anything, one small piece of algebra pays for itself many times over. It turns the three structural numbers into just two that carry direct physical meaning, which is why the whole subject is written in terms of and instead of and . Figure 4 shows the outcome before the algebra explains it. The lower oscillator has four times the mass, stiffness, and damping of the upper one, yet released from the same drift the two trace one and the same curve, its open markers sitting on the line. The time between peaks depends only on the ratio , and the shrinking envelope depends only on .
Figure 4:Two oscillators with different , , and but equal ratios and (left) and the single free-decay curve they both follow (right).
To see why, take the equation of motion (1) and divide every term by the mass :
Physically nothing has changed (it is the same equation), but look at what now multiplies and . The motion no longer depends on , , and separately; it depends only on the two ratios and . Two structures with the same and therefore ring in exactly the same way, however heavy or stiff each one happens to be, which is what the two oscillators of Figure 4 showed. Those two ratios, not the original three numbers, are what truly govern the response, so each earns a name.
The first ratio, , has units of , so its square root is a frequency, the natural circular frequency
It is not merely a convenient grouping: it is the rate at which the structure naturally swings. Set and in (3) (an undamped frame, struck once and left alone) and you are left with . A motion whose acceleration is always times its displacement is a sinusoid: try and you get , which forces . So a struck, frictionless frame swings back and forth at exactly . That is the physical meaning behind the symbol. From it we read off the natural period (seconds per cycle) and natural frequency (cycles per second):
The second ratio, , carries units of , the same as , so the natural thing is to measure it in units of . Writing defines the dimensionless damping ratio
The factor of 2 is chosen so that falls exactly on the boundary between a structure that still oscillates and one so heavily damped it merely creeps back without ever crossing zero (Chapter 2 shows why that boundary sits at ). The damping coefficient at that boundary, , is the critical damping, and is simply the fraction of it that a real structure carries. A bare steel or concrete frame typically has between 0.02 and 0.05 (2 to 5 %), so is small and the structure rings many times before it settles. Rearranging gives the handy recipe that we use below to set the dashpot from a target .
Substituting and back into (3) gives the standard form of the equation of motion, the form you will meet again and again for the rest of the book:
This is why we speak of and rather than and : they are the two numbers the structure’s motion actually responds to, and each carries a meaning you can picture: how fast it swings, and how quickly that swinging dies away. Exactly how the rest of the story (the damped frequency and the decaying envelope) falls out of solving this equation is the subject of Chapter 2; here we just needed the definitions. Example 1 puts them to work on a real frame, starting from its drawings rather than from given values of and .
The next cell repeats Example 1 with sd.natural, the helper that
returns all the natural properties of an oscillator at once.
# The frame of the worked example, from its drawings. Units: t, kN, m, s.
W = 5.0 * 6.0 * 8.0 # roof dead load, 5 kPa on 6 m x 8 m (kN)
EI = 200e6 * 104e-6 # one column: E (kPa) times I (m^4) (kN*m^2)
h = 4.0 # column height (m)
m_ex = W / 9.81 # roof mass (t)
k_ex = 4 * 12 * EI / h**3 # four fixed-fixed columns (kN/m)
c_ex = 2 * 0.05 * np.sqrt(k_ex * m_ex) # 5% damping (kN*s/m)
ex = sd.natural(m_ex, c_ex, k_ex)
print(f"m = {m_ex:.2f} t k = {k_ex:,.0f} kN/m")
print(f"omega_n = {ex['wn']:.2f} rad/s T_n = {ex['Tn']:.3f} s f_n = {ex['fn']:.2f} Hz")
print(f"c_cr = {ex['c_cr']:.0f} kN*s/m c = {c_ex:.1f} kN*s/m")m = 24.46 t k = 15,600 kN/m
omega_n = 25.25 rad/s T_n = 0.249 s f_n = 4.02 Hz
c_cr = 1236 kN*s/m c = 61.8 kN*s/m
The printed values match the hand calculation to every digit shown, so the helper and the definitions (4) to (6) agree.
6A first look: how a structure rings¶
Here is the entire workflow in a few lines. We give our frame round-number
properties, nudge the roof, release it, and plot the free vibration. This frame
is deliberately softer than the one in Example 1, with a light
2 t roof on flexible columns, so its period is about five times longer and each
swing is slow enough to follow on a plot. The solver sd.sdof_response is the
engine we will build from scratch in Chapter 3; for now just enjoy how little
code real dynamic analysis takes.
# The book's running example: a light, flexible one-story frame. Units: t, kN, m, s.
m = 2.0 # roof mass (t)
k = 50.0 # lateral stiffness of the columns (kN/m)
zeta = 0.05 # damping ratio (5%, typical bare frame)
c = 2 * zeta * np.sqrt(k * m) # damping coefficient (kN*s/m)
props = sd.natural(m, c, k)
print(f"natural period Tn = {props['Tn']:.3f} s")
print(f"natural frequency fn = {props['fn']:.3f} Hz (omega_n = {props['wn']:.2f} rad/s)")natural period Tn = 1.257 s
natural frequency fn = 0.796 Hz (omega_n = 5.00 rad/s)
# Nudge the roof 20 mm and let it go (free vibration: p(t) = 0).
dt = 0.005
t = np.arange(0, 6.0, dt)
t, u, v, a = sd.sdof_response(m, c, k, np.zeros(t.size), dt, u0=0.020, v0=0.0)
fig, ax = plt.subplots(figsize=(7.4, 3.0))
ax.plot(t, u * 1000, color=sd.PLT[0])
ax.axhline(0, color="#9aa3ab", lw=1.0)
ax.set_xlabel(r"time $t$ (s)")
ax.set_ylabel(r"roof drift $u$ (mm)")
plt.show()

Figure 5:Free vibration of the idealized frame after a 20 mm initial nudge.
The plot in Figure 5 already contains most of free vibration: a clean oscillation that repeats about every 1.26 s, the natural period printed above, inside an envelope that decays because of the 5 % damping. Chapter 2 takes this picture apart: what sets the period, what sets the decay rate, and how to read the damping straight off a measured trace.
▶ Interactive: how the stiffness sets the period
Two copies of the frame are nudged 20 mm and released together, and at 1× they sway in real time. The gray frame is the one of Figure 5, with = 50 kN/m. The blue frame has the same 2 t roof and 5 % damping, but the slider sets its column stiffness anywhere from 12.5 to 200 kN/m (it starts at 200 kN/m). The right panel traces both roof drifts with their dashed decay envelopes, and the note reports , , and the number of cycles each frame completes in six seconds.
Quadrupling the stiffness halves the period, because varies as : at 200 kN/m the frame completes almost ten cycles in six seconds, against fewer than five at 50 kN/m. The envelope of the stiffer frame also collapses sooner in time even though every curve has the same , since the decay rate grows with .
7Summary¶
A swaying structure is idealized as a single mass on a spring and a dashpot (Figure 1).
Balancing inertia, damping, stiffness, and load gives one linear equation of motion, (1); a moving base just replaces the right-hand side with , (2).
Dividing by shows that the response depends only on and (Figure 4), which define the natural frequency , the period , and the damping ratio ; Example 1 evaluates them for a real frame.
The structure lives on the left-hand side and the loading on the right, so a single solver can answer every kind of load.
Chapter 2 starts with the simplest load of all, none.
The frame is displaced, released, and left to ring, and the free-decay curve of
Figure 5 is taken apart into its period, its envelope, and
the damping ratio hidden in its peaks. No new tool is needed for that: the same
sd.sdof_response call, given and a nonzero starting drift, produces
all of its free-decay curves.