Basics of Mesh Analysis
Mesh Analysis
Introduction and Definitions
Mesh analysis (also called loop analysis) is a method for solving planar circuits by writing Kirchhoff’s Voltage Law (KVL) equations for each mesh. It is particularly useful when a circuit contains many voltage sources.
Mesh vs Loop
A mesh is a loop that contains no other loops inside it – it is the smallest “closed path” in the circuit.
A loop can contain meshes within it. Every mesh is a loop, but not every loop is a mesh.
Analogy: like nesting dolls – the smallest doll is a mesh; larger dolls are loops.
Key definition: A mesh is a loop that does not enclose any other loops.
Mesh Currents
A mesh current is an assumed current that flows around the entire mesh (not a branch current).
The direction (clockwise or counter-clockwise) can be chosen arbitrarily. A negative result means the actual current flows opposite to the assumption; the magnitude is correct.
For circuits with current sources, it is often convenient to align mesh currents with the source direction to obtain direct equations.
KVL for a Mesh
Kirchhoff’s Voltage Law states that the sum of all voltages around any closed loop is zero. For each mesh, write a KVL equation following the direction of the mesh current.
Polarity convention for resistors: When writing KVL, assume the mesh current enters the positive terminal of every resistor. Therefore, the voltage drop across a resistor is taken as positive when going in the direction of the mesh current.
Handling Shared Branches
When two mesh currents flow through the same resistor, the net current through that resistor is the difference (or sum) of the mesh currents. In the KVL equation for a given mesh:
The mesh current for which the equation is being written is the “boss” – always positive.
Any opposing mesh current gets a negative sign.
Any mesh current flowing in the same direction gets a positive sign.
Fundamental rule: The number of equations needed equals the number of meshes in the circuit.
Steps for Mesh Analysis
Identify all meshes in the circuit.
Assign a mesh current to each mesh (choose direction – clockwise is common).
Write a KVL equation for each mesh, expressing resistor voltages in terms of mesh currents and resistances (Ohm’s law). Use the “boss” rule for shared branches.
Include constraints from current sources:
If a current source is not shared between meshes, its mesh current equals the source current (positive if same direction).
If a current source is shared between two meshes, write a constraint equation relating the two mesh currents (e.g., I3−I1=source current).
For dependent sources, express the controlling variable in terms of mesh currents, then substitute into the equations.
Solve the system of simultaneous equations for the mesh currents.
Find desired quantities (branch currents, node voltages) using mesh currents.
Example 1: Two-Mesh Circuit with Voltage Sources
Find I0 in the circuit with two meshes.
Assign clockwise mesh currents I1 and I2.
Mesh 1 KVL (clockwise): +6V+V1+V3=0
V1=6Ω⋅I1
V3 is shared: I1 goes down, I2 opposes (goes up). So V3=6Ω⋅(I1−I2)
Equation: 6+6I1+6(I1−I2)=0⟹12I1−6I2=−6 (1)
Mesh 2 KVL (clockwise): V2+24V+V3=0
V2=4Ω⋅I2
V3: I2 is boss, I1 opposes → 6Ω⋅(I2−I1)
Equation: 4I2+24+6(I2−I1)=0⟹−6I1+10I2=−24 (2)
Solving (1) and (2) yields I1=−712A, I2=−727A. Negative signs indicate actual currents are counter-clockwise.
I0 is labeled to the right, same direction as I2 → I0=I2=−727A (negative means I0 flows left).
Key takeaway: A negative result means the assumed direction is opposite to the actual flow. The magnitude is correct.
Example 2: Circuit with Independent Current Sources (Not Shared)
Find I0 in a three-mesh circuit with two independent current sources.
3 meshes → need 3 equations.
Current sources are in separate branches (not shared). So mesh currents can be set equal to source values:
I2=2mA (top mesh)
I1=4mA (bottom left mesh)
For the remaining mesh (right), write KVL directly in terms of currents and resistances:
1kΩ⋅(I3−I2)−6V+2kΩ⋅(I3−I1)=0
Simplify: I3−I2+2I3−2I1=1k6×103 (careful with units: 6V=6×103mV? Better keep in kΩ and mA: 6V=6×103mV, but consistent: using kΩ and mA yields V=(kΩ)(mA)=V → direct numbers: 1kΩ⋅(I3−I2)=1×(I3−I2) in kΩ·mA = V, so equation: 1(I3−I2)+2(I3−I1)=6 → 3I3−I2−2I1=6)
With I1=4, I2=2: 3I3−2−8=6⟹3I3=16⟹I3=316≈5.333mA
I0 is down in the branch with I1 and I3; I0=I1−I3=4−5.333=−1.333mA (negative means I0 flows upward).
Note: When current sources are not shared, they directly determine some mesh currents, reducing the number of KVL equations needed.
Example 3: Circuit with Shared Current Sources (Supermesh)
Find I0 in a four-mesh circuit with two current sources shared between meshes.
4 meshes → 4 equations.
All mesh currents assumed clockwise.
Shared current sources cannot be directly equated to a single mesh current.
For the 2mA source (between I1 and I3): I3 goes left to right (same as source), I1 goes right to left (opposite). So I3−I1=2mA. (1)
For the 1mA source (between I3 and I4): I4 goes same direction, I3 opposes → I4−I3=1mA. (2)
Write KVL for meshes without current sources:
Mesh 2 (top right): 4kΩ⋅I2+2kΩ⋅(I2−I4)+2kΩ⋅(I2−I1)=0
Simplify: 4I2+2I2−2I4+2I2−2I1=0⟹8I2−2I1−2I4=0 (3)
Outer loop (bypassing both current sources): A loop that avoids current sources. Clockwise:
4kΩ⋅I2+2kΩ⋅I4+6kΩ⋅I3−6V=0
Simplify: 4I2+2I4+6I3=6 (4)
Solve the system (use Gaussian elimination or substitution). Example solution (from transcript): I1=−1.5mA, I2=0.25mA, I3=0.5mA, I4=1.5mA (approximate values).
I0 is down: I0=I1−I2=−1.5−0.25=−1.75mA (negative → opposite direction).
Important: When a current source is shared between two meshes, you cannot immediately assign a mesh current to it. Instead, write a constraint equation relating the two mesh currents, and use a supermesh (a larger loop that excludes the current source) to write a KVL equation.
Example 4: Many Meshes with Current Sources and Dependent Sources
Find V0 in a six-mesh circuit with both independent and dependent sources.
6 meshes → 6 equations.
Two independent current sources not shared give direct equations:
I3=2mA
I4=2mA
Two shared current sources give constraint equations:
I1−I2=4mA (since I1 same direction as source)
I6−I5=4mA
Use loops to write KVL for meshes that contain current sources:
Loop 1 (covering meshes 5 and 6, bypassing their shared current source): clockwise, ignoring the dependent source in between:
1kΩ⋅(I5−I2)+1kΩ⋅(I6−I3)+2kΩ⋅I6−6V=0
Simplify: I5−I2+I6−I3+2I6=6⟹−I2+I5+3I6−I3=6 (5)
Loop 2 (covering meshes 1 and 2, bypassing their shared current source):
2kΩ⋅I1−4V+1kΩ⋅(I2−I5)+1kΩ⋅(I1−I4)=0
Simplify: 2I1+(I2−I5)+(I1−I4)=4⟹3I1+I2−I5−I4=4 (6)
Solve the system (6 equations, including the four constraints); mesh currents are found.
V0 is across a 1kΩ resistor: V0=1kΩ⋅(I5−I2) (since I5 enters positive terminal, I2 enters negative).
Strategy: When a mesh contains a current source (shared or not), you cannot write a simple KVL for that mesh because the voltage across the current source is unknown. Instead, use a supermesh – a loop that goes around the current source(s) – and write KVL for that loop, using mesh currents present in the branches.
Example 5: Dependent Sources
Find I0 in a three-mesh circuit with a dependent current source and a dependent voltage source.
3 meshes → 3 equations.
All mesh currents assumed clockwise.
Top mesh: dependent current source 2Ix. Since not shared, I1=2Ix.
Express Ix: the current through the right branch of mesh 2 and 3. Ix=I2−I3 (since I2 down, I3 up).
So I1=2(I2−I3) (1)
Mesh 2 KVL: 1kΩ⋅(I2−I1)+1kΩ⋅(I2−I3)−6V=0
Simplify: I2−I1+I2−I3=6⟹−I1+2I2−I3=6 (2)
Mesh 3 KVL: 1kΩ⋅(I3−I1)+2Vx+1kΩ⋅(I3−I2)=0
Vx is voltage across the 1kΩ resistor where Ix flows. Vx=1kΩ⋅Ix=1kΩ⋅(I2−I1) (positive terminal at top? The problem states Vx is measured with positive at top, so Vx=1kΩ⋅(I2−I1)).
Substitute: (I3−I1)+2(I2−I1)+(I3−I2)=0
Simplify: I3−I1+2I2−2I1+I3−I2=0⟹−3I1+I2+2I3=0 (3)
Solve (1), (2), (3). Example solution (from transcript): I1=6mA, I2=10mA, I3=4mA (approximate).
I0 is the same as I2 (since branch current) → I0=10mA.
Dependent sources: Always express the controlling variable (current or voltage) in terms of mesh currents. Then substitute into the KVL equations.
Example 6: Complex Circuit with Multiple Dependent and Independent Sources
Find I0 in a six-mesh circuit with a dependent current source, dependent voltage source, and independent sources.
6 meshes → 6 equations.
Mesh currents: all clockwise except I3 counter-clockwise to match the 6mA source.
Equations from sources:
I3=6mA (independent, not shared) (1)
Dependent current source 2Ix between meshes 5 and 6: I6−I5=2Ix.
Ix is current through a 1kΩ resistor: Ix=I4−I5 (since I4 same direction).
So I6−I5=2(I4−I5)⟹I6−I5=2I4−2I5⟹I6+I5=2I4 (2)
KVL for meshes without current sources:
Mesh 1: 1kΩ⋅I1+12V+1kΩ⋅(I1−I4)=0⟹2I1−I4=−12 (3)
Mesh 2: 1kΩ⋅(I2+I3)+1kΩ⋅(I2−I5)−12V=0 (note: I2 and I3 both go up in the shared branch? Actually I2 goes clockwise (down then left then up), I3 goes counter-clockwise (up through that branch). So they are in same direction through the shared 1kΩ → sum.)
Simplify: I2+I3+I2−I5=12⟹2I2+I3−I5=12 (4)
Mesh 4: 1kΩ⋅(I4−I1)+1kΩ⋅(I4−I5)+2Vx=0.
Vx=1kΩ⋅I6 (voltage across the 1kΩ resistor where I6 flows from top to bottom).
Substitute: (I4−I1)+(I4−I5)+2I6=0⟹2I4−I1−I5+2I6=0 (5)
Supermesh for meshes 5 and 6 (bypass the dependent current source between them):
Outer loop including both: clockwise.
1kΩ⋅(I5−I4)+1kΩ⋅(I5−I2)+1kΩ⋅(I6+I3)+1kΩ⋅I6=0 (note: I6 and I3 both go up through that 1kΩ resistor? Actually the branch has I6 going up and I3 going up too (since I3 is counter-clockwise, it goes up through that resistor). So they add.)
Simplify: I5−I4+I5−I2+I6+I3+I6=0⟹−I4−I2+2I5+2I6+I3=0 (6)
Solve the six equations. Example solution (from transcript yields negative values for some – indicate opposite direction).
I0 is shown from left to right through a branch: I0=I5−I2 (since I5 rightward, I2 leftward).
Practical tip: When a mesh current direction is opposite to a source, you can still assume the direction; the constraint equation will adjust signs accordingly. Always write constraint equations carefully based on assumed directions.
Choosing Between Nodal and Mesh Analysis
General Guideline
More voltage sources → mesh analysis is usually easier (write KVL equations).
More current sources → nodal analysis is usually easier (write KCL equations).
However, the decision should also consider how many equations can be obtained directly from sources.
Example: Circuit with Many Voltage Sources (Mesh Analysis Appears Better but Nodal Wins)
A circuit with 6 meshes and 7 nodes. Both methods require 6 equations, but some node voltages are directly set by voltage sources (e.g., if a node is connected to ground through a voltage source). That gives 4 direct equations, needing only 2 additional KCL equations. So nodal analysis becomes simpler even though there are more voltage sources.
Example: Circuit with Many Current Sources (Nodal Analysis Appears Better but Mesh Wins)
A circuit with many current sources that are all in separate branches (not shared). Mesh currents can be directly set equal to those source currents, giving many direct equations. Then only a few KVL equations are needed. So mesh analysis is easier.
Key insight: Look for sources that are directly connected to reference nodes (in nodal) or that are in separate meshes (in mesh). Those yield free equations. The method that gives the most free equations is often the most efficient.
Practical Advice
Redraw circuits mentally or on paper to make them look familiar. Conductors can be bent.
When in doubt, choose the method that leads to fewer unknowns after constraints are applied.
Practice both methods to recognize patterns.
Summary
Mesh analysis is based on KVL and uses assumed mesh currents.
The number of equations equals the number of meshes.
Shared branches require careful sign handling.
Current sources impose constraints; use supermeshes when necessary.
Dependent sources must be expressed in terms of mesh currents.
The choice between nodal and mesh analysis depends on the circuit structure, not just on the number of source types.
With practice, mesh analysis becomes a systematic tool for solving complex circuits.

Ask anything
We've read this whole study set, so questions about it get the best answers.