1. Home
  2. Explore
  3. Physics
  4. Spring-Mass Motion Equations

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

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)x(t)x(t) denote its displacement from its equilibrium position:

  • x(t)=0x(t)=0x(t)=0 represents the spring’s natural resting position.

  • x(t)>0x(t)>0x(t)>0 represents displacement to the right.

  • x(t)<0x(t)<0x(t)<0 represents displacement to the left.

The goal is to determine the position function x(t)x(t)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=0x=0x=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 mmm, then its acceleration is x′′(t)x''(t)x′′(t), so

total force=mx′′(t).\text{total force}=m x''(t).total force=mx′′(t).

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-kx−kx, where k>0k>0k>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′-cx'−cx′, where c≥0c\geq 0c≥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=0c=0c=0.

If an external force F(t)F(t)F(t) acts on the mass, Newton’s second law gives

mx′′=−cx′−kx+F(t).m x''=-cx'-kx+F(t).mx′′=−cx′−kx+F(t).

Rearranging yields the standard spring–mass equation:

mx′′+cx′+kx=F(t).m x''+cx'+kx=F(t).mx′′+cx′+kx=F(t).

For free motion, with no external forcing, F(t)=0F(t)=0F(t)=0, and the equation is homogeneous:

mx′′+cx′+kx=0.m x''+cx'+kx=0.mx′′+cx′+kx=0.

Here, m>0m>0m>0 and k>0k>0k>0. The damping coefficient satisfies c≥0c\geq 0c≥0; the possibility c=0c=0c=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)=ertx(t)=e^{rt}x(t)=ert leads to the characteristic equation

mr2+cr+k=0.mr^2+cr+k=0.mr2+cr+k=0.

Its roots are

r=−c±c2−4mk2m.r=\frac{-c\pm\sqrt{c^2-4mk}}{2m}.r=2m−c±c2−4mk​​.

The quantity c2−4mkc^2-4mkc2−4mk is the discriminant. Its sign determines the type of roots and, in turn, the qualitative motion of the spring.

  • If F(t)=0F(t)=0F(t)=0, the solution is the homogeneous solution.

  • If F(t)≠0F(t)\neq 0F(t)=0, the equation is nonhomogeneous. Its general solution is the sum of a homogeneous solution and a particular solution:

x(t)=xh(t)+xp(t).x(t)=x_h(t)+x_p(t).x(t)=xh​(t)+xp​(t).

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=0c=0c=0, there is no force resisting the mass’s motion. The characteristic equation becomes

mr2+k=0,mr^2+k=0,mr2+k=0,

so the roots are

r=±ikm=±iω,ω=km.r=\pm i\sqrt{\frac{k}{m}}=\pm i\omega, \qquad \omega=\sqrt{\frac{k}{m}}.r=±imk​​=±iω,ω=mk​​.

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 ω\omegaω 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:

0<c<2mk.0<c<2\sqrt{mk}.0<c<2mk​.

The roots are complex, with negative real part:

r=α±iβ,α<0.r=\alpha\pm i\beta, \qquad \alpha<0.r=α±iβ,α<0.

The solution has the form

x(t)=eαt(C1cos⁡(βt)+C2sin⁡(βt)).x(t)=e^{\alpha t}\left(C_1\cos(\beta t)+C_2\sin(\beta t)\right).x(t)=eαt(C1​cos(βt)+C2​sin(βt)).

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:

c2−4mk=0,c=2mk.c^2-4mk=0, \qquad c=2\sqrt{mk}.c2−4mk=0,c=2mk​.

The characteristic equation has a repeated real root,

r=−c2m.r=-\frac{c}{2m}.r=−2mc​.

The general solution is

x(t)=e−c2mt(C1+C2t).x(t)=e^{-\frac{c}{2m}t}(C_1+C_2t).x(t)=e−2mc​t(C1​+C2​t).

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,

c>2mk,c>2\sqrt{mk},c>2mk​,

the discriminant is positive and the characteristic equation has two distinct real roots. For positive mmm, kkk, and ccc, both roots are negative. The solution has the form

x(t)=C1er1t+C2er2t.x(t)=C_1e^{r_1t}+C_2e^{r_2t}.x(t)=C1​er1​t+C2​er2​t.

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=0c=0c=0; pure imaginary roots; persistent oscillation.

  • Underdamped: 0<c<2mk0<c<2\sqrt{mk}0<c<2mk​; complex roots; decaying oscillation.

  • Critically damped: c=2mkc=2\sqrt{mk}c=2mk​; repeated real root; no oscillation and fastest return to equilibrium.

  • Overdamped: c>2mkc>2\sqrt{mk}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 111 kilogram. Since the surface is frictionless, there is no damping:

m=1,c=0.m=1,\qquad c=0.m=1,c=0.

A force of 666 newtons stretches the spring by 1.51.51.5 meters. Hooke’s law gives F=kxF=kxF=kx, so

6=k(1.5),k=4.6=k(1.5), \qquad k=4.6=k(1.5),k=4.

There is no external force continuing to act on the spring, so its equation of motion is

x′′+4x=0.x''+4x=0.x′′+4x=0.

The characteristic equation is

r2+4=0,r^2+4=0,r2+4=0,

with roots r=±2ir=\pm 2ir=±2i. Therefore, the general solution is

x(t)=C1cos⁡(2t)+C2sin⁡(2t).x(t)=C_1\cos(2t)+C_2\sin(2t).x(t)=C1​cos(2t)+C2​sin(2t).

The spring is released from rest one meter to the right of equilibrium. These initial conditions are

x(0)=1,x′(0)=0.x(0)=1,\qquad x'(0)=0.x(0)=1,x′(0)=0.

Substituting t=0t=0t=0 into the position function gives C1=1C_1=1C1​=1. Differentiating,

x′(t)=−2C1sin⁡(2t)+2C2cos⁡(2t),x'(t)=-2C_1\sin(2t)+2C_2\cos(2t),x′(t)=−2C1​sin(2t)+2C2​cos(2t),

and then using x′(0)=0x'(0)=0x′(0)=0 gives C2=0C_2=0C2​=0. Thus,

x(t)=cos⁡(2t).x(t)=\cos(2t).x(t)=cos(2t).

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=1m=1m=1 and k=4k=4k=4, but set the damping coefficient to c=1c=1c=1. The characteristic equation is

r2+r+4=0.r^2+r+4=0.r2+r+4=0.

Its roots are

r=−1±1−162=−12±i152.r=\frac{-1\pm\sqrt{1-16}}{2} =-\frac{1}{2}\pm i\frac{\sqrt{15}}{2}.r=2−1±1−16​​=−21​±i215​​.

The solution therefore has the form

x(t)=e−t/2(C1cos⁡(152t)+C2sin⁡(152t)).x(t)=e^{-t/2}\left( C_1\cos\left(\frac{\sqrt{15}}{2}t\right) + C_2\sin\left(\frac{\sqrt{15}}{2}t\right) \right).x(t)=e−t/2(C1​cos(215​​t)+C2​sin(215​​t)).

The sine and cosine terms indicate oscillation, while e−t/2e^{-t/2}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=1m=1m=1 and k=4k=4k=4, but increase the damping coefficient to c=4c=4c=4. The characteristic equation is

r2+4r+4=0,r^2+4r+4=0,r2+4r+4=0,

which factors as

(r+2)2=0.(r+2)^2=0.(r+2)2=0.

The repeated root is r=−2r=-2r=−2, so

x(t)=C1e−2t+C2te−2t=e−2t(C1+C2t).x(t)=C_1e^{-2t}+C_2te^{-2t} =e^{-2t}(C_1+C_2t).x(t)=C1​e−2t+C2​te−2t=e−2t(C1​+C2​t).

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=1m=1m=1 and k=4k=4k=4, and increase the damping coefficient to c=5c=5c=5. The characteristic equation is

r2+5r+4=0,r^2+5r+4=0,r2+5r+4=0,

which factors as

(r+1)(r+4)=0.(r+1)(r+4)=0.(r+1)(r+4)=0.

The roots are −1-1−1 and −4-4−4, giving the solution

x(t)=C1e−t+C2e−4t.x(t)=C_1e^{-t}+C_2e^{-4t}.x(t)=C1​e−t+C2​e−4t.

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

m=1,c=12,k=4m=1,\qquad c=\frac{1}{2},\qquad k=4m=1,c=21​,k=4

and an applied force F(t)=cos⁡tF(t)=\cos tF(t)=cost. Its equation is

x′′+12x′+4x=cos⁡t.x''+\frac{1}{2}x'+4x=\cos t.x′′+21​x′+4x=cost.

The homogeneous characteristic equation is

r2+12r+4=0.r^2+\frac{1}{2}r+4=0.r2+21​r+4=0.

Its roots are

r=−14±i374.r=-\frac{1}{4}\pm i\frac{3\sqrt{7}}{4}.r=−41​±i437​​.

The homogeneous solution is

xh(t)=e−t/4[C1cos⁡(374t)+C2sin⁡(374t)].x_h(t)=e^{-t/4}\left[ C_1\cos\left(\frac{3\sqrt{7}}{4}t\right) + C_2\sin\left(\frac{3\sqrt{7}}{4}t\right) \right].xh​(t)=e−t/4[C1​cos(437​​t)+C2​sin(437​​t)].

This is an underdamped natural response: it oscillates while its amplitude decays.

For the forcing term cos⁡t\cos tcost, a particular solution is

xp(t)=1237cos⁡t+237sin⁡t.x_p(t)=\frac{12}{37}\cos t+\frac{2}{37}\sin t.xp​(t)=3712​cost+372​sint.

The complete motion is the sum of the homogeneous and particular solutions:

x(t)=xh(t)+xp(t).x(t)=x_h(t)+x_p(t).x(t)=xh​(t)+xp​(t).

At first, both components affect the motion. As ttt increases, the exponential factor in xh(t)x_h(t)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.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent