155
Figure PS5-2 No15
Applying Newton’s second law in the x-direction gives
:
xx
xFmao ¦
Mass 1:
11122 1 22 1 11
()()fkxkxx bxx mx
Mass 2:
2221 221 32 22
()()fkxx bxx kxmx
Rearranging the equations, we have
11 21 2 2 1 2 1 2 2 1
()mx bx bx k k x kx f
22 21 2 3 2 21 22 2
()mx kx k k x bx bx f
b. The differential equations can be expressed in second-order matrix form as
c. The state, the input, and the output are
The state-space representation in matrix form is
11
221
12 2 2 2
1111 1
332
44
23
222
2
2222
0010 00
0001 00
10
1
0
xx
xxu
kk k b b
mmmm m
xxu
xx
kk
kbb
m
mmmm
ªº
ªº
«»
«»
½ ½
«»
«»
°° °°
«»
«»
½
°° °°
®¾ ®¾ ®¾
«»
«»
¯¿
°° °°
«»
«»
°° °°
«»
«»
¯¿ ¯¿
«»
«»
¬¼
¬¼
,
1
21
32
4
1000 00
0100 00
x
xu
xu
x
½
°° ½
ªºªº
°°
®¾ ®¾
«»«»
¬¼¬¼¯¿
°°
°°
¯¿
y
16. For Problems 14 and 15, use MATLAB commands to define the systems in the state-space form and then
convert to the transfer function form. Assume that the displacements of the two masses, x1and x2, are the
outputs, and all initial conditions are zero. The masses are m1= 5 kg and m2= 15 kg. The spring constants are k1
= 7.5 kN/m, k2= 15 kN/m, and k3= 30 kN/m. The viscous damping coefficients are b1= 280 N·s/m and b2= 90
N·s/m.