Sub topic 13
Mesh analysis with dependent sources and supermeshes
This chapter assumes you can write KVL equations, solve two or three linear equations, and recognise independent and dependent sources by their symbols. It shows how mesh analysis changes when a source is dependent or when a current source sits between two meshes.
The basic mesh method
Mesh analysis applies to planar circuits. You assign a loop current to each mesh, which is a loop containing no other loop. You then write KVL around each mesh and solve for the mesh currents. Clockwise is the usual choice for every mesh, because then each shared resistor carries the difference of two mesh currents.
With only independent voltage sources, you get one equation per mesh and no extra work. Two situations need extra steps:
- A dependent source adds an unknown, because its value depends on some other circuit quantity.
- A current source shared by two meshes has an unknown voltage, so KVL around either mesh alone cannot be written.
Dependent sources in a mesh equation
Treat a dependent voltage source like any other voltage source when you write KVL. Its value is a formula instead of a number. Then add one extra equation that expresses the controlling variable in terms of the mesh currents.
- Write KVL for each mesh, using the dependent source's formula for its voltage.
- Replace the controlling variable with an expression in the mesh currents. For a controlling current, this is usually a single mesh current or a difference of two. For a controlling voltage, it is a resistance times a current.
- Move all mesh-current terms to the left side and solve.
Worked example: a CCVS
The left mesh contains a 12 V source and R1 = 2 Ω. R2 = 4 Ω is shared between the meshes. The right mesh contains R3 = 6 Ω and a dependent voltage source of value 2·Ix. Ix is the current through R1, and the source polarity makes i2 enter its positive terminal. Both mesh currents run clockwise.
Ix is the current in R1, which only mesh 1 carries, so Ix = i1.
Mesh 1:
-12 + 2·i1 + 4·(i1 − i2) = 0, which simplifies to 6·i1 − 4·i2 = 12.
Mesh 2:
4·(i2 − i1) + 6·i2 + 2·Ix = 0.
Substitute Ix = i1:
-4·i1 + 10·i2 + 2·i1 = 0, which simplifies to −2·i1 + 10·i2 = 0, so i1 = 5·i2.
Substitute into mesh 1:
30·i2 − 4·i2 = 12, so i2 = 12/26 = 6/13 A ≈ 0.462 A and i1 = 30/13 A ≈ 2.308 A.
Check mesh 2: −2(2.308) + 10(0.462) = 0. ✓
Current sources and supermeshes
A current source has a fixed current but an unknown voltage. Where it sits determines how you handle it.
| Current source location | What to do |
|---|---|
| In a branch belonging to one mesh only | The mesh current equals ±the source current, with the sign set by direction. That mesh needs no KVL equation. |
| In a branch shared by two meshes | Form a supermesh and add a constraint equation. |
| Dependent current source in a shared branch | Same as the previous row, but the constraint contains the controlling variable, which you then rewrite in mesh currents. |
A supermesh is the loop you get by going around the outside of two meshes and skipping the shared branch that holds the current source. KVL around this larger loop contains no unknown source voltage.
The procedure:
- Write KVL around the supermesh path, omitting the current-source branch.
- Write a constraint equation: the difference of the two mesh currents in the shared branch equals the source current, with the sign set by direction.
- Write ordinary KVL for any remaining meshes.
- Solve. You now have one equation per unknown mesh current.
Worked example: a supermesh
The left mesh has a 10 V source and R1 = 2 Ω on top. The right mesh has R2 = 3 Ω on top and R3 = 1 Ω on the right side. A 2 A current source sits in the shared middle branch and points downward. Both mesh currents run clockwise.
Clockwise i1 travels downward through the shared branch, and clockwise i2 travels upward through it. The downward current in that branch is i1 − i2, so the constraint is:
i1 − i2 = 2
The supermesh KVL goes around the outer loop and ignores the middle branch:
-10 + 2·i1 + 3·i2 + 1·i2 = 0, which simplifies to 2·i1 + 4·i2 = 10.
Substitute i1 = i2 + 2:
2·i2 + 4 + 4·i2 = 10, so i2 = 1 A and i1 = 3 A.
The source voltage was never a variable in this solution, but you can recover it afterwards. KVL around the left mesh gives −10 + 2(3) + vs = 0, so vs = 4 V (top terminal higher). The current enters at the high terminal, so the source absorbs 2 × 4 = 8 W.
A power check confirms the answer. The 10 V source delivers 10 × 3 = 30 W. The resistors absorb 2(3²) + 3(1²) + 1(1²) = 18 + 3 + 1 = 22 W. Adding the 8 W in the current source gives 30 W absorbed, which matches.
Checking with SPICE
SPICE uses nodal analysis, so it gives an independent check on a mesh result. The shared current source runs from node n2 down to ground.
* Supermesh example: 2 A source in the shared branch
V1 n1 0 DC 10
R1 n1 n2 2
R2 n2 n3 3
R3 n3 0 1
I1 n2 0 DC 2
.op
.endThe operating point should report v(n2) = 4 V, matching vs, and v(n3) = 1 V, matching i2·R3. SPICE reports i(V1) as −3 A. Its sign convention counts current flowing into the positive terminal as positive, so a source that delivers 3 A shows a negative value.
Common errors
- Forgetting the constraint. Writing only the supermesh KVL leaves you one equation short.
- Including the current-source branch in the supermesh loop. Its voltage is unknown, so it must not appear in any KVL equation.
- Leaving the controlling variable unexpressed. An equation containing Vx or Ix alongside mesh currents is not yet solvable. Substitute the controlling variable first.
- Wrong sign on shared elements. A shared resistor carries i1 − i2 only when both currents are clockwise. Mixed directions require the sum.
- Applying the supermesh rule to a branch with a current source in series with a resistor. The resistor does not change the rule. The branch is still skipped in the supermesh loop, and the constraint still equals the source current.
Exercise
Repeat the CCVS example, but change the dependent source to 3·Ix, where Ix is still the current through R1 and the polarity is unchanged. Find i1 and i2.
Show answer
Mesh 1 is unchanged: 6·i1 − 4·i2 = 12. Mesh 2 becomes −4·i1 + 10·i2 + 3·i1 = 0, so −i1 + 10·i2 = 0 and i1 = 10·i2. Substituting gives 60·i2 − 4·i2 = 12, so i2 = 12/56 = 3/14 A ≈ 0.214 A and i1 = 15/7 A ≈ 2.143 A.
Exercise
In the supermesh example, the shared source is replaced by one that points upward and has the same 2 A value. What is the new constraint equation, and does the supermesh KVL equation change?
Show answer
The downward current in the shared branch is now −2 A, so the constraint is i1 − i2 = −2, which means i1 = i2 − 2. The supermesh KVL equation does not change, because the shared branch is skipped: 2·i1 + 4·i2 = 10. Substituting gives 6·i2 − 4 = 10, so i2 = 7/3 A and i1 = 1/3 A.