Professional Documents
Culture Documents
(a) Consider an arbitrary function of f (x) whose derivative ddxf is well defined. Construct a function of the
form,
g(x) = mx + b
df
that approximates f (x) in a neighborhood around a particular point x0 . m will be related to dx .
Hint. Recall the definition of a derivative.
Solution: The definition of a derivative is,
df f (x) − f (x0 )
(x0 ) = lim
dx x→x0 x − x0
This tells us that,
df
f (x) ≈ (x0 )(x − x0 ) + f (x0 )
dx
or,
f (x) ≈ ddxf (x0 ) x + f (x0 ) − ddxf (x0 )x0
| {z } | {z }
m
b
Solution:
df 2 1
= − cos x
dx 3 3
(e) Using the above approximation, can you solve the system,
dx
(t) = f (x) ≈ g(x)
dt
from x(0) = 1.
Solution:
dx 2 2
≈ − x(t) =⇒ x(t) ≈ e− 3 t
dt 3
Note. This approximation is valid for points x close to x0 . We will explore this "closeness" when we study
state feedback.
Remember from physics that the motion of a mass is subject to Newton’s second law F = ma where a = dv dt
and v = dx
dt and that springs generate force according to Fsp = −k∆x where k is the spring’s stiffness. We set
x to be 0 when the spring is at its rest length l0 so that ∆x = x. There is no gravity in this problem.
(a) Find a differential equation in terms of x and its derivatives that describes the motion of the mass. What
order is this differential equation?
Solution:
d2x k
+ x=0
dt 2 m
This differential euqation is of order 2.
(b) Write the state space model for this system as ~x˙ = A~x. What is your state vector? What are the units of
the elements of the A matrix?
If you flipped x and v in your state vector, these matrices will be flipped. In this case, the A matrix is
transposed.
(c) Find the eigenvalues of this system by solving |A − λ I| = 0. Is this system stable?
Solution:
k
λ2 + =0
m
r
k
λ1 = j
m
r
k
λ2 = − j
m
Both eigenvalues are strictly imaginary. This means the system will oscillate forever without damping
out or blowing up. This is a special case of stability. According to our definition of stability from
lecture 5B, our system is stable since ~x(t) never gets larger than the initial condition ~x(0). Note that
if we had an input, like a force we could appy to the mass, a bounded input could cause ~x(t) to grow
unbounded and the system would no longer be stable according to our lecture 5B definition. In general,
continuous time systems with purely imaginary eigenvalues are considered unstable.
3. Microphone circuit
In this problem, we will analyze and understand the circuit on the mic board of the SIXT33N robot car. Here
is the schematic for the circuit as shown in lab:
Solution: Food for thought: Rx is necessary to complete the high pass filter; without it (i.e. if we just
connected VOS1 straight into the mic board circuit), the high pass cutoff frequency would be way too high
(on the order of 100s of MHz if the only "resistor" is the wire resistance) and the circuit will not function
properly (no signal will be seen at the output).
Please leave your answers in symbolic form - e.g. write Rg instead of "10kOhm" in your expressions,
unless otherwise asked. Justify all results and work.
We will assume that all op-amps are ideal in our analysis.
im = i˜m + Im,DC
Given our model so far, we’d like to find the output voltage of the mic gain stage. Find an expression
for vmg in terms of im and Vdd .
1 Like
this one: https://www.sparkfun.com/products/8635
2 This
is beyond the scope of the class, but if you’re curious, this circuit is the underlying circuit inside the microphone which
can be modelled as a current source: https://upload.wikimedia.org/wikipedia/commons/5/57/Electret_
condenser_microphone_schematic.png
Vdd − vmg
= im
Rg
Vdd − vmg = im Rg
vmg = Vdd − im Rg
Next, we will analyze the buffer stage. Since this is an ideal op-amp in negative feedback, no current
is drawn across the 1k resistor, so vm = vmg .
(b) We will now analyze the remove mic drift stage. The off-board resistor Rx forms the second part of a
high-pass RC circuit.
However, there is just one small catch - what do we do about the VOS1 source? Can we still apply all
the RC circuit analysis techniques we’ve learned so far?
Hint: There is a technique called virtual ground which can help us here. This is the idea that for some
types of circuit analysis, ground is just a reference point which is relative. Convince yourself that
following circuits in the diagrams below are equivalent:
For calculating the cutoff frequency, you can use Cc = 1µF and Rx = 100kΩ.
v p −VOS1
What is the transfer function H(ω) = ? What is the cutoff frequency of the RC (Rx
vm −VOS1
and Cc ) filter in this stage? Express your H(ω) symbolically and express your cutoff frequency
symbolically first, then numerically.
Solution: Using the virtual ground technique, we can consider an impedance divider between vm and
VOS1 . Then, from the impedance divider equation, it follows that:
ZRx
H(ω) =
ZRx + ZCc
Rx
H(ω) =
1
Rx +
jωCc
jωRxCc
H(ω) =
jωRxCc + 1
1
fc =
2πRxCc
1
fc =
2π105 10−6
1
fc =
2π10−1
fc = 1.59Hz
(c) What is the gain |H(ω)| for the microphone voltage vm ’s DC drift (ω = 0) and for some tone in the
audio frequency range (ω = 2π440 Hz)? Based on your results, what happens to the DC drift/offset,
and what happens to the audio frequency tone? In general, what happens to audio frequency tones (say
from about 20 Hz to 20 kHz)?
Essentially, the DC offset gets removed, and the audio frequency tone is able to pass through without
issue. In fact, about any tone in the audio frequency range (> 20 Hz) is able to pass through without
issue (even at 20 Hz, the gain is 0.999 ≈ 1). This is promising news.
(d) Recall that our microphone itself had some DC bias Im,DC . Let’s see what happens to it after this RC
circuit.
Express vm in terms of i˜m , Im,DC , Rg , and any other symbolic terms as needed.
Solution:
vm = vmg = Vdd − im Rg
vm = Vdd − (i˜m + Im,DC )Rg
vm = Vdd − Rg i˜m − Rg Im,DC
Solution: The high pass filter effectively allows all frequencies in i˜m to pass through and eliminates
all DC signals.
As a result, the −Rg i˜m term survives since it contains audio frequencies only. The Vdd and −Rg Im,DC
terms disappear since the supply voltage Vdd is a constant (DC) signal, and −Rg Im,DC is likewise a
constant DC signal.
Hence, the output of the RC circuit yields:
v p −VOS1 = −Rg i˜m
Bringing over the new DC offset, we have our final equation for v p :
v p = VOS1 − Rg i˜m
(f) Now, we will analyze the variable gain amplifier stage. Using your knowledge of op-amps, express
Vout symbolically in terms of R1 , R2 , v p , and any other symbolic terms deemed necessary.
Hint: The virtual ground technique from part (b) may be very useful here.
Solution: Since this is an ideal op-amp, we will use the golden rules in conjunction with virtual
ground:
R2
v p −VOS2 = (Vout −VOS2 )
R1 + R2
R1 + R2
Vout −VOS2 = (v p −VOS2 )
R2
R1
Vout −VOS2 = (1 + )(v p −VOS2 )
R2
R1
Vout = (1 + )(v p −VOS2 ) +VOS2
R2
(g) Finally, express Vout (assume VOS1 = VOS2 for this problem) in terms of i˜m , R1 , R2 , Rg , and any other
symbolic terms deemed necessary.
Solution: Since this is an ideal op-amp, we will use the golden rules in conjunction with virtual
ground:
R1
Vout = (1 + )(v p −VOS2 ) +VOS2
R2
R1
Vout = (1 + )(VOS1 − Rg i˜m −VOS2 ) +VOS2
R2
R1
Vout = (1 + )(−Rg )i˜m +VOS2
R2
R1
Vout = −Rg (1 + )i˜m +VOS2
R2
Solution:
R1
Vout = (1 + )(v p −VOS2 ) +VOS2
R2
R1
Vout = (1 + )(VOS1 − Rg i˜m −VOS2 ) +VOS2
R2
R1
Vout = (1 + )(VOS1 −VOS2 ) +VOS2
R2
R1
Vout = (1 + )∆V +VOS2
R2
R1
Not so good - any offset between VOS1 and VOS2 has a gain of (1 + ). If the offset is great enough,
R2
we could easily hit rails or clip our input microphone signal! This gain will mess up the entire system,
so in a practical environment like lab, we must adjust VOS2 carefully using a potentiometer so that it
matches VOS1 .
You may notice that really bad things happen to your output voltage! (Exactly what the bad things are,
you’ll have to do the problem.) This is why in lab we cannot connect VOS2 directly, and must instead
use a potentiometer to finely adjust the voltage divider which creates VOS2 so that VOS2 = VOS1 .
(a)
Solution: Before the switch closes, the cap looks like an open since the circuit has reached steady
state. This means no current can flow through the cap.
ic (t = 0− ) = 0 A
(b)
Solution: Before the switch closes, the circuit reaches steady state, so we can draw the equivalent
circuit:
3Ω
5Ω 2Ω
+
− 10V
All the components are in series, so they share the same current. Using Ohm’s law:
10
iR1 (t = 0− ) = =1A
5+3+2
(c)
Solution: At t = ∞, the circuit reaches steady state and the capacitors are open. Since C1 is in parallel
with the 3Ω resistor, we can find vc1 by finding the voltage drop across the 3Ω resistor. The steady
state circuit looks like:
V1 vc1 V2
+ −
5Ω 3Ω
5Ω 2Ω
+
− 20V
+
− 10V
vC1 = V1 −V2
V1 − 20 V1 − 10 V1 −V2
+ + =0
5 5 3
V2 −V1 V2
+ =0
3 2
solving these equations, we find:
vC1 = 6 V
(d)
Solution: The first step is to take the transfer function and put it into canonical form:
Now we see that we have a pole at 10 rad/s and a zero at 0 rad/s. Let’s look at the magnitude plot first.
The zero at 0 rad/s will always contribute a slope of 20 dB/dec to the magnitude plot. The pole will
start to contribute -20 dB/dec after it’s corner frequency (10 rad/s). This means the magnitude plot will
But at what magnitude does the function stay flat? To figure that out we need to plug in a value to our
transfer function. At frequencies above 10 rad/s, the pole’s imaginary part will dominate, and we can
approximate the transfer function to be
jω
H(ω > 10) = 10 jω = 100
10
figures/exam1d_bode.png
R1 R2
iL
+
L vc C
− iC
dvc dvc d 2 vc
vc +CR2 +CR1 + LC 2 = 0
dt dt dt
Rearranging into standard form:
d 2 vc R1 + R2 dvc vc
2
+ + =0
dt L dt LC
Rs
+
+ V R1 vc
− s
−
(c)
Solution: We can use the same equivalent circuit as in part (b), since no current flows in the resistor-
capacitor branch at steady state. Everything is in series so we can say the current through the inductor
is:
Vs
iL (t = 0) =
R1 + Rs
(d)
Solution: After t=0, the voltage source is disconnected from the circuit. This means our circuit has
a limited amount of stored energy (charge on cap and magnetic field in inductor). As t approaches
infinity, the energy will be dissipated through the resistors until no more energy is left in the system.
With no energy in the circuit, all currents and voltages must be 0.
vc (t = ∞) = 0
(e)
Solution: Same reasoning as part (d)
iL (t = ∞) = 0
(a)
Solution: First, we need to determine what our circuit looks like. There are two different ways to
think about creating a bandpass filter:
Option A: create a circuit which short circuits the output voltage to ground at low (DC) and high
frequencies (ω → ∞). This leads to the circuit:
L C
Option B: create a circuit which will create an open between vin and vout at low and high frequencies.
This leads to the circuit:
C
vin L vout
To find the natural frequency of these circuits, we need to find the transfer functions. Both circuits are
just voltage dividers.
Option A:
1
( jωL)( jωC ) jωL
ZL ||ZC = 1
=
jωL + jωC
( jω)2 LC + 1
jωL
ZL ||ZC jωL R
HA (ω) = = = jωL
R + ZL ||ZC R(( jω)2 LC + 1) + jωL ( jω)2 LC + R +1
Option B:
R R jωRC
HB (ω) = = 1
=
R + ZL + ZC R + jωL + jωC
( jω)2 LC +jωRC + 1
We can find the natural frequency of the circuit by putting the ω 2 term into the canonical form for a
quadratic pole:
jω 2
= ( jω)2 LC
ω0
Option A and B’s ω 2 terms are the same, so they have the same natural frequency of
1 1
ω0 = √ =√ = 104 rad/s
LC 20 ∗ 10− 3 ∗ 5 ∗ 10− 7
(b)
Solution: The -3 dB cutoff frequency for a transfer function is defined as:
1
|H(ωc )| = √
2
We can find the cutoff frequencies by solving for the frequency.
Option B:
p p
BW = 125 + 1252 + 108 − − 125 + 1252 + 108 = 250 rad/s
(d)
Solution:
ω0
Q=
BW
Option A:
104
Q= = 0.025
4 ∗ 105
Option B:
104
Q= = 40
250
(e)
Solution:
Option A:
√1
r
ω0 LC C
Q= = 1
=R
BW RC
L
Q is dependent on the ratio of C to L while ω0 is dependent on the product of C and L.
It is possible to increase the ratio while maintaining a constant product. By doubling C and halfing L,
we can achieved double the Q while keeping ω0 constant
Option B:
√1
r
ω0 LC 1 L
Q= = R =
BW L
R C
Q is dependent on the ratio of L to C while ω0 is dependent on the product of C and L.
It is possible to increase the ratio while maintaining a constant product. By doubling L and halfing C,
we can achieved double the Q while keeping ω0 constant
(a)
Solution: After t=0, the PMOS will be on while the NMOS is off, giving an equivalent circuit of:
RDS
+
Vout CL
−
(b)
Solution: For an RC circuit, we know the general solution to the voltage across the capacitor is:
−t
vc (t) = vc (∞) + (vc (0) − vc (∞))e RC
At t = 0− , the NMOS is on, and the circuit has reached steady state, which means the voltage at the
output (and across the cap) is 0.
At t=∞, the capacitor will have been fully charged, and acts as an open. This means Vout = VDD at
t = ∞. These boundary conditions give us the equation:
−t −t
Vout (t) = VDD + (0 −VDD )e RC = VDD (1 − e RC )
(c)
Solution: For t>0, the equivalent circuit looks like
i1
+
RDS Vout CL
− ic
i2
i1 = i2 + ic
dVout 1 1 VDD
+ + Vout =
dt RDSC RDC RDC
a) What is iC1(t=0)? Show your work!
Solution:
b) What is iR1(t=0)? Show your work!
Solution:
c) What is vc1(t=∞)? Show your work!
Solution:
2
SID#_________________________
d) Generate a Bode magnitude and phase plot for the following transfer function. Properly label all axes.
Magnitude
Phase
3
SID#_________________________
"Ash: I can't lie to you about your chances, but... you have my sympathies."
- Alien
Problem 2 Resonance (n points)
At what frequency or frequencies does the impedance across the two terminals become purely real? You must
show your work to get full credit.
Solution:
4
SID#_________________________
"O-Ren Ishii: You didn't think it was gonna be that easy, did you?
The Bride: You know, for a second there, yeah, I kinda did.
O-Ren Ishii: Silly rabbit.
The Bride: Trix are...
O-Ren Ishii: ...for kids."
- Kill Bill Vol. 1
Problem 3 Time, time, time… (n points)
Consider the circuit below. Assume the switch was closed for all time until t = 0, when it was opened.
a) Provide a symbolic equation in one variable that can be solved to determine vC(t) for t ≥0.
Solution:
5
SID#_________________________
b) What is vC(0)? Show your work.
Solution:
c) What is iL(0)? Show your work.
Solution:
d) What is vC(∞)? Show your work.
Solution:
e) What is iL(∞)? Show your work.
Solution:
6
SID#_________________________
“There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly
disappear and be replaced by something even more bizarre and inexplicable.
There is another theory which states that this has already happened.”
― Douglas Adams, The Restaurant at the End of the Universe
Problem 4 (n points)
You have three components on your workbench: a resistor, an inductor and a capacitor. Their values are R = 5
Ω, L = 20 mH, and C = 0.5 μF. You also have a short circuit and an open circuit. Wire them up inside the box
below, making sure to connect all four wires below to your circuit such that the box acts as a bandpass filter.
WE STRONGLY SUGGEST YOU SHOW YOUR SYMBOLIC WORK BELOW (FOR PARTIAL CREDIT IF WRONG)!
a) What is ω0 (the natural frequency) of your circuit?
Solution:
7
SID#_________________________
c) What is the bandwidth of your filter?
Solution:
d) What is the Q?
Solution:
8
SID#_________________________
e) Is it possible to double the magnitude of Q by changing the values of L and/or C, while keeping ω0 and R
unchanged?
Circle one: YES NO
If yes, propose such values. If no, why not?
Solution:
9
SID#_________________________
“And so it goes...”
― Kurt Vonnegut Jr., Slaughterhouse-Five
Problem 5 (n points)
Consider the circuit below. Please apply the “switch with resistor” model of a transistor when solving this
problem. Assume RDS is the ‘on’ resistance and |Vth,n| = |Vth,p| << VDD.
a) If vin(t) is as plotted above, please provide a differential equation in vout(t). (5 points)
Solution:
10
SID#_________________________
c) Consider the circuit below. Please apply the “switch with resistor” model of a transistor when solving
this problem. Assume |Vth,n| = |Vth,p| << VDD.
If vin(t) is as plotted above, please provide a differential equation in vout(t). (5 points)
Solution:
11
SID#_________________________
Extra Space
12
SID#_________________________
13
Contributors:
• Siddharth Iyer.
• Justin Yim.
• Edward Wang.