Chapter 3: Capacitors, Inductors, and Complex Impedance: I. AC Voltages and Circuits
Chapter 3: Capacitors, Inductors, and Complex Impedance: I. AC Voltages and Circuits
Fourier Analysis
One convenient way to characterize the rate of change of a function is to write the
true function as a linear combination of a set of functions that have particularly easy
characteristics to deal with analytically. In this case we can consider the trigonometric
functions. It turns out that we can write any function as an integral of the form
V (t ) = ∫ V cos(ωt + φ )dω
~
(3.3)
~
where V and φ are functions of the frequency ω. This process is called Fourier analysis,
and it means that any function can be written as an integral of simple sinusoidal
- 17 -
Chapter 3: Capacitors, Inductors, and Complex Impedance
functions. In the case of a periodic waveform this integral becomes a sum over all the
harmonics of the period (i.e. all the integer multiplicative frequencies of the period).
V (t ) = ∑ An cos(nωt + φn ) (3.4)
n
An implication of this mathematical fact is that if we can figure out what happens
when we put pure sinusoidal voltages into a linear circuit, then we will know
everything about its operation even for arbitrary input voltages.
Complex Notation
In complex notation we replace our sinusoidal functions by exponentials to make the
calculus and bookkeeping easier still. Then we can include both phase and magnitude
information. We’ll define
eiφ ≡ cos φ + i sin φ , (3.5)
where i 2 ≡ −1 .
The general procedure for using this notation is:
1. Change your problem into complex algebra (i.e. replace cos ωt with eiωt )
2. Solve the problem.
3. Take the real part of the solution as your answer at the end.
II. Capacitors
One of the most basic rules of electronics is that circuits must be complete for
currents to flow. This week, we will introduce an exception to that rule.
The capacitor is actually a small break in a circuit. Try measuring the resistance of a
capacitor, you will find that it is an open circuit. However, at the inside ends of the
capacitor’s lead, it has little plates that act as charge reservoirs where it can store charge.
For short times, you do not notice that the break is there. Negative charge initially flows
in to one side and out from out the other side just as if the two leads were connected. For
fast signals, the capacitor “looks” like a short-circuit. But after a while the capacitor’s
reservoirs fill, the current stops, and we notice that there really is a break in the circuit.
For slow signals, a capacitor “looks” like an open circuit. What is fast, and what is
slow? It depends on the capacitor and the rest of the circuit. This week, you will learn
how to determine fast and slow for yourselves.
Capacitors serve three major roles in electrical circuits (although all three are just
variations of one basic idea):
• Charge integrators;
• High or low frequency filters;
• DC isolators.
- 18 -
Chapter 3: Capacitors, Inductors, and Complex Impedance
Capacitance
A capacitor is a device for storing charge and
electrical energy. It consists of two parallel
conducting plates and some non-conducting
material between the plates, as shown in figure 3.1
on the right. When voltage is applied positive
charge collects on one plate and negative charge + + + + + + + +
collects on the other plane. Since they are attracted - - - - - - - - -
to each other this is a stable state until the voltage is
changed again.
A capacitor’s charge capacity or capacitance
(C) is defined as:
Q=CV (3.6)
which relates the charge stored in the capacitor (Q)
to the voltage across its leads (V). Capacitance is
Figure 3.1: A capacitor consist of
measured in Farads (F). A Farad is a very large unit
two parallel plates which store equal
and most applications use µF, nF, or pF sized
and opposite amounts of charge
devices. Many electronics components have small
parasitic capacitances due to their leads and design.
The capacitor also stores energy in the electric field generated by the charges on its
two plates. The potential energy stored in a capacitor, with voltage V on it, is
1
E= CV 2 (3.7)
2
We usually speak in terms of current when we analyze a circuit. By noting that the
current is the rate of change of charge, we can rewrite the definition of capacitance in
terms of the current as:
1 1
V= Q = ∫ Idt (3.8)
C C
or
dV
I =C = CV& (3.9)
dt
This shows that we can integrate a function I(t) just by monitoring the voltage as the
current charges up a capacitor, or we can differentiate a function V(t) by putting it across
a capacitor, and monitoring the current flow when the voltage changes.
- 19 -
Chapter 3: Capacitors, Inductors, and Complex Impedance
A Simple RC Circuit
We will start by looking in detail at the simplest VIN
capacitive circuit, which is shown in figure 3.2 on the
right. An RC circuit is made by simply putting a resistor R
and a capacitor together as a voltage divider. We will put
the resistor in first, so we can connect the capacitor to VOUT
ground.
C
By applying Kirchhoff’s Laws to this circuit, we can see
that:
1. The same current flows through both the resistor
and the capacitor, and Figure 3.2: A simple RC
circuit which integrates
2. The sum of the voltage drops across the two
current.
elements equal the input voltage.
This can be put into a formula in the following equation:
1
C∫
V IN = IR + Idt . (3.10)
Solutions to RC Circuit
Rather than produce the general solution, we will concentrate on two special cases
that are particularly useful. The first will be for a constant voltage and the second will be
a sinusoidal input.
- 20 -
Chapter 3: Capacitors, Inductors, and Complex Impedance
To study a constant supply voltage on an RC circuit, we set the left side of equation
3.12 equal to a constant voltage. Then we have a simple homogeneous differential
equation with the simple solution for the current of a decaying exponential,
I = I 0e −t / ( RC ) , (3.13)
which will account for any initial conditions. After a time of a few RC time periods, this
solution will have decayed away to the supply voltage.
And now let us consider the other solution. In the prior section, we argued that if we
can understand the RC circuit’s behavior for sinusoidal input we can deal with any
arbitrary input. Therefore, this is the important one.
Let’s look at our simple RC circuit and suppose that we apply (or drive) a simple sine
wave into the input:
VIN = V0 cos(ωt ) . (3.14)
In complex notation, this means that we will set the drive voltage to
VIN = V0 exp(iωt ) , (3.15)
and we just have to remember to take the Real part at the end of our calculation.
If we put this drive voltage into the differential equation (equation 3.12), then it
becomes a relatively simple inhomogeneous differential equation:
dVIN dI
C = CV0 iω exp(iωt ) = RC +I. (3.16)
dt dt
This is relatively simple because it shows up so often in physics that you might as well
memorize the solution or at least the way to get the solution. Note that mathematically it
looks just like a driven harmonic oscillator.
We can obtain the solution by using the standard recipe for first order linear
differential equations. We start by rewriting equation as
dI 1 iω V 0
+ I= exp(iωt ) , (3.17)
dt RC R
which we then multiply by exp(t / RC ) to obtain
dI exp(t / RC ) iω V 0 1
exp(t / RC ) + I= exp[(iω + )t ] . (3.18)
dt RC R RC
The left hand-side of this equality can be rewritten under the form of a total derivative
(multiplication rule) so that we now have
d t iωV0 1
I (t ) exp( ) = exp[(iω + )t ] . (3.19)
dt RC R RC
This equation is easily integrable and can be rewritten as
t i ωV 0 1
I (t ) exp( )= ∫ exp[(iω + )t ]dt . (3.20)
RC R RC
- 21 -
Chapter 3: Capacitors, Inductors, and Complex Impedance
The first term represent the “steady state” oscillatory behavior of the driven circuit, while
the second term describes the transient behavior of the current after switching on the
driving voltage. Since we are only interested in the long-term behavior of the circuit, we
neglect the second term and concentrate on the first. After a little bit of algebra, we can
rewrite the steady-state current as
iωV0 1 ωV 0 C ωRC + i
I (t ) = exp(iωt ) = exp(iωt ) (3.22)
R RC + iω 1 + (ωRC ) 2 1 + (ωRC ) 2
1
1
The second fraction can be interpreted as a phase term with tan φ = , so that the
ωRC
expression for the current becomes
I (t ) = I 0 exp(iωt + φ ) (3.23)
with
ωV 0 C V0
I0 = = cos(φ ) (3.24)
1 + (ωRC ) 2 R
The real solution of this simple RC circuit can be obtained by taking the real part of
equation 23, and is left as an exercise to the reader.
The solution of the simple RC circuit appears to be rather complicated and involved,
however it simplifies considerably when we plug equation 23 back in to the original
integral equation from Kirchhoff’s loop law (equation 10). After integrating the
exponential and a little bit of algebra, we obtain
1
Vin (t ; ω ) = I (t ) R + I (t ) (3.25)
iωC
This remarkably simple expression looks a lot like the standard Kirchhoff’s loop law for
resistors, except that the capacitor term behaves with a frequency dependent “imaginary”
resistance.
RC Impedance
We will obtain the same solution as the one we obtained for the original voltage
divider, as long as we assign an imaginary, frequency dependent, resistance to the
capacitor. The “imaginary” part just means that it will produce a π 2 phase shift between
the voltage and the current for a sinusoidal input. We will call this impedance
1
ZC = . (3.26)
iωC
- 22 -
Chapter 3: Capacitors, Inductors, and Complex Impedance
Now, the solution for an RC divider becomes somewhat simplified. We can compute the
total current flowing through the circuit as
Vin Vin V0 e iωt iωCV0 e iωt V0 iωRC 0 e iωt V0
I= = = = = = cos(φ )e i (ωt +φ ) (3.27)
Z tot R + Z C R + 1 / (iωC ) 1 + iωRC R (1 + iωRC ) R
The voltage across an element is just this current times the element’s impedance. For the
voltage drop across the resistor it is largely the same as before:
VR = IR = V0 cos(φ )e i (ωt +φ ) . (3.28)
For the capacitor, we get the following voltage drop:
1 V cos(φ )e i (ωt +φ )
VC = IZ C = I = 0 = −iV0 sin(φ )e i (ωt +φ )
i ωC iωRC (3.29)
cos(φ ) i (ωt +φ −π / 2 )
= V0 e = V0 sin(φ )e i (ωt +φ −π / 2 )
ωRC
If everything is correctly calculated then the sum of the voltage drops across the two
elements should be equal to the input voltage. Let’s try it:
V R + VC = V0 (cos(φ ) − i sin(φ ) )e i (ωt +φ ) = V0 e − iφ e i (ωt +φ ) = V0 e iωt (3.30)
Remember, you get the actual waveforms by taking the real parts of these complex
solutions. Therefore
VR =V0 cosφ cos(ωt+φ) and (3.31)
VC = V0 sinφ cos(ωt+φ-π/2)= -V0 sinφ sin(ωt+φ) (3.32)
This looks complicated, but the limits of high frequency and low frequency are easy to
remember. At high frequencies ( φ → 0 ), the capacitor is like a short, and all the voltage
shows up across the resistor. At low frequencies ( φ → π / 2 ), the capacitor is like an open
circuit, and all the voltage shows up across the capacitor.
If you consider the leading terms for the elements with the small voltages, you find
that
VC = V0
(1 − iω RC ) → − i V0 as ω → ∞
1 + (ω RC )
2
ω RC
ω RC ( i + ω RC )
VR = V0 → iω ( RCV0 ) as ω → 0
1 + (ω RC )
2
(3.33)
Thus, at high frequency, the voltage across the capacitor is the integral of the input
voltage, while at low frequency the voltage across the resistor is the derivative of the
input voltage.
This says that as long as all the important frequencies are high, the capacitor will
integrate the input voltage. If all the important frequencies are small, the resistor will
differentiate the voltage. If there are intermediate frequencies, or a mixture of some high
- 23 -
Chapter 3: Capacitors, Inductors, and Complex Impedance
and some low frequencies, the result will not be so simple but it can be determined from
the voltage divider algebra using complex notation.
π/2 out of phase with
We finish by noting that the voltage on the capacitor is always -π
the voltage on the resistor.
III. Inductors
An inductors is a coil of wire, or solenoid, which can be
used to store energy in the magnetic field that it generates B
(see figure 3.3 on the right). It is mathematically similar to
a capacitor, but has exactly the opposite behavior: it
behaves as a short circuit for low frequencies and as an
open circuit for high frequencies (i.e. it passes low
frequency signals and blocks high frequency signals).
The energy stored in the field of an inductor with
inductance L is given by the following formula:
1 2
E= LI (3.34)
2
The SI unit of inductance is the Henry (H).
Commercially available inductors have inductances that Figure 3.3: An inductor
range from nH to mH. Small millimeter-size and centimeter consists of a coiled wire,
size solenoids typically have inductances in the range of also called a solenoid.
µH, while magnetic field coils can have a inductances in The dashed arrow “B”,
the mH range, and can sometimes have inductances of up represent the magnetic
to several H. Most electronics components have small field generated by the
parasitic inductances due to their leads and design (for current in the inductor.
example, wire-wound power resistors).
In an electric circuit, a voltage, or electromotive potential, is generated across the
terminals of the inductor when the current changes due to Faraday’s law. The voltage
drop is given by the following simple expression:
dI
V =L (3.35)
dt
From this equation, we see that the inductor operates exactly opposite to a capacitor: an
inductor differentiates the current and integrates the voltage.
The LR circuit
We can analyze the LR circuit in much the same way that we derived the operation of
the RC circuit. We start by applying Kirchhoff’s loop law to the LR circuit in figure 3.4
below, and we find that
- 24 -
Chapter 3: Capacitors, Inductors, and Complex Impedance
dI VIN
VIN = IR + L . (3.36)
dt
If we apply a constant voltage the solution can be R
calculated using the techniques developed for the RC
circuit and we calculate that VOUT
R L
I (t ) = I 0 1 − exp(− t . (3.37)
L
The circuit approaches the steady state current I0=VIN/R
with a time constant of L/R.
Figure 3.4: A simple LR
circuit.
LR impedance
Instead of solving the differential equation for the LR circuit with a sinusoidal applied
input voltage such as that given by equations 14 and 15, as we did with the RC circuit, we
will just assume that the current has the form
I (t ) = I 0 exp(iωt + φ ) (3.38)
We plug this ansatz solution back into the differential equation of equation 31 and find
that
VIN = I (t ) R + iωLI , (3.39)
from which we deduce that the inductor behaves as a resistor with frequency dependent
“imaginary” resistance. The impedance of an inductor is therefore
Z L = iωL (3.40)
Just as with the RC circuit, we can apply Ohm’s law to the circuit to calculate the total
current. Since R and L are in series, we obtain
L
1 − iω
V V e iωt V e i ωt V R e iωt = V0 cos(φ )e i (ωt −φ )
I (t ) = in = 0 = 0 = 0 (3.41)
Z total R + Z L R + iωL R L
2
R
1 + ω
R
L
where the phase is given by tan(φ ) = ω . We calculate the voltage drop across the
R
resistor using the expression for the current and find that
VR = I (t ) R = V0 cos(φ )e i (ωt −φ ) (3.42)
The voltage drop across the inductor is calculated the same way, and we find
V0
VL = iωLI (t ) = iωL cos(φ )e i (ωt −φ ) = iV0 sin(φ )e i (ωt −φ ) = V0 cos(φ )e i (ωt −φ +π / 2 ) (3.43)
R
- 25 -
Chapter 3: Capacitors, Inductors, and Complex Impedance
If everything is correctly calculated then the sum of the voltage drops across the two
elements should be equal to the input voltage. Let’s try it:
V R + V L = V0 (cos(φ ) + i sin(φ ) )e i (ωt −φ ) = V0 e iφ e i (ωt −φ ) = V0 e iωt (3.44)
You get the actual waveforms by taking the real parts of these complex solutions.
Therefore
VR =V0 cosφ cos(ωt-φ) and (3.45)
VL = V0 sinφ cos(ωt-φ+π/2)= V0 sinφ sin(ωt-φ) (3.46)
This looks complicated, but the limits of high frequency and low frequency are easy to
remember. At high frequencies ( φ → π 2 ), the inductor is like an open circuit, and all
the voltage shows up across the inductor. At low frequencies ( φ → 0 ), the inductor is
like a short circuit or just a plain wire, and all the voltage shows up across the resistor.
π/2 out of
It should also be pointed out that the voltage on the inductor is always +π
phase with the voltage on the resistor.
IV. Transformers
Transformers are an ingenious combination of two inductors. They are used to
transfer power between two circuits by magnetic coupling. The transformer changes an
input voltage, without affecting the signal shape, similar to the voltage divider of last
week. However it has several important differences:
a) It can increase as well as decrease a signal’s
amplitude (i.e. AC voltage).
VIN VOUT
b) It requires a time-varying (AC) input to work.
c) It is much harder to fabricate.
d) It usually does not work well for very fast
signals (since inductors block high frequencies).
Transformers are commonly used as a major Figure 3.5: The schematic
component in a DC power supplies since they can symbol for a transformer.
convert a 120 V AC wall voltage into a smaller voltage
that is closer to the desired DC voltage (e.g. 5 V or ±15 V). The schematic symbol for a
transformer is shown in figure 3.5, above.
Transformers are passive devices that simultaneously change the voltage and current
of a circuit. They have (at least) four terminals: two inputs (called the primary) and two
outputs (called the secondary). There is no real difference between the input and output
for a transformer, you could simply flip it around and use the secondary as the input and
the primary as the output. However, for the sake of clarity, we will always assume that
you use the primary for input and the secondary for output.
- 26 -
Chapter 3: Capacitors, Inductors, and Complex Impedance
The coupling between the input and output is done magnetically. This allows
transformers to have a number of interesting benefits including:
e) There is no DC connection between input and output, so transformers are often
used to isolate one circuit from another.
f) Transformers only work for time varying signals, when the inductive coupling
between the coils is greater than the resistive losses.
Since they have no external power the output power can not be greater than the input
power
P = VP I P ≥ VS I S . (3.47)
Usually, we will assume equality but there are small resistances (and hence resistive
losses) in the coils and a poorly or cheaply designed transformer many not have the input
and output sufficiently strongly coupled to each other. Depending on the device and the
signal the output power may well be less than the input power.
Transformers are most commonly used to change line voltage (120 V RMS at 60 Hz)
into a more convenient voltage. High power transmission lines use transformers to
increase the voltage and decrease the current. This reduces I2R power losses in the
transmission wires. For our circuits we will use a transformer that reduces the voltage and
increases the current.
Transformers are characterized by the ratio of the number of turns on the input and
output windings. The magnetic coupling in an ideal transformer will insure that the
number of turns times the current flowing is the same for the input and output:
IS N P
N P I P = NS IS ⇒ = (3.48)
I P NS
Since the voltage must change in the opposite manner to keep the input and output
power, the ratio of the voltages is the same as the ratio of the turns:
VS N S
= (3.49)
VP N P
Transformers are usually called step-up or step-down according to whether the output
voltage increases or decreases.
A transformer also transforms the impedance of a circuit, since it changes the ratio of
V/I. Using our rules above, the ratio of output impedance to input impedance is the
square of the ratio of turns:
2
Z S VS I P N S
= = (3.50)
Z P I S VP N P
So, if you use a transformer as a step-up transformer, it increases the voltage and the
impedance at its output relative to its input. If you use a transformer as a step-down
transformer, it decreases the voltage and the impedance at its output.
- 27 -
Chapter 3: Capacitors, Inductors, and Complex Impedance
Design Exercises
Design Exercise 3-1: Using Kirchhoff’s laws, derive a formula for the total capacitance
of two capacitors in parallel and a formula for the total capacitance of two capacitors in
series. (Hint: pretend that you are working with an AC signal of frequency ω).
Design Exercise 3-2: Using Kirchhoff’s laws, derive a formula for the total inductance
of two inductors in parallel and a formula for the total inductance of two inductors in
series. (Hint: pretend that you are working with an AC signal of frequency ω).
- 28 -
Chapter 3: Capacitors, Inductors, and Complex Impedance
b. Measure the signal generator output without any load. Then connect the signal
generator to a speaker and measure the signal amplitude. The voltage drops so much
because of the impedance mismatch. Measure the power into the speaker.
c. Use a transformer to decrease the output voltage, while increasing the output current
into the speaker. Measure Vout and Iout of the signal generator, and Vin, and Iin for the
speaker. How well does the transformer transmit power? Does Vout/Vin = Iin/Iout ?
Estimate the ratio of primary turns to secondary turns?
d. Measure the output impedance of the signal generator plus transformer circuit. Does
the measured value agree with what you expect theoretically? What should be the
ratio of the transformer for the ideal impedance matching of the signal generator to
the speaker?
Section 2: The RC circuit
In this section, we take a first look at the classic RC circuit and the concept of phase.
e. Get two capacitors and measure their individual capacitances. Measure the total
capacitance with a capacitance meter when they are in
series, and when they are in parallel. Do you get good VIN
agreement with what you expect?
R
f. Construct the RC circuit to the right, with component
ranges R=1-10 kΩ and C=0.001-0.01 µF. Set the function VOUT
generator at approximately ω=0.1/RC with a square wave C
and describe what you see. Measure the time constant of
the exponential and use it to determine the capacitance of
C (R should be determined with a multimeter).
Figure 3.8: An RC filter
g. (Same set-up) Set the function generator to sinusoidal circuit.
output at ω=1/RC and measure the magnitude of Vin and
Vout. Do you get what you expect ? Measure the phase of
Vout with respect to Vin and make a Lissajou plot of Vout and Vin.
- 29 -
Chapter 3: Capacitors, Inductors, and Complex Impedance
- 30 -