Sub topic 11
Applying KVL and KCL with sources
This chapter assumes you know Kirchhoff's laws, Ohm's law, and how to solve two or three linear equations. It also assumes you have read the earlier chapters on reference directions and on the four controlled source types. Here you will see what changes in KVL and KCL when a branch holds a source.
The two laws, restated for sources
- KVL: around any closed loop, the voltage rises and drops add up to zero.
- KCL: at any node, the currents leaving add up to zero.
Sources do not change these laws. They change which quantity in a branch is known and which is unknown.
| Element | Known quantity | Unknown quantity |
|---|---|---|
| Resistor | Relation v = R·i | Neither alone |
| Independent voltage source | Voltage | Current |
| Independent current source | Current | Voltage |
| Dependent voltage source | Voltage as a function of a control variable | Current |
| Dependent current source | Current as a function of a control variable | Voltage |
A voltage source fixes the voltage across it and accepts whatever current the circuit demands. A current source fixes the current through it and accepts whatever voltage the circuit demands. Most mistakes come from treating the free quantity as if it were fixed.
A procedure that works every time
- Mark a reference direction for every unknown current and voltage.
- Write KVL or KCL equations using those directions.
- Replace each source's known quantity by its value. For a dependent source, write its formula in terms of the controlling variable.
- Write the controlling variable in terms of the unknowns, using Ohm's law or a KVL/KCL relation.
- Solve, then check by substituting back.
Step 4 is the one people forget. A dependent source adds one unknown, such as the controlling variable, so it needs one extra equation. This is a constraint equation.
Example 1: KVL with a dependent voltage source
A 12 V source drives a single loop with R1 = 2 kΩ, R2 = 4 kΩ, and a dependent voltage source of 2·Vx. Vx is the voltage across R1, with its + end at the 12 V source's positive side. The dependent source's + terminal is on the side of R2 that is not shared with R1.
Let I flow clockwise. Walk clockwise and write the voltage drops:
-12 + R1·I + R2·I + 2·Vx = 0
The controlling variable is Vx = R1·I = 2000·I. This is the constraint equation. Substitute it:
-12 + 2000·I + 4000·I + 4000·I = 0
So I = 12 / 10000 = 1.2 mA. Then Vx = 2.4 V and the dependent source supplies 4.8 V.
Check: the drops are 2.4 V + 4.8 V + 4.8 V = 12 V. The same loop in SPICE confirms it:
* Example 1: loop with a VCVS of gain 2 controlled by the voltage across R1
V1 a 0 DC 12
R1 a b 2k
R2 b c 4k
E1 c 0 a b 2
.op
.endThe simulation should report v(b) = 9.6 V and v(c) = 4.8 V. The current in V1 is -1.2 mA. SPICE counts current flowing into a source's + terminal as positive, so a source that delivers power shows a negative current.
Example 2: KCL with a dependent current source
An independent 6 mA current source pushes current into node A. Node A connects to ground through R1 = 1 kΩ and through a dependent current source of 2 mS·V, where V is the voltage of node A. This is a VCCS drawing current out of the node.
Write KCL with currents leaving node A. The independent source contributes -6 mA, because its current enters the node:
-6 mA + V/1000 + 0.002·V = 0
The controlling variable is already the unknown V, so no extra equation is needed. Solving gives 0.003·V = 0.006, so V = 2 V.
Check: R1 carries 2 mA and the VCCS carries 4 mA. Together they leave 6 mA, matching the source.
A controlling voltage that appears directly in a node equation like this is the easy case. It becomes a nuisance only when it is a voltage between two nodes, or a current in another branch.
Sign conventions for sources in equations
- Going through a voltage source from its - to its + terminal is a rise of its value. Going from + to - is a drop.
- A current source arrow pointing into a node adds current into that node. An arrow pointing away removes it.
- For a dependent source, apply the same rules, then substitute its formula. A negative gain just means the output has the opposite sign from the control variable. It does not mean the polarity marking was drawn wrong.
Edge cases and inconsistent circuits
- Two ideal voltage sources in parallel with different values violate KVL. The loop they form requires 0 = V1 - V2. The circuit has no solution.
- Two ideal current sources in series with different values violate KCL in the same way. If the values match, the circuit is solvable but the voltage between them is undetermined.
- A dependent source that controls itself. If a source's value depends on a quantity it influences, the equations may be degenerate. For example, a voltage source defined as 2·(its own terminal voltage) gives v = 2v, so v = 0. Always check that the final linear system has a unique solution.
- A control current that is not drawn. If the controlling current flows through a wire with no element, there is no resistor to give a formula. Write KCL at a nearby node to express it. In SPICE you insert a 0 V source to measure it, as in the CCCS example from the plan.
Common errors
- Using a polarity marking for a dependent source differently from an independent one. Both follow the same + and - rules.
- Forgetting the constraint equation, which leaves one more unknown than equations.
- Writing the control variable with the wrong sign because its reference direction was never marked.
- Writing KCL with mixed conventions, some currents leaving the node and some entering, without keeping the signs consistent.
Exercise
A 10 V source (+ at the top) is in series with R1 = 1 kΩ and a CCVS whose output is 500·Ix. Ix is the loop current flowing clockwise through R1, and the CCVS has its + terminal on the side that makes it a drop when you go clockwise. Find Ix and the voltage across the CCVS.
Show answer
Write KVL clockwise: -10 + 1000·Ix + 500·Ix = 0, so Ix = 10/1500 = 6.67 mA. The CCVS voltage is 500 × 0.00667 = 3.33 V. Check: R1 drops 6.67 V and the CCVS drops 3.33 V, which add to 10 V.