Linear Algebra Circuit Analysisl
Linear Algebra Circuit Analysisl
Linear Algebra Circuit Analysisl
Louis Scharf
This work is produced by OpenStax-CNX and licensed under the
Creative Commons Attribution License 3.0
ing.
The LaTeX source les for this collection were created using an optical character recognition
technology, and because of this process there may be more errors than usual. Please contact us if
you discover any errors.
In this section we use the linear algebra we have developed to nd the voltages and currents in a simple
electrical circuit, such as the one shown in Figure 1 (Figure 1). There are many reasons why this might be
necessary; in this example we need to know the current owing through the lamp to tell whether or not it
will glow. Too little current will have no visible eect; too much current will cause the lamp to burn out.
We will apply a few physical laws relating the voltages and currents in a circuit, turn these laws into systems
of linear equations, and solve the equations for the voltages and currents.
Figure 1:
Current, Voltage, and Resistance. We will use three physical quantities in our analysis of electrical
Current
Voltage is a
electromotive force
Electrons owing through a wire or through some other electronic device comprise a current.
dierence in electric potential that makes electrons ow.
because it is like a force that moves electrons.
Resistance
electron current ows. The lower the resistance of a device, the more easily current can ow through the
device.
The analogy of water owing through pipes can help you develop intuition about electrical circuits. In
this analogy, electrical current corresponds to the ow rate of water. Voltage corresponds to the pressure
Version
http://creativecommons.org/licenses/by/3.0/
http://cnx.org/content/m21447/1.8/
that forces the water to ow, and resistance is the friction of ow. A small pipe would impede the ow of
water more than would a large pipe, so the small pipe would correspond to a higher resistance. While this
analogy can be helpful, keep in mind that electricity is not water. All analogies break down at some point.
amperes.
i,
positive ow is indicated by an arrow on the circuit diagram. The arrow is for reference only; if the true
current is in the opposite direction, we get negative values for
i.
for current says that what ows in must ow out of a node, a principle known as
Kirchho 's current law states that
volts
(or
e).
+and
nodes we are comparing and which one of the nodes is considered negative. As with current, the markings
are for reference only and we may end up with a negative value of
In an electrical circuit, one node is usually chosen as a
v.
reference node
of zero. Then the voltage at every other node is measured with respect to the reference node. This saves
us the trouble of always specifying pairs of nodes for voltage measurements and marking + and signs for
each voltage. Other names for the reference node are
A
is a device that always forces the voltage between its two terminals to be a
constant value. In Figure 1 (Figure 1) the circle at the left represents a constant voltage source of 5 volts,
so that the voltage at the upper
(+)
end is
always
end. A voltage source is something like a battery, but idealized. Real batteries do not maintain a constant
output voltage under all conditions.
Resistance is measured in
ohms
and is denoted by
R.
diagrams and labeled with the value of its resistance in ohms. In this chapter we will consider only devices
whose resistance is positive and the same in both directions.
the voltage and current in a resistor. For the resistor shown in Figure 2 (Figure 2), with reference directions
assigned to
and
v = iR.
Note that current ows from + to - through the resistor.
Figure 2:
Ohm's Law
Example 1
Ohm's law and Kirchho 's current law are the only principles we need to write equations that will
http://cnx.org/content/m21447/1.8/
(1)
allow us to nd the voltages and currents in the resistive circuit of Figure 1 (Figure 1). We begin by
choosing a reference node and assigning variables to the voltages at every other node (with respect
to the reference node). These choices are shown in Figure 3 (Figure 3).
Figure 3:
v1
v1 = 5.
(2)
Next we write equations by applying Kirchho 's current law to each node in the circuit (except
the reference node and
v2
for leaving current. The current leaving through the 50 ohm resistor can be found by Ohm's law,
where the voltage across that resistor is
v2 v1
i50 =
v
(v2 v1 )
=
R
50
(3)
For current leaving through the 300 ohm resistor, the voltage is
sign; since we are interested in the current
leaving
v2
300
(4)
(v2 v3 )
100
(5)
i300 =
For the 100 ohm resistor, we can write
i100 =
According to Kirchho 's current law, the sum of these three leaving currents is zero:
(v2 v1 )
50
v2
300
(v2 v3 )
100
=0
6 (v2 v1 ) + v2 + 3 (v2 v3 ) = 0
Notice that when we wrote the equation for the node labeled
v2 ,
the variable
(6)
v2
had
a + sign
each
time it occurred in the equation, while the others had a -sign. This is always the case, and watching
for it can help you avoid sign errors. Now we apply Kirchho 's current law at the node labeled
v3
(v3 v2 )
100
http://cnx.org/content/m21447/1.8/
v3
2
=0
(v3 v2 ) + 50v3 = 0
(7)
v3
a + sign.
Equations 2 (2), 6 (6), and 7 (7) give us a system of three equations in the three unknown
variables
v1 , v2 ,
and
v3 .
10
1
vl
3
v2 = 0
0
v3
51
(8)
Exercise 1
v1 = 5.0000 volts
(9)
v2 = 3.0178 volts
(10)
v3 = 0.0592 volt.
(11)
A?
v3
Ohm's law:
i=
v
v3
=
= 0.0296
R
2
ampere.
(12)
The visible eect will, of course, depend on the lamp. Let us assume that the specications for our lamp
indicate that 0.05 ampere or more is required before it will glow, and more than 0.075 ampere will cause it
to burn out. In this case, our circuit would not make the lamp glow.
Exercise 2
(MATLAB) Write and solve equations for the circuit in Figure 4 (Figure 4). What are the voltages
at the nodes labeled
Figure 4:
v1
through
A Resistive Network
http://cnx.org/content/m21447/1.8/
v4 ?
i1
? And
i2 ?