Lesson 13 - Mass Spring Systems

This lesson will bring what we've learned about nonhomogeneous differential equations into a real world application.

Consider a mass m that is attached to the end of a spring with spring constant k. The mass is stretched from the equilibrium position by x(t). The force due to damping Fd is proportional to the velocity of the mass, that is, Fd=bx.

Hooke's Law states that the force excreted by the spring on the mass is Fs=kx.

If Fext(t) is an external force on the mass then applying Newton's second law of motion gives us the differential equation modeling the mass-spring oscillator, and we can derive a differential equation from these relations.

(1)ma=FextFsFd(2)mx=Fkxbx(3)mx+bx+kx=Fext

where m is the mass of the object, b is the damping force, and k is the distance that the spring has moved from equilibrium.

Now, we have a nonhomogeneous equation that we have seen before. Also consider that m,b,k are all constants that are greater than 0.

Since we are describing an oscillating force, it will be helpful for us to see the behavior of the oscillating graph. We can do so by solving the differential equation and then converting the general solution into a sine form.

For the above model, write the general solution when the damping force is zero and there is no external force. Let ω=km. Show that the solution can be written as x(t)=Asin(ωt+ϕ) for a suitable A,ϕ.

We start with the equation of motion with no external force and damping force of zero: mx+kx=0.

We can now use the characteristic equation to find the general solution.

mx+kx=0mr2+k=0r=±ikm

Substituting ω=km

r=iω

Recall the general solution of nonhomogeneous equations using Euler's formula (see Lesson 9 - Homogeneous Second Order Linear Equations). The general solution is as follows:

x(t)=C1cos(ωt)+C2sin(ωt)

Now, consider a right triangle with sides C1 and C2.

\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \draw[thick] (0, 0) -- (3, 0) -- (3, 4) -- cycle; % Triangle
  \draw (3, 0) rectangle +(-0.5, 0.5); % Right angle marker
  \draw[thick] (0, 0) -- (3, 4) node[left, midway] {$\sqrt{(C_1)^2+(C_2)^2}$}; % Hypotenuse label
  \draw[thick] (0, 0) -- (3, 0) node[below, midway] {$C_2$}; % Hypotenuse label
  \draw[thick] (3, 0) -- (3, 4) node[right, midway] {$C_1$}; % Hypotenuse label
  \draw[thick] (0, 0) -- (0.35, 0) arc[start angle=0, end angle=60, radius=0.3cm]; % Angle arc 
  \node at (0.5, 0.2) {$\phi$}; % Label the angle
\end{tikzpicture}
\end{document}

Imposing geometry, by the Pythagorean theorem, we can say that the sides (C1)2 and (C2)2 give us a hypotenuse (C1)2+(C2)2. Let's call this A.

A=(C1)2+(C2)2

We also impose an angle ϕ. From this, we can set up the following relations:

sinϕ=C1(C1)2+(C2)2
cosϕ=C2(C1)2+(C2)2

Now let's manipulate the general solution equation to contain A. We do so by multiplying the equation by AA or (C1)2+(C2)2(C1)2+(C2)2. Essentially, we are multiplying the equation by 1, which does not alter the equation, but allows us to manipulate it to get the form that we want.

(C1)2+(C2)2(C1)2+(C2)2[C1cosωt+C2sinωt]

We will multiply across the denominator but leave the numerator un-factored.

(C1)2+(C2)2[C1(C1)2+(C2)2cosωt+C2(C1)2+(C2)2sinωt]

Recall that A=(C1)2+(C2)2 and our trig relations that we set up before. We can make some substitutions.

x(t)=A[sinϕcosωt+cosϕsinωt]

Notice we have a sum of the products of two angles. We can implement the following identity:

sin(θ±ϕ)=sinθcosϕ±cosθsinϕ

The forms look different, but they're the same if we rearrange the equation and consider ωt=θ.

x(t)=A[sinωtcosϕ+cosωtsinϕ]

Now these are identical forms and it's more clear that we can use this identity. Our general solution is now as follows:

x(t)=Asin(ωt+ϕ)

So why did we do all of this work if the past solutions have worked in the past? Well consider that we are now talking about sine functions as we analyze the oscillations of the the mass spring system. This form helps us to analyze the angular frequency (ω), the natural frequency (ω2π), the period (2πω), and the amplitude in a clear and concise manner.

We can see an example of this below:

\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
    axis lines = middle,
    xlabel = {$t$},
    ylabel = {$x(t)$},
    grid = both,
    domain=-12:12*pi,
    samples=100,
    legend style={at={(0.5,-0.15)}, anchor=north},
    title = {Oscillation: $x(t) = A \sin(\omega t + \phi)$},
    xtick=\empty,
    ytick=\empty,
]
% General sine function with parameters A, omega, and phi
\addplot[blue, thick] {sin(deg(x))}; 
\addlegendentry{$x(t) = \sin(t)$}

\end{axis}
\end{tikzpicture}
\end{document}

As we can see here, it is much easier to see the behavior of the oscillation system by converting the general solution into it's a sinusoidal form.

In the next mini lesson, we will look at a couple of examples of this and discuss free vibrations with damping.

Next Lesson: Lesson 13.1 Mass Spring Systems Damping and Worked Examples

Table of Contents: Table of Contents