Final
Final
Contents
1 DC Analysis 2
1.1 Voltage and Current Division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Mesh and Nodal Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Superposition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Source Transformation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.5 Thevenin Equivalent Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.6 Norton Equivalent Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 Operational Amplifiers 3
2.1 Ideal OP Amp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 Types of Amplifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4 AC Circuits 8
4.1 Interpreting Complex Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.2 Resonance and Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.2.1 Magnitude Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.3 Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.3.1 Optimal Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.3.2 Power Factor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.3.3 Power Factor Correction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.3.4 Apparent and Effective Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.3.5 Random Things when Doing Practice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1
ECE159 QiLin Xue and Shem
1 DC Analysis
1.1 Voltage and Current Division
For a series circuit, we can calculate the equivalent resistance by adding them.
R1
A
V + R2
−
−
V + R1 R2
i1 i2
1.3 Superposition
Kirchoff’s equations are linear. Each term includes only a first power of a current or a voltage, hence we can apply
superposition. Let there be n independent voltage sources and m independent current sources. The current in the j th
2
ECE159 QiLin Xue and Shem
where Ij (k) is the current in that wire when only the k th battery (or current source) is included into the circuit. All
other batteries are short circuited and all other current sources are removed by cutting off a connection wire. This same
concept can be applied for voltage, but not power.
vs + is R
−
b b
where vs = is R.
2 Operational Amplifiers
An operational amplifier (op amp) is an active circuit element designed to perform mathematical operations of addition,
subtraction, multiplication, division, differentiation, and integration.
v1 −
v0
v2 +
3
ECE159 QiLin Xue and Shem
v1
vd Ri v0
+ R0
A(v2 − v1 )
−
+
v2
where A 1 is known as the open-loop voltage gain. The input resistance Ri is typically very big.
4
ECE159 QiLin Xue and Shem
R1
vi −
v0
+
• Noninverting amplifier:
R2
v0 = 1+ vi (9)
R1
R2
R1
−
v0
vi +
• Voltage follower:
v0 = vi (10)
−
v0
vi +
• Summer:
Rf Rf Rf
v0 = − v1 + v2 + v3 (11)
Ri R2 R3
R1 Rf
v1
R2
v2 −
R3 v0
v3 +
5
ECE159 QiLin Xue and Shem
• Difference Amplifier:
R2
v0 = (v2 − v1 ) (12)
R1
R1 R2
v1
−
v0
+
R1 R2
v2
Ceq = C1 + C2 + · · · (16)
q2 1 q
U= = CV 2 = (17)
2C 2 2V
An inductor maintains a voltage that resists a change in current (i.e. via Lenz’s Law). This means the voltage across a
resistor is:
di
V = −L (18)
dt
where L is the inductance. Since the voltage across cannot be infinite, the current across it has to be differentiable. When
inductors are added in series, the equivalent inductance is:
Leq = L1 + L2 + · · · (19)
and in parallel:
−1
1 1
Leq = + + ··· (20)
L1 L2
The energy stored in an inductor is:
1 2
U= Li (21)
2
6
ECE159 QiLin Xue and Shem
Idea: For RL and RC circuits, at time scales much shorter than the characteristic times τ = RC or τ = L/R (i.e.
right after a switch is opened), the capacitor’s charge and inductor’s current remain almost constant. In particular,
if a capacitor was chargeless, its voltage remains almost zero (i.e. short circuit). If there was no current in an
inductor, its current remains zero (i.e. inductor may be considered to be broken). If a capacitor had a charge Q
corresponding to a voltage V0 , its voltage remains essentially constant (i.e. it acts and can be substituted by a
battery of voltage V ). Similarly, if an inductor had a current I0 , it can be substituted by a respective constant
current source. If we try to forcefully break the current through an inductor by switching it off, a rapid fall of
dI
current I creates a huge voltage −L which usually leads to a spark at the switch.
dt
At time scales much larger than the characteristic times, the situation is reversed: the inductor can be considered a
short-circuiting wire, and capacitor as an insulator. This is because all the currents and voltages tend exponentially
towards the equilibrium state so that the different from the equilibrium value ∆ ∝ e−t/τ : the capacitor charge is
almost constant, hence there is no current, and the inductor current is almost constant, hence no voltage.
where x(0) is the initial value of a quantity (current or voltage), and τ is the time constant. For RC circuits, we have
τ = RC and for RL circuits, we have τ = L/R. It is the characteristic time for which a certain quantity decreases by a
1
factor of . For an RC circuit, we can derive this from the equation:
e
dV V
ic + ir = 0 =⇒ C + =0 (23)
dt r
though I prefer working with Kirchoff’s Voltage Law:
dq q
− R− =0 (24)
dt C
This is because we see a similar structure for the inductor:
di
− iR − L =0 (25)
dt
di
Notice the connection between q, i, and . This is important when formulating the mathematics behind complex AC
dt
circuits later.
or
v = vn + vf (27)
or:
v = vt + vss (28)
Here, vt is the transient response, and it will die out with time. The steady state response vss is the behaviour of the
circuit a long time after an external excitation is applied. As a result, we can write out the voltage of a capacitor:
7
ECE159 QiLin Xue and Shem
4 AC Circuits
In AC circuits, we may have combinations of inductors, capacitors, resistors, and sinusoidal voltage sources. We are
concerned only with the steady state response. We can do this with phasors. Suppose the voltage frequency is ω, then
the impedances are:
ZR = R (32)
−j 1
ZC = = (33)
ωC jωC
ZL = jωL (34)
2
where j = −1 is the imaginary number. The admittance is the inverse of the impedance. Using these impedances, we
can effectively “solve” an AC circuit in the same way that we solve a DC circuit.
8
ECE159 QiLin Xue and Shem
4.3 Power
Notation: I will use bolded variables to represent complex numbers: The most general power is the complex power:
S = P + jQ (40)
∗
= Vrms (Irms ) (41)
= Vrms Irms ∠(θv − θi ) (42)
1 ∗
= V m Im (43)
2
2
= ZIrms (44)
2
Vrms
= (45)
Z∗
Z
= |S| (46)
|Z|
We will define θ = θv − θi . Here, P is the real power:
P = S cos(θv − θi ) (47)
p
and S = P 2 + Q2 is the apparent power. The reactive power is:
Q = S sin(θv − θi ) (48)
XL = −Xth (50)
If both these criteria are satisfied, then:
|Vth |2
Pmax = (51)
8Req
In general, the average power delivered to the load is
1 2 |Vth |2 RL /2
P = |I| RL = (52)
2 (Rth + RL )2 + (XTh + XL )2
Warning: Do not confuse this with the power delivered to a load in a DC circuit:
2
Vth
P = (53)
4Rth
1
the reason for the extra factor of in the AC circuit case, is that the power is a sinusoidal wave and we are looking
2
for only the average power.
9
ECE159 QiLin Xue and Shem
P (tan θ1 − tan θ2 )
C= 2
(57)
ωVrms
where θ1 is the initial power factor angle and θ2 is the final angle. This equation is derived from the following principles.
• We want the real power P to be constant.
• We want to change the power factor, which depends solely on the power factor angle. As a result, we can only
change the imaginary part Q.
• To do so, we need to figure out how much of the imaginary power do we want to increase/decrease, and then perform
phasor math (and using impedances) to figure out the capacitance C necessary to do so. Specifically, if we need to
increase the reactance by QC to achieve the desired pf, we select the capacitance:
2
Vrms Qc
Xc = or C=− 2
(58)
Qc ωVrms
|SC | = −Qc
Sold Qold
Snew
10
ECE159 QiLin Xue and Shem
which gives:
Q
= tan θold (61)
P
and:
Qnew
= tan θnew (62)
P
To make the power factor unity, we set QC = −QL where QL is the reactance of the load.
We can convert between the rms value and the peak values of a sinusoidal function:
Vm Im
Vrms = √ , Irms = √ (65)
2 2
ω = 2πf (66)
This conversion factor also works if we are working with complex voltages.
11