Skip to main content

Chapter 14 DE6: An Application of Second Order Linear DEs with Constant Coefficients

Recall that for a function \(y=y(x)\) a 2nd order linear DE with constant coefficients is a DE of the form
\begin{equation*} ay''+by'+cy=f(x) \end{equation*}
In previous lectures (i.e. Chapter 12 and Chapter 13) we discussed how to find solutions to DEs of this form (for various possibilities of \(f(x)\) at least). In this lecture we are going to discuss an application of this type of DE to modelling the vibrations of springs.

Section 14.1 A Simple Model

In this section we are going to model the motion of an object attached to the free end of a spring which has its other end fixed as shown in Figure 14.1. To construct this model set up an axis with its origin at the centre of the object when the object-spring system is in equilibrium and with the positive direction going upward. With respect to this axis assume that without the object attached the end of the spring is at \(y=N\text{.}\) Now, imagine that the object is pulled down \(L\) units (with respect to the axis) and then let go.
Figure 14.1. Representation of an object-spring system.
Our models for the motion of the object will be based Hooke’s Law and Newton’s second law of motion.

Definition 14.2. Hooke’s Law.

If a spring is stretched (compressed) \(U\) units beyond its natural position then it pulls (pushes) with a force, \(\mathbf{F_r}\text{,}\) of magnitude
\begin{equation*} \vert \mathbf{F_r} \vert =kU, \hspace{5mm} k>0 \end{equation*}
where the value of \(k\) depends on the properties of the spring itself.
Common terminology is to call the force \(\mathbf{F_r}\) the restoring force and the constant \(k\) the spring constant.

Definition 14.3. Newton’s Second Law of Motion.

The acceleration, \(\mathbf{a}\text{,}\) of an object as produced by a net force, \(\mathbf{F}\text{,}\) is directly proportional to the magnitude of the net force, in the same direction as the net force, and inversely proportional to the mass, \(m\text{,}\) of the object, i.e. \(\mathbf{F}=m\mathbf{a}\text{.}\)
So, now consider the forces acting on the object at any time \(t\) after the object has been pulled down and released. In our initial model we will assume that there are just two forces acting on the object as shown in Figure 14.4: firstly the force due to gravity, \(\mathbf{F_g}\text{,}\) and secondly the restoring force, \(\mathbf{F_r}\text{,}\) due to the spring.
Figure 14.4. Forces in an object-spring system.
With the axis as set up in Figure 14.4 (or Figure 14.1), \(\mathbf{F_g}\) will always act in the negative direction. However, \(\mathbf{F_r}\) will be positive when the displacement of the object is less than \(N\) and negative when the displacement of the object is greater than \(N\) (i.e. the restoring force always acts in the direction of the natural position of the spring). Notice that since the motion of the object is one dimensional we can represent the relevant vector quantities by real numbers. The sign of the number will give us the direction of the vector.
Thus, the force due to gravity is constant and is given by
\begin{equation*} F_g=-mg \end{equation*}
where \(m\) is the mass of the object and \(g\) is the acceleration due to gravity. (This follows from Newton’s Universal Law of Gravitation and Newton’s second law of motion.). If \(y\) represents the displacement of (the centre of) the object then from Hooke’s Law
\begin{equation*} F_r=-k(y-N) \end{equation*}
where \(k\gt 0\) is the spring constant. Notice that the negative sign is needed in this relationship to make the restoring force act in the correct direction. Thus the net force acting on the object is
\begin{equation*} F=F_g+F_r=-mg-ky+kN \end{equation*}
Now if we let \(a\) be the acceleration of the object, then from Newton’s second law of motion
\begin{align*} ma \amp=F\\ m\frac{d^2y}{dt^2} \amp=-mg-ky+kN \end{align*}
Thus we are able to model the displacement of the object via a 2nd order linear DE with constant coefficients, along with the initial conditions
\begin{equation*} y(0)=-L,\hspace{5mm} y'(0)=0 \end{equation*}
We can further simplify the DE by noting that when the object-spring system is in equilibrium the net force is zero and hence
\begin{equation*} -mg+kN=0 \end{equation*}
Using this, the model simplifies to
\begin{equation} \frac{d^2y}{dt^2}+\left(\frac{k}{m}\right)y=0, \hspace{5mm}y(0)=-L, \hspace{5mm}y'(0)=0,\hspace{5mm} k>0,\hspace{5mm} m>0\tag{14.1} \end{equation}
which is an initial-value problem involving a homogeneous 2nd order linear DE with constant coefficients.
Using the methods outlined in Chapter 12 we find that the general solution to (14.1) is
\begin{equation*} y(t)=C_1\cos(qt)+C_2\sin(qt) \end{equation*}
where \(q=\sqrt{\frac{k}{m}}\) is called the natural frequency of the system. (Note that \(q\) should probably be called the "natural angular frequency" since the frequency of \(y\) is \(\frac{q}{2\pi}\text{.}\)) The derivative of \(y\) is
\begin{equation*} y'(t)=-C_1\sin(qt)+C_2\cos(qt) \end{equation*}
and hence from the initial conditions we find that \(C_1=-L\) and \(C_2=0\text{.}\) Thus the solution to the initial-value problem is
\begin{equation*} y(t)=-L\cos(qt) \end{equation*}
As shown in Figure 14.5, this solution is telling us that (under the assumptions of the model) the motion of the object will be periodic about the equilibrium position i.e. will be simple harmonic motion.
Figure 14.5. Plot of \(y(t)=-L\cos(qt)\text{.}\)
Of course real springs do not oscillate forever and so we conclude that our model must have ignored some important details (e.g. air resistance, frictional forces etc.) Despite this obvious shortcoming we will use this simple model as the basis for looking at more complicated contexts.

Section 14.2 Adding Damping

Imagine now that some sort of damping mechanism is added to the object-spring system as shown in Figure 14.6. (Such a system might be used as a simple model of a car shock absorber for example.)
Figure 14.6. Representation of an object-spring system with a damping mechanism.
So long as the speed of the object is not too fast then a reasonable assumption is that the damping force acting on the object, \(\mathbf{F_d}\text{,}\) is proportional to the speed and acts in the direction opposing the motion of the object. Thus
\begin{equation*} F_d=-D\frac{dy}{dt} \end{equation*}
where \(D\gt 0\text{.}\) Thus the motion of the object can be modelled by the DE
\begin{equation*} m\frac{d^2y}{dt^2}=-ky-D\frac{dy}{dt} \end{equation*}
which can be rearranged as
\begin{equation*} y''+\left(\frac{D}{m}\right)y'+\left(\frac{k}{m}\right)y=0 \end{equation*}
i.e. a homogeneous 2nd order linear DE with constant coefficients. It is convenient in the subsequent algebra to let
\begin{equation*} \frac{D}{m}=2p \textrm{ and } \frac{k}{m}=q^2 \end{equation*}
and so the model becomes
\begin{equation} y''+2py'+q^2y=0,\hspace{5mm} y(0)=-L,\hspace{5mm} y'(0)=0, \hspace{5mm}p\gt 0,\hspace{5mm} q\gt 0\tag{14.2} \end{equation}
The characteristic equation for (14.2) is
\begin{equation*} r^2+2pr+q^2=0 \end{equation*}
which gives
\begin{equation*} r=\frac{-2p\pm \sqrt{4p^2-4q^2}}{2}=-p\pm \sqrt{p^2-q^2} \end{equation*}
Thus the nature of the general solution to (14.2) depends upon the sign of \(p^2-q^2\text{,}\) or equivalently, on the magnitude of the parameter \(\delta=\frac{p}{q}\text{.}\) \(\delta\) is called the damping parameter of the system.
If \(p^2-q^2\gt 0\) (or equivalently \(\delta=\frac{p}{q}\lt 1\)) then the general solution is
\begin{equation*} y(t)=e^{-pt}(C_1\cos(\omega t)+C_2\sin(\omega t)) \end{equation*}
where \(\omega=\sqrt{q^2-p^2}\) and hence the function will be like that shown in Figure 14.7. In this case the system is called under-damped.
Figure 14.7. Plot of under-damped solution \(y(t)\text{.}\)
If \(p^2-q^2\gt 0\) (or equivalently \(\delta=\frac{p}{q}\gt 1\)) then the general solution is
\begin{equation*} y(t)=C_1e^{r_1t}+C_2e^{r_2t} \end{equation*}
where both \(r_1\) and \(r_2\) are negative and hence the function will be like that shown in Figure 14.8. In this case the system is called over-damped.
Figure 14.8. Plot of over-damped solution \(y(t)\text{.}\)
Finally if \(p^2-q^2=0\) (or equivalently \(\delta=\frac{p}{q}=1\)) then the general solution is
\begin{equation*} y(t)=(C_1+C_2t)e^{-pt} \end{equation*}
and hence the function will be like that shown in Figure 14.9. In this case the system is called critically-damped.
Figure 14.9. Plot of critically-damped solution \(y(t)\text{.}\)
The critically-damped case is of practical interest. Often we want to add damping to a system so that it returns close to its equilibrium position "as quickly as possible", (for example in the shock absorber of a car). It turns out that this is achieved by critical damping.

Example 14.10.

Consider the second-order linear homogeneous differential equation
\begin{equation*} \dfrac{d^2x}{dt^2}+\dfrac{D}{m}\dfrac{dx}{dt}+\dfrac{k}{m}x=0 \end{equation*}
which has the damping parameter
\begin{equation*} \delta = \dfrac{p}{q} = \dfrac{\frac{D}{2m}}{\sqrt{\frac{k}{m}}}=\dfrac{D}{2\sqrt{km}}. \end{equation*}
The Sage cell below considers the case where \(m=0.5\)kg and \(k=0.5\) (i.e. \(\delta = D\)) and plots the solution \(x(t)\) for various \(\delta\text{.}\)

Section 14.3 Adding an External Force

In our final model we will look at the situation where some other external force, \(\mathbf{F_e}\text{,}\) is also acting on the object along the \(y\)-axis, as shown in Figure 14.11. This context has many applications, especially in engineering, although in most applications the context doesn’t actually look like the diagram shown in Figure 14.11. For example if the top of a power pole is pulled to one side and let go it will behave like an object-spring system with damping. Now when a wind blows past the pole it is possible that aerodynamic effects can result in an oscillating side force acting on the pole.
Figure 14.11. Representation of object-spring system with a damping mechanism and an external force.
Assume that the external force is oscillatory and hence can be represented by
\begin{equation*} F_e(t)=B\cos(\alpha t) \end{equation*}
Then the net force acting on the object will be
\begin{equation*} F=F_g+F_r+F_d+F_e \end{equation*}
and hence the motion of the object can be modelled by the DE
\begin{equation*} m\frac{d^2y}{dt^2}=-ky-D\frac{dy}{dt}+B\cos(\alpha t) \end{equation*}
Following the same steps as in the previous section we can, therefore, write our model as
\begin{equation} y''+2py'+q^2y=A\cos(\alpha t),\hspace{5mm} y(0)=-L,\hspace{5mm} y'(0)=0,\hspace{5mm} p\gt 0,\hspace{5mm} q\gt 0,\hspace{5mm} A=\frac{B}{m}\tag{14.3} \end{equation}
So now the DE is a non-homogeneous 2nd order linear DE with constant coefficients. The general solution is constructed from the complementary solution and a particular solution. We know the complementary solution from our previous model. From that model we know that the complementary solution always tends to \(0\) as \(t\rightarrow\infty\text{.}\) Thus the long term behaviour of this system is determined by the particular solution to (14.3). From Chapter 13 we know that a particular solution will be of the form
\begin{equation*} y_p(t)=a\cos(\alpha t)+b\sin(\alpha t) \end{equation*}
Substituting into Chapter 13 and equating coefficients gives
\begin{equation*} a=\left(\frac{2p\alpha}{4p^2\alpha^2+(\alpha^2-q^2)^2}\right)A, \hspace{5mm} b=\left(\frac{\alpha^2-q^2}{4p^2\alpha^2+(\alpha^2-q^2)^2}\right)A \end{equation*}
Since it is easier to interpret we will write \(y_p(t)\) as a single trigonometric function. Thus let
\begin{equation*} y_p(t)=C\cos(\alpha t-\beta) \end{equation*}
Using some standard trigonometric identities it can be shown that
\begin{equation*} C=\sqrt{a^2+b^2} \textrm{ and } \beta=\tan^{-1}\left(\frac{b}{a}\right) \end{equation*}
Thus
\begin{equation*} C=\frac{A}{\sqrt{4p^2\alpha^2+(\alpha^2-q^2)^2}} \textrm{ and } \beta=\tan^{-1}\left(\frac{2p\alpha}{\alpha^2-q^2}\right) \end{equation*}
From this we can conclude that the long term response of our damped object-spring system to forcing by an external force \(F_e(t)=A\cos(\alpha t)\) is to oscillate at the forcing angular frequency, \(\alpha\text{,}\) and with an amplitude
\begin{equation*} C=\frac{A}{\sqrt{4p^2\alpha^2+(\alpha^2-q^2)^2}} \end{equation*}
that is the amplitude of the external force multiplied by the factor
\begin{equation*} M=\frac{1}{\sqrt{4p^2\alpha^2+(\alpha^2-q^2)^2}} \end{equation*}
Notice that, since for a given object-spring system \(p\) and \(q\) are fixed values, this factor \(M\) is a function of the forcing angular frequency \(\alpha\text{.}\)
Run the Sage cell below to plot the graphs of \(M(\alpha)\) for various values of \(p\) (which relates to the damping coefficient) when \(q\) (which relates to the stiffness coefficient) is held constant at \(q=1\text{.}\) In fact, it can be shown that if the damping parameter \(\delta\) (\(=\frac{p}{q}\)) is small then \(M\) has a maximum when the forcing frequency is near the natural frequency of the system and further that this maximum tends to infinity as \(\delta\rightarrow 0\text{.}\)
The significance of this analysis is the insight that if our damped object-spring system is subjected to an external oscillatory force near the natural frequency of the system it will respond with large amplitude motion unless the system is sufficiently damped. This phenomenon is known as resonance.
Using the Sage cell below, you can play with a damped oscillator with applied external force \(F_e(t)=B\cos(\alpha t)\text{.}\) (Note: \(x_c(t)\) here is actually the solution to the IVP with the right hand side set to zero, and \(x_p(t)=x(t)-x_c(t)\) is not the same as the particular solution guessed earlier.)

Exercises Example Tasks

1.
Determine the values of \(a\) and \(b\) in the DE \(\frac{d^2x}{dt^2}+2a\frac{dx}{dt}+bx=0\) that give the damped object-spring system a damping parameter of \(0.5\) and a natural frequency of \(2\text{.}\)
2.
A beam that is fixed rigidly at one end and designed to support a load at the other end is called a cantilever. If the cantilever is designed only to deflect a "small" amount under its load then it is reasonable to assume that the size of the deflection of the tip of the cantilever is proportional to the load applied. When such a cantilever is deflected beyond (or less than) its equilibrium position the cantilever exerts a restoring force toward the equilibrium position. So long as the deflection is reasonably small and the mass of the object is large compared to the mass of the cantilever this restoring force is proportional to the deflection. Show that the resulting motion of the tip of the cantilever can be modelled under these assumptions via a homogeneous 2nd order linear DE.
Figure 14.12. A cantilever.
3.
Show that if \(a\cos(\alpha t)+b\sin(\alpha t)=C\cos(\alpha t-\beta)\) then
\begin{equation*} C=\sqrt{a^2+b^2} \textrm{ and } \beta=\tan^{-1}\left(\frac{b}{a}\right) \end{equation*}