guide · Alex from math.photos

How to Check Your Circuit Homework with Nodal Analysis

Nodal analysis step by step on a supernode problem, the three mistakes that cost the most marks (floating voltage sources, wires that cross without a dot, sign conventions), and two checks that need no answer key.

Circuit homework rarely goes wrong because of the physics. Ohm’s law and Kirchhoff’s current law fit on one line. It goes wrong in the bookkeeping: a sign that flips between two equations, a voltage source that does not fit the pattern, a wire you read as connected when it is not.

Nodal analysis is the most reliable way to catch those errors, because it turns any DC circuit into the same routine. This guide walks through the routine on a real homework-style problem, lists the three mistakes that cost the most marks, and shows two checks that tell you whether your answer is right without an answer key.

Nodal analysis in five steps

  1. Pick a ground node and call its voltage 0. The node with the most connections is usually the easiest choice.
  2. Label every other node. A node is all the wire between components — not one corner of it.
  3. Write KCL at each unknown node: the sum of the currents leaving the node is zero. A resistor between nodes x and y carries (v_x − v_y)/R away from x.
  4. Handle voltage sources. A source from a node to ground fixes that node’s voltage. A source between two non-ground nodes needs a supernode (below).
  5. Solve the linear system, then check it (also below).

Worked example: a voltage source between two nodes

Circuit diagram: a 3 A current source pushing current up into node a, a 4 Ω resistor R1 from a to ground, an 8 V source V1 from a to b with its + terminal at b, and a 2 Ω resistor R2 from b to ground.

Find the voltage at node a with respect to ground.

Read the parts. The bottom wire is ground. The current source pushes 3 A up into node a. R1 = 4 Ω goes from a to ground, R2 = 2 Ω from b to ground. V1 = 8 V sits between a and b, with its + terminal at b.

Why you cannot write KCL at a by itself. The current through V1 is unknown, and the source’s law (a fixed voltage) says nothing about it. KCL at a alone introduces a new unknown. So does KCL at b.

Use a supernode. Draw a box around a, b and V1, and treat the box as one node. KCL for the box: the currents leaving through R1 and R2 equal the 3 A that comes in.

v_a/4 + v_b/2 = 3

The source inside the box adds the second equation — the voltage at its + terminal is 8 V above its − terminal:

v_b − v_a = 8

Solve. Substitute v_b = v_a + 8:

v_a/4 + (v_a + 8)/2 = 3
(3/4)·v_a + 4 = 3
v_a = −4/3 V ≈ −1.33 V,   v_b = 20/3 V ≈ 6.67 V

The negative answer is correct. R1 carries 1/3 A up, from ground into node a, because node a is below ground.

Three mistakes that cost the most marks

1. Treating a floating voltage source like a resistor

The most common wrong move in the example above is to write KCL at node a with a term like (v_a − v_b)/R for V1. A voltage source has no resistance, so there is no such term. Its current is whatever the rest of the circuit needs. Every time a voltage source connects two nodes and neither one is ground, make a supernode: one KCL for the box, plus the source equation.

The second most common move is to get the source equation backwards. Writing v_a − v_b = 8 in the example gives v_a = +28/3 V — a clean-looking number that is wrong. Read the + sign on the diagram: the + terminal is the higher voltage, so v_+ − v_− = V.

2. Joining wires that only cross

Circuit diagram: a 12 V source, R1 = 2 Ω from the top rail to node a, R2 = 4 Ω from a to ground, R3 = 3 Ω from the top rail to node b, R4 = 6 Ω from b to ground, and R5 = 4 Ω from a to ground. The wire from a to R5 crosses the R3–R4 wire with no dot.

Wires that cross without a dot are not connected. Find v_ab = v_a − v_b.

The wire from node a to R5 crosses the wire between R3 and R4. There is no dot, so the wires are not connected. That makes two independent dividers from the 12 V rail:

  • Node a: R2 and R5 in parallel are 2 Ω, against R1 = 2 Ω, so v_a = 12 · 2/(2 + 2) = 6 V.
  • Node b: v_b = 12 · 6/(3 + 6) = 8 V.
  • v_ab = 6 − 8 = −2 V.

If you read the crossing as a connection, a and b become one node, and you get v_ab = 0 — no matter how carefully you solve. Before you write an equation, mark every dot on the diagram. A crossing without a dot is two nodes.

3. Changing the sign convention halfway through

Pick “currents leaving the node add to zero” and use it at every node. If you write currents entering a node in one equation and leaving in the next, each equation still looks reasonable, but the system describes a different circuit. The same applies to power: under the passive sign convention, a part absorbs power p = v·i when the current enters its + terminal. Keep one rule for every part, sources included.

Two checks that need no answer key

KCL at a node you did not use. In the example, check the supernode with the computed values: (−4/3)/4 + (20/3)/2 = −1/3 + 10/3 = 3 A. That is exactly the 3 A the source pushes in. If a sign were wrong, the sum would not match.

Power balance. The power the sources deliver must equal the power the resistors absorb.

  • R1 absorbs (1/3)²·4 = 4/9 W. R2 absorbs (10/3)²·2 = 200/9 W. Total: 204/9 ≈ 22.67 W.
  • V1 delivers 8 · 10/3 = 80/3 ≈ 26.67 W: 10/3 A leaves its + terminal.
  • The current source sees v_a = −4/3 V across it, so it delivers 3 · (−4/3) = −4 W. It absorbs 4 W.
  • Net delivered: 80/3 − 4 = 68/3 ≈ 22.67 W. It balances.

The second check also shows something useful: a source does not have to deliver power. Here, the 8 V source pushes current backwards through the current source.

How math.photos does it

Math.photos follows the routine above. When the screenshot is a DC circuit diagram, it does not try to guess the answer in one pass:

  1. It reads the diagram into a parts list: every resistor and source, its value, and the two nodes it connects.
  2. It computes the answer with circuit laws — KCL at every node and Ohm’s law for every resistor.
  3. It shows the node equations with the values put in, so you can compare them line by line with yours. The answer carries a Checked with circuit laws badge.

It covers resistor networks (series and parallel, ladders, bridges, delta), nodal and mesh problems, voltage and current sources, dependent sources, supernodes, Thévenin and Norton equivalents, and RC and RL circuits at DC steady state. Mesh problems are solved with node equations, so the steps show nodal analysis, but the branch currents are the same.

AC circuits and phasors, op-amps, transients and digital logic are not checked with circuit laws yet. They are coming later.

One limit to keep in mind: the answer is only as right as the reading of the diagram. The circuit-law check proves that the answer follows from the parts in the equations. It cannot prove that those parts match your picture. So compare the parts and values in the steps with your diagram — the same habit that catches the crossing-wire mistake above.

It works in the math.photos Chrome extension you may already have, with nothing new to install. See the circuit solver page for the full list of what it covers.

Ready to try Math.Photos?

Get step-by-step solutions for any math problem. Free to start.

Install