Laplace Transforms: Vertical Motion of a Coupled Spring System

From Class Wiki
Revision as of 10:37, 4 December 2009 by Jimmy.apablaza (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

By Jimmy Apablaza

This problem is described in Exercise 14, Section 7.6 (page 323) of the A first Course in Differential Equations textbook, 8ED (ISBN 0-534-41878-3).

Figure 1. Coupled Spring System.

Problem Statement

Derive the system of differential equations describing the straight-line vertical motion of the coupled spring shown in Figure 1. Use Laplace transform to solve the system when k1=k2=k3=1, m1=m2=1, and x1(0)=0, x1(0)=1, x2(0)=0, and x'2(0)=1.

Solution

At positions x1 and x2, the masses m1 and m2 are in equilibrium. Thus, the motion equations for m1 and m2 are,

m1x¨1=k1x1+k2(x2x1)
m1x¨1+k1x1k2(x2x1)=0
m2x¨2=k2(x2x1)k3x2
m2x¨2+k2(x2x1)k3x2=0


where m1x'1 and m2x'2 represent the Newton's Second Law of Motion and k1x1+k2(x2x1) and k2(x2x1)k3x2 represent the net forces acting in the masses.

Laplace Transform

Applying the Laplace Transform to the motion equations and plugging the values of k1, k2, k3, m1, m2, x1(0), x1(0), x2(0), and x'2(0) for this systems, we obtain,

[m1x¨1+k1x1k2(x2x1)]=m1[s2X1(s)sx1(0)x˙1(0)]+k1X1(s)k2(X2(s)X1(s))=0
X1(s)(m1s2+k1+k2)=m1(sx1(0)x˙1(0))+k2X2(s)
X1(s)=m1(sx1(0)+x˙1(0))+k2X2(s)(m1s2+k1+k2)
X1(s)=1(s0+(1)]+1X2(s)(1s2+1+1)
X1(s)=X2(s)1(s2+2)
[m2x¨2+k2(x2x1)+k3x2]=m2[s2X2(s)sx2(0)x˙2(0)]+k2(X2(s)X1(s))+k3X2(s)=0
X2(s)(m2s2+k2+k3)=m2(sx2(0)x˙2(0))+k2X1(s)
X2(s)=m2(sx2(0)+x˙2(0))+k2X1(s)(m2s2+k2+k3)
X2(s)=1(s0+1)+1X1(s)(1s2+1+1)
X2(s)=X1(s)+1(s2+2)

Finally, solving for X1(s) and X2(s) yields,

X1(s)=1s2+3
X2(s)=1s2+3


Inverse Laplace Transform

Error creating thumbnail: File missing
Figure 2. Coupled Spring System Motion.

First, we recognize that

sin(kt)=1{ks2+k2}

On the other hand, we identify that k2=3, and so k=3. Hence, we fix the expression by multiplying and dividing by 3,

x1(t)=1[X1(s)]=1[1s2+3]=131[3s2+3]=13sin(3t)
x2=(t)1[X2(s)]=1[1s2+3]=131[3s2+3]=13sin(3t)

A plot of the oscillatory motion is shown on Figure 2.


Initial-Value & Final-Value Theorem

The initial-value and final-value theorem can be useful the finding the behavior of a function at small and large times respectively. By definition, the Initial-Value Theorem is,

limssX(s)=x(0)

and the Final-Value Theorem is,

lims0sX(s)=x()

Thus, applying both theorems to our the Laplace Transforms,

limssX1(s)=limss1s2+3=limsss2+3=2+3=0=x1(0)
lims0sX1(s)==lims0s1s2+3=lims0ss2+3=002+3=0=x1()


limssX2(s)=limss1s2+3=limsss2+3=2+3=0=x2(0)
lims0sX2(s)==lims0s1s2+3=lims0ss2+3=002+3=0=x2()


Bode Plot

Error creating thumbnail: File missing
Figure 3. Bode Diagram.

The Bode plot for the Transfer Functions

H1(s)=1s2+3

and

H2(s)=1s2+3

can be easily done using a program like Octave or MATLAB. The code is displayed below. From Figure 3 we may notice that the Amplitude vs. Frequency plot for both functions overlaps. The peak amplitude occurs at 31.73 seconds, as well as the phase switching as shown in the Phase vs. Frequency plot.

h1=tf([-1],[1 0 3]); 
h2=tf([1],[1 0 3]); 
bode(h1,'b',h2,'-.r');
legend('H_1(s)','H_2(s)')
grid on;

Magnitude Frequency Response

Considering the Transfer Functions H1(s) and H2(s) described in the Bode Plot section, we notice that there are no values for the s-variable that make H1(s) and H2(s) equal zero.

From the Bode Plot, we notice that the break point occurs at ≈ 1.73 seconds, so the

Convolution

By definition, the convolution of two functions is,

y(t)=f(t)*h(t)=f(τ)h(tτ)dτ=f(tτ)h(τ)dτ

where h1 refers to the inverse Laplace Transform. Assuming that τ is a dummy variable of integration, and f(t) is the impulse function (f1(t)=f2(t)=δ(t)), the convolution for our system is,

y1(t)=0tδ(tτ)h1(τ)dτ=130tδ(tτ)sin(3τ)dτ=[13sin(3τ)]τ=t=13sin(3t)
y2(t)=0tδ(tτ)h2(τ)dτ=130tδ(tτ)sin(3τ)dτ=[13sin(3τ)]τ=t=13sin(3t)

which is the same solution yields by the inverse Laplace Transform

State Equation Model

By definition, the the state equation is stated as

x˙_=A^x_+B^u_


Now, consider the motion equations described in the Solution section,


m1x¨1+k1x1k2(x2x1)=m1x¨1+k1x1k2x2+k2x1=0

m2x¨2+k2(x2x1)k3x2=m2x¨2+k2x2k2x1k3x2=0


Solving for x¨1 and x¨2 yields,


x¨1=k1m1x1+k2m1x2k2m1x1
x¨2=k2m2x2+k2m2x1+k3m2x2


Finally, we let x1, x˙1, x2, and x2˙ be the state variables. Thus,


[x˙1x¨1x˙2x¨2]=[01001m1(k1+k2)0k2m100001k2m201m2(k3k2)0][x1x˙1x2x˙2]