← Visualization Hub · Step 6
Initial-Value Problem Explorer — Mass–Spring–Damper
Governing Differential Equation
$$m\,\ddot{x} + c\,\dot{x} + k\,x = 0,\qquad x(0)=x_0,\quad \dot{x}(0)=v_0$$
$$\Longleftrightarrow\qquad
\begin{bmatrix}\dot{x}\\[2pt]\dot{v}\end{bmatrix} =
\begin{bmatrix}0 & 1\\[2pt] -k/m & -c/m\end{bmatrix}
\begin{bmatrix}x\\[2pt] v\end{bmatrix},\qquad
\begin{bmatrix}x(0)\\[2pt] v(0)\end{bmatrix}=\begin{bmatrix}x_0\\[2pt] v_0\end{bmatrix}$$
System: \(m\ddot{x} + c\dot{x} + kx = 0\). The direction field shows where the
state is "pushed" everywhere; the solution curve is the one path the robot actually takes
from your initial condition. Drag the white dot to set \((x_0, v_0)\), or drag the mass block itself.
Parameters (SI units)
Damping regime
—
Display
Solution family
Show RK4 steps
Field arrows
Presets
Undamped
Underdamped
Critical
Overdamped
Read it like a control engineer: the eigenvalues are the poles of the open-loop plant.
Negative real parts \(\Rightarrow\) the robot settles (stable). Imaginary parts \(\Rightarrow\) it oscillates.
More damping (larger \(c\)) pushes the poles deeper into the left half-plane and kills the overshoot.
Direction field (where the state is pushed)
Your solution (the IVP response)
Solution family (other ICs)