Save resource to class

Loading your classrooms…

Sign in to save

Bookmark this page so you can find it later.

LivePhysics staff accounts use their usual sign-in provider below.

Sign in to save

Bookmark this page so you can find it later.

LivePhysics staff accounts use their usual sign-in provider below.

Report an Error

Reported page · Tool

Spring-Mass-Damper System

/tools/spring-mass-damper/

This helps us reproduce what you saw. Clear the link to leave it out.

or drop them here

Up to 3 images or PDFs, 5 MB per file. 0 of 3 attached.

Spring-Mass-Damper System

Analyze forced oscillations with viscous damping. Sweep the driving frequency to trace the full resonance curve, watch the transient decay, and compare underdamped, critically damped, and overdamped behavior. All computation runs client-side.

x = 0.1000 mstart position, before releaseUnderdamped, ζ = 0.100

Start position 0.10 m from the rest line.

rest line−0.5−0.2500.250.5mPosition over time0 s2.5 s5 sspring kdamper cFm

Drag the block sideways to choose where it starts, then select Release. The pen draws its position as time runs down the trace.

System
Mass m (kg)
Stiffness k (N/m)
Damping c (N·s/m)
Forcing
Force amplitude F₀ (N)
Driving frequency ω (rad/s)
Start
Initial displacement x₀ (m)
Initial velocity v₀ (m/s)
Presets

Results

1x¨+2x˙+100x=5cos⁡(8.0t)1\ddot{x} + 2\dot{x} + 100x = 5\cos(8.0t)
Underdamped (ζ = 0.100)
Natural Frequency ω₀10.000 rad/s
Natural Frequency f₀1.592 Hz
Damping Ratio ζ0.1000
Damped Frequency ωd9.950 rad/s
Resonance Frequency ωᵣ9.899 rad/s
Quality Factor Q5.000
Steady-State Amplitude0.1269 m
Phase Lag φ24.0 °
Damped Period0.631 s
Show formulas
ω0=km=1001=10.000 rad/s\omega_0 = \sqrt{\frac{k}{m}} = \sqrt{\frac{100}{1}} = 10.000\,\text{rad/s}
ζ=c2mk=221⋅100=0.1000\zeta = \frac{c}{2\sqrt{mk}} = \frac{2}{2\sqrt{1\cdot100}} = 0.1000
ωr=ω01−2ζ2=9.899 rad/s\omega_r = \omega_0\sqrt{1-2\zeta^2} = 9.899\,\text{rad/s}
A=F0(k−mω2)2+(cω)2=0.1269 mA = \frac{F_0}{\sqrt{(k-m\omega^2)^2+(c\omega)^2}} = 0.1269\,\text{m}

Resonance Curve (Amplitude vs Driving Frequency)

Orange dashed line marks natural frequency ω₀. Red dot is the current operating point.

Displacement vs Time

Red dashed lines show steady-state amplitude envelope. Transient decays over time.

Open this tool with your own values

This tool reads its inputs from the page address, so a link can open it with the values from a problem already entered. Include every value the problem needs, because one left out keeps the tool's default. Use plain numbers in the stated units.

m
mass in kg
k
spring stiffness in N/m
c
damping coefficient in N·s/m
F0
driving force amplitude in newtons, 0 for none
omega
driving frequency in rad/s
x0
initial displacement in m
v0
initial velocity in m/s

Example link

Reference Guide

Damped Oscillations

The equation of motion for a spring-mass-damper system is

mx¨+cx˙+kx=0m\ddot{x} + c\dot{x} + kx = 0

The damping ratio ζ=c2mk\zeta = \frac{c}{2\sqrt{mk}} governs behavior. When ζ<1\zeta < 1 the system is underdamped and oscillates with an exponentially decaying envelope. When ζ=1\zeta = 1 it is critically damped and returns to rest fastest without overshooting. When ζ>1\zeta > 1 it is overdamped.

The damped natural frequency is ωd=ω01−ζ2\omega_d = \omega_0\sqrt{1-\zeta^2}.

Forced Vibrations

With a harmonic driving force the equation becomes

mx¨+cx˙+kx=F0cos⁡(ωt)m\ddot{x} + c\dot{x} + kx = F_0\cos(\omega t)

The steady-state amplitude is

A=F0(k−mω2)2+(cω)2A = \frac{F_0}{\sqrt{(k-m\omega^2)^2 + (c\omega)^2}}

and the phase lag of the response behind the force is φ=arctan⁡ ⁣(cωk−mω2)\varphi = \arctan\!\left(\frac{c\omega}{k - m\omega^2}\right). At low frequencies the mass follows the force in phase; at high frequencies the mass barely moves and lags by π\pi rad.

Resonance

Amplitude peaks at the resonance frequency

ωr=ω01−2ζ2\omega_r = \omega_0\sqrt{1-2\zeta^2}

which is slightly below the natural frequency ω0=k/m\omega_0 = \sqrt{k/m}. For lightly damped systems (ζ≪1)(\zeta \ll 1), ωr≈ω0\omega_r \approx \omega_0 and the peak amplitude approaches F0/(cω0)F_0/(c\omega_0). When ζ≥1/2\zeta \ge 1/\sqrt{2}, the resonance peak disappears and the amplitude decreases monotonically from DC.

At resonance the phase lag is exactly φ=π/2\varphi = \pi/2 (90 degrees).

Quality Factor

The quality factor Q measures how lightly damped a resonator is

Q=mkc=ω02ζQ = \frac{\sqrt{mk}}{c} = \frac{\omega_0}{2\zeta}

A high Q means a sharp, tall resonance peak with slow energy decay. A low Q means a broad, short peak. The bandwidth at the half-power points is Δω=ω0/Q\Delta\omega = \omega_0/Q.

  • Car suspension targets Q≈0.5Q \approx 0.5 to suppress road bumps without oscillating.
  • Tuned mass dampers in tall buildings use ζ≈0.05−0.1\zeta \approx 0.05-0.1 to absorb earthquake and wind energy.
  • Musical instruments and sensors can have Q>100Q > 100.

Related Content