EE16B HW 3 Solutions
EE16B HW 3 Solutions
Since this is a nonhomogeneous differential equation, we will perform a change of coordinates. Choose ỹ
d2 ỹ d2 y
such that 8ỹ = 8(y − 8), which means we need ỹ = y − 1. Then, ddtỹ = dy
dt and dt 2 = dt 2 .
d2 y dy
8= − 4 + 8y
dt 2 dt
2
d ỹ d ỹ
8 = 2 − 4 + 8(ỹ + 1)
dt dt
2
d ỹ d ỹ
0 = 2 − 4 + 8ỹ
dt dt
"#
ỹ(t)
We set up the matrix differential equation with the state vector ~x(t) = d ỹ .
dt (t)
" # " #" #
d ỹ
dt (t) =
0 1 ỹ(t)
d2 ỹ −8 4 ddtỹ (t)
dt 2
(t)
Call this coefficient matrix A. We will solve for its eigenvalues, which are roots of det(A − λ I) = 0.
" #
−λ 1
det = λ 2 − 4λ + 8 = 0
−8 4 − λ
√
4 ± 16 − 32
λ= = 2±2j
2
The λ s are non-real complex conjugates, so the general solution is given by:
Because k1 , k2 are complex conjugate pairs, we can simplify to the form shown below:
y(t) = ỹ(t) + 1
= e2t (c1 cos(2t) + c2 sin(2t)) + 1
dy
(t) = 2e2t (c1 cos(2t) + c2 sin(2t)) + e2t (−2c1 sin(2t) + 2c2 cos(2t))
dt
dy
To find c1 and c2 , we substitute the initial conditions for y and dt . Recall sin(0) = 0 and cos(0) = 1.
c1 + 1 = 1
2c1 + 2c2 = 2
d2y dy
− 2λ0 + λ02 y = 0
dt 2 dt
(b) Let’s assume the solution to our differential equation is c1 eλ0t + c2teλ0t . Verify that this solution satis-
fies the differential equation you get when using the a0 and a1 you found in part (a).
(c) Making the same assumption as part (b), show that we can always find constants c1 , c2 such that we
can satisfy initial conditions y(0) = y0 , dy 0
dt (0) = y0
Solution:
y(0) = y0 = c1 e0 + c2 (0)e0
= c1
dy
(0) = y00 = λ0 c1 e0 + c2 e0 + λ0 c2 (0)e0
dt
= λ0 c1 + c2
We have two linearly independent equations and we’re solving for two variables, so we should always
reach a unique solution.
S1 t = 0 S2 t =0
+ Vin
− +
R1 R2 Vout
Figure 1: Circuit A
(a) Consider circuit A. Assuming that for t < 0, switch S1 is on and switch S2 is off (and both switches
have been in these states indefinitely), what is iL (0)?
Solution: When S1 is on and S2 is off for a long period of time, didtL = 0 because the circuit will have
reached a steady state, and the current through R1 will be equal to iL . We find
Vin −VL −VR1 = 0
(b) Now let’s assume that for t ≥ 0, S1 is off and S2 is on. Solve for Vout (t) for t ≥ 0.
Solution:
Vin −VL −Vout = 0
diL
Vin − L − iL R2 = 0
dt
diL R2 Vin
+ iL =
dt L L
This is a non-homogenous first order differential equation in iL . We can solve for iL (t) and then use
Ohm’s law to find Vout (t) after this has been solved.
diL R2 Vin
+ (iL − ) = 0
dt L R2
(d) In general, if we want maxVout (t) to be greater than Vin , what relationship needs to be maintained
between the values of R1 and R2 ?
Solution: As long as the coefficient on our exponential term, given by RR21 − 1, is greater than 0 (i.e.
when RR12 > 1) then the maximum value of Vout (t) will be achieved at t = 0 and will have a value of
R2 R2
R1 Vin > Vin . Otherwise, if R1 ≤ 1, the maximum value of Vout (t) is reached at t = ∞, where Vout = Vin
regardless of R2 and R1 . Therefore, our necessary condition for the maximum of Vout to be greater than
Vin is:
R2 > R1
(e) Now assume that at time t = t1 , switch S2 was turned off, and switch S1 was turned back on. Solve for
iL (t) for t > t1 . If R2 > R1 , how does this iL (t) for t > t1 compare with the initial condition iL (0) you
found in part (a)?
Solution: Our new initial condition for t > t1 is given by plugging in t = t1 into the equation for iL (t)
R2
we found in part (b). Thus, iL (t1 ) = VRin2 + ( VRin1 − VRin2 )e− L t1 .
We can write the relationship between the current through the inductor and the current through R1 :
iL = iR1
VR1
iL =
R1
Vin −VL
iL =
R1
Vin L didtL
iL = −
R1 R1
diL R1 Vin
+ iL =
dt L L
This is a first order non-homogeneous differential equation similar to that found in part (b), except
with R1 in place of R2 . Following those steps in part (b), we find the general solution:
Vin R1
iL (t) = + c1 e− L t
R1
To find c1 we apply our initial condition:
Vin R1 Vin Vin Vin R2
iL (t1 ) = + c1 e− L t1 = + ( − )e− L t1
R1 R2 R1 R2
R1 Vin Vin R2
c1 e− L t1 = ( − )(1 − e− L t1 )
R2 R1
4. Oscillators
In this question, we’ll be looking at an oscillator circuit. There are many types of oscillators, but this circuit
is known as an LC tank. It’s called an oscillator because the circuit produces a repetitive voltage waveform
under the right initial conditions.
L Vout C
− ic
iL
(a) If iL (0) = 0A and Vout (0) = 0V, derive an expression for Vout (t) for t ≥ 0. Use Vout and iL as your state
variables.
Solution:
Since the inductor and capacitor are in parallel:
VL = Vc = Vout
KCL gives:
dVout
iL = −ic = −C
dt
dVout 1
= − iL
dt C
1
λ1,2 = 0 ± j √
LC
The eigenvalues are purely imaginary, so the solution to the differential equation takes the form:
1 1
Vout (t) = c1 cos √ t + c2 sin √ t
LC LC
dVout (0)
We can find c1 and c2 with initial conditions for Vout (0) and dt
Vout (0) = 0 = c1
dVout c1 1 c2 1
= − √ sin √ t + √ cos √ t
dt LC LC LC LC
dVout (0) 1 c2
= ic (0) = 0 = √
dt C LC
c1 = c2 = 0
Vout (t) = 0
(b) Now let’s see how the circuit reacts with non-zero initial current. If iL (0) = 50µA and Vout (0) = 0V,
derive an expression for Vout (t) for t ≥ 0. How does the amplitude of Vout change over time?
Solution:
The only thing that changed from part (a) was the initial conditions, which means we still have:
1 1
Vout (t) = c1 cos √ t + c2 sin √ t
LC LC
Plugging in initial conditions:
Vout (0) = 0 = c1
ic (0) = −iL (0) = −50 × 10−6
dVout (0) 1 −50 × 10−6 c2
= ic (0) = −11
=√
dt C 10 10 × 10−11
−8
c1 = 0
5 √
c2 = − √ × 10−3 = −5 10 × 10−4
10
√ √
Vout (t) = −5 10 × 10−4 sin 10 × 109t
Notice that the amplitude of Vout is constant.
t =0 t =0
S2 S1
+
L Vout C + Vs
−
− ic
iL
L Vout C + Vs
−
− ic
iL
iL (0) = 0A
Vout (0) = Vs = 3V
(d) At t = 0, the switches flip state (S1 turns off and S2 turns on). Derive an expression for Vout (t) for t ≥ 0.
Use the same component values as part (c).
Solution:
For t ≥ 0, the circuit looks like:
L Vout C + Vs
−
− ic
iL
The voltage source is in series with an open circuit, so it doesn’t affect the circuit. This means the
circuit is the same as in part (a), so we can say:
1 1
Vout (t) = c1 cos √ t + c2 sin √ t
LC LC
Plugging in initial conditions:
Vout (0) = 3 = c1
dVout (0) 1 c2
= ic (0) = 0 = √
dt C 10 × 10−11
−8
(e) Let’s see what happens when there is a parasitic resistance R in parallel with the LC tank.
R L Vout C
− ic
iR iL
If iL (0) = 0µA and Vout (0) = 3V, derive an expression for Vout (t) for t ≥ 0. Use component values
C = 10pF, L = 10nH, and R = 100kΩ. How does the amplitude of Vout change over time?
Solution: For this problem, we’ll use the same state variables as part (a), Vout and iL .
Since all three components are in parallel, we can say:
VR = VL = Vc = Vout
dVout diL
To solve the differential equation, we need to get dt and dt in terms of Vout and iL
dVout
C = ic
dt
Using KCL:
iR + iL + ic = 0
Vout dVout
+ iL +C =0
R dt
dVout 1 1
= − Vout − iL
dt RC C
diL
VL = Vout = L
dt
diL 1
= Vout
dt L
Putting into matrix form: " # " #" #
dVout 1
dt − RC − C1 Vout
diL = 1
dt L 0 iL
Finding eigenvalues: " #
1
− RC − λ − C1 = λ2 + 1 λ + 1 = 0
det 1
L −λ RC LC
s 2
1 1 1
λ1,2 = − ± −
2RC 2RC LC
p
λ1,2 = −5 × 105 ± 25 × 1010 − 1019
√
Since 25 × 1010 << 1019 , we can estimate the square root term as −1019 :
√
λ1,2 = −5 × 105 ± j 10 × 109
5
√ √
Vout (t) = e−5×10 t c1 cos( 10 × 109t) + c2 sin( 10 × 109t)
Vout (0) = 3 = c1
dVout 5
√ √
= (−5 × 105 )e−5×10 t c1 cos( 10 × 109t) + c2 sin( 10 × 109t)
dt √
5 √ √ √
+ e−5×10 t −( 10 × 109 )c1 sin( 10 × 109t) + ( 10 × 109 )c2 cos( 10 × 109t) (1)
dVout (0) √
= −3 × 106 = (−5 × 105 )c1 + ( 10 × 109 )c2
dt
−15 × 10−4 √
c2 = √ = −15 10 × 10−5
10
This gives us:
5t
√ √ √
Vout (t) = e−5×10 3 cos( 10 × 109t) − 15 10 × 10−5 sin( 10 × 109t)
The amplitude of Vout decays over time. This is due to energy being dissipated across the resistor as
energy transitions between the inductor and capacitor.
(f) In order to counteract the parasitic resistance, we create a negative resistance (which can be done using
transistors, but will not be covered in this class) in parallel with the other components:
− R2 R L Vout C
− ic
iL
R −R
−R 2
Req = R|| = = −R
2 R + −R2
Now we have the same circuit as part (e), but with R as negative. We can use the previous equations
from part (e), and just plug in −R for R:
s 2
1 1 1
λ1,2 = − ± −
2(−R)C 2(−R)C LC
√
λ1,2 = 5 × 105 ± 10 × 109
5
√ √
Vout (t) = e5×10 t c1 cos( 10 × 109t) + c2 sin( 10 × 109t)
Vout (0) = 3 = c1
dVout 5
√ √
= (5 × 105 )e5×10 t c1 cos( 10 × 109t) + c2 sin( 10 × 109t)
dt √
5 √ √ √
+ e5×10 t −( 10 × 109 )c1 sin( 10 × 109t) + ( 10 × 109 )c2 cos( 10 × 109t) (2)
dVout (0) √
= 3 × 106 = (5 × 105 )c1 + ( 10 × 109 )c2
dt
15 × 10−4 √
c2 = √ = 15 10 × 10−5
10
This gives us:
5t
√ √ √
Vout (t) = e5×10 3 cos( 10 × 109t) + 15 10 × 10−4 sin( 10 × 109t)
Contributors:
• Jaymo Kang.
• Arda Sahiner.
• Kyle Tanghe.