Sub topic 7
Writing the mesh equations step by step
This chapter assumes you know Ohm's law, KVL, and how to solve two or three linear equations. It also assumes you can already spot the meshes of a planar circuit and give each one a mesh current. Here you turn that setup into equations.
The procedure
Every mesh gets one KVL equation. Use the same recipe each time and the signs take care of themselves.
- Draw every mesh current clockwise. A single convention makes every shared resistor carry the difference of two currents.
- Pick one mesh and walk around it in the direction of its mesh current.
- For each resistor, write its drop as R times the current through it. A resistor that belongs only to this mesh carries the mesh current. A shared resistor carries the mesh current minus the neighbor's mesh current.
- Collect the sources. A source you pass from the minus terminal to the plus terminal is a rise. A source you pass from plus to minus is a drop.
- Write the equation as: sum of resistor drops = sum of source rises.
- Repeat for each mesh.
Worked example
Take two meshes with both currents clockwise. Mesh 1 holds V1 = 10 V and R1 = 2 Ω. Mesh 2 holds R3 = 6 Ω and V2 = 5 V, which opposes the clockwise current. R2 = 4 Ω is shared.
Mesh 1. Walking clockwise, V1 is a rise of 10 V. R1 carries i1. R2 carries i1 − i2 in mesh 1's direction.
2*i1 + 4*(i1 - i2) = 10Mesh 2. R2 now carries i2 − i1, because we walk through it in mesh 2's direction. R3 carries i2. V2 opposes the walk, so it is a rise of −5 V.
4*(i2 - i1) + 6*i2 = -5Expand and collect terms by current:
6*i1 - 4*i2 = 10
-4*i1 + 10*i2 = -5Solving gives i1 ≈ 1.818 A and i2 ≈ 0.227 A. Substituting back into the second equation gives −7.273 + 2.273 = −5, which checks out.
Common errors
| Error | Symptom | Fix |
|---|---|---|
| Using only i1 through the shared resistor | Missing coupling term, so the equations do not link the meshes | Use i1 − i2 for the shared resistor in mesh 1 and i2 − i1 in mesh 2 |
| Flipping a source sign | Currents come out with the wrong sign or size | Decide rise or drop from the terminal you reach first while walking in the mesh current's direction |
| Mixing mesh directions | Some off-diagonal terms become positive | Draw every mesh current clockwise before writing anything |
| Writing a rise on the wrong side | Equation is off by twice the source value | Keep all drops on the left and all rises on the right |
Exercise
Exercise
A mesh has a 12 V source that is a rise in the clockwise direction, a 3 Ω resistor that belongs only to this mesh, and a 5 Ω resistor shared with a neighboring mesh whose clockwise current is i2. Write the KVL equation for this mesh using i1 as its own mesh current.
Show answer
Drops equal rises: 3i1 + 5(i1 - i2) = 12, which simplifies to 8i1 - 5i2 = 12.