Sub topic 2
Independent Sources as the Inputs of a Circuit
This chapter assumes you know Ohm's law, Kirchhoff's laws, series and parallel resistors, and voltage and current dividers. It also assumes you have met ideal sources before. Here you will learn to treat independent sources as the inputs of a circuit. Every voltage or current you want to find is then an output. This view is the base for superposition.
Two kinds of independent source
An independent source sets its own value. Nothing else in the circuit changes it. There are two ideal kinds:
- An independent voltage source holds a fixed voltage across its terminals. The circuit decides how much current flows through it.
- An independent current source forces a fixed current through its branch. The circuit decides what voltage appears across it.
The two kinds mirror each other. Each source fixes one quantity and leaves the other free.
| Source | Fixes | Circuit decides | Behaves like, when set to zero |
|---|---|---|---|
| Voltage source | Terminal voltage | Current through it | Wire (short circuit) |
| Current source | Branch current | Voltage across it | Gap (open circuit) |
The last column is a preview. A later chapter explains why these replacements are correct.
Inputs and outputs
Think of a circuit as a machine. The independent sources are its inputs. The voltages and currents you want to find are its outputs. The resistors set how inputs turn into outputs.
This chapter uses one circuit throughout. A 12 V source V1 in series with R1 = 4 Ω feeds node A. R2 = 6 Ω connects node A to ground. A current source I1 = 2 A injects current into node A. The output is the voltage VA at node A.
Sign conventions matter
A source value has a sign only relative to a reference direction. For I1, we say positive current flows into node A. If you reversed the arrow on your diagram, you would write I1 = −2 A instead. The physics would not change, but your arithmetic would.
For V1, the positive terminal is the one nearer node A. Write down these references before you calculate anything. Sign errors in superposition usually start here.
Inputs enter the outputs in a simple way
For a resistive circuit with these two sources, write the nodal equation at node A:
(VA − V1)/R1 + VA/R2 = I1
Solve for VA:
VA = V1 · R2/(R1 + R2) + I1 · (R1 R2)/(R1 + R2)
With our values this is VA = 0.6 · V1 + 2.4 · I1. Each input is multiplied by a fixed constant and the products are added. The constants depend only on the resistors. The code below checks this for several input values.
R1 = 4.0 # ohms
R2 = 6.0 # ohms
def node_voltage(v1, i1):
"""Voltage at node A for given source values."""
return (v1 / R1 + i1) / (1 / R1 + 1 / R2)
gain_v1 = R2 / (R1 + R2) # volts out per volt of V1 -> 0.6
gain_i1 = R1 * R2 / (R1 + R2) # volts out per ampere of I1 -> 2.4
for v1, i1 in [(12, 2), (12, 0), (0, 2), (24, 4)]:
va = node_voltage(v1, i1)
print(v1, i1, round(va, 3), round(gain_v1 * v1 + gain_i1 * i1, 3))The last two columns match on every row. The row (12, 0) gives 7.2 V, the row (0, 2) gives 4.8 V, and (12, 2) gives their sum, 12 V. Doubling both inputs in the last row doubles the output to 24 V. This behavior is what superposition relies on. It holds because the circuit is linear, which the next chapters cover.
Common mistakes
- Treating a voltage source as if it fixes the current. It fixes the voltage only.
- Treating a current source as if it fixes the voltage. It fixes the current only.
- Mixing reference directions between the diagram and the equations.
- Calling a source "independent" when its value depends on another voltage or current in the circuit. Such a source is a dependent source and is handled separately later.
Exercise
In the circuit above, V1 is changed to 6 V and I1 stays at 2 A. Using VA = 0.6·V1 + 2.4·I1, what is VA? Then say which source fixes its terminal voltage and which fixes its branch current.
Show answer
VA = 0.6 · 6 + 2.4 · 2 = 3.6 + 4.8 = 8.4 V. The voltage source V1 fixes its terminal voltage. The current source I1 fixes its branch current.
Exercise
Suppose the arrow on I1 is redrawn so that positive current flows out of node A, and the physical source still injects 2 A into the node. What value do you assign to I1?
Show answer
I1 = −2 A. The magnitude is unchanged. The sign flips because the reference direction is now opposite to the actual flow.