Sub topic 13
Nodal, Mesh, Superposition and Thevenin in AC
This chapter assumes you know DC nodal analysis, mesh analysis, superposition and Thevenin's theorem. It also assumes you can do complex arithmetic in rectangular and polar form, and that you know impedance and admittance from earlier chapters. No new circuit theory is needed. The point is that every DC method carries over once you apply it to phasors and impedances.
Why the DC methods carry over
KVL and KCL hold for phasors, and each element obeys V = ZI. The equations for a sinusoidal steady-state circuit therefore have the same structure as DC equations. Only the numbers change: resistances become impedances, conductances become admittances, and real arithmetic becomes complex arithmetic.
The rules are:
- Write every source as a phasor at the common frequency.
- Write every element as an impedance Z (or admittance Y = 1/Z) evaluated at that frequency.
- Solve with the method you would use for DC.
- Convert the resulting phasors back to time-domain sinusoids if you need them.
Nodal analysis in AC
Pick a reference node. At every other node, apply KCL with currents written as (Vnode − Vneighbor)/Z. Collecting terms gives the matrix equation Y V = I, where:
- The diagonal entry of Y is the sum of the admittances attached to that node.
- Each off-diagonal entry is the negative of the admittance between two nodes.
- The right-hand side holds the source currents entering each node.
Voltage sources are handled as in DC. A source connected to ground fixes that node's phasor. A source between two non-reference nodes creates a supernode.
Worked example
A source Vs = 10∠0° V at ω = 1000 rad/s drives node A through R = 100 Ω. From node A to ground there is an inductor of 0.1 H and a capacitor of 20 µF in parallel.
The impedances are:
- Z_L = jωL = j100 Ω
- Z_C = 1/(jωC) = −j50 Ω
The admittances are:
- 1/R = 0.01 S
- 1/Z_L = −j0.01 S
- 1/Z_C = +j0.02 S
KCL at node A gives
(VA − Vs)/100 + VA/(j100) + V_A/(−j50) = 0
so
V_A (0.01 + j0.01) = 0.01 · 10
V_A = 10/(1 + j) = 5 − j5 V = 7.071∠−45° V
The time-domain voltage is v_A(t) = 7.071 cos(1000t − 45°) V.
Mesh analysis in AC
Assign a clockwise phasor current to each mesh and apply KVL around it. This gives Z I = V, where:
- The diagonal entry of Z is the total impedance around that mesh.
- Each off-diagonal entry is the negative of the impedance shared by two meshes.
- The right-hand side holds the source voltage rises in each mesh.
Current sources are handled as in DC. A source in one mesh fixes that mesh current. A source shared between two meshes creates a supermesh.
Worked example
Mesh 1 contains Vs = 10∠0° V, R₁ = 100 Ω and a shared inductor j100 Ω. Mesh 2 contains the shared inductor, R₂ = 100 Ω and a capacitor of −j50 Ω.
Mesh 1 gives
(100 + j100) I₁ − j100 I₂ = 10
Mesh 2 gives
−j100 I₁ + (100 + j50) I₂ = 0
The mesh 2 impedance is j100 + 100 − j50 = 100 + j50. Solving gives
- I₁ = (3 − j)/60 A = 0.0527∠−18.43° A
- I₂ = (1 + j)/30 A = 0.0471∠45° A
The code below checks this result.
import numpy as np
Z = np.array([[100 + 100j, -100j],
[-100j, 100 + 50j]])
V = np.array([10, 0], dtype=complex)
I = np.linalg.solve(Z, V)
for k, i in enumerate(I, start=1):
print(f"I{k} = {abs(i):.4f} A at {np.degrees(np.angle(i)):.2f} deg")The output is I1 = 0.0527 A at -18.43 deg and I2 = 0.0471 A at 45.00 deg.
Use np.linalg.solve rather than inverting the matrix. It is faster and numerically safer, and it handles complex entries without extra work.
Superposition in AC
Superposition works because the circuit is linear. Turn off all independent sources but one, solve, repeat for each source, and add the results. Turning a source off means:
- A voltage source becomes a short circuit.
- A current source becomes an open circuit.
Dependent sources always stay active, and their controlling variables are recomputed in each pass.
Superposition has two uses in AC:
- Sources at the same frequency. You can solve each source's phasor response and add the phasors. This is rarely easier than solving everything at once, but it helps when each source sees a simple circuit.
- Sources at different frequencies. This is the case where superposition is required. Impedances depend on ω, so you need a separate phasor solution at each frequency.
For example, suppose a circuit has a 5 V DC source and a 10 cos(1000t) V source. You solve the DC circuit with L as a short and C as an open. You then solve the phasor circuit at ω = 1000 rad/s. The answer is v(t) = V_DC + Re{V₁ e^{j1000t}}, which is a constant plus a sinusoid.
Thevenin and Norton equivalents in AC
Looking into any pair of terminals, a linear circuit at one frequency is equivalent to a phasor voltage Vth in series with an impedance Zth. The Norton form is a phasor current IN = Vth/Zth in parallel with Zth.
Find the pair in two steps:
- V_th is the open-circuit phasor voltage across the terminals.
- Z_th is the impedance seen into the terminals with independent sources turned off. Alternatively, Zth = Voc/I_sc. Use this second form when dependent sources are present.
Worked example
Take the nodal circuit above and remove everything downstream of node A.
The total admittance at node A is Y = 0.01 + j0.01 S. With the source off, the resistor, inductor and capacitor are all in parallel between A and ground. So Z_th = 1/Y = 50 − j50 Ω = 70.71∠−45° Ω.
With the terminals open, V_th = (Vs/R)/Y = 5 − j5 V.
Now attach a load of 50 + j50 Ω.
import cmath
import math
Vs = 10
R = 100
ZL = 1j * 100
ZC = -1j * 50
Zload = 50 + 50j
Y = 1 / R + 1 / ZL + 1 / ZC
Vth = (Vs / R) / Y
Zth = 1 / Y
Vload = Vth * Zload / (Zth + Zload)
print("Vth =", Vth, " Zth =", Zth)
print(round(abs(Vload), 4), round(math.degrees(cmath.phase(Vload)), 2))The program prints Vth = 5 − j5 V and Zth = 50 − j50 Ω, then a load voltage of 5.0 V at 0.0°. Direct nodal analysis confirms it. With the load connected, the node admittance is 0.01 + j0.01 + 1/(50 + j50) = 0.02 S. That gives V_A = 0.1/0.02 = 5 V.
The load impedance 50 + j50 is the complex conjugate of Zth. That choice maximizes average power transfer, which a later chapter develops. Zth is complex, so a load that is only resistive cannot match it.
Method comparison
| Method | Unknowns | Equation form | Best when |
|---|---|---|---|
| Nodal | Node voltage phasors | Y V = I | Many parallel branches, current sources |
| Mesh | Mesh current phasors | Z I = V | Planar circuit with few loops, voltage sources |
| Superposition | One source at a time | Repeated simple solves | Sources at different frequencies |
| Thevenin/Norton | V_th and Z_th | Equivalent two-terminal source | One load varies, or you need the equivalent seen by a stage |
Common errors
- Mixing frequencies in one phasor equation. All sources in a single phasor solve must share one ω.
- Using a wrong sign on Z_C. Z_C = 1/(jωC) = −j/(ωC), so the capacitor contributes a negative imaginary part.
- Turning off dependent sources. Only independent sources are zeroed.
- Mixing peak and RMS. Pick one convention for all phasors in a problem. Peak phasors are common for analysis, and RMS for power.
- Using degrees in code that expects radians.
cmath.rectandmath.costake radians. - Treating Z_th as real. It almost always has a reactive part. Report it with its angle.
Exercise
A source Vs = 12∠0° V at ω = 2000 rad/s drives node A through R = 40 Ω. From node A to ground there is a capacitor of 12.5 µF and an inductor of 20 mH in parallel. Find V_A by nodal analysis, then find the Thevenin impedance seen at node A.
Show answer
ZC = 1/(j·2000·12.5e-6) = −j40 Ω, so YC = +j0.025 S. ZL = j·2000·0.02 = j40 Ω, so YL = −j0.025 S. These cancel, so the parallel LC branch is open (it is at resonance). The node admittance is Y = 1/40 + j0.025 − j0.025 = 0.025 S. KCL gives VA·0.025 = 12/40 = 0.3, so VA = 12∠0° V, the full source voltage. The Thevenin impedance is Z_th = 1/Y = 40 Ω, which is purely resistive.