Spring-Mass Motion Equations
Modeling Spring–Mass Motion with Differential Equations
The spring–mass model
A spring–mass system can be modeled by tracking the mass’s position over time. Let x(t) denote its displacement from its equilibrium position:
x(t)=0 represents the spring’s natural resting position.
x(t)>0 represents displacement to the right.
x(t)<0 represents displacement to the left.
The goal is to determine the position function x(t), which describes how the mass moves as time passes. In an oscillating system, the position alternates between positive and negative values, crossing x=0 whenever the mass passes through equilibrium.
Forces and Newton’s second law
Newton’s second law states that the total force on the mass equals its mass times its acceleration. If the mass is m, then its acceleration is x′′(t), so
Two forces are important in the basic model:
Restoring force: The spring exerts a force proportional to displacement and directed toward equilibrium. By Hooke’s law, this force is −kx, where k>0 is the spring constant.
Damping force: In systems with friction or another resistance to motion, the damping force is proportional to velocity and opposes the motion. It is modeled as −cx′, where c≥0 is the damping coefficient.
The negative signs indicate that both forces act against the displacement or motion that produces them. In a horizontal system on a tabletop, damping can represent friction between the mass and the surface. A frictionless system has c=0.
If an external force F(t) acts on the mass, Newton’s second law gives
Rearranging yields the standard spring–mass equation:
For free motion, with no external forcing, F(t)=0, and the equation is homogeneous:
Here, m>0 and k>0. The damping coefficient satisfies c≥0; the possibility c=0 represents undamped motion.
Solving the equation and classifying its roots
The spring–mass equation is a second-order linear differential equation with constant coefficients. For the homogeneous equation, a trial solution of the form x(t)=ert leads to the characteristic equation
Its roots are
The quantity c2−4mk is the discriminant. Its sign determines the type of roots and, in turn, the qualitative motion of the spring.
If F(t)=0, the solution is the homogeneous solution.
If F(t)=0, the equation is nonhomogeneous. Its general solution is the sum of a homogeneous solution and a particular solution:
The homogeneous part describes the system’s natural motion, while the particular part describes the response to the applied force.
Four types of spring motion
Undamped motion
When c=0, there is no force resisting the mass’s motion. The characteristic equation becomes
so the roots are
These are pure imaginary roots, producing a solution made from sine and cosine functions. The mass oscillates indefinitely rather than gradually returning to rest.
The quantity ω is the system’s natural angular frequency. In an undamped system, the oscillation continues because no damping force removes energy from the motion.
Underdamped motion
For a positive but relatively small damping coefficient, the discriminant is negative:
The roots are complex, with negative real part:
The solution has the form
The sine and cosine terms produce oscillation. The exponential factor decreases toward zero, so the oscillations gradually shrink in amplitude. Over time, the mass approaches equilibrium.
Thus, underdamped motion combines oscillation with decay toward equilibrium.
Critically damped motion
Critical damping occurs when the discriminant is zero:
The characteristic equation has a repeated real root,
The general solution is
There are no sine or cosine terms, so the motion does not oscillate. Depending on the initial position and velocity, the mass may approach equilibrium from one side or cross equilibrium once and then approach from the other side. It cannot repeatedly oscillate across equilibrium.
For a given mass and spring constant, critical damping gives the fastest return to equilibrium among the damping cases considered. It is the boundary between underdamped and overdamped motion.
Overdamped motion
When the damping coefficient is larger than the critical value,
the discriminant is positive and the characteristic equation has two distinct real roots. For positive m, k, and c, both roots are negative. The solution has the form
Both exponential terms decay toward zero, so the mass eventually returns to equilibrium. Because the solution has no sine or cosine terms, it does not oscillate. Depending on the initial conditions, it may cross equilibrium once, but it cannot repeatedly cross back and forth.
Critical and overdamped systems can look qualitatively similar: neither oscillates, and both approach equilibrium. The distinction is that critical damping returns the system to equilibrium faster; overdamping makes the return slower.
Summary of damping cases
The four categories correspond to increasing damping:
Undamped: c=0; pure imaginary roots; persistent oscillation.
Underdamped: 0<c<2mk; complex roots; decaying oscillation.
Critically damped: c=2mk; repeated real root; no oscillation and fastest return to equilibrium.
Overdamped: c>2mk; distinct real roots; no oscillation and slower return than critical damping.
Example: undamped spring released from rest
Suppose a spring lies on a frictionless horizontal surface and has a mass of 1 kilogram. Since the surface is frictionless, there is no damping:
A force of 6 newtons stretches the spring by 1.5 meters. Hooke’s law gives F=kx, so
There is no external force continuing to act on the spring, so its equation of motion is
The characteristic equation is
with roots r=±2i. Therefore, the general solution is
The spring is released from rest one meter to the right of equilibrium. These initial conditions are
Substituting t=0 into the position function gives C1=1. Differentiating,
and then using x′(0)=0 gives C2=0. Thus,
The mass oscillates indefinitely between positive and negative displacement because the system has no damping.
Example: underdamped spring
Let the mass and spring constant remain m=1 and k=4, but set the damping coefficient to c=1. The characteristic equation is
Its roots are
The solution therefore has the form
The sine and cosine terms indicate oscillation, while e−t/2 tends to zero as time increases. The spring oscillates with decreasing amplitude and eventually returns to equilibrium.
Example: critically damped spring
Keep m=1 and k=4, but increase the damping coefficient to c=4. The characteristic equation is
which factors as
The repeated root is r=−2, so
The exponential factor causes the position to approach zero. The absence of trigonometric terms means that the motion does not oscillate. According to the initial conditions, the spring either approaches equilibrium from one side or crosses it once before approaching from the other.
Example: overdamped spring
Keep m=1 and k=4, and increase the damping coefficient to c=5. The characteristic equation is
which factors as
The roots are −1 and −4, giving the solution
Both terms decay toward zero, so the spring approaches equilibrium. There are no trigonometric terms, so the mass does not oscillate. Depending on the constants determined by the initial conditions, it may cross equilibrium once.
Critical and overdamped solutions both approach equilibrium without oscillation, but their rates differ. For the same mass and spring constant, critical damping produces the faster return.
Example: externally forced spring
An external force changes the equation from a homogeneous equation to a nonhomogeneous one. Consider a spring with
and an applied force F(t)=cost. Its equation is
The homogeneous characteristic equation is
Its roots are
The homogeneous solution is
This is an underdamped natural response: it oscillates while its amplitude decays.
For the forcing term cost, a particular solution is
The complete motion is the sum of the homogeneous and particular solutions:
At first, both components affect the motion. As t increases, the exponential factor in xh(t) drives the homogeneous response toward zero. The particular solution does not decay; it continues to oscillate because it represents the response to the continuing external force. Consequently, the long-term motion is governed by the periodic particular solution, while the spring’s natural oscillations fade away.
In a forced spring–mass system with damping, the homogeneous response describes a decaying transient, while the particular solution describes the long-term response that persists as long as the external force acts.

Ask anything
We've read this whole study set, so questions about it get the best answers.