Chuyển đến nội dung

Bài 14 · Second-order Linear ODEs

Oscillators, Springs and Resonance

Model spring-mass systems with m y'' + c y' + k y = F(t): free vibrations, damping ratio, forced response, beats and resonance, with Python simulations and checks.

Everything in chapter 3 comes together in the spring-mass-damper: a mass m on a spring of stiffness k with a damper (friction) of coefficient c, pushed by an external force F(t). Newton's second law gives

m*y'' + c*y' + k*y = F(t),

where y is displacement from rest. The same equation describes an RLC circuit (L*q'' + R*q' + q/C = E(t)), a pendulum at small angles, a building in an earthquake and a mechanical watch. Learning it once teaches you all of them.

Free undamped motion

With c = 0 and F = 0: m*y'' + k*y = 0. The characteristic roots are ±i*w0 with natural frequency w0 = sqrt(k/m) (radians per second), so

y = C1*cos(w0*t) + C2*sin(w0*t) = A*cos(w0*t - phi).

The mass oscillates forever with period T = 2*pi/w0 and constant amplitude A. Note that the frequency depends only on m and k, not on the amplitude: stiffer springs or lighter masses oscillate faster.

Python Natural frequency and period

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Free damped motion

With c > 0, divide by m to write y'' + 2*zeta*w0*y' + w0**2*y = 0, where the damping ratio is zeta = c/(2*sqrt(m*k)). The discriminant analysis from complex and repeated roots becomes:

  • zeta < 1: under-damped, y = e**(-zeta*w0*t)*(C1*cos(wd*t) + C2*sin(wd*t)), with damped frequency wd = w0*sqrt(1 - zeta**2);
  • zeta = 1: critically damped;
  • zeta > 1: over-damped.

A useful measurement: the logarithmic decrement delta = ln(y(t)/y(t + T_d)) = 2*pi*zeta/sqrt(1 - zeta**2) lets you estimate damping from two successive peaks.

Python Measure damping from peaks

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Forced vibration

Now let F(t) = F0*cos(w*t). By the undetermined coefficients method (for c > 0, no overlap with the decaying y_h), the long-term response is a sinusoid at the driving frequency:

y_ss = X*cos(w*t - delta), with amplitude X = F0 / sqrt((k - m*w**2)**2 + (c*w)**2).

The homogeneous part decays (the transient); the steady state remains. The amplitude X depends on frequency, and when c is small it peaks sharply near w ≈ w0. That peak is resonance: a small periodic push at the right frequency builds up a large oscillation (a child on a swing).

Python Amplitude versus driving frequency

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Light damping gives a tall narrow peak near w = 5, heavy damping a low broad bump. The peak height scales as 1/c.

Undamped resonance and beats

With c = 0 and w = w0, the forcing overlaps the homogeneous solution and the resonance rule gives y_p = (F0/(2*m*w0))*t*sin(w0*t): an oscillation whose amplitude grows linearly forever (in the linear model; real structures break or the model stops applying). Famous failures such as marching soldiers on bridges are traced to this effect.

Slightly off resonance, w close to w0, the solution with zero initial conditions is y = (2*F0/(m*(w0**2 - w**2)))*sin(((w0 - w)/2)*t)*sin(((w0 + w)/2)*t): a fast oscillation with a slowly pulsing envelope called beats, which musicians hear when tuning two strings.

Python Resonance and beats

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Design consequences

  • Keep driving frequencies away from w0, or add damping.
  • Tuned mass dampers in tall buildings add a second oscillator that absorbs energy near the building's natural frequency.
  • Filters and radio tuners use resonance: an RLC circuit selects the station whose frequency matches 1/sqrt(L*C).

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. The natural frequency of an undamped spring-mass system is

    The characteristic equation m r**2 + k = 0 has roots ± i sqrt(k/m).
  2. 2. A system with damping ratio zeta = 0.3 is

    zeta < 1 means complex roots, so the motion oscillates with decaying amplitude.
  3. 3. What happens at undamped resonance (c = 0, w = w0)?

    The particular solution is proportional to t sin(w0 t) in the linear model.
  4. 4. Doubling the damping constant c near resonance roughly

    At w = w0 the amplitude is F0/(c*w0), inversely proportional to c.

Summary

  • The spring-mass-damper m y'' + c y' + k y = F(t) models many physical systems.
  • Natural frequency w0 = sqrt(k/m); damping ratio zeta = c/(2 sqrt(m k)) decides under-, critical and over-damping.
  • Forced response = decaying transient + steady-state sinusoid at the driving frequency.
  • Amplitude peaks near w0 for light damping (resonance); with no damping it grows linearly.
  • Near-resonant forcing produces beats.

Next: The Laplace Transform

Theo dõi tiến độ của bạn

Tạo tài khoản miễn phí để đánh dấu bài đã học và tiếp tục từ chỗ bạn dừng lại trên mọi thiết bị.