Sub topic 8
Voltage Sources Connected to Ground
This chapter assumes you can write KCL equations at a node using conductance, and that you can assemble and solve a system of the form G v = i. If those steps feel shaky, review the chapters on writing KCL equations and on matrix form first.
Why a grounded voltage source is easier
An independent voltage source holds a fixed voltage across its terminals. If one terminal is the reference node (ground), the other terminal sits at a known voltage relative to ground. That voltage is the node voltage, so the node stops being an unknown.
This changes the bookkeeping in three ways:
- The node voltage is known, so you do not write a KCL equation to find it.
- The number of unknowns drops by one for every grounded source.
- The current through the source is not known in advance. It is whatever the rest of the circuit demands. You recover it afterward.
The third point is the one people forget. A resistor has a voltage-current relationship, so you can write its current in terms of node voltages. An ideal voltage source has no such relationship. Its current is free to take any value, which is why a KCL equation at the source's node would add a new unknown and tell you nothing new.
Reading the polarity
The sign of the known node voltage depends on which terminal touches ground.
| Source orientation | Known node voltage |
|---|---|
| + terminal at the node, − terminal at ground | V_node = +V_s |
| − terminal at the node, + terminal at ground | V_node = −V_s |
Check the polarity marks before you write anything. A wrong sign here carries through every later equation, and the result still looks plausible.
A first example: the voltage divider
A 10 V source connects from node 1 to ground, with the + terminal at node 1. Resistor R1 = 1 kΩ runs from node 1 to node 2. Resistor R2 = 2 kΩ runs from node 2 to ground.
Node 1 is known: V1 = 10 V. The only unknown is V2, so you need one KCL equation, at node 2. Write the sum of currents leaving node 2 as zero:
g1 (V2 − V1) + g2 V2 = 0
Rearranging gives (g1 + g2) V2 = g1 V1. The known voltage V1 moves to the right-hand side, multiplied by the conductance that connects it to the unknown node. This is the pattern for every grounded source: each known node voltage contributes g × V_known to the right-hand side of each neighbor's equation.
import numpy as np
# A 10 V source is connected from node 1 to ground, so V1 = 10 V is known.
# R1 = 1 kohm (node 1 to node 2), R2 = 2 kohm (node 2 to ground).
V1 = 10.0
g1, g2 = 1/1000, 1/2000
# KCL at node 2: (g1 + g2) * V2 - g1 * V1 = 0
V2 = g1 * V1 / (g1 + g2)
print(V2) # 6.666...The result matches the voltage-divider formula, V2 = 10 × 2/3 = 6.667 V. Getting the same answer from two methods is a quick sanity check on your setup.
The general procedure
- Choose the reference node. Picking the node where a voltage source's negative terminal sits often makes that source grounded.
- Label every other node with a voltage variable.
- For each node tied to ground by a voltage source, write the known value with the correct sign.
- Write a KCL equation at every remaining node.
- In each equation, replace known node voltages with their values and move those terms to the right-hand side.
- Solve the reduced system.
- Find the source current with KCL at the source's node.
A larger worked example
Use kΩ for resistance, mA for current, and mS for conductance. These units are consistent, so voltages come out in volts.
The circuit has three non-reference nodes:
- A 12 V source connects from node 1 to ground, + at node 1.
- R1 = 2 kΩ connects node 1 to node 2.
- R2 = 6 kΩ connects node 2 to ground.
- R3 = 3 kΩ connects node 2 to node 3.
- R4 = 6 kΩ connects node 3 to ground.
- A 1 mA current source pushes current into node 3 from ground.
The conductances are g1 = 1/2 mS, g2 = 1/6 mS, g3 = 1/3 mS, and g4 = 1/6 mS.
Node 1 is known, so V1 = 12 V and there are two unknowns, V2 and V3.
KCL at node 2, currents leaving the node:
(g1 + g2 + g3) V2 − g3 V3 = g1 V1
Substituting: 1.0 V2 − (1/3) V3 = 6.
KCL at node 3, with the source current entering:
−g3 V2 + (g3 + g4) V3 = 1
Substituting: −(1/3) V2 + 0.5 V3 = 1.
From the first equation, V2 = 6 + V3/3. Substituting into the second gives V3 (1/2 − 1/9) = 3, so V3 = 54/7 ≈ 7.714 V and V2 = 60/7 ≈ 8.571 V.
The matrix form is a 2×2 system rather than 3×3, because node 1 never appears as an unknown. The code below solves it, then recovers the source current and checks the power balance.
import numpy as np
V1 = 12.0 # known, from the grounded source
g1, g2, g3, g4 = 1/2, 1/6, 1/3, 1/6 # mS
G = np.array([[g1 + g2 + g3, -g3],
[-g3, g3 + g4]])
i = np.array([g1 * V1, 1.0]) # mA
V2, V3 = np.linalg.solve(G, i)
# Current delivered by the 12 V source: it leaves node 1 through R1.
I_src = g1 * (V1 - V2)
p_supplied = V1 * I_src + V3 * 1.0 # voltage source + current source, mW
p_absorbed = (g1 * (V1 - V2)**2 + g2 * V2**2
+ g3 * (V2 - V3)**2 + g4 * V3**2)
print(f"{V2:.3f} {V3:.3f} {I_src:.3f}") # 8.571 7.714 1.714
print(f"{p_supplied:.3f} {p_absorbed:.3f}") # 28.286 28.286The source delivers 12/7 ≈ 1.714 mA. The 12 V source supplies 20.571 mW and the current source supplies 7.714 mW. The four resistors absorb 28.286 mW in total. Supplied and absorbed power match, so the solution passes the power-balance check.
Note how the current source's voltage is found. The 1 mA source forces its current, but the voltage across it is V3, which the solution supplies. That is the mirror image of the voltage source, where the voltage is forced and the current is found afterward.
Several grounded sources
A circuit can have more than one grounded voltage source. Each one fixes its own node. The system shrinks by one equation per source. If every non-reference node is tied to ground by a source, no KCL equations remain, and every node voltage is simply read from the sources.
Check that no two sources conflict. Two ideal sources of different voltages connected to the same node and to ground demand two different voltages at one point. The circuit has no solution, which is a flaw in the model. Real sources have internal resistance that resolves the conflict.
Edge cases
- Resistor in parallel with the source. A resistor connected directly across a grounded source changes the source current but not any node voltage. You can ignore it when solving for node voltages, and include it when computing the source current.
- Resistor in series with the source. If a resistor sits between the source and the node, the node is not tied directly to ground by the source. The grounded-source shortcut does not apply to that node. Either treat the junction between source and resistor as its own node (which then has a known voltage), or convert the series source-and-resistor to a Norton equivalent current source with a parallel conductance.
- Source between two non-ground nodes. A floating source has a known voltage difference but not known individual node voltages. The next chapter handles it with supernodes.
- Writing KCL at a source node anyway. This is not wrong, but the equation includes the unknown source current. It is useful only for finding that current once the other voltages are solved.
Checking your answer
Two checks work well for circuits with grounded sources:
- KCL at the source node. Sum the currents leaving the node through resistors. The source must supply exactly that amount.
- Power balance. Power supplied by all sources equals power absorbed by all resistors, as in the example above.
A sign error in a source's polarity usually shows up as a negative source power where you expected a positive one, or as a power imbalance.
Exercise
A 9 V source has its − terminal at node 1 and its + terminal at ground. R1 = 3 kΩ connects node 1 to node 2, and R2 = 6 kΩ connects node 2 to ground. Find V1 and V2.
Show answer
The + terminal is at ground and the − terminal is at node 1, so V1 = −9 V. KCL at node 2 gives (1/3 + 1/6) V2 = (1/3)(−9), so 0.5 V2 = −3 and V2 = −6 V. This matches the divider result: −9 × 6/(3 + 6) = −6 V.
Exercise
In the 12 V example in this chapter, suppose R2 is changed to 3 kΩ and nothing else changes. Write the new 2×2 system G v = i for the unknowns V2 and V3, using mS and mA.
Show answer
g2 becomes 1/3 mS. The node 2 coefficient is g1 + g2 + g3 = 1/2 + 1/3 + 1/3 = 7/6. The node 3 equation is unchanged. The system is [[7/6, −1/3], [−1/3, 1/2]] times [V2, V3] = [6, 1]. Changing R2 alters only the diagonal entry for node 2, because R2 connects node 2 to ground and does not couple any two unknowns.