Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Damping Regime
under-damped
x(0) = released from rest at x0
Damped angular frequency w_d 4.898979 rad/s
Natural period T0 1.256637 s
Plotted time span (4 periods) 5.026548 s
Time step dt 0.100531 s
x at first step 0.884163
Time t (s) Displacement x(t)
0 1
0.100531 0.884163
0.201062 0.591278
0.301593 0.219229
0.402124 -0.134186
0.502655 -0.393158
0.603186 -0.516853
0.703717 -0.502188
0.804248 -0.377651
0.904779 -0.191163
1.00531 0.004199
1.105841 0.163038
1.206372 0.256408
1.306903 0.275309
1.407434 0.229069
1.507964 0.139915
1.608495 0.035644
1.709026 -0.057623
1.809557 -0.120989
1.910088 -0.1457
2.010619 -0.133257
2.11115 -0.093217
2.211681 -0.039579
2.312212 0.013159
2.412743 0.053343
2.513274 0.074253
2.613805 0.074714
2.714336 0.058347
2.814867 0.031886
2.915398 0.003098
3.015929 -0.021141
3.11646 -0.036227
3.216991 -0.040447
3.317522 -0.034833
3.418053 -0.022436
3.518584 -0.007269
3.619115 0.006765
3.719646 0.016726
3.820177 0.021125
3.920708 0.019988
4.021239 0.014579
4.12177 0.006888
4.222301 -0.000946
4.322831 -0.007141
4.423362 -0.010608
4.523893 -0.011065
4.624424 -0.00896
4.724955 -0.00523
4.825486 -0.001007
4.926017 0.002672
5.026548 0.005082

What this calculator does

This tool computes the displacement \(x(t)\) of a one-dimensional damped harmonic oscillator that is released from rest at an initial displacement \(x_0\). It solves the standard mass-normalized equation of motion and tabulates the position over four natural periods, so you can see exactly how the system settles toward equilibrium. It also classifies the behavior as under-damped, critically damped, or over-damped.

Three damped oscillation curves showing under-, critically, and over-damped decay
The three damping regimes: underdamped oscillates and decays, critically damped returns fastest without overshoot, overdamped returns slowly.

The governing equation

The motion obeys the linear ordinary differential equation $$\frac{d^2x}{dt^2} + 2k\frac{dx}{dt} + \omega_0^2 x = 0,$$ where \(\omega_0\) is the undamped angular frequency and \(k\) is the resistance (damping) coefficient (both in units of \(1/s\)). With the initial conditions \(x(0) = x_0\) and \(\frac{dx}{dt}(0) = 0\), the closed-form solution depends on how \(k\) compares with \(\omega_0\).

When \(k < \omega_0\) the system is under-damped and oscillates with a reduced damped angular frequency $$\omega_d = \sqrt{\omega_0^2 - k^2},$$ the amplitude decaying as \(e^{-kt}\). When \(k = \omega_0\) the system is critically damped and returns to rest as fast as possible without oscillating: $$x(t) = x_0\left(1 + \omega_0\, t\right) e^{-\omega_0\, t}.$$ When \(k > \omega_0\) the system is over-damped and creeps back slowly with no oscillation.

Mass-spring-damper system diagram
Physical model: a mass on a spring with a damper, governed by the equation of motion.

How to use it

Enter the undamped angular frequency \(\omega_0\) (must be greater than zero), the damping coefficient \(k\) (zero or more, where \(k = 0\) gives pure undamped motion), the initial displacement \(x_0\), and the number of time divisions for the table. The natural period is \(T_0 = 2\pi/\omega_0\); the table spans \(4\,T_0\) in equal steps of \(dt = \text{timeSpan}/\text{divisions}\), giving \(\text{divisions}+1\) rows.

Worked example

For \(\omega_0 = 5\), \(k = 1\), \(x_0 = 1\) and 50 divisions the regime is under-damped with \(\omega_d = \sqrt{25 - 1} = 4.89898\) rad/s. The natural period is \(1.256637\) s, the span is \(5.026548\) s and \(dt = 0.100531\) s. At \(t = 0\) the displacement is 1; at the first step \(t = 0.100531\) s it is about \(0.884153\).

FAQ

What does the damping coefficient k represent? It is the mass-normalized half-damping term; the resistive force per unit mass equals \(2k\) times the velocity.

What if k equals w0 exactly? The under- and over-damped forms have a removable singularity there, so the tool uses the critical-damping formula whenever \(k\) is within a tiny tolerance of \(\omega_0\).

Why exactly four periods? Four natural periods is long enough to show the full decay envelope while keeping the table compact and readable.

Last updated: