Electrical Circuits - An Introduction To Analytical Methods
Introduction
The Method Of Node Voltages
Applied To A Voltage Divider
Applied To A Ladder Circuit
Solving Node Equations With Back Substitution
The Conductance Matrix
Problems
 
Puzzle  1
Puzzle  2
Puzzle  3
Puzzle  4
Puzzle  5
Puzzle  6
Puzzle  7
Puzzle  8
You are at:  Basic Concepts - Circuits - An Introduction To Circuit Analysis
Return to Table of Contents
Lesson Objectives

        In this lesson you will encounter general electrical circuits for the first time.  You need to consider what you expect to learn from this lesson.  Here are our goals.

   Given a simple electrical circuit,
   Be able to write the node equations for the circuit.
   Be able to write the loop equations for the circuit.
   Be able to know which of the two approaches above are appropriate in any given situation.
   Be able to solve the resulting equations to determine voltages and/or currents in the circuit.

Circuits

        There are a number of tools you can use for very small electrical circuits.  For example, given a small electrical circuit you can do any or all of the following.

        But - - - what happens when you do all of that and you still can't figure out what goes on?         In other words, what you may need is a method that has a high probability of success - one that is almost guaranteed to work for a large variety of circuits.  There are two general methods you might try in that situation:


        In this lesson you will begin to learn some general methods for analysis of electrical circuits.  When you learn those analysis methods you will have increased the number of tools in you analysis toolbox.  We ask you to be thoughtful as you do that.  If your regular toolbox is empty and someone gives you a hammer, then pretty soon everything will start to look like a nail.  Not only do you have to learn the tools for analysis, you also have to learn when you need to use them, and how to choose from the tools in your toolbox. 


Node Voltage Equations

        We are going to start with the method of Node Voltages.  The name of the method tells you exactly what you are going to do.

        That's a little simplified, but that is the essence of the method.  We'll start with a simple circuit, and we will try to discover what you have to do.  Here's a very simple circuit.  It is a voltage divider.  We notice some very simple facts about this circuit.
        Now, what we are really saying about this circuit is the following.         Now, we will write the equation at the node with the unknown voltage.


        Now, we will write the equation at the node with the unknown voltage.

In both cases the voltage across the resistor causing the current to flow in the indicated direction is:

Voltage at the node - Voltage at other resistor end.

 (Voltage at the node - Voltage at other resistor end)/R
        Now, remember the algorithm for using node voltages.         We need to learn how you can solve these kinds of equations.  It's not hard to solve the equation we have:

(Vx - Vs)/Ra +  (Vx - 0)/Rb  = 0

The result is:

Vx = Vs*Rb/(Ra + Rb)

        Actually, this circuit was pretty easy.

        Now, we'll look at a more complicated circuit.

        Here is a more complicated circuit.  This ladder circuit is more complex for one simple reason.

        We use the same solution algorithm as before.

        For the first step:

       Vx and Vy are shown at the respective nodes.  Notice again that the voltage and the node with the orange dot is already know to be Vs volts when measured with respect to ground.

        For the second step:

Again, currents need to be defined.  Let's work on node x first.  Define currents as in the figure below, and write KCL.

 Ia+  Ib + Ic = 0.

So, if we put these current expressions into the KCL equation, we get:

(Vx - Vs)/Ra + (Vx - Vs)/Ra + (Vx - Vs)/Ra = 0

Now, we need to solve this equation.  This is one equation, but it has two unknowns, Vx and Vy.  We need a second equation, and clearly it is obtained by writing KCL at node y.  Writing KCL at node y we get:

Ic' + Id = 0

Combining the expressions for the terms in KCL at node y, we have:

(Vy - Vx)/Rc + (Vy - 0)/Rd = 0

 And, the equation we had from node x is:

(Vx - Vs)/Ra + (Vx - 0)/Rb + (Vx - Vy)/Rc = 0

Now, we're going to write out both equations and combine Vx and Vy terms.  Here's the result of rearranging the equations that way.

Vx(1/Ra+ 1/Rb + 1/Rc) -Vy/Rc = Vs/Ra

Vy(1/Rc+ 1/Rd) - Vx/Rc  = 0

        These are close to what we want.  We are going to rearrange these equations to show the coefficients of Vx and Vy  better next.

Vx(1/Ra+ 1/Rb + 1/Rc) -Vy/Rc = Vs/Ra

-Vx/Rc+ Vy(1/Rc+ 1/Rd)  = 0

        There are several things to note here, even though we only have a set of equations to solve, and we haven't solved those equations yet..  First, the equations can be easily obtained from the circuit diagram.  We'll work on that in a while, but you may already have noticed that there is a kind of symmetry to the equations, and there are clear relationships between the nodes the resistors are connected to, and how those resistance values enter into the equations.

        You may also have noted that the equations that result are simultaneous linear equations.  Basically, you have two unknown node voltages, and the equations you write result in two equations in those two unknown node voltages.  You know everything else in the equations, including resistance and source voltage values.

        Finally, you may already know several algorithms for solving simultaneous linear equations.


Solving The Node Voltage Equations

 Given these two equations:

Vx(1/Ra+ 1/Rb + 1/Rc) -Vy/Rc = Vs/Ra

-Vx/Rc+ Vy(1/Rc+ 1/Rd)  = 0

        One possible approach to solving these equations is back substitution.  The method of back substitution is fairly simple in concept although you will need to be careful with details in the execution of the algorithm.  Here is the process.

        This can be simplified even further.  You can simplify this further, and we'll leave that to you.

        Given a set of equations arising from applying the node voltage method, there are several solution options.  So far we can see the following.

        Or, would it be better to look at more general methods?  There are other methods we could conceivably use.  Let's think about the kind of equations we have to deal with.         Let's re-visit the equations for the ladder network.  Here they are again.         A vector-matrix representation that contains the same information is given below.


The vector-matrix formulation has several important characteristics.

        The vector-matrix formulation has the general form:

G * v = I

        To solve for the voltage vector is simple in principle.  One only needs the inverse of the conductance matrix.

v = G-1*I

Getting it is another story.  How many ways do you know to take the inverse of a matrix?  How do you invert a matrix?  Let us count the ways.

Well, that's two or three ways.  Here is the inverse and the circuit.

        We wanted to show you this first because we wanted to build a case that it may not be a good idea to compute this inverse symbolically by hand.  This is not a large circuit, and the analytic inverse looks fairly horrendous.

        Before we do, there are some things we need to point out about the conductance matrix.         It should be clear that there's a pretty slick way to fill in a conductance matrix in the rules above.  Review that material to be sure you understand it. You can always write down a conductance matrix from a circuit by following these two rules.         That's it.  At this point, you are invited to check those results for this circuit.
Example

E1   Here is a small ladder network.

And, here is the conductance matrix equation for the circuit above.  Notice how the conductance matrix is built up from the conductances attached to each node using the method we outlined above.



        Determining the node voltages for this circuit involves more than just the conductance matrix.  The complete set of equations is given again.  We have an algorithm for determining the conductance matrix on the left hand side of this equation, but we also need a way to determine the right hand side.  We are lucky in this circuit because the one voltage source has one end connected to ground.  That leads to a simple expression on the right hand side of the set of equations.

        When we have a voltage source with one end connected to ground, then the right hand side of the circuit equation set takes on a particularly simple form.


Simulation/Experiment - 1

       Now, here is something that you can putter with to see how the equations are built up.  If you click on an element - a resistor or the voltage source - you will see how the conductance matrix and source vector are built up symbolically.  You can add elements to the conductance matrix and the source vector (on the right hand side of the vector-matrix equation) in any order.  When you are finished, the result is independent of the order in which you account for the elements in the circuit.

         After you have experimented with the circuit above, and have a good feel for how the conducance matrix and source vector are constructed, we can wrap this section up by summarizing what we have found.         Once the conductance matrix and source vector are computed, the voltages at all the nodes in the circuits can be computed using any algorithm that will solve the resulting set of simultaneous linear equations - which can also be interpreted as a vector-matrix equation.

        Now we're going to move on to some illustrations of how to compute numerical values for the conductance matrix and the source vector.


The Conductance Matrix

        In this section we give you a chance to explore the conclusions we just reached for the formation of the conductance matrix using another simulation/experiment.  There are several interactive experiments you can do.  We will use numerical values, and you will be able to change the numerical values in the circuit and do some experimentation.  You are strongly encouraged to do that.


Simulation/Experiment - 2

      In this case, you can sweep the mouse across the various components.  When the mouse is above a component - a resistor or the voltage source - you will get an indication of which elements in the vector-matrix equation are affected.  If something gets added it will show in greenIf it is subtracted, it will show in red.  As you experiment here, don't neglect the voltage source.  Be sure you see where it affects the conductance matrix/source vector model.

       Once you are clear how things get added in or subtracted, you need to worry about values.  In the next simulation you can work with the same circuit but you can put in numerical values that you can change as you want.
Simulation/Experiment- 3

        Now, here is a place for you to experiment with conductance matrix and source vector values.  You can click on any component and see how it increments both the source vector and the conductance matrix.  At any point, you can reset the entire page using the reset button and start over.  You can also change values for the resistances and the source.  After you change a value, be sure to click the reset button.  Be sure you try all of the components, and it is best if you try them individually, resetting after each one, to see how the conductance matrix changes.

        The next experiment walks you through the steps to compute a solution.  You must follow these steps to get to a solution.
  • Get all coefficients in the equation (by clicking every element).  You need to fill in all of the places in the conductance matrix, and source vector, as appropriate, and you need to get all of the information into the conductance matrix and source vector - for every element.
  • Normalize the second row in the conductance matrix by making the first coefficient the negative of the same coefficient one row above.  You are using a standard method for solution of these simultaneous equations.
  • Add the two rows and replace the second row by the sum of the two rows.
  • Solve the second equation for Vy.
  • Back-substitute the second equation into the first.
  • Solve the first equation for Vx.
Here is the simulation.
Simulation/Experiment - 4

        Follow the steps outlined above.  The first step is to enter all of the coefficients into the conductance matrix and source vector.  Do that by clicking on all of the elements, and don't forget the voltage source.


        Now, you can perform some numerical experiments with this circuit.  Below, you will find the same interactive circuit as before.  This is another simulation that will let you explore this kind of analysis further.
Simulation/Experiment - 5

Here, we want you to do the following.

  • Set Resistor Values.  Here are the values to use.  Put these values in the circuit emulator.
                Ra =  200W
                Rb = 2000W
                Rc = 1500W
                Rd =  500W
                Vs =  12.0v

        Notice the following for these specific values.

  • The 500W and 1500W resistors give 2000W in series.
  • That 2000W and the original 2000W are in parallel, giving 1000W.
  • When combined with the 200W attached to the source we have a voltage divider that produces exactly 10v at Vx.
  • If Vx is 10v, then Vy should be exactly 2.5v.
  • We hope that you got answers close to that.  It's possible to get some numerical inaccuracy, and we may need to do the arithmetic to more decimal places!

        You need to realize that numerical solutions can be inaccurate.
  • When you compute conductance values for things like 1500W you can introduce some numerical inaccuracy.
    • The quantity 1/1500 is not something that can be represented perfectly in a digital representation.
        Anyhow, you've earned the right to play with this circuit.  Click here to get the circuit emulator in a separate window.  There you may enter your own resistance and voltage values and increase your understanding of the circuit.

        At this point you have seen a simple circuit and analyzed it using conductance matrix techniques.  Points you should note include the following.

  • Most circuits are more complex.  We have just touched on some of the issues regarding computation of node voltages using this method.
  • There may be numerical issues that need to be taken into account when using the node voltage method.
  • The method of node voltages is heavily dependent upon matrix and vector algebra.  You will need to be skilled in those methods and concepts so perhaps it is time to review that area of mathematics if you do not feel comfortable with that material.
At this point, there are several directions in which you can go.
  • The method we have been discussing has been discussed in a way that is not very formal.  We need to formalize the algorithm that lies back of what we have done in this lesson.  Click here to go to the lesson that discusses that.
  • There is a question about what happens when the circuit contains current sources.  We have not considered current sources in this lesson.  They are covered in the lesson that formalizes the Node Voltage method.  Click here to go to that part of that lesson.

Problems
Send your comments on these lessons.