Circuit 3D

Nodal and mesh analysis

Nodal analysis solves a circuit by writing Kirchhoff’s current law at each unknown node, so the currents leaving every node add to zero; mesh analysis writes Kirchhoff’s voltage law round each loop. Each current is written by Ohm’s law, so a circuit with two unknown node voltages gives two equations to solve together.

Σ (Vnode − Vneighbor) ÷ R = 0

where the sum runs over every branch leaving the node, V are node voltages measured from a chosen ground and R each branch’s resistance.

Solving the equations together gives every node voltage, and from them every current.

What is nodal analysis?

Nodal analysis is a method for finding every voltage in a circuit: label each unknown node’s voltage, apply Kirchhoff’s current law at each, and solve the equations.

A node is any point where parts join. In Figure 1, only node A is unknown, since the two sources fix the others, so one equation solves the whole network. Every current then follows from Ohm’s law.

R1 1 kΩ R3 1 kΩ R2 2 kΩ 12 V 6 V 0 V A 7.2 V 4.8 mA → 1.2 mA → 3.6 mA ↓

Second source 6 V: the current out of A sums to zero, (A − 12) ÷ 1 + A ÷ 2 + (A − 6) ÷ 1 = 0, so A = (12 + 6) ÷ 2.5 = 7.2 V. Then 4.8 mA = 3.6 mA + 1.2 mA.

Figure 1. A network with two sources and one unknown node, A, measured from the 0 V ground at the bottom. Kilohms and milliamps keep the sums small.

How do you do nodal analysis?

To do nodal analysis, pick a ground node as 0 V, name the other unknown node voltages, write the currents leaving each node as voltage differences over resistances, set their sum to zero, and solve.

Assume every current flows out; a negative answer just means it flows in. A voltage source between two unknown nodes joins them into a supernode, with one KCL equation round both and the source’s voltage linking them. Working in kilohms gives currents in milliamps.

What is mesh analysis?

Mesh analysis finds every current by giving each mesh, a loop with no other loop inside it, its own current, and writing Kirchhoff’s voltage law round each.

A resistor in two meshes carries the difference of their currents. Figure 2 solves the same network with two mesh currents and lands on exactly the currents nodal analysis gave.

R1 1 kΩ R3 1 kΩ R2 2 kΩ 12 V 6 V 0 V ↻ Ia 4.8 mA ↻ Ib 1.2 mA

Mesh 1: round the left loop, the 12 V equals the drops: 12 = 1 × Ia + 2(Ia − Ib). Solving both gives Ia = 4.8 mA, Ib = 1.2 mA, and R2 carries the difference, 3.6 mA.

Figure 2. The same two-source network, now with a clockwise current round each of its two loops, or meshes.

How do you do mesh analysis?

To do mesh analysis, draw a clockwise current in each mesh, add the voltage rises and drops round each loop to zero, writing a shared resistor’s drop with the difference of the two currents, and solve.

A current source on a shared branch makes a supermesh, a loop round both meshes, with the source fixing the difference of their currents. Mesh analysis only works for circuits you can draw flat with no crossing wires.

How do you solve the simultaneous equations?

To solve the simultaneous equations, use substitution or elimination for two, and for larger sets a matrix solved by Cramer’s rule, elimination or a computer.

Each equation in two unknowns is a straight line of the pairs of values that satisfy it, and the answer is where the lines cross, as Figure 3 shows. Circuit simulators like SPICE build exactly these node equations, for thousands of nodes at once.

(4.8, 1.2) Ia mA Ib mA

Each mesh equation is a straight line of the pairs of currents that satisfy it: 3Ia − 2Ib = 12 and 2Ia − 3Ib = 6. Only where they cross are both true: 4.8 mA and 1.2 mA.

Figure 3. The two mesh equations drawn as lines; the second source moves the second line, and the crossing is the solution.

Nodal or mesh analysis: which should you use?

Choose nodal or mesh analysis by whichever gives fewer equations: nodal needs one per unknown node, mesh one per loop, and voltage sources cut nodal’s count while current sources cut mesh’s.

Nodal analysis works for any circuit, which is why simulators use it. For a single load, a Thevenin equivalent can be quicker still, and simple ladders often yield to series and parallel rules or a voltage divider.

How do you find a node voltage and two mesh currents?

To find a node voltage, sum the currents leaving the node to zero and solve; for two mesh currents, write both loop equations and solve them together.

Example 1: a node voltage

A 9 V source feeds node A through 1 kΩ. From A, a 1 kΩ resistor and a 2 kΩ resistor go to ground. What is the voltage at A?

Given
9 V through 1 kΩ to node A, with 1 kΩ and 2 kΩ from A to ground
Find
the voltage at A
Solution
KCL at A, in mA with kΩ: (A − 9) ÷ 1 + A ÷ 1 + A ÷ 2 = 0A × (1 + 1 + 0.5) = 9, so A = 9 ÷ 2.5 = 3.6 V
Answer
3.6 V

Example 2: two mesh currents

Mesh 1 has a 10 V source and 2 kΩ; mesh 2 has 2 kΩ; they share a 2 kΩ resistor. What are the two mesh currents?

Given
10 V and 2 kΩ in mesh 1, 2 kΩ alone in mesh 2, and 2 kΩ shared between them
Find
both mesh currents
Solution
Mesh 2: 0 = 2(Ib − Ia) + 2Ib, so Ib = 0.5 × IaMesh 1: 10 = 2Ia + 2(Ia − Ib), so Ia = 3.33 mA and Ib = 1.67 mA
Answer
3.33 mA and 1.67 mA

Summary

Key equations

  • Σ Iout = 0 at each node Kirchhoff’s current law
  • Σ V = 0 round each loop Kirchhoff’s voltage law
  • I = (Va − Vb) ÷ R a branch’s current

Key terms

Node
Where two or more parts join.
Ground
The node called 0 V.
Mesh
A loop with no loop inside.
Supernode
Two nodes joined by a source.

Practice problems

  1. What does nodal analysis solve for?

  2. Which law does mesh analysis use?

  3. Two mesh currents of 5 mA and 2 mA flow the same way round their loops. What flows in the resistor they share?

  4. A circuit has 4 nodes, one of them ground, and no voltage sources. How many nodal equations?

  5. Node A connects through 1 kΩ to 10 V and through 1 kΩ to ground. What is A?

FAQ

What is the difference between nodal and mesh analysis?

Nodal analysis uses Kirchhoff’s current law at nodes and finds voltages; mesh analysis uses Kirchhoff’s voltage law round loops and finds currents.

Which node should be ground?

Any node works, but the one with the most connections, often the supply’s negative, gives the simplest equations.

What is a supernode?

Two unknown nodes joined by a voltage source, treated as one: a single KCL equation round both, plus the source fixing their difference.

What is a supermesh?

Two meshes sharing a current source, treated as one big loop for KVL, with the source fixing the difference of their currents.

Can mesh analysis solve any circuit?

Only planar ones, which can be drawn without crossing wires. Nodal analysis has no such limit.

What does a negative answer mean?

The current flows the other way from the direction you assumed. The size is still right.

Is nodal analysis the same as Kirchhoff’s current law?

It is KCL applied systematically: every unknown node gets one KCL equation, written in terms of node voltages.