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.

1. Single-Degree-of-Freedom Systems — Free Vibration

ISAE-SUPAERO

Solved reference notebook. See 01_SDOF_FreeVibration_Exercises.ipynb for the blanked-out version to complete yourself.

Why start with discrete systems? You have probably already met this exact mathematics in electrical engineering (the RLC circuit) or in general mechanics (Newton’s second law, or the Lagrange equations — see the advanced chapter on Lagrange’s equations).

SDOF system

A single-degree-of-freedom system with mass mm, spring constant kk, and viscous damping cc. The system undergoes a dynamic displacement x(t)x(t) measured from the static equilibrium position of the mass under the external force F(t)F(t).

In this chapter we study the free response of a system with a single degree of freedom (SDOF). It is an important topic to master, since a complicated multiple-degree-of-freedom (MDOF) system can often be treated as a collection of independent SDOF systems once we know how to decouple it (see Chapter 5).

1.1 Equation of motion

Applying Newton’s second law to the mass in the figure above, the equation of motion (EoM) is

mx¨+cx˙+kx=0(RHS = 0)m\ddot{x} + c\dot{x} + kx = 0 \qquad \text{(RHS = 0)}

subject to initial conditions x(0)=x0x(0) = x_0, x˙(0)=v0\dot{x}(0)=v_0.

Dividing by mm:

x¨+2ζωnx˙+ωn2x=0\ddot{x} + 2\zeta\omega_n \dot{x} + \omega_n^2 x = 0

where ωn=k/m\omega_n = \sqrt{k/m} is the natural angular frequency and ζ=c/(2km)\zeta = c/(2\sqrt{km}) is the damping ratio. Trying a solution x=Aestx = Ae^{st} gives the characteristic equation

s2+2ζωns+ωn2=0  ⇒  s1,2=−ζωn±ωnζ2−1s^2 + 2\zeta\omega_n s + \omega_n^2 = 0 \;\Rightarrow\; s_{1,2} = -\zeta\omega_n \pm \omega_n\sqrt{\zeta^2 - 1}

Writing δ=ζ2−1\delta = \zeta^2 - 1, three cases arise depending on its sign — but in practice, structures are almost always underdamped (ζ≪1\zeta \ll 1).

(a) Overdamped motion (ζ>1\zeta > 1)

Two distinct real roots: x(t)=Ae(−ζ+ζ2−1)ωnt+Be(−ζ−ζ2−1)ωntx(t) = Ae^{(-\zeta+\sqrt{\zeta^2-1})\omega_n t} + Be^{(-\zeta-\sqrt{\zeta^2-1})\omega_n t}. No oscillation: the damping force is so large that the spring’s restoring force cannot overcome it.

(b) Critically damped motion (ζ=1\zeta = 1)

s1=s2=−ωns_1 = s_2 = -\omega_n (repeated root). The (aperiodic) solution is x(t)=e−ωnt(A+Bt)x(t) = e^{-\omega_n t}(A + Bt) — the fastest possible return to equilibrium without oscillation.

(c) Underdamped motion (0<ζ<10 < \zeta < 1)

Complex-conjugate roots give an oscillatory, decaying solution:

x(t)=Xe−ζωntsin⁡(ωdt+ϕ),ωd=ωn1−ζ2x(t) = Xe^{-\zeta\omega_n t}\sin(\omega_d t + \phi), \qquad \omega_d = \omega_n\sqrt{1-\zeta^2}

where ωd\omega_d is the damped natural frequency, and X,ϕX,\phi are set by the initial conditions.

Damped harmonic oscillator
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import solve_ivp
import sympy as sp

plt.rcParams["figure.figsize"] = (7, 4.2)
plt.rcParams["axes.grid"] = True

1.2 The three damping regimes, side by side

We fix m=1 kgm=1\,\text{kg}, k=1 N/mk=1\,\text{N/m} (so ωn=1 rad/s\omega_n=1\,\text{rad/s}) and vary ζ\zeta to visualize the three regimes, with x0=1x_0=1, v0=0v_0=0.

def sdof_free_response(t, m, c, k, x0, v0):
    """Analytic free response of m*x'' + c*x' + k*x = 0."""
    wn = np.sqrt(k / m)
    zeta = c / (2 * np.sqrt(k * m))
    delta = zeta**2 - 1

    if zeta > 1:  # overdamped
        s1 = wn * (-zeta + np.sqrt(delta))
        s2 = wn * (-zeta - np.sqrt(delta))
        A = (v0 - s2 * x0) / (s1 - s2)
        B = x0 - A
        x = A * np.exp(s1 * t) + B * np.exp(s2 * t)
    elif np.isclose(zeta, 1.0):  # critically damped
        A = x0
        B = v0 + wn * x0
        x = np.exp(-wn * t) * (A + B * t)
    else:  # underdamped
        wd = wn * np.sqrt(1 - zeta**2)
        C = x0
        D = (v0 + zeta * wn * x0) / wd
        x = np.exp(-zeta * wn * t) * (C * np.cos(wd * t) + D * np.sin(wd * t))
    return x


m, k = 1.0, 1.0
x0, v0 = 1.0, 0.0
t = np.linspace(0, 20, 1000)
wn = np.sqrt(k / m)

fig, ax = plt.subplots()
for zeta, label in [(0.05, r"underdamped, $\zeta=0.05$"),
                     (0.3, r"underdamped, $\zeta=0.3$"),
                     (1.0, r"critically damped, $\zeta=1$"),
                     (1.8, r"overdamped, $\zeta=1.8$")]:
    c = 2 * zeta * np.sqrt(k * m)
    x = sdof_free_response(t, m, c, k, x0, v0)
    ax.plot(t, x, label=label)

ax.axhline(0, color="k", lw=0.6)
ax.set_xlabel("Time [s]")
ax.set_ylabel("x(t)")
ax.set_title("SDOF free response for the three damping regimes")
ax.legend()
plt.show()
<Figure size 700x420 with 1 Axes>

The underdamped cases oscillate and decay, the critically damped case returns to zero the fastest without overshoot, and the overdamped case creeps back slowly with no oscillation at all — exactly the three cases predicted analytically above.

1.3 Cross-check with numerical integration

Let’s verify the analytic underdamped solution against a numerical integration of the ODE (state-space form is introduced properly in Chapter 4).

def sdof_ode(t, y, m, c, k):
    x, v = y
    return [v, -(c * v + k * x) / m]


zeta = 0.1
c = 2 * zeta * np.sqrt(k * m)
sol = solve_ivp(sdof_ode, [0, 20], [x0, v0], args=(m, c, k), t_eval=t, rtol=1e-9, atol=1e-12)

x_analytic = sdof_free_response(t, m, c, k, x0, v0)

fig, ax = plt.subplots()
ax.plot(t, x_analytic, label="Analytic")
ax.plot(t, sol.y[0], "--", label="solve_ivp (numerical)")
ax.set_xlabel("Time [s]")
ax.set_ylabel("x(t)")
ax.set_title(rf"Analytic vs numerical, $\zeta={zeta}$")
ax.legend()
plt.show()

print("Max abs difference:", np.max(np.abs(x_analytic - sol.y[0])))
<Figure size 700x420 with 1 Axes>
Max abs difference: 4.866817504556309e-10

1.4 Symbolic verification (the “Ex0” review)

The original notes ask you to review Ex0.mlx, a MATLAB Symbolic Math Toolbox script that solves the ODE symbolically. Here is the Python / sympy equivalent — a good way to double check any hand derivation.

t_sym, m_s, c_s, k_s, x0_s, v0_s = sp.symbols("t m c k x0 v0", positive=False)
x = sp.Function("x")

ode = sp.Eq(m_s * x(t_sym).diff(t_sym, 2) + c_s * x(t_sym).diff(t_sym) + k_s * x(t_sym), 0)
sol_sym = sp.dsolve(ode, x(t_sym), ics={x(0): x0_s, x(t_sym).diff(t_sym).subs(t_sym, 0): v0_s})
sol_sym
Loading...

Substituting numeric values for m,c,k,x0,v0m, c, k, x_0, v_0 recovers the underdamped/critically damped/overdamped closed forms above (sympy expresses them with complex exponentials that simplify to sines/cosines when ζ<1\zeta<1).

1.5 Homework 1 (blue box)

  1. Review the symbolic computation above (done!).

  2. Describe and compute the logarithmic decrement of free vibration.

The logarithmic decrement δlog⁡\delta_{\log} measures how fast an underdamped oscillation decays, using the ratio of two successive amplitude peaks one period Td=2π/ωdT_d = 2\pi/\omega_d apart:

δlog⁡=ln⁡x(t1)x(t1+Td)=ζωnTd=2πζ1−ζ2\delta_{\log} = \ln\frac{x(t_1)}{x(t_1+T_d)} = \zeta\omega_n T_d = \frac{2\pi\zeta}{\sqrt{1-\zeta^2}}

which can be inverted to estimate ζ\zeta from a measured decay:

ζ=δlog⁡4π2+δlog⁡2\zeta = \frac{\delta_{\log}}{\sqrt{4\pi^2 + \delta_{\log}^2}}

This is exactly how you would extract a modal damping ratio from an experimental free-decay signal (e.g. a hammer test).

zeta_true = 0.05
c = 2 * zeta_true * np.sqrt(k * m)
wd = wn * np.sqrt(1 - zeta_true**2)
Td = 2 * np.pi / wd

t_fine = np.linspace(0, 20, 20000)
x_fine = sdof_free_response(t_fine, m, c, k, x0=1.0, v0=0.0)

# find the peak near t=0 and one period later
i1 = np.argmax(x_fine[t_fine < Td])
t1 = t_fine[i1]
i2 = np.argmin(np.abs(t_fine - (t1 + Td)))

delta_log = np.log(x_fine[i1] / x_fine[i2])
zeta_est = delta_log / np.sqrt(4 * np.pi**2 + delta_log**2)

print(f"True zeta        = {zeta_true:.4f}")
print(f"Log decrement    = {delta_log:.4f}")
print(f"Estimated zeta   = {zeta_est:.4f}")

fig, ax = plt.subplots()
ax.plot(t_fine, x_fine)
ax.plot([t1, t1 + Td], [x_fine[i1], x_fine[i2]], "ro", label="successive peaks, 1 period apart")
ax.set_xlim(0, 5 * Td)
ax.set_xlabel("Time [s]")
ax.set_ylabel("x(t)")
ax.set_title("Logarithmic decrement from two successive peaks")
ax.legend()
plt.show()
True zeta        = 0.0500
Log decrement    = 0.3146
Estimated zeta   = 0.0500
<Figure size 700x420 with 1 Axes>

The estimated ζ\zeta matches the true value to numerical precision — this is the standard experimental technique to identify damping from a measured free-decay time history.