You are on page 1of 7

1. Given the RC circuit problem in the class. The R is equal to 10K and C is equal to 10F.

Please solve the


following problem. The input voltage is V and the voltage across the capacitor is Vc. The initial condition
of Vc(0)=0.
(a) Solve the step input response of Vc(t) using both the ODE and Laplace Transform approach. Plot the
response using Matlab. Program should be included.
(b) If the V(t)=sin2t, please solve the problem by using the ODE, Laplace Transform, and Fourier transform
(Bode plot concept). Plot the response using Matlab function. Program should be included. Note that the
ODE and Laplace Transform can obtain the transient response while the Fourier transform can only
obtain the steady state response.
(c) Explain the relation between the roots of the characteristic equation in solving the homogenous solution
and the pole of the transfer function. What do you get from the above problem.
ANS:
(a)
VC

Q
C

VC

idt

C
dV
i C C
dt

Vin VR VC

VC y (t )

and Vin iR VC Vin r (t )

r (t ) iR y (t ) r (t ) RC

dy (t )
y (t )
dt

Laplace Transform
laplace
sY ( s ) y (0)

ODE

1
1
Y ( s)
R( s )
RC
RC

1
1
)Y ( s )
R( s )
RC
RC
1
Y ( s)
RC
G ( s)

1
R( s )
s
RC
1
R ( s )
1
1
s Y ( s)
1
s
s
RC
(s

L y (t ) VC (t ) 1 e

1
t
RC

I (t ) e

RC dt

e RC
1

I (t )Vc (t ) e RC
Vc (t ) Vin C1 e

t
Vin
dt Vin e RC C1
RC
1
t
RC

Vc (0) 0 C1 Vin
Vc (t ) Vin Vin e

1
t
RC

1 e

1
t
RC

(b)
ODE

V (t ) sin 2t

: y 1/RC y sin2t/RC

RC 0.1, : y 10 y 10sin2t
homogeneou s : 10 0, -10 y h c1e -10t
particular : y p c2 sin 2t c3 cos 2t
- 2c2 cos 2t 2c3 sin 2t 10c2 sin 2t 10c3 cos 2t 10 sin 2t
(10c2 2c3 ) sin 2t ( 2c2 10c3 ) cos 2t 10 sin 2t
25
5
, c3
26
26
25
5
y c1e -10t sin 2t
cos 2t
26
26
5
5 -10t 25
5
c1
, y
e sin 2t
cos 2t
26
26
26
26

c2

Laplace

V (t ) sin 2t

: y 1/RC y sin2t/RC

RC 0.1, : y 10 y 10sin2t
laplace
sY ( s ) 10Y ( s ) 10

2
s 4
2

20
20

Y
(
s
)

s2 4
( s 2 4) ( s 10)
5
25
s
5 / 26 L1
5 -10t 25
5
Y ( s ) 26 2 26
y (t )
e sin 2t
cos 2t
s 4
s 10
26
26
26
( s 10)Y ( s )

Fourier

V (t ) sin 2t

: y 10 y 10sin2t
L ( s 10)Y ( s ) 10 R( s ) G ( s )

10
10
s j G ( j )
s 10
j 10

10
10

j 2 10
104
10
25
5
y (t ) 10 sin 2t
sin( 2t ) sin 2t
cos 2t
26
26
104
2

(c)

y 10 y 10 sin 2t,hom ogeneou y e t ,( 10 ) e t 0


character equation 10;root of character equation 10
pole ()"0"
G(s)

10
; pole s 10 0 pole : s 10
s 10

2. Given the MCK problem where M=1Kg, K=100 Nt/m, C=12 Nt/(m/sec) and the input force on the mass
is given as F. Please answer the following questions.
(a) Derive the model in the forms of O. D. E., transfer function, frequency response function.
(b) Find the step response function using the approach in the class. Use Matlab to plot the response. Please
determine the minimum value of C that you will choose which can achieve no overshoot?
(c) Use Matlab "step" command to help you validate results in (b).
(d) Use Matlab to show the step results for C=2 and C=40. (K=100).
(e) Use Matlab "bode" to show the Bode plots for C=2, 12, and 40.
(f) Use Matlab to show the step results for K=36, 100 , 400 and C=12.
(g) Use Matlab to show the Bode plots for K=36, 100, 400 and C=12.
(h) Please comment on different C and K for the time and frequency response functions found in the (d)-(g)
ANS:

Fm ma

Fk kx

(a)

F cv
c

avx

vx

F (t ) Fm Fc Fk m x c x kx F ( s ) m[ s 2 X ( s ) sx (0) x ' (0)] c[ sX ( s ) x (0)] kX ( s );


m 1kg, c 12 Nt /( m / sec), k 100 Nt / m; x (0) 0, x ' (0) 0
X ( s)
1
F ( s ) s 2 X ( s ) 12 sX ( s ) 100 X ( s ), G ( s )
2
F ( s ) s 12 s 100
s jw G(j )

1
1
1
(100 - 2 ) - 12j

(j ) 2 12(j ) 100 - 2 12j 100 (100 - 2 ) 12j [(100 - 2 )] 2 - (12j ) 2

(100 - 2 ) - 12j
(100 - 2 ) - 12j

10000 - 200 2 4 144 2 10000 - 56 2 4


(b)

1
2
n 100 n 10 c 2n
s 12 s 100
No overshoot c 20; 1 c 20 1 no _ overshoot
(c)
1; G ( s )

(d)
c=2;k=100

c=40;k=100

c=12;k=100

(e)
c=2;k=100

c=12;k=100

c=40;k=100

(f)
c=12;k=36

c=12;k=100

c=12;k=400

(g)
c=12;k=36

c=12;k=400

c=12;k=100

(h)
From (d)~(g)
C ,,
C peak =>
K ,

You might also like