The idea
Give every loop (“mesh”) in the circuit its own current going round clockwise. Write KVL for each loop and you get one equation per mesh, which fit neatly into a matrix. Solve it and you have every current in the circuit at once.
A typical robot example: the main supply () and a backup battery () both feed a motor drive. Simplified, that’s two sources and five resistors in three meshes.
Building the matrix by inspection
- Diagonal: the total resistance round that mesh.
- Off-diagonal: minus the resistance shared by the two meshes, or 0 if they share nothing. So the matrix is always symmetric.
- Right-hand side: the source voltage driving each mesh, or 0.
Then:
- Solve for the mesh currents (Cramer, calculator or MATLAB).
- An outer branch carries its own mesh current.
- A shared branch carries the difference of the two mesh currents. A negative answer means it flows the other way.
- Power balance: .
Worked example
V, V, , , , , . Find every branch current and check the power balance.
Answer
, , , so A, A, A. Branches: , , A. Shared: A, A (flows opposite to ‘s direction). Resistors: W Sources: W ✓
Common mistakes
- Positive off-diagonal terms. Shared resistances are always negative in this setup.
- Forgetting a resistor in a diagonal term: go all the way round the mesh.
- Reading a shared branch’s current as one mesh current instead of the difference.
Check yourself
1. Write the matrix for , , , , , V, V.
, giving , , A.