Mesh Analysis
Contents
Mesh Analysis#
We often refer to mesh analysis as a method of analysis as that is the goal of this analysis, to perform it methodically. As mentioned in the previous chapter, many folks choose to analyze circuits by haphazardly applying a combination of the fundamental laws, equivalent components, and the divider equations in order to find a single value of interest. Mesh analysis is organized and consistent when performed correctly. Furthermore, once we find the unknowns, we can use them to find any other value of interest in the circuit.
Relating Circuit Values to Mesh Currents#
The unknowns in this case are the currents flowing around each mesh of the circuit. Let’s take a step back and first use the mesh current to find expressions for other values in the circuit. It’s a bit of make-believe to begin with but it will help as we develop the method. Let’s pretend we already know the mesh currents and want to use them to determine other currents and voltages in the circuit.
Currents#
Let’s start with the circuit shown here
The unknown mesh currents (\(I_1\), \(I_2\), and \(I_3\)) are marked and labeled. The directions can be arbitrary. We’ll start with all of the mesh currents labeled in the clockwise direction.
Examples
Find expressions for the currents labeled \(I_a\), \(I_b\), and \(I_c\) in terms of the mesh currents
Find \(I_a\) using KCL
In each case we are writing a KCL equation in order to find these expressions. While I do not write these explicitly when analyzing circuits, it is worthwhile to see that this is simply an application of one of the fundamental laws.
To find an expression for \(I_a\) let’s consider a point in the circuit below the current arrow for \(I_a\).
I’ve also added a current arrow for \(I_1\) along the bottom of the mesh. We often label the meshes inside as we had done previously but we have to think of that mesh current as flowing through the elements on the perimeter of the mesh.
Writing the KCL equation for the indicated point in the circuit gives us
which we solve for \(I_a\)
Find \(I_a\) quickly and accurately
I usually write these without considering a point in the circuit at which to write a KCL. There is a much simpler way to get to an equivalent equation. I consider each mesh current in turn and ask myself these questions:
Does the mesh current touch the current arrow for \(I_a\)?
If it does, does it go in the same or opposite direction?
The answers to these questions determine:
Whether the mesh current is included as a term in the expression and
The sign of the term if it is included
In this instance \(I_1\) is the only current that touches \(I_a\) which means it is the only term in the expression for \(I_a\). \(I_1\) flows in the same direction as \(I_a\) making that term positive. Stop and look at the original schematic and make sure you can clearly identify both answers that lead to the expression
This is the simplest form a current can take but the approach is consistent for all currents we find using mesh currents.
Find \(I_b\) using KCL
To find an expression for \(I_b\) let’s consider a point in the circuit below as indicated.
Writing the KCL equation for the indicated point in the circuit gives us
which we solve for \(I_b\)
Find \(I_b\) quickly and accurately
Does the \(I_1\) touch \(I_b\)? Yes. Does it travel in the same or opposite direction? Same. Therefore, add a \(+I_1\) to the expression for \(I_b\).
Does the \(I_2\) touch \(I_b\)? No. Therefore, there is no \(I_3\) term in the expression for \(I_b\).
Does the \(I_3\) touch \(I_b\)? Yes. Does it travel in the same or opposite direction? Opposite. Therefore, add a \(-I_3\) to the expression for \(I_b\).
Altogether we can write the expression for \(I_b\) as
Our First Toy Problem#
Applying the fundamental laws (Ohm’s, KVL, KCL) in the haphazard manner demonstrated in Section \ref{sec_MacGyver} leaves the desire for a more methodical approach to circuit analysis. The first of the two methods we consider is Mesh Analysis. We should build off of a simple example as we explore Mesh Analysis. The first example in this section is solvable using previous methods but will serve to increase our confidence in the new method.
Find \(V_A\)
Seat-of-pants Solution
Using previous methods we can find the voltage at node A with respect to ground by reducing the resistor network. Note that \(R_3\) and \(R_4\) are in series.
Next note that the combination \(R_3\)+\(R_4\) is in parallel with \(R_2\). Combining those resistances yields:
Now we must notice that the two resistors are in series with a voltage supply. In this case the voltage divider is used to find \(V_A\)
Seat of the pants analysis tells us that \(V_A\) is 14 V. Let’s keep this result in mind for the next few sections
The Steps#
I’m going to list the steps here as reference. Use these steps as we walk through the next example. A more complete summary is included at the end of the chapter.
Steps for Mesh Analysis
Assign mesh currents. Identify any “Super-meshes” (We’ll discuss what a super-mesh is later).
Use KVL on each mesh current.
Use Ohm’s law to express the resistor voltages in terms of mesh currents.
Distribute and group like terms.
Plug in values and solve the system.
Let’s apply these steps to our toy problem.
Example
Find \(V_A\) in this circuit.
Solution using Mesh Analysis
Step 1 states that we should assign mesh currents. First we identify the two meshes in this circuits. There are no super-meshes in this circuit. We’ll see what that means as the examples in this section progress. Each mesh gets a current direction assigned to it, clockwise or counter-clockwise. Direction doesn’t matter for now, you get to pick. If the current is actually flowing the opposite direction your answer will have a negative sign. Let’s start with both mesh currents flowing in the clockwise (CW) direction.
In Step 2 we use KVL on each mesh. I find it useful to mark each resistor with the polarity corresponding to the mesh I’m currently working on. It is possible, as we see here with \(R_2\), that a resistor will have the opposite polarity when considering the first mesh than it will when considering the second mesh. We can mark the polarities with the mesh with the corresponding current. Passive sign convention should be observed to label the polarities correctly for the passive (resistors here) components. The voltage supply is active and therefore its polarity is unaffected by our choice of mesh current direction.
Following the colors of the mesh currents in the schematics the two KVL equations are
Step 3 calls for the resistor voltages to be replaced using Ohm’s law. Given the mesh currents and the resistances we can express 3 of the voltages this way:
The three resistors listed above only have a single mesh current flowing through them. The final voltage drop is that across \(R_2\). Since this voltage appears in both meshes it is important to keep the positive current direction correct as each individual KVL equation is considered. When writing the equation for the first mesh \(I_1\) indicates the positive current direction. Likewise, when writing the equation for the second mesh \(I_2\) indicates the positive current direction. We must then write \(V_{R2}\) differently for each KVL as we see here:
All of the necessary voltages are now expressed in terms of the unknown mesh currents, \(I_1\) and \(I_2\). Substituting these into the KVL equations taking care to preserve the signs of each term yields:
Step 4 calls for a bit of algebra practice. Distributing where appropriate yields:
Collecting terms gives us:
Rearranging this to look like the linear systems reviewed in Section \ref{sec*linearSystems}
Which leads us to Step 5, plugin values and solve the system.
or
In matrix form this looks like
and solving for the currents gives us
Even after all of this we still haven’t found what we were asked to, \(V_A\). We can do that using the expression for \(V_{R2}\) discussed in this example, but which one? \(V_A\) is the voltage at node A with reference to ground. Following the passive sign convention in this case the positive current direction is down through the resistor. Therefore, the voltage, \(V_A\) is found with
Why on earth would we go through all of that when we have already solved this problem in a simpler manner?
These steps can be applied in general. The seat-of-the-pants method depended on your clever mind to find a path to the answer. As circuits become more complex finding that path can become more convoluted and therefore more prone to error.
Until now we have been limited to analyzing circuits with a single source. Mesh analysis can be applied regardless of the number of sources in the circuit.
Once you have calculated the mesh currents you can easily revisit the circuit and find any value of interest.
Consider the next example that uses the same circuit. If we were later asked to analyze the circuit for\(V_B\) we may have to perform the analysis again with a different goal. Using the previously calculated mesh currents it is a trivial matter to find the value.
Example
Find \(V_B\) given \(I_1\)=1.167 A and \(I_2\)=583.3 mA.
Solution
We can see from the diagram that \(V_B\) is equivalent to the voltage across \(R_4\).
Furthermore, we can see that \(I_2\) flows in the positive direction according to the passive sign convention. Therefore,\(V_B\) is simply
Mesh Analysis with Multiple Sources#
I mentioned before that mesh analysis can be used to analyze circuits with multiple sources. The same steps are applied with no alteration. Let’s look at a quick example
Example
Find \(V_A\)
Solution
Let’s start by annotating the schematic with mesh currents and passive polarities. Notice that here the first mesh current is flowing CW and the second is flowing counter-clockwise (CCW). I have a sick sense of fun.
Because of the current directions, the currents through \(R_2\) are flowing in the same direction and therefore the polarities are identical. This will result in \(V_{R2}\) having the same sign regardless of which mesh is being analyzed.
The KVL equations (step 2) are
Using Ohm’s Law (step 3) gives us:
Distributing and grouping terms as prescribed in Step 4 results in
and after substituting values
Solving this linear system using matrices gives us the two mesh currents
Finally solving for \(V_A\)
Again, \(I_1\) and \(I_2\) have a positive direction that agrees with the polarity of \(V_A\) as dictated by the passive sign convention. This can be seen mathematically in the equation directly above in the signs of the two currents, both positive.
A quick side note: Ohm’s law can be seen if we examine the contents of the linear system in matrix form. The 2x2 matrix contains only resistances. The vector of unknowns contains currents. The vector of constants contains voltages. Considering that the matrix is inverted we can see that
or simply a matrix form of Ohm’s Law
More complex circuits might have additional meshes. Mesh analysis can be applied in these cases simply by adding additional mesh currents and additional corresponding KVL equations.
Example
Find \(V_O\)
Solution
KVL Equations:
Substituting with Ohm’s Law
Grouping Like-terms
Substituting and Solving
Solve using matrices:
Finally solving for \(V_{O}\)
Current Sources in Mesh Analysis#
KVL equations are the default when performing Mesh analysis. There are cases where you are unable to write enough KVL equations to form a fully-determined system of equations. Those cases can be easily recognized if we look for current supplies.
Each term in a KVL must be a voltage. Those voltages must be rewritten to be in terms of the unknown mesh currents. This is possible with resistors using Ohm’s law. When current supplies are present we cannot readily represent the voltage across that current supply in terms of the unknown mesh currents. So how do we approach current supplies when performing Mesh analysis?
Since we cannot write a KVL for a mesh when it contains a current supply, we must write a KCL instead. The goal remains to write the same number of equations as we have unknowns in order to find a unique solution for those unknowns. So, for each current supply (dependent or independent) we write a KCL. The remainder of the equations we need to equal the number of unknowns are then KVL equations written in the usual way.
Let’s examine two cases of circuits that have current supplies and perform Mesh analysis on them.
Current Sources with a Single Mesh Current#
The first case is a current supply that is only affected by a single mesh current. But before we write the KCL for that current supply consider the types and quantities of equations that you will write to find the unknown mesh currents. For each current supply write a KCL equation, only one in the case if the next example. A total of 2 equations are required since we have two unknown mesh currents. That leaves 1 KVL to have a fully-determined system.
Let’s find the mesh currents in this example circuit:
Example
Find the mesh currents in this circuit
Solution
Before we begin the analysis let’s summarize what equations we’ll be writing:
Now let’s follow the steps. Label Mesh currents and polarities of passive components:
Now let’s set about writing the equations. Let’s consider which mesh currents flow through the current supply in order to write the KCL equation. In this case the 5A supply is only part of the second mesh and therefore is only affected by \(I_2\). The direction of the mesh current must also be considered. Since \(I_2\) opposes the direction of the 5A supply (they flow in opposite directions) one will be the negative of the other. We describe this as:
or its mathematical equivalent:
Either of these is suitable to be included in the system of equations that describe this circuit.
The second equation is a KVL. The only suitable mesh for a KVL equation is the left mesh (\(I_1\)).
The last equation in the sequence above is suitable for inclusion in the system of equations that describe this circuit. Substituting the values in gives us:
Solve using matrices to find the mesh currents:
Current Sources with Multiple Mesh Currents#
The case of current supplies that are affected by multiple mesh currents varies only slightly from the previous example where a current supply is affected by a single mesh current. We still write a KCL for this current supply. The change comes while writing the KVL. Neither of the individual meshes will allow you to write a KVL in terms of the unknown mesh currents since both meshes contain the current supply. Therefore you will have to write the KVL around the two meshes taken together. Recall that Kirchhoff stated that the algebraic sum of voltages around a loop is zero. The path around the two meshes taken together is a loop and the voltages will sum to zero.
Let’s look at an example.
Example
Determine the mesh currents.
Solution
Considering the number and types of equations to be written given the one current supply and two meshes:
Let’s start by labeling the mesh currents and polarities for the passive circuit elements
Two meshes contain the current supply, \(I_1\) and \(I_2\). We consider each in turn with respect to the current direction. \(I_1\) flows against the supply and will therefore will be negative. \(I_2\) flows with the current supply and therefore will be positive.
The KVL is then written using the loop around both meshes
Plug in values:
Solve using matrices:
Let’s consider another example. In the previous example the KVL was written around the outside of the circuit. This may not always be possible. It is a better habit to write the KVL around the two meshes that are shared by the current supply as we will for the following example:
Example
Find the mesh currents.
I’ve already labeled the mesh currents and polarities to save time.
Solution
We consider the number and types of equations to be written given the one current supply and three mesh currents
Two meshes contain the current supply, \(I_1\) and \(I_3\). Each is considered in turn with respect to the current direction. \(I_1\) flows with the supply and will therefore be positive. \(I_{3}\) flows against the current supply and therefore will be negative.
The KVL is then written using the loop around both meshes that flow through the current supply. The path the KVL takes is shown here:
The signs of the terms come from the polarities marked for the two mesh currents that flow through the current supply.
Plug in values:
The other KVL is more typical. We’ll write this one around \(I_2\).
Plug in values:
Solve using matrices:
Mesh Analysis with Dependent Supplies#
I often describe dependent supplies as the one component we’ve covered thus far that I cannot pull out of a draw and put in your hands. Nevertheless, dependent supplies play an important role in analysis of modern electronics. Every transistor is modeled with a dependent supply during analysis. If you have a smart phone in your pocket right now, you have between one billion and two billion dependent supplies with you right now. Maybe you’re even using them to read this!
Mesh analysis does not change much from what we have done so far. The only change is the need to write an expression for the control variable of the dependent supply, and then substitute it into the system of equations.
Here’s an example
Example
Solution
The goal, as always with mesh analysis, is to write enough equations in terms of the unknown mesh currents to result in a solvable system of equations. The presence of the dependent supply does not change our approach to determining the number and types of equations we will write. We count the number of current supplies, dependent or independent, and write a KCL for each. Then we fill in the rest of the system with KVL equations. For this circuit this results in:
We can label our mesh currents and passive polarities as we did before
If you haven’t noticed yet this circuit has a dependent supply. In this case it is a voltage supply as indicated by the + and - within the diamond shape. The input in this case is the voltage \(V_{x}\). We need to write an expression for \(V_{x}\) in terms of the unknowns of the system. We do this as if we know the mesh currents and want to find \(V_{x}\) as if it were an output of the circuit.
Notice that the current is positive as it matches the positive direction with regards to the passive sign convention and the polarity as labeled in the original problem.
We can now focus on writing the two KVL equations for this circuit. There is no dependent supply in this mesh therefore the KVL around \(I_1\) looks like the KVL’s we’ve written before.
The KVL around the \(I_2\) mesh does involve the dependent supply and thus we need to perform one additional substitution.
I will substitute the value of \(V_x\) into the system now. This way I can expand that term at the same time I expand the others. Ultimately, the equation must only contain the unknown variables and constants.
These two KVLs form the system of equations :
Solve using matrices to find the mesh currents:
Dependent supplies can also affect the KCL equations. Here is an example of that case:
Example
Find the mesh currents
Solution
Let’s mark up the schematic in the usual manner:
Since there are two current supplies in the circuit we will write 2 KCL equations. That leaves one equation as a KVL, but where?
I like this problem as it combines concepts and even pushes one step further. The KVL we need to write cannot cross a current supply without adding another unknown. Take a moment and look for and super-meshes in the circuit. \(I_{S1}\) has \(I_1\) and \(I_2\) flowing through it implying the two meshes form a super loop. However, if we try to write a KVL around those two meshes we encounter \(I_{S2}\).
We must also notice that \(I_{S2}\) has \(I_2\) and \(I_3\) flowing through it implying the two meshes form another super loop. However, if we try to write a KVL around those two meshes we encounter \(I_{S1}\).
This gives rise to what some of my students have deemed a “super-duper loop”. It’s really just one larger super loop but that’s not nearly as fun to say. The KVL we will write is around all three meshes together. In this circuit that is around the outer loop though other circuits with more meshes might see this loop pass through the interior of the circuit. Here is the super loop marked with a dashed green line
We start by writing the KCLs for each current supply. The KCL for \(I_{S1}\) is a typical KCL as it is an independent supply.
The KCL for \(I_{S2}\) involves the dependent supply for we need to perform the substitution for the control variable. \(I_x\) in terms of the mesh currents is
which we substitute into the KCL for \(I_{S2}\).
The KVL then follows the dotted green line
Gathering the equations that will be included in the system:
We’ll solve these using matrices but be weary of the missing term in the first equation. Look for the 0 entry for this missing term.
The Shortcut#
Mesh Analysis can be performed quickly in some cases. I am not inviting you to forget everything we just did. When I do things quickly I’m less confident in the result. However, with practice you can solve many circuit analysis problems using Mesh analysis in about a minute.
We can use mesh analysis on some problems by writing values directly into the matrix. In order to do this we must label all mesh currents in the same direction. I have the habit of marking all mesh currents in the clockwise direction but it works equally well in the counter-clockwise direction. This is not a requirement for Mesh Analysis but it makes this shortcut much less error-prone.
Basic Shortcut#
I’m comfortable using the shortcut on problems without dependent supplies. It is not impossible to use the shortcut on circuits with dependent supplies but I tend to slow down and make sure everything ends up in the right place for those circuits. I’ll address use of the shortcut for those problems in the next section. Here we’ll limit the discussion to those circuits without dependent supplies.
We begin by setting up a matrix and vector appropriate for the circuit being analyzed. In the case of the first problem we solved using Mesh analysis, we used a 2x2 matrix and a 2x1 vector. Let revisit that problem
Example
Solution
We begin with an empty matrix and vector as described above, and a plan. For this circuit we will write two KVL equations. One for the \(I_1\) mesh and one for the \(I_2\) mesh. A single row of the matrix will be dedicated to each.
We now fill in each row according to our plan. We start with the KVL for the \(I_1\) mesh. It is helpful in the case of KVL equations to indicate the path we are taking around the circuit. This path is shown as a doted line in the figure below
We will follow this dotted line for each entry in the matrix regarding the KVL for the \(I_1\) mesh. If we follow the dotted line we cross three components: \(V_S\), \(R_1\), and \(R_2\). Keep this in mind as we fill the entries of the first matrix row. To fill in this row I ask three questions:
What passive components does the dotted path cross that have \(I_1\) flowing through them? For this circuit the answer is \(R_1\) and \(R_2\). We add the values of those resistors and put them in the matrix. Since we are considering the KVL for the \(I_1\) mesh and we are asking about which components carry \(I_1\) we make this value positive in the matrix. Here we will enter +30.
What passive components does the dotted path cross that have \(I_2\) flowing through them? For this circuit only \(R_2\) meets this criterion. We again add the values (only one in this case) and enter it in the matrix. Since we are considering the KVL for the \(I_1\) mesh and we are considering which components carry \(I_2\) we enter it as a negative number. Here we will enter -24.
Do we cross any voltage supplies? We do, namely \(V_S\). We also consider which direction we cross \(V_S\) as we travel clockwise. Here we start at the negative terminal and cross to the positive terminal so there is a voltage rise. Since it is a rise we enter it as a positive value in the 2x1 vector. Here we will enter +21.
Let’s pause and look at what the system looks like:
We cannot find a solution until have the same number of equations as unknowns (two here). I ask similar questions when considering the KVL for the \(I_2\) mesh.
We will follow the new dotted line for each entry in the matrix regarding the KVL for the \(I_2\) mesh. If we follow the dotted line we cross three components: \(R_2\), \(R_3\), and \(R_4\). Keep this in mind as we fill the entries of the second matrix row. To fill in this row I ask three questions:
What passive components does the dotted path cross that have \(I_1\) flowing through them? For this circuit the answer \(R_2\). We add the values of those resistors and put them in the matrix. Since we are considering the KVL for the \(I_2\) mesh and we are considering which components carry \(I_1\) we enter it as a negative number. Here we will enter -24.
What passive components does the dotted path cross that have \(I_2\) flowing through them? For this circuit \(R_2\), \(R_3\), and \(R_4\) meet this criterion. We again add the values and enter it in the matrix. Since we are considering the KVL for the \(I_2\) mesh and we are asking about which components carry \(I_2\) we make this value positive in the matrix. Here we will enter +48.
Do we cross any voltage supplies? There are no voltage supplies on this mesh. Therefore we enter a 0 in the 2x1 vector.
Let’s pause again and look at what the system looks like:
Once the 2x2 matrix and 2x1 vector are completed we can solve the system.
If you look back at the first time we analyzed this circuit you’ll notice that the matrices appear similar but have some differences. The two systems may be different but are mathematically equivalent. Solving either system leads to the same mesh currents.
I’m not going to explicitly state the questions for the next example. Try to use the previous example to anticipate how I will fill up the matrices for this analysis.
Example
Solution
This circuit also has 2 meshes so the blank system will be setup in the same way as the previous example. Also, the plan does not change since there are no current supplies in the circuit. We will write two KVL equations again.
We’ll still proceed row by row beginning with the KVL for the \(I_1\) mesh current in the first row.
Follow the dotted path and see if you can ask yourself the correct questions to fill in the first row.
We now move on the the KVL for the \(I_2\) mesh. Let’s move the dotted line to that mesh.
Again, follow the dotted path and see if you can ask yourself the correct questions to fill in the second row.
Finally, solve the system.
Once again, the mesh currents found using this method are the same as those previous found.
Now the gloves are really off. I’ll fill out the matrices in a single line. Makes sure you can replicate the result.
Example
Find the mesh currents
Solution
We can handle circuits that have current supplies using a similar approach. let’s take the first example as a circuit with a current supply that is not a super-mesh.
Example
Find the mesh currents
Solution
We have to make our plan just as before and the questions for the KCL equations are different. We’ll write a KCL for the \(I_2\) mesh current since it has a current supply. We will also write a KVL around the \(I_1\) mesh to complete the system of equations.
The row for the KVL is filled just as we did before. Here is is filled in:
To fill in a row for a KCL I ask a question for each mesh current:
Does \(I_1\) flow through the current supply? For this circuit the answer no. Therefore, \(I_1\) does not appear in the KCL equation. The coefficient is therefore 0.
Does \(I_2\) flow through the current supply? For this circuit the answer is yes which leads to a follow-up question: Does the mesh current flow with or against the direction of the current supply? In this circuit \(I_2\) flows against the flow of \(I_S\). Since is in the KCL equation the coefficient will have a magnitude of 1. Since it flows against the supply current it will be negative. We enter -1 for this entry.
The right hand side of the KCL is simply the value of the regulated current. Here is the system filled in and ready to solve:
Now we can solve for the mesh currents
If current supplies are present in a circuit it is possible they create a super-loop. In the next example I’ll use the shortcut on a circuit with a current supply. The current supply will have two mesh currents flowing through it leading to a super-loop.
Example
Find the mesh currents
Solution
We make the plan for this circuit. One current supply and two meshes leads to
In order the complete the row for the super-loop KVL we have to be clear on what components we will cross as we move around the loop. To makes this easier for now I’ve marked the super-loop with a the dotted path shown here:
As we fill in the super KVL rwo we only consider components on this path. The KVL questions change form slightly to take into consideration the super-loop.
What passive components does the dotted path cross that have \(I_1\) flowing through them? For this circuit the answer \(R_1\). We add the values of the resistors (on in this case) and put the sum in the matrix. Since we are considering the super-KVL and \(I_1\) is part of the super-loop we enter it as a positive number. Here we will enter 6.
What passive components does the dotted path cross that have \(I_2\) flowing through them? For this circuit \(R_3\) and \(R_4\) meet this criterion. We again add the values and enter it in the matrix. Since we are considering the super-KVL and \(I_2\) is part of the super-loop we enter it as a positive number. Here we will enter 14.
Do we cross any voltage supplies? } There are no voltage supplies on this mesh. Therefore we enter a +20 in the 2x1 vector.
We ask identical questions to fill in the super-KCL. Look back at the KCL questions from the previous examples to convince yourself.
Does \(I_1\) flow through the current supply?} For this circuit the answer is yes which leads to a follow-up question: Does the mesh current flow with or against the direction of the current supply? In this circuit \(I_1\) flows against the flow of \(I_S\). Since is in the KCL equation the coefficient will have a magnitude of 1. Since it flows against the supply current it will be negative. We enter -1 for this entry.
Does \(I_2\) flow through the current supply? For this circuit the answer is yes which leads to a follow-up question: Does the mesh current flow with or against the direction of the current supply? In this circuit \(I_2\) flows with the flow of \(I_S\). Since is in the KCL equation the coefficient will have a magnitude of 1. Since it flows with the supply current it will be positive. We enter +1 for this entry.
The right hand side of the KCL is simply the value of the regulated current. Here is the system filled in and ready to solve:
Now we can solve for the mesh currents
Let’s try a circuit with a super-mesh that cuts through the intermediate branches
Example
Find the mesh currents.
Solution
Let’s start by setting up the empty matrices for the system of equations
and marking the path of the super mesh KVL
See if you can fill in the matrices yourself. Pay close attention to what components are on the individual mesh currents and the super mesh path. Some components will not be included in the solution. When you are done it should be equivalent to
Now we can solve for the mesh currents
Advanced Shortcut#
I want you to read the word “Advanced” and think to yourself: I could very well screw this up. Our primary goal is to analyze the circuit correctly. Speed is only a secondary goal.
I am going to include two solutions for each of these problems. We can try to be true to the spirit of the “shortcut” and do everything simply by looking at the circuit and entering numbers into the matrices. This may be good to impress your friends but then we have to consider the type of friends you have.
This pure shortcut approach is error prone even for experienced circuit analyzers. I take a hybrid approach when analyzing circuits with dependent supplies. I use the shortcut for all of the equations that do not involve the dependent supply. Then I finish the problem by writing out the equation(s) that do involve the dependent supply and entering them in the matrices after a bit of algebra.
Like I said, I’ll show you both for the examples in this section.
Example
Find the mesh currents
Solution - Pure shortcut
To pull this off, I add the control variable as an additional unknown. For his circuit the unknowns are \(I_1\), \(I_2\), and \(V_x\).
The KVL around \(I_1\) is typical so I will include that in the first writing of the system
The KVL around \(I_2\) includes the dependent supply. We can include this in the system by writing the gain, with the correct sign, in the column that corresponds to the control variable.
\(I_1\) and \(I_2\) share \(R_3\) so -4 is the entry in the first column. \(I_2\) touches \(R_3\), \(R_4\), and \(R_5\) on this mesh so their sum, +16, is the entry in the second column. The dependent supply causes a rise as we move clockwise around the mesh. We’re accustomed to a rise being positive as we include it on the right-hand side of the equation. In this case this entry in on the left-hand side of the equation so it is negative. The gain is 3 making the entry in the third column -3. The right-hand side of the equation is the rise across \(V_{S1}\) making it +12.
Finally we need the expression for the control variable. Let’s stop and think about what the equation is and how we can get that equation simply by looking at the circuit. The equation is
to include in the system we need to treat \(V_x\) as an unknown. Let’s move all of the unknowns to the left side of the expression
or
When I enter these values directly in the matrix I start with a -1 in the column that corresponds with the control variable. I then ask which mesh currents flow through the resistor and in which direction. In this case only \(I_1\) flows through \(R_2\) and it flows in the positive direction according to the passive sign convention. That leads to a +2 as the entry in the first column. \(I_2\) does not flow through \(R_2\) therefore there is a 0 in the second column.
We can then solve the system
Take a moment to compare these result against our earlier result. You will find they are consistent.
Solution - Hybrid
For this circuit one equation can be written with the shortcut. The other cannot. My habit is to not force the issue of using the shortcut in absolutely every situation. I write as much of the system as a I can with out involving the dependent supply. In this case that is only the KVL around \(I_1\).
I then write the equation(s) the include the dependent supply in the usual manner.
The expression for the control variable is
which is substituted into the equation
Entering the equation into the system give us
which is solved as
The mesh currents match our previous two solutions for this circuit. I take this route since I have more confidence in the outcome. Speed is good. Accuracy is better.
The shortcut can be used with a dependent current supply as well. Here is another example.
Example
Find the mesh currents
Solution - Pure shortcut
In this case we have four unknowns, \(I_1\), \(I_2\), \(I_3\), and \(I_x\). The KCL for \(I_{S1}\) and the super KVL can be entered in the usual manner using the shortcut. Let’s start with a system that has them entered already.
Now for the equations involved with the dependent supply, the KCL for \(I_{S2}\) and the expression for the control variable, \(I_x\). The currents are entered in the usual way, +1 for the \(I_2\) column and -1 for the \(I_3\) column. Again, the gain is moved from the right side of the equation to the left with the other unknowns. the gain will be negated and entered in the column corresponding to \(I_x\), -2 in this case.
Finally we fill in the row for the control variable. In this case it is a current. Only \(I_1\) touches \(I_x\) and it flows in the same direction making the corresponding entry +1. the other mesh currents do not touch \(I_x\) so their entries are 0. \(I_x\) would typically be on the other side of the equation but we move it to the side with the unknowns making it’s entry -1.
Solving the system gives us
Compare this result to our earlier analysis and you’ll find it is consistent.
Solution - Hybrid
I am more likely to take the hybrid approach. Part shortcut, part normal. This is personal preference. Just get the right answer.
The KCL for \(I_{S1}\) and the super KVL can be entered in the usual manner using the shortcut. Let’s start with a system that has them entered already.
I then write the KCL for \(I_{S2}\) in the usual manner The KCL for \(I_{S2}\) involves the dependent supply for we need to perform the substitution for the control variable. \(I_x\) in terms of the mesh currents is
which we substitute into the KCL for \(I_{S2}\).
and then enter the equation into the system
More consistent results! Check against the previous to examples of analyzing this circuit.
Strategy for Mesh Analysis#
The examples I’ve worked are intended to teach you how to deal with the little oddities that arise when performing mesh analysis. If you master these you will be able to analyze most linear electric circuits. I’ve also shown you how to use the “shortcut” to perform mesh analysis quickly. With practice you may be able to analyze most circuits simply by looking at the circuit and using your calculator to build the system of equations.
Not all circuits require you to use the techniques introduced here. When I first begin analysis of a circuit I look for certain conditions and I make a plan to deal with them. I will do my best to summarize the strategy I use when analyzing a circuit.
How many meshes? The number of meshes define how many unknowns will be part of the system and, therefore, how many equations you will have to write.
Are there current supplies? Each current supply means you will write a KCL equation instead of a KVL. Also notice I say “current supply”. I don’t say “dependent supply” or “independent supply” since the type of current supply does not matter.
a. Does the current supply touch a single mesh current? This is the simpler of the two conditions created by current supplies in the circuit. Just write a KCL for the current supply and skip the KVL for the mesh current that flows through the current supply.
b. Does the current supply touch two mesh currents? This condition creates a “super-loop” or “super-mesh”. The KCL is written in the same way as the previous case. The difference here is found in how you will write one of the KVLs. Rather than writing a KVL around a single mesh you will write a KVL around two or more meshes. It is best if you write the KVL around the two meshes that flow through the current supply.
Are there any dependent supplies? Look for diamond shaped supplies. It does not matter whether they are voltage or current supplies. Locate the control variable on the schematic and write an expression for it in terms of the unknown mesh currents. This expression is written in a similar manner to finding the output values of the analysis. You should use this expression anytime the control variable shows up in the system of equations.
Write the equations If you’ve answered the questions above you should know which equations you will include in the system. Write them carefully and use good practice with regards to the signs and order of coefficients.
Solve the system Matrix inversion works. So does row-reduced echelon form. If you’d like use software like MATLAB to solve the system. Just find the answer.
Find output of analysis Once you know the mesh current you can find any other value in the circuit. The output of the analysis may take a few different forms.
a. Is the value a current? If the value is a current you can write a KCL equation to find the output. Pay attention to the direction of the current as labeled on the schematic and which mesh currents touch that arrow.
b. Is the value a voltage across a single passive component? If the value is a voltage across a passive component use a combination of KCL and Ohm’s law to find that voltage. Find the current as you did for the previous output type respecting passive sign convention for the labeled voltage polarity. Use that current and the resistance (or impedance in later chapters) to find the voltage. This is useful for finding voltages that are outputs of the analysis as well as finding voltages that are intermediate values for the next type of output value.
c. Is the value a voltage across multiple components or a current supply? If the value is a voltage measured across multiple components or a component with an unknown resistance you will have to use a KVL. This means you have to find other voltages using the previous method. Write a KVL around a loop that includes the unknown voltage. Find all of the other voltages in the loop. Solve for the unknown voltage.