A7 · Lesson 50 · Complex matrices for AC
The same matrix equation, with phasors
With capacitors and inductors in the circuit and a sinusoidal source, every voltage and current is a phasor and every component has a complex impedance (A3). Nodal analysis doesn't change at all: you still build a matrix from what joins what, and solve one linear system. The only difference is that the numbers are complex, which Python handles without a second thought.
Predict
In an AC circuit's nodal matrix, what replaces the conductance of a capacitor joining two nodes?
Its admittance, : the reciprocal of its impedance . The matrix is built the same way, with admittances in place of conductances, so it's called the admittance matrix , and the system is with phasors.
Name it
At a single frequency ω, each element's admittance (one over its impedance) is:
| Element | Impedance | Admittance |
|---|---|---|
| resistor | ||
| capacitor | ||
| inductor |
Build exactly as you built : each diagonal entry sums the admittances touching that node, each off-diagonal entry is minus the admittance joining two nodes. Sources become phasors. Then solve ; each answer is a phasor whose magnitude is an amplitude and whose angle is a phase.
Everything else carries over. Elimination works the same with complex arithmetic. A complex matrix is singular when its determinant is zero, which can happen at particular frequencies: that's resonance in an ideal LC circuit, where the admittances of the inductor and capacitor cancel. And to find a filter's response, you solve the system at many frequencies, one matrix per frequency, which is exactly what an AC sweep in a circuit simulator does.
For the RC low-pass filter, with one node:
the transfer function from A3, now as a one-row admittance matrix.
Worked example
What admittance does a 1 µF capacitor have at 1 kHz?
Show the solution
- Admittance.
- In the nodal matrix. It enters the nodal matrix exactly like a conductance, as an imaginary one.
Answer S.
Worked example
A 1 V source feeds a node through 1 kΩ, with 1 µF from the node to ground, at = 1000 rad/s. Find the node voltage.
Show the solution
- KCL.
- Solve.
- Magnitude and angle. That's 0.707 V at : this is the RC low-pass's corner frequency.
Answer V, which is 0.707 V at .
Worked example
Two nodes are joined by 1 S, and each has an admittance of S to ground. A 1 A phasor current is injected at node 1. Find both node voltages.
Show the solution
- Admittance matrix.
- Determinant.
- Cramer's rule. Their magnitudes are 0.632 V and 0.447 V.
- Symmetry. is symmetric, as a circuit of passive parts always is, but not Hermitian: its imaginary parts don't change sign across the diagonal.
Answer V (0.632 V) and V (0.447 V).
Check
What is the size of the admittance of a 47 nF capacitor at 100 Hz?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
Check
A two-node RC ladder: = 1 V feeds node 1 through , a capacitor goes from node 1 to ground, another joins node 1 to node 2, and another goes from node 2 to ground. Build the complex admittance matrix Y at 10000 Hz, solve for V (two phasors), and set gain to and phase to the angle of in degrees.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
An ideal inductor and capacitor in parallel make the admittance matrix singular at one frequency. Which?
Check
An impedance is Ω.
(a)
What is the real part of , in siemens?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
(b)
What is its imaginary part?
Check
An RC low-pass has = 1 Ω and = 1 F, driven at .
Step 1
What is ?
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 is ?
Check
A 1 V source feeds a node through 100 Ω, and an inductor of 10 mH goes from the node to ground. At = 5000 rad/s, what is the size of the node voltage, in volts?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Explain why
Why can AC nodal analysis use exactly the same method as DC, just with complex numbers?
At a single frequency, every voltage and current is a phasor and every component relates its phasor voltage and current by a complex impedance, just as a resistor relates them by a real resistance. Kirchhoff's current law still holds for phasors, because it holds at every instant and all the sinusoids share one frequency. So each node still gives one linear equation, now with complex admittances as coefficients, and linear algebra works the same over complex numbers.
Practice
Keep practicing
6 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.