Separate buildup from steady state.
Use the lightly damped preset and compare 8-second and 24-second records. Keep the analytical gain in view as the transient changes.

XLVII / Experiments
Change a condition, inspect what happens, and keep the result. Six experiments connect an equation with a visible outcome, a numerical record, and questions you can pursue.
Forcing, damping, and response
A mass attached to a spring begins at rest and feels a repeating force. Its displacement depends on the forcing frequency, the spring’s natural frequency, and the damping. Watch the transient response build, then compare it with the analytical steady-state gain.
Analytical displacement / static displacement.
Displacement lags the applied force.
Measured from this finite simulated record.
16 seconds, with a 1 Hz natural frequency.
| Time (s) | Displacement / static | Velocity (s⁻¹) | Normalized force |
|---|---|---|---|
| 0.00 | 0.0000 | 0.0000 | 1.0000 |
| 2.00 | 0.0842 | 20.3451 | 1.0000 |
| 4.00 | 0.0371 | 24.8902 | 1.0000 |
| 6.00 | 0.0122 | 25.8972 | 1.0000 |
| 8.00 | 0.0036 | 26.1185 | 1.0000 |
| 10.00 | 0.0010 | 26.1667 | 1.0000 |
| 12.00 | 0.0003 | 26.1771 | 1.0000 |
| 14.00 | 0.0001 | 26.1793 | 1.0000 |
| 16.00 | 0.0000 | 26.1798 | 1.0000 |
The JSON includes parameters, model assumptions, sources, and full results. The CSV contains time, normalized displacement, normalized velocity, and normalized driving force.
Method
Integrate the normalized mass–spring equation with fourth-order Runge–Kutta steps of 1/240 second. The plotted trace keeps 60 samples per second. Separately calculate the analytical steady-state gain and phase for a continuously driven linear system.
u″ + 2ζω₀u′ + ω₀²u = ω₀² cos(ωt); gain = 1 / √[(1 − r²)² + (2ζr)²], where r = ω/ω₀.
Use the lightly damped preset and compare 8-second and 24-second records. Keep the analytical gain in view as the transient changes.
At damping 0.12, move the frequency ratio around 1. Use the gain curve to inspect how the maximum shifts with damping.
Compare ratios of 0.5 and 1.8. Describe where the displacement peaks occur relative to the normalized force.
Computational physics notes develop the driven equation, damping behavior, and analytical frequency response.
Compare a finite driven motion with the response that persists after transients decay.
A damped oscillator starts at rest and is driven sinusoidally at its natural frequency of 1 hertz. The damping ratio is 0.12.
Cream shows normalized displacement and orange shows the normalized applied force. The transient grows toward a periodic response.
The analytical steady-state gain is about 4.17. The displayed finite trajectory comes from fourth-order Runge-Kutta integration and may retain a transient.
Method. Integrate the normalized mass–spring equation with fourth-order Runge–Kutta steps of 1/240 second. The plotted trace keeps 60 samples per second. Separately calculate the analytical steady-state gain and phase for a continuously driven linear system.
These dossiers explain how this experiment relates to a larger question, including the observation or comparison that the model leaves unresolved.