The underlying assumption of a lumped element model is that a spatially distributed physical system can be approximated by a topology of discrete entities. The impact of this assumption is illustrated by a model of a finitely long elastic rod with uniform cross section. The model involves a cascade of masses and springs, where the boundary itself is driven by a step function. Previous authors have found closed-form solutions to related problems using the Laplace transform, while in this article we obtain closed-form solutions by eigenvalue decomposition. This means that the extension to a rod with non-uniform cross section is further illuminated. The closed-form solution is compared to a closed-form solution of a distributed parameter model. Both solutions involve a sum of a forward and a backward moving wave that travels with the speed of sound. In the case of the distributed parameter model, these waves are perfect square waves, while in the case of the lumped element model, these waves are imperfect square waves that are subjected to “Gibbs-like” ringing. Properties of this phenomenon are described. It is also shown that this phenomenon disappears, when using a continuous step function and a model with sufficiently many elements.
Axial vibrations in a uniform rod is a canonical example that is described in a variety of mechanical and mathematical textbooks. Depending on the application, both distributed parameter models and mass-spring models are popular.
Distributed parameter models involve solving a partial differential equation with boundary and initial conditions. In Benaroya,1 a closed-form solution for a distributed parameter model is given for a rod that is fixed on one side and free to move on the other side. This is the physical problem that is discussed in this article. The only extension is that the rod is initially disturbed by a step input.
A mass-spring model is a type of lumped element model that involves solving a system of ordinary differential equations. It is commonly used in describing vibrations in mechanical systems.2 The simple mathematical description allows substantial interpretation and application of control theory, as discussed in Benaroya.1 Moreover, the mathematical descriptions are the same for a variety of analogous systems as well. This means that if progress is made on solving one problem, the actual impact is carried over to all other analogous systems. Some examples of analogous systems are described in Chapter 12 in Siddiqui and Singh.3 In particular, it is shown that a system involving beam torsion and an electrical system is analogous to the problem described in this article.
Several papers exist on modeling an elastic horizontal rod as a cascade of masses and springs. An important contribution is Bavinck et al.,4 where closed-form solutions exist in the case when the velocity of the first left mass is subjected to a pulse response. The solution involves first finding the solution for a semi-infinite rod, which is a rod that has a starting point, but goes on forever. This becomes a linear system of second-order ordinary differential equations. The solution involves taking the Laplace transform to get rid of the derivatives. After resolving recurrence relations, the inverse Laplace transformation results in expressions that involve Bessel functions. Modeling a finite rod is done by superposing the solutions of two semi-infinite rods that are oppositely directed. Equations for free and fixed boundaries are dependent on whether the solutions are added or subtracted. The article also shows that the solutions are dependent on whether the mass or the spring comes first at the boundaries.
The model in this article is similar to the model in Bavinck et al.,4 when the rod is finitely long, starting with a spring on the left side that is fixed to a wall and ending with a mass on right side that is free to move. The differences between Bavinck et al.4 and this article are related to the boundary on the left side. In this article, the left boundary itself is driven by a step function, while in Bavinck et al.,4 the left boundary is completely fixed and the velocity of the first mass is given a pulse load. It is possible that we could use the solution strategy of Bavinck et al.,4 to solve the problem in this article, but it is clearly not straightforward as such a derivation involves different recurrence relations that need to be solved and converted into Chebyshev polynomials before the inverse Laplace transform can be done.
Another closely related paper is Dieterman et al.,5 which compares a distributed parameter model of a semi-infinite rod with the models described in Bavinck et al.4 The main focus is on harmonic and transient behavior, but also the topic of step response is touched on. It is shown that a Gibbs-like pattern appears and this complies with the results in this article.
The last paper that is close to the current contribution is Bavinck and Dieterman,6 which contains a model for the movement of a train, where the locomotive is able to have different mass than the wagons. The papers Bavinck et al.,4 Dieterman et al.,5 and Bavinck and Dieterman6 are linked together as they use the Laplace transform to find the solutions. This has the advantage of mathematical simplicity, when the masses and the springs are essentially the same, except on the boundaries. However, it seems difficult to generalize these ways to yield any configuration of stiffnesses and masses.
In this article, we have therefore chosen a different route to solving the problem which involves eigenvalue decomposition. We have found closed-form solutions when the masses and springs are equal, but the solutions are easily expandable by numerical eigenvalue decompositions.
The mathematical description leads to a system of linear ordinary differential equations that is given on a matrix form. These equations are coupled, but they can be decoupled by an eigenvalue decomposition.
In Smith and Smith,2 a closed-form solution is found when the number of elements is limited to two, while the extension to elements is described in Demmel.7 In Demmel,7 various numerical algorithms for finding eigenvalues and eigenvectors are given. Finally, the solution is interpreted in terms of eigenmodes. An eigenmode is a natural vibration mode, where all parts move sinusoidally with the same frequency.
There are two artifacts of the mass-spring model compared to the distributed parameter model. One artifact is related to the numerical algorithm of finding the eigenvalue decomposition, which is described in Demmel.7 The other artifact is related to the approximation that the mass of the beam is distributed on a finite number of distinct points along the rod.
This article differs from the approach in Demmel,7 as it applies the closed-form expressions for the eigenvalues and eigenvectors that was found in Yueh.8 This allows the solution to be fully closed-form. We show algebraically that the solution is a sum of a forward and a backward moving waves. This is analogous to the solution of the one-dimensional (1D) wave equation. Moreover, this extension allows us to prove that the “masses distributed on distinct points” approximation is dominating the numerical error in most applications. This artifact has much in common with the Gibbs phenomenon, which is described next.
Using a Fourier expansion, we can represent a square wave with amplitude and cycle frequency equal to one by
Therefore, is a weighed sum of odd-integer harmonic frequencies. Computing any partial sum of this expansion leads to an imperfect square wave that contains a ringing artifact that is known as the Gibbs phenomenon.
In Hewitt and Hewitt,9 the Gibbs phenomenon is discussed in detail, but we give brief summary here. In Figure 1, the partial sum of the first terms is shown. It is well known that as goes to infinity, the frequency of the ringing increases, while the energy of the ringing goes to zero and the approximation approaches the square wave for any . It is peculiar that the level of overshoot and undershoot converges to a fixed value, which is , where is twice the amplitude. Mathematically, this makes sense, since the point of overshooting and undershooting moves as a function of .
The Gibbs phenomenon. The square wave is approximated by the partial sum of the first 60 terms in equation (1).
This article is laid out as follows: The first section contains both a distributed parameter model and a lumped element model of an elastic rod that is subjected to a step input source. In the second section, the imperfect square wave that is obtained in the lumped element model is discussed in more detail. In the third section, the impact of using a continuous step function is outlined. It is suggested that for any steepness, it is possible to choose enough elements to remove the ringing.
Sequential mass-spring model of a rod
We consider a horizontal rod of relaxed length , mass , and stiffness that is sliding frictionless on a table. We model the rod as a set of blocks that are connected by spring elements (Figure 2). All blocks have mass and all springs have relaxed length and spring constant . The blocks have zero length, so . The springs are free to rotate with respect to the blocks, which means that the springs cannot take up angular momentum. A 1D coordinate system is introduced, where positive x-axis is to the right. The left side of the rod has the coordinate and this is also the position of left side of the first spring. The origin of the coordinate system is chosen so that .
The model of the rod contains blocks and springs. The figure shows the initial position, where and all springs are neither tensioned nor compressed. The generalized coordinate is defined as the movement away from .
In the case when all springs are not in compression or in tension and , the center of block is . This is the situation that is illustrated in Figure 2. The distance between and is , that is . The physical state of the rod is therefore uniquely defined by and the generalized coordinates . In other words, the state space of the system is n-dimensional.
Newton’s second law on each element is given by
There are two ways to proceed on solving this system: the distributed parameter model and the lumped element model.
and let go to infinity. This means that goes to zero and we obtain the 1D wave equation
where is the continuous function of movement and is the wave propagation speed. This is seen because , , and , where is Young’s modulus and is mass density of the rod.
In this article, we study the behavior when we apply a unit step input at the left boundary and zero initial conditions. At the left boundary, we have , while at the right boundary we have always zero momentum, that is, . The initial conditions are and . Note that this could also be modeled by setting and applying a step function as a driving force. However, we chose this path since we can apply the derivation in on page 510 in Benaroya.1 In Benaroya,1 the equations are developed for and arbitrary initial conditions. We solved this by calling , finding the solution and substituting back again
Using , we see that all are zero. Moreover, implies that must be equal to . Therefore
and using that , we obtain
Clearly, is a sum of two square waves with frequency that moves in opposite directions. The sum of these square waves at three locations is described in Figure 3. The time period of these waves is independent of and equal to . At the end point , the point moves to two after the sound wave has propagated down to this point. It stays there till the sound has propagated to the other end and back again. At this time, the point jumps back to zero again. The end point is just a square wave with phase shift equal to one-fourth of the wave period. By equation (3), we see that .
at three different locations in the rod.
At the point , the point moves to one after the wave has reached this point. It stays at this location, till the sound wave has gone to the right end point and back again. The point moves to two. The wave is now going in the opposite direction and the point is not moving before the wave has reached the left side and back again. At this point, the point moves to one again. This is why we get this stair-like behavior that is seen in Figure 3. A similar discussion can be given for the time behavior at . It is worth noting that if we approximate the by a partial sum of the Fourier expansion, we would obtain the Gibbs phenomenon on all the “corners” in Figure 3.
The lumped element model
We take a step back and see that equation (2) is a system of coupled second-order ordinary differential equations. This can be written on matrix form by
where is equal to and is a tridiagonal matrix of the form
The first element of is equal to , while the others are zero. In this context, is referred to as the driving force of the system, even though the actual force that is applied is .
If was a diagonal matrix, then all equations would be decoupled and they could be solved separately. In fact, the equations would be harmonic oscillators, where properties are well known. Fortunately, there is a trick for decoupling equation (4), which is described in detail in Tisseur and Meerbergen.10 Since both and are real symmetric and positive definite (i.e. and for any non-zero and real column vector ), then is a real definite pair.
When is a real definite pair, then solving the generalized eigenvalue problem
gives a diagonal matrix of eigenvalues and a matrix of eigenvectors . The important property that motivates this approach is that and , where is the identity matrix.
If we now make another linear coordinate transformation and also multiply equation (2) by , we obtain
If we let and the first element of the ith eigenvector is , then
These equations can be solved for any driving force using a superposition of a homogeneous solution and a particular solution. The homogeneous equation of equation (5) is equivalent to setting , which is
where the parameters and are determined from initial conditions. It is now clear that the natural frequency of the system is .
The usual way of finding particular solutions is by trying a more general form than which includes a number of constants and fitting it to equation (5). A more general way is to first change the second-order differential equation into a system of two first-order differential equations and then use integrating factors to find a more general term Adams.11 We rewrite equation (5) as
We seek a particular solution of the form . Consequently, we have that
where we are using the fact that . This means that
and the particular solution is therefore
where is found from the initial conditions of the problem. The exponential matrix is of the form
by the Cayley–Hamilton theorem Gantmacher.12 Here, and are the roots of the characteristic polynomial of . Hence
and because we only need to look at the first element of in equation (6), then
where and are the components of . We realize that the last two terms have the same form as the homogeneous solution. This means that if we redefine and , the full solution is
and is the convolution sign with respect to time.
Analytical expressions for and
The normal approach for finding the and is to compute them numerically. However, in Theorem 1 in Yueh,8 the eigenvalues and the eigenvectors are found analytically. That is
It is worth noting that the expression for the eigenvectors in Theorem 1 in Yueh8 is a misprint. The eigenvectors that are given in Theorem 2 in Yueh8 are the correct ones. We have found the normalizing factor , by summarizing the squared elements of the first eigenvector.
The stiffness is equal to and the mass is equal to , so therefore . We can therefore see that
and that
From the analytical expressions for the eigenvectors and eigenvalues, we see that
This means that we can express as a difference between a backward and a forward moving waves as
Therefore
This means that if we disregard the effects that are induced by the initial conditions, can be represented by a sum of a forward and a backward moving wave.
Step response
In order to understand how the rod is affected by sudden changes, the step response is investigated. In particular, we investigate a system which is initiated by a steady state where . With these initial conditions, all in equations (8) and (10) are equal to zero. At time zero, is moved to 1, that is
The full solution involves computing and from equation (10) as
The first terms in the expressions are basically Riemann sums and they can be approximated by
We have found it difficult to solve this integral for any although it seems that the integral is equal to one. We have proven this by taking another route to compute and .
In the other route, we compute from equation (8) directly. This means that the full solution is
for larger than zero. By noting the fact that , we see that . The inverse of can be found in Hovda.13 Therefore
From the analytical expressions for the eigenvectors and eigenvalues, we see that
and the step response is therefore
Therefore, the forward and the backward moving waves are
In the next section, we will describe in more detail.
The Gibbs-like phenomenon
An overview of the behavior of the expressions in equation (12) is illustrated in Figures 4–6. Figure 4 shows one period of for various when . For large , is an estimate of the square wave with period one and phase shift . This means that equation (12) is analogous to equation (3). The composition of two oppositely directed waves is illustrated in Figure 5(a), while the analogous Fourier expansion is plotted in Figure 5(b).
One period of for various is shown when . The waves are almost identical and represents the “phase shift” of the wave. The quotes are used because the waves are not perfectly periodic. Similar to the Gibbs phenomenon, the wave includes overshoots and undershoots followed by ringing. However, the Gibbs phenomenon involves an undershoot before the upward step and also an overshoot before the downward step. This effect is not seen in this figure. Moreover, for the same , the ringing has a lower frequency than the ringing in the Gibbs phenomenon (Figure 1).
(a) One “period” of , where . The staircase pattern from Figure 3 is easily recognized. For comparison, is plotted in (b), where is approximated by a partial Fourier expansion with .
Ten “periods” of , with equal to 60. It is clear the wave is not fully periodic and that the wave is getting distorted with time.
In Figure 6, we see that after several periods becomes more and more distorted. Clearly, seems to have a “period” of approximately one although it is clear that it is not periodic by the mathematical definition. This can also be understood from equation (12). If we neglect the constant, we see that is a weighted sum of sine waves with different frequencies and phase shifts. Since for large , we recognize that the sine wave with the lowest frequency is in the scale of .
It is clearly of interest to investigate what happens to for very large . The most elegant way to proceed is to look at , but unfortunately this has proven to be hard. The terms inside the summation are inherently dependent on and it is not possible, at least to our understanding, to get out of this dependence. We are therefore restricted from using the plethora of convergence tests that are available for series.
Another approach is to manipulate sum into a Riemann sum, which is a numerical approximation of an integral. The goes from approximately 0 to and is . This is encouraging, but the dependence inside the sine wave seems difficult to deal with. Based on this discussion, we leave the attempts of finding analytical expressions for this limit as an open problem.
In the rest of this section, we will describe numerically what is the value at the step, the overshoots and undershoots and the frequency of the ringing. Finally, we will also comment on what happens if we are computing the eigenvalue decomposition numerically.
The value at the step
In Hewitt and Hewitt,9 it is shown that the value at the step of the partial Fourier expansion of the square wave is exactly on the midway between the top and bottom amplitudes as goes to infinity. We investigate our wave by plotting the value of as a function of at the upward and downward steps in Figure 7(a) and (b), respectively. We identify the upward step at and the downward step as . The figures indicate that the value at the step converges to fixed values. For instance, the value of is equal to 0.6615 and is equal to 1.3415, when is 107. This indicates that the value at the upward and downward step converges to one-third and two-thirds, respectively, of the jump itself. The fact that this converges for very large , strengthens the conception of as a “phase shift.”
The figure shows at the (a) upward and (b) downward steps as a function of the logarithm of . When is small, the curves deviate for different , but when goes to infinity, the value at the upward step tends to 2/3 and the value at the downward step tends to 4/3.
The level of the overshoot
In order to compute the overshoot, we need to find the first maximum after the step. There is a challenge with using standard numerical methods for finding the overshoot as we need to make initial guesses that are close enough to the local maximum. This is a problem since the frequency of oscillations increases for increasing .
Our first approach was to use the time at the step as the initial guess and the overshoot was easily detected for small , but this method became unstable as increased. We found a practical solution, as we realized that the time from the step to the maximum overshoot is on the order of . By making some rough estimates for and , we found small intervals where it was easy to find the maximum values for larger as well. Finally, we refined the estimates of and and ended up with this rule of thumb
On a log scale, this is a straight line which is plotted together with the estimates in Figure 8(a). The actual overshoot is plotted for various in Figure 8(b). The two last estimates are equal to 0.5486, which indicates that the actual overshoot is 27.43% of the actual step. The exact same level is seen in the undershoot right after the downward step.
(a) The time after the upward step for overshoot on a log scale for various . The line shows the rule of thumb, which is estimated from the two last measurements. Although the estimates do not follow the line for small , it is clear that the estimates converge to a straight line as increases. (b) The actual overshoot which seems to converge to 0.5486. This is equivalent to 27.43% of the actual step.
The frequency of the ringing
In order to discuss the frequency of the ringing, we have decided to plot on the domain . This is shown in Figure 9. These results indicate that there is an underlying time scale proportional to which describes the ringing. It follows that the energy of the ringing goes to zero as goes to infinity, even though the overshoot level remains constant. This is analogous to the Gibbs phenomenon.
This figure shows as a function of time on the interval for various . Notice that the plots are similar when the time scales are manipulated in this way. The plots seem to differ less as increases. This indicates that the energy in the artifact goes to zero as goes to infinity. It is also worth noting that the frequency of the ringing (wave top to wave top) seems to slowly increase.
In Figure 10, we see that the overshoot level seems fairly constant from period to period.
The overshoot in different “periods” for .
Numerical eigenvalue decomposition
We have two ways to compute . The analytical approach that is given by equation (12) or we can use numerically computed eigenvalues and eigenvectors in equation (11). We call this estimate . In Figure 11(a), we have plotted the difference of and as a function of time. The error is small, but seems to increase with time. This can be interpreted from equation (12), which is a sum of sine functions. Time is a parameter that is proportional to the frequency of the sine functions. Therefore, when increases, the sine wave is oscillating with a higher and higher frequency and this becomes more and more difficult to handle numerically.
(a) Difference between and as a function of time and (b) difference between and as a function of n on a log scale.
In Figure 11(b), the difference between and is computed for different . The time equal to 1.25 is chosen because this is related to the upward step on the second period. The difference increases with , which can be understood by the impact of on the frequency of the sine wave. However, note that this difference is still small compared to the ringing effects that are illustrated in this article.
Regularized step function
We are now interested in seeing how the solution is affected using a regularized step function of the form
where is a parameter that defines the steepness of the step. This function is shown in Figure 12 for and . We choose the period to be one and compute by equation (10). We still consider a system which is initiated by a steady state where , that is, all in equation (10) are equal to zero. The convolution is computed numerically and is shown in Figures 13 and 14 for various . In Figure 13, we use , while in Figure 14 we use .
Step functions with various steepness parameters . The bottom plot is zoomed in on the top part of the step.
This figure shows , where the step function has steepness , for various . The effect of ringing is increasing with time, but seems to disappear with larger . It is also worth noting that this wave looks like a square wave with rounded corners.
This figure shows , where the step function has steepness , for various . The effect of ringing is increasing with time, but seems to disappear with larger . Compared to the case of in Figure 13, the wave is more “square” and a larger is required to get rid of the ringing.
The method of reducing the Gibbs phenomenon, using a high in combination with a regularized step function, is somewhat analogous to reducing or eliminating the Gibbs phenomenon using a limited number of Fourier coefficients Barkhudaryan et al.14
Conclusion
The mass-spring model is compared to the distributed parameter model on a homogeneous rod, where the left side is subject to a step response, while the right side is free to move. It has been shown that the solution is a sum of a forward and a backward moving wave. In the limiting case when the number of elements goes to infinity, the solutions are likely the same.
However, for a finite number of elements in the mass-spring model, a Gibbs-like phenomenon is observed. The result is an imperfect square wave that is getting more and more distorted with time. At each upward step and at each downward step, the wave seems to overshoot and undershoot to a fixed amount. Different from the Gibbs phenomenon, there is no undershoot before the upward step and no overshoot before the downward step. From a practical point of view, it is promising that using a continuous step function and enough elements in the model, the overshoots, undershoots, and ringing seem to disappear.
Footnotes
Academic Editor: Elsa de Sa Caetano
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
References
1.
BenaroyaH. Mechanical vibration: analysis, uncertainties and control. 2nd ed. New York: SciTech Book News, 2005.
2.
SmithTLSmithKS. Mechanical vibrations: modeling and measurement. New York: Springer, 2011.
3.
SiddiquiKUSinghMK. Mechanical system design. New Delhi, India: New Age International, 2007.
4.
BavinckHDietermanHAStieltjesJED. Analytic solutions for pulse-responses of discrete semi-infinite and finite one-dimensional media. Technical report 49, 1994. Delft: TU Delft.
5.
DietermanHAStieltjesJEDBavinckH. Structural differences in wave propagation in discrete and continuous systems. Arch Appl Mech1995; 66: 100–110.
6.
BavinckHDietermanHA. Wave propagation in a finite cascade of masses and springs representing a train. Vehicle Syst Dyn1996; 26: 45–60.
7.
DemmelJW. Applied numerical linear algebra. Philadelphia, PA: SIAM, 1997.
8.
YuehWC. Eigenvalues of several tridiagonal matrices. Appl Math E Notes2005; 5: 66–74.
9.
HewittEHewittRE. The Gibbs-Wilbraham phenomenon: an episode in Fourier analysis. Arch Hist Exact Sci1979; 21: 129–160.
10.
TisseurFMeerbergenK. The quadratic eigenvalue problem. SIAM Rev2001; 43: 235–286.
11.
AdamsRA. Calculus: a complete course. Upper Saddle River, NJ: Pearson Education, 2014.
12.
GantmacherFR. The theory of matrices, vol. 2. Providence, RI: AMS Chelsea Publishing, 1974.
13.
HovdaS. Closed-form expression for the inverse of a class of tridiagonal matrices. Electron J Linear Al2016; 6: 437–445.
14.
BarkhudaryanABarkhudaryanRPoghosyanA. Asymptotic behavior of Eckhoff’s method for Fourier series convergence acceleration. Anal Theor Appl2007; 23: 228–242.