A7 · Lesson 3 · Circuits and simultaneous equations
Each node gives one equation, and the answer is where they meet
A voltage divider has one unknown voltage and one equation, so you solve it in a line. Add a second junction and the two unknown voltages depend on each other: you can't find one without the other. The way out is to write one equation per junction and solve them together. Each equation is a straight line, and the answer is where the lines cross.
Play
- The circuit: 10 V drives node 1 through ; goes from node 1 to ground; joins node 1 to node 2; goes from node 2 to ground. All values in kΩ.
- Each line is the set of pairs that satisfy one node's current law. The dot is where both hold: the circuit's actual voltages.
- Change the resistors and watch the lines move. Below, the same circuit is simulated: check that its meters read the dot's coordinates.
Predict
Two straight lines in a plane. How many points can satisfy both equations?
Usually exactly one: where they cross. Two parallel lines never meet, so no pair satisfies both; two identical lines meet everywhere. A sound circuit always gives the first case. Lesson 16 shows what the other two cases mean physically, and how to spot them before you try to solve.
Name it
Kirchhoff's current law, one node at a time
At every junction, the currents leaving add to zero (charge doesn't pile up). Writing each current through a resistor as the voltage across it over its resistance gives, at node 1 and node 2:
Both are linear: each unknown appears only multiplied by a constant. Collecting terms gives the standard form
or, as a matrix equation, :
is the conductance matrix. Notice its pattern: each diagonal entry is the total conductance touching that node, and each off-diagonal entry is minus the conductance joining two nodes. That pattern lets you write for any resistor circuit by inspection, which is nodal analysis (C1), and it's exactly what a circuit simulator builds.
With two unknowns, each equation is a line and the solution is where they cross. With three nodes, each equation is a plane in 3D; with a thousand, a "hyperplane" you can't draw, but the algebra is the same, and the rest of this course is about solving and understanding when it can't be solved.
Worked example
KCL gives and . Solve for the node voltages.
Show the solution
- Solve the second equation for . It gives .
- Substitute into the first.
- Back to .
- Row picture. In the row picture, the two lines cross at .
Answer = 6.67 V and = 3.33 V.
Worked example
When would two KCL equations have no solution, or infinitely many?
Show the solution
- When it happens. Only if their lines are parallel: the left sides are multiples of each other.
- Real circuits. A real resistor circuit with a ground never does this.
- Where it comes from. It happens in a model with a mistake, such as a node with no path to ground, whose voltage the equations can't pin down.
Answer only when the two lines are parallel, which for a circuit means a mistake in the model, such as a node with no path to ground.
Worked example
A 10 V source feeds node 1 through 1 kΩ. Node 1 has 1 kΩ to ground and 1 kΩ to node 2, and node 2 has 1 kΩ to ground. Find both node voltages.
Show the solution
- KCL at node 1. Working in volts, milliamps and kilohms, the currents leaving sum to zero: or .
- KCL at node 2. or .
- Solve. The second equation gives . Substituting: so = 2 V and = 4 V.
- Row picture. Two lines in the plane, meeting at .
Answer = 4 V and = 2 V.
Check
In the circuit above, make all four resistors 2 kΩ, with = 10 V.
(a)
What is , the total conductance touching node 1?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
(b)
What is , the entry joining node 1 to node 2?
(c)
Solve for .
(d)
And ?
Check
Solve for : , .
Check
On the graph of the two node equations, what does the crossing point represent?
Check
A 10 V source feeds node 1 through 1 kΩ. Node 1 has 1 kΩ to ground and 1 kΩ to node 2; node 2 has 1 kΩ to ground.
(a)
What is ?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What is ?
Check
A node with conductance to ground is fed from a source through 1 S.
Step 1
KCL says . What is the node voltage ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What current flows through ?
Check
Node 1 is fed from 5 V through 1 kΩ and node 2 from 3 V through 1 kΩ. Each node also has 1 kΩ to ground, and 10 kΩ joins the two nodes. Write KCL at both nodes and solve.
(a)
What is ?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What is ?
Explain why
Why does a circuit with two unknown node voltages need two equations solved together?
Each node's current law involves its own voltage and its neighbors' voltages, because the current through a resistor joining two nodes depends on the difference between them. So the equation for node 1 contains and the equation for node 2 contains : neither can be solved alone. Two equations in two unknowns pin down both values at once, at the point where both are satisfied.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.