mae143a 2014 final exam solutionsrenaissance.ucsd.edu/courses/mae143a/final_143a_14_sol.pdf ·...

2
Driving MiP: MAE143A Signals & Systems final exam solutions, S1 2014 1a. Taking u(t )= constant and assuming small perturbations from pure motion along the x 1 axis, dropping the primes for notational clarity, we have dr 1 /dt = ru, dr 2 /dt = ru α d α/dt = ru Δ /(L/2), δ = α + r 2 , γ = 2δ/d 2 , ω = γ ru, u Δ =(L/2)ω/r . 1b. dr 1 /dt = constant, and thus r 1 (t ) increases linearly with t in this approximation. Also, d (t )= g 1 (t ) r 1 (t )= . 1c. Defining f 1 = ru and f 2 = 2ru/ℓ 2 , we have dr 2 /dt = ru α d α/dt = ru Δ /(L/2)= ... = ω = (2δ/d 2 ) ru = (2ru/ℓ 2 )(α + r 2 ) dr 2 /dt = f 1 α d α/dt = f 2 [α + r 2 ] Taking the Laplace transform, and multiplying the second equation by s and substituting the first, we have sR 2 (s)= f 1 α(s) s α(s)= f 2 [α(s)+ R 2 (s)] [s 2 + f 2 s + f 2 f 1 ] α(s)= 0 p ± =[f 2 ± f 2 2 2 4 f 2 f 1 ]/2 = σ ± i ω d . 1d. Substituting, we get f 1 = 0.1 and f 2 = 20 and thus [s 2 + 2 s + 2]α(s)= 0, with roots p ± = 1 ± 1i, with (moderate) damping ζ = sin[atan (1/1)] = 0.707, implying about a 5% overshoot to a step input (if an input is put on the system). Taking α(0)= 0.05 and r 2 (0)= 0 gives α (0)= 0.1. Following (17.51) in NR [derive it from scratch if you forgot it] gives α(s)= c 1 s + c 0 (s p + )(s p ) = d + s p + + d s p , α(t )= d + e p + t + d e p t = e σt [(d + + d ) cos ω d t + i (d + d ) sin ω d t ] where d + = c 1 p + + c 0 p + p d = c 1 p + c 0 p p + and c 1 = α(0) c 0 = α (0)+ 2α(0) from which it follows that c 1 = 0.05, c 0 = 0, and d ± = 0.025 ± 0.025i. Thus, α(t )= e t [0.05 cos t 0.05 sin t ]. A plot of this result is given below (solid). 1e. Repeating questions 1c and 1d with the second equation in (4) replaced with u Δ = K(L/2)ω/r gives dr 2 /dt = ru α d α/dt = ru Δ /(L/2)= Kω = (2Kru/ℓ 2 )(α + r 2 ) dr 2 /dt = f 1 α d α/dt = f 2 [α + r 2 ] with f 1 = ru and f 2 = 2Kru/ℓ 2 . The formulae resulting upon taking the Laplace transform follow as before. Substituting with K = 2, we get f 1 = 0.1 and f 2 = 40 and thus [s 2 + 4 s + 4]α(s)= 0. Both roots of the polynomial in s are at p = 2, with (strong) damping ζ = 1, implying reduced transients, and reduced overshoot to a step input (if an input is put on the system). Taking α(0)= 0.05 and r 2 (0)= 0 gives α (0)= 0.2. The solution in this case is slightly different than (17.51) in NR, as we have repeated roots. In this case, we have α(s)= c 1 s + c 0 (s p) 2 = d 1 s p + d 2 (s p) 2 α(t )= d 1 e pt + d 2 te pt where d 1 = c 1 d 2 = c 0 + pc 1 and c 1 = α(0) c 0 = α (0)+ 4α(0) From which is follows that c 1 = 0.05, c 0 = 0.1, d 1 = 0.05, d 2 = 0.2 and thus α(t )= 0.05 e 2 t 0.2 te 2 t . A plot of this result is give below (dashed); note that the response settles almost a factor of 2 faster than the case considered previously. 1f. Combining (2), (3), and (4) with the extra factor of K = 2 results in the full feedback rule (along segment k) of u Δ (t )= KLu d 2 [(g 1 r 1 ) sin α (g 2 r 2 ) cos α] where c(t )= p k1 −{[p k1 r(t )] s k }s k , g(t )= c(t )+ s k , d = g r. Simplifing this rule based on the assumptions stated gives the simplified feedback rule u Δ (t )= KLu 2 (α + r 2 ).

Upload: hamien

Post on 29-Jul-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MAE143a 2014 final exam solutionsrenaissance.ucsd.edu/courses/mae143a/final_143a_14_sol.pdf · dr1/dt =ru, dr2/dt =ruα dα/dt ... 10−4 10−3 10−2 10−1 100 101 102 103 104

Driving MiP: MAE143A Signals & Systems final exam solutions, S1 2014

1a. Taking u(t) = constant and assuming small perturbations from pure motion along the x1 axis, dropping the primes for

notational clarity, we have

dr1/dt = r u, dr2/dt = r uα dα/dt = r u∆ /(L/2), δ = ℓα+ r2, γ =−2δ/d2, ω = γr u, u∆ = (L/2)ω/r.

1b. dr1/dt = constant, and thus r1(t) increases linearly with t in this approximation. Also, d(t) = g1(t)− r1(t) = ℓ.

1c. Defining f1 = r u and f2 = 2r u/ℓ2, we have

dr2/dt = r uα

dα/dt = r u∆ /(L/2) = . . .= ω =−(2δ/d2)r u =−(2ru/ℓ2)(ℓα+ r2)⇒

dr2/dt = f1 α

dα/dt =− f2 [ℓα+ r2]

Taking the Laplace transform, and multiplying the second equation by s and substituting the first, we have

sR2(s) = f1 α(s)

sα(s) =− f2 [ℓα(s)+R2(s)]⇒ [s2 + f2 ℓs+ f2 f1]α(s) = 0 ⇒ p± = [− f2 ℓ±

f 22 ℓ

2 − 4 f2 f1]/2 =−σ± iωd .

1d. Substituting, we get f1 = 0.1 and f2 = 20 and thus [s2+2s+2]α(s) = 0, with roots p± =−1±1i, with (moderate) damping

ζ= sin[atan(1/1)] = 0.707, implying about a 5% overshoot to a step input (if an input is put on the system). Taking α(0) = 0.05

and r2(0) = 0 gives α′(0) =−0.1. Following (17.51) in NR [derive it from scratch if you forgot it] gives

α(s) =c1s+ c0

(s− p+)(s− p−)=

d+

s− p++

d−

s− p−,

α(t) = d+ep+t + d−ep−t

= e−σt [(d++ d−)cosωd t + i(d+− d−)sinωd t]

where

d+ =c1 p++ c0

p+− p−

d− =c1 p−+ c0

p−− p+

and

c1 = α(0)

c0 = α′(0)+ 2α(0)

from which it follows that c1 = 0.05, c0 = 0, and d± = 0.025± 0.025i. Thus, α(t) = e−t [0.05cos t − 0.05sin t]. A plot of this

result is given below (solid).

1e. Repeating questions 1c and 1d with the second equation in (4) replaced with u∆ = K(L/2)ω/r gives

dr2/dt = r uα

dα/dt = r u∆ /(L/2) = Kω =−(2Kru/ℓ2)(ℓα+ r2)⇒

dr2/dt = f1 α

dα/dt =− f2 [ℓα+ r2]

with f1 = r u and f2 = 2Kr u/ℓ2. The formulae resulting upon taking the Laplace transform follow as before.

Substituting with K = 2, we get f1 = 0.1 and f2 = 40 and thus [s2 + 4s+ 4]α(s) = 0. Both roots of the polynomial in s are at

p =−2, with (strong) damping ζ = 1, implying reduced transients, and reduced overshoot to a step input (if an input is put on

the system). Taking α(0) = 0.05 and r2(0) = 0 gives α′(0) =−0.2.

The solution in this case is slightly different than (17.51) in NR, as we have repeated roots. In this case, we have

α(s) =c1s+ c0

(s− p)2=

d1

s− p+

d2

(s− p)2

α(t) = d1 ept + d2 t ept

where

d1 = c1

d2 = c0 + pc1

and

c1 = α(0)

c0 = α′(0)+ 4α(0)

From which is follows that c1 = 0.05, c0 = −0.1, d1 = 0.05, d2 = −0.2 and thus α(t) = 0.05e−2 t − 0.2 t e−2 t . A plot of this

result is give below (dashed); note that the response settles almost a factor of 2 faster than the case considered previously.

1f. Combining (2), (3), and (4) with the extra factor of K = 2 results in the full feedback rule (along segment k) of

u∆(t) =−K Lu

d2[(g1− r1)sin α− (g2− r2)cosα] where c(t) = pk−1 −[pk−1−r(t)]′sksk, g(t) = c(t)+ ℓsk, d = ‖g−r‖.

Simplifing this rule based on the assumptions stated gives the simplified feedback rule

u∆(t) =−K Lu

ℓ2(ℓα+ r2).

Page 2: MAE143a 2014 final exam solutionsrenaissance.ucsd.edu/courses/mae143a/final_143a_14_sol.pdf · dr1/dt =ru, dr2/dt =ruα dα/dt ... 10−4 10−3 10−2 10−1 100 101 102 103 104

0 1 2 3 4 5 6 7−0.03

−0.02

−0.01

0

0.01

0.02

0.03

0.04

0.05

10−4

10−3

10−2

10−1

100

101

102

103

104

102

103

104

10−4

10−3

10−2

10−1

100

101

102

103

104

100

150

200

250

2a. Denoting the six intermediate variables V1,V2, I1, IR3, I2, IC3

as, respectively, the voltage between C1 and R1, the voltage

between C2 and R2, and the currents through the four horizontal branches of the circuit, the relevant current/voltage relationship

across the six passive components are:

I1 =C1d(V1 −Vin)

dt, V−−V1 = R1 I1, V−−Vin = IR3

R3 I2 =C2d(V2 −V−)

dt, Vout−V2 = R2 I2, IC3

=C3d(Vout−V−)

dt.

The current flowing into the input of the op amp is negligible; thus, Kirchoff’s current law gives I1 + IR3= I2 + IC3

. We also

see that there is stabilizing feedback into the op amp (into its negative terminal), and may thus simplify the analysis by setting

V− = V+ = 0. We thus have seven equations, and may combine them to eliminate the six intermediate variables mentioned

previously to arrive at a single equation relating Vout to Vin.

2b. Taking the Laplace transform of these seven equations (replacing d/dt with s everywhere) and writing in matrix form gives

A =

−sC1 0 1 0 0 0 0

−1 0 −R1 0 0 0 0

0 0 0 −R3 0 0 0

0 −sC2 0 0 1 0 0

0 −1 0 0 −R2 0 1

0 0 0 0 0 1 −sC3

0 0 1 1 −1 −1 0

, x =

V1

V2

I1

IR3

I2

IC3

Vout

, b =

−sC1 Vin

0

Vin

0

0

0

0

Solving in Matlab and looking at the last component of the solution gives immediately

Vout(s)

Vout(s)=−

1

R3 (C2 +C3)·

[C2 R2 s+ 1] [C1 (R1 +R3)s+ 1]

s [C1 R1 s+ 1] [C2C3 R2 s/(C2 +C3)+ 1]=−K ·

(s/z1 + 1)(s/z2 + 1)

s(s/p1 + 1)(s/p2 + 1).

2c. Combining the seven equations written out in question 2a to eliminate the six intermediate variables is doable by hand in

about 30 minutes (be patient and methodical!), and gives the same solution as found above. Comparing to the desired transfer

function gives the K,z1,z2, p1, p2 in terms of R1,R2,R3,C1,C2,C3 immediately:

K =1

R3 (C2 +C3), z1 =

1

C2 R2, z2 =

1

C1 (R1 +R3), p1 =

1

C1 R1, p2 =

C2 +C3

C2 C3 R2.

Assuming a given value for R3 (e.g., R3 = 1 kΩ), combining the equations above for z2 and p1 gives simple expressions for C1

and R1, and combining the equations for K, z1 and p2 gives simple expressions for C3, C2, and R2:

C1 =p1 − z2

R3 p1 z2, R1 =

R3 z2

p1 − z2, C3 =

z1

K p2 R3, C2 =

p2 − z1

K R3 p2, R2 =

K R3 p2

z1 (p2 − z1).

2d. The Bode plot of the transfer function given, taking K = 1, z1 = 0.01, z2 = 1, and p1 = p2 = 100, is shown above right.