While we did say that we will usually only look at first order systems, it is sometimes more convenient to study the system in the way it arises naturally. For example, suppose we have 3 masses connected by springs between two walls. We could pick any higher number, and the math would be essentially the same, but for simplicity we pick 3 right now. Let us also assume no friction, that is, the system is undamped. The masses are \(m_1, m_2\), and \(m_3\) and the spring constants are \(k_1, k_2, k_3\), and \(k_4\). Let \(x_1\) be the displacement from rest position of the first mass, and \(x_2\) and \(x_3\) the displacement of the second and third mass. We will make, as usual, positive values go right (as \(x_1\) grows, the first mass is moving right). See Figure \(\PageIndex{1}\).
Figure \(\PageIndex{1}\): System of masses and springs.
This simple system turns up in unexpected places. For example, our world really consists of many small particles of matter interacting together. When we try the above system with many more masses, we obtain a good approximation to how an elastic material behaves. By somehow taking a limit of the number of masses going to infinity, we obtain the continuous one dimensional wave equation (that we study in Section 4.7). But we digress.
Let us set up the equations for the three mass system. By Hooke’s law we have that the force acting on the mass equals the spring compression times the spring constant. By Newton’s second law we have that force is mass times acceleration. So if we sum the forces acting on each mass and put the right sign in front of each term, depending on the direction in which it is acting, we end up with the desired system of equations.
At this point we could introduce 3 new variables and write out a system of 6 first order equations. We claim this simple setup is easier to handle as a second order system. We call \(\vec{x}\) the displacement vector, \(M\) the mass matrix, and \(K\) the stiffness matrix.
Exercise \(\PageIndex{1}\)
Repeat this setup for 4 masses (find the matrices \( M\) and \(K\)). Do it for 5 masses.Can you find a prescription to do it for \(n\)masses?
As with a single equation we want to “divide by \(M\).” This means computing the inverse of \(M\). The masses are all nonzero and \(M\)is a diagonal matrix, so comping the inverse is easy:
This fact follows readily by how we multiply diagonal matrices. As an exercise, you should verify that \(MM^{-1}=M^{-1}M=I.\)
Let \(A = M^{-1}K\). We look at the system \( \vec{x}'' = M^{-1} K \vec{x}\), or
\[ \vec{x}'' = A \vec{x}. \nonumber \]
Many real world systems can be modeled by this equation. For simplicity, we will only talk about the given masses-and-springs problem. We try a solution of the form
\[ \vec{x} =\vec{v} e^{\alpha t}. \nonumber \]
We compute that for this guess, \( \vec{x}'' =\alpha^2 \vec{v} e^{\alpha t}.\) We plug our guess into the equation and get
We divide by \(e^{\alpha t}\) to arrive at \( \alpha^2 \vec{v}=A\vec{v}\). Hence if \(\alpha^2\) is an eigenvalue of \(A\) and \(\vec{v}\) is a corresponding eigenvector, we have found a solution.
In our example, and in other common applications, \(A\) has only real negative eigenvalues (and possibly a zero eigenvalue). So we study only this case. When an eigenvalue \(\lambda\) is negative, it means that \(\alpha^2= \lambda\) is negative. Hence there is some real number \(\omega\) such that \(-\omega^2 = \lambda\). Then \(\alpha= \pm i \omega\). The solution we guessed was
By taking the real and imaginary parts (note that \(\vec{v}\) is real), we find that \(\vec{v}\cos(\omega t)\) and \(\vec{v}\sin(\omega t)\) are linearly independent solutions.
If an eigenvalue is zero, it turns out that both \(\vec{v}\) and \(\vec{v}t\) are solutions, where \(\vec{v}\) is an eigenvector corresponding to the eigenvalue 0.
Exercise \(\PageIndex{2}\)
Show that if \(A\)has a zero eigenvalue and \(\vec{v}\)is a corresponding eigenvector, then \(\vec{x}=\vec{v}(a+bt)\)is a solution of \(\vec{x}''=A \vec{x}\)for arbitrary constants \(a\)and \(b\).
Theorem \(\PageIndex{1}\)
Let\(A\)be an \(n \times n\)matrix with \(n\)distinct real negative eigenvalues we denote by \(-\omega_1^2 > -\omega_2^2> \cdots > -\omega_n^2\), and corresponding eigenvectors by \(\vec{v}_1, \vec{v}_2, \ldots, \vec{v}_n.\) If \(A\) is invertible (that is,if \(\omega_1>0\)), then
for some arbitrary constants \(a_i\)and \(b_i\). If \(A\)has a zero eigenvalue, that is \( \omega_1=0\), and all othereigenvalues are distinct and negative, then the general solution can be written as
We use this solution and the setup from the introduction of this section even when some of the masses and springs are missing. For example, when there are only 2 masses and only 2 springs, simply take only the equations for the two masses and set all the spring constants for the springs that are missing to zero.
Example \(\PageIndex{1}\):
Suppose we have the system in Figure \(\PageIndex{2}\), with \(m_1 = 2, m_2=1, k_1 = 4,\) and \(k_2=2.\)
We find the eigenvalues of \(A\) to be \(\lambda = -1, -4\) (exercise). We find corresponding eigenvectors to be \(\left[ \begin{array}{c} 1 \\ 2 \end{array} \right]\) and \(\left[ \begin{array}{c} 1 \\ -1 \end{array} \right]\) respectively (exercise).
We check the theorem and note that \(\omega_1=1\) and \(\omega_2=2\). Hence the general solution is
The two terms in the solution represent the two so-called natural or normal modes of oscillation. And the two (angular) frequencies are the natural frequencies. The first natural frequency is \(1\), and second natural frequency is \(2\). The two modes are plotted in Figure \(\PageIndex{3}\).
corresponds to the mode where the masses move synchronously but in opposite directions.
The general solution is a combination of the two modes. That is, the initial conditions determine the amplitude and phase shift of each mode. As an example, suppose we have initial conditions
The graphs of the two displacements, \(x_1\) and \(x_2\) of the two carts is in Figure \(\PageIndex{4}\).
Example \(\PageIndex{2}\)
We have two toy rail cars. Car 1 of mass \(2\text{ kg}\) is traveling at \(3\:\frac{\text{m}}{\text{s}}\) towards the second rail car of mass \(1\text{ kg}\). There is a bumper on the second rail car that engages at the moment the cars hit (it connects to two cars) and does not let go. The bumper acts like a spring of spring constant \(k=2\:\frac{\text{N}}{\text{m}}\). The second car is \(10\) meters from a wall. See Figure \(\PageIndex{5}\).
We want to ask several questions. At what time after the cars link does impact with the wall happen? What is the speed of car 2 when it hits the wall?
OK, let us first set the system up. Let \(t=0\) be the time when the two cars link up. Let \(x_1\) be the displacement of the first car from the position at \(t=0\), and let \(x_2\) be the displacement of the second car from its original location. Then the time when \(x_2(t)=10\) is exactly the time when impact with wall occurs. For this \(t,x'_2(t)\) is the speed at impact. This system acts just like the system of the previous example but without \(k_1\). Hence the equation is
We compute the eigenvalues of \(A\). It is not hard to see that the eigenvalues are \(0\) and \(-3\) (exercise). Furthermore, eigenvectors are \(\left[ \begin{array}{c} 1 \\ 1 \end{array} \right]\) and \(\left[ \begin{array}{c} 1 \\ -2 \end{array} \right]\) respectively (exercise). Then \(\omega_2= \sqrt{3}\) and by the second part of the theorem we find our general solution to be
We now apply the initial conditions. First the cars start at position \(0\) so \(x_1(0)=0\) and \(x_2(0)=0\). The first car is traveling at \(3\:\frac{\text{m}}{\text{s}}\), so \(x'_1(0)=3\) and the second car starts at rest, so \(x'_2(0)=0\). The first conditions says
Note how the presence of the zero eigenvalue resulted in a term containing \(t\). This means that the carts will be traveling in the positive direction as time grows, which is what we expect.
What we are really interested in is the second expression, the one for \(x_2\). We have \(x_2(t)= 2t -\frac{2}{\sqrt3} \sin(\sqrt3 t)\). See Figure \(\PageIndex{6}\) for the plot of \(x_2\) versus time.
Just from the graph we can see that time of impact will be a little more than 5 seconds from time zero. For this we have to solve the equation \(10=x_{2}(t)=2t-\frac{2}{\sqrt{3}}\sin (\sqrt{3}t)\). Using a computer (or even a graphing calculator) we find that \(t_{\text{impact}}\approx 5.22\) seconds.
As for the speed we note that \(x'_2 = 2-2 \cos(\sqrt3 t)\). At time of impact (\(5.22\) seconds from \(t=0\)) we get that \( x'_2(t_{\rm{impact}}) \approx 3.85\).
The maximum speed is the maximum of \(2-2 \cos(\sqrt3 t)\), which is \(4\). We are traveling at almost the maximum speed when we hit the wall.
Suppose that Bob is a tiny person sitting on car 2. Bob has a Martini in his hand and would like not to spill it. Let us suppose Bob would not spill his Martini when the first car links up with car 2, but if car 2 hits the wall at any speed greater than zero, Bob will spill his drink. Suppose Bob can move car 2 a few meters towards or away from the wall (he cannot go all the way to the wall, nor can he get out of the way of the first car). Is there a “safe” distance for him to be at? A distance such that the impact with the wall is at zero speed?
The answer is yes. Looking at Figure \(\PageIndex{6}\), we note the “plateau” between \(t=3\) and \(t=4\). There is a point where the speed is zero. To find it we need to solve \(x'_2(t)=0\). This is when \(\cos(\sqrt3 t) = 1\) or in other words when \(t=\frac{2 \pi}{\sqrt3}, \frac{4 \pi}{\sqrt3}, \ldots\) and so on. We plug in the first value to obtain \( x_2 \left( \frac{2 \pi}{\sqrt3} \right)=\frac{4 \pi}{\sqrt3} \approx 7.26 \). So a “safe” distance is about 7 and a quarter meters from the wall.
Alternatively Bob could move away from the wall towards the incoming car 2 where another safe distance is \( \frac{8 \pi}{\sqrt3 } \approx 14.51\) and so on, using all the different \(t\) such that \(x'_2(t)=0\). Of course \(t=0\) is always a solution here, corresponding to \(x_2=0\), but that means standing right at the wall.
Forced Oscillations
Finally we move to forced oscillations. Suppose that now our system is
\[\label{eq:30} \vec{x}'' = A \vec{x} + \vec{F} \cos(\omega t). \]
That is, we are adding periodic forcing to the system in the direction of the vector \(\vec{F}\).
As before, this system just requires us to find one particular solution \(\vec{x}_p\), add it to the general solution of the associated homogeneous system \(\vec{x}_c\), and we will have the general solution to \(\eqref{eq:30}\). Let us suppose that \(\omega\) is not one of the natural frequencies of \( \vec{x}'' = A \vec{x}\), then we can guess
where \(\vec{c}\) is an unknown constant vector. Note that we do not need to use sine since there are only second derivatives. We solve for \(\vec{c}\) to find \(\vec{x}_p\). This is really just the method of undetermined coefficients for systems. Let us differentiate \(\vec{x}_p\) twice to get
Of course this is possible only if \( (A + \omega^2 I)= (A -(- \omega^2) I)\) is invertible. That matrix is invertible if and only if \(- \omega^2\) is not an eigenvalue of \(A\). That is true if and only if \(\omega\) is not a natural frequency of the system.
We simplified things a little bit. If we wish to have the forcing term to be in the units of force, say Newtons, then we must write \[M \vec{x}'' = K \vec{x} + \vec{G} \cos(\omega t) . \nonumber \]
If we then write things in terms of \(A = M^{-1} K\), we have \[\vec{x}'' = M^{-1}K \vec{x} + M^{-1} \vec{G} \cos(\omega t) \qquad \text{or} \qquad \vec{x}'' = A \vec{x} + \vec{F} \cos(\omega t) , \nonumber \]
where \(\vec{F} = M^{-1} \vec{G}\).
Example \(\PageIndex{3}\)
Let us take the example in Figure \(\PageIndex{2}\) with the same parameters as before: \(m_1=2, m_2=1, k_1= 4,\) and \(k_2=2\). Now suppose that there is a force \( 2 \cos(3t)\) acting on the second cart.
Combining with what we know the general solution of the associated homogeneous problem to be, we get that the general solution to \(\vec{x}''= A \vec{x} +\vec{F} \cos(\omega t)\) is
The constants \(a_1, a_2, b_1,\) and \(b_2\) must then be solved for given any initial conditions.
Note that given force \(\vec{f}\), we write the equation as \(M\vec{x}''=K\vec{x}+\vec{f}\) to get the units right. Then we write \(\vec{x}''=M^{-1}K\vec{x}+M^{-1}\vec{f}\). The term \(\vec{g}=M^{-1}\vec{f}\) in \(\vec{x}''=A\vec{x}+\vec{g}\) is in units of force per unit mass.
If \(\omega\) is a natural frequency of the system resonance occurs because we will have to try a particular solution of the form
That is assuming that the eigenvalues of the coefficient matrix are distinct. Next, note that the amplitude of this solution grows without bound as \(t\) grows.