Sub topic 6
When phasor analysis applies
This chapter assumes you know the phasor transform from the previous chapters: a sinusoid v(t) = Vm cos(ωt + φ) maps to the complex number V = Vm∠φ. It also assumes you know DC circuit analysis and the basic time-domain laws of R, L and C. Here you will learn which conditions must hold before phasors give a correct answer, and which errors to check for.
What the method assumes
Phasor analysis turns differential equations into algebra. That only works under four conditions.
- Linear circuit. Every element obeys superposition. Resistors, inductors and capacitors with constant values qualify. Diodes, transistors in switching mode, and saturating iron-core inductors do not.
- Time-invariant circuit. Element values do not change with time. A capacitor whose value is modulated during operation breaks the method.
- Sinusoidal steady state. Every source is a sinusoid, and all transients have died out. The method describes only the long-term response.
- Single frequency. All sources share one angular frequency ω. The phasor drops the factor e^(jωt) from every quantity, so this factor must be the same everywhere.
If a condition fails, the phasor answer is wrong or meaningless. It will not give an error message.
Why linearity and one frequency matter
In a linear, time-invariant circuit, a sinusoidal input at frequency ω produces a sinusoidal output at the same frequency ω. Only amplitude and phase change. This is why one complex number per signal is enough.
A derivative of e^(jωt) is jω e^(jωt), so d/dt becomes multiplication by jω. This is the step that converts the differential equation into algebra. It works only when every term carries the same e^(jωt).
A nonlinear element creates new frequencies. For example, a squaring element turns cos(ωt) into a constant plus cos(2ωt). A single phasor cannot hold both components.
Several sources at different frequencies
You can still use phasors if the circuit is linear. Apply superposition:
- Keep one source and set the others to zero (voltage sources to short circuits, current sources to open circuits).
- Solve with phasors at that source's frequency. Impedances such as jωL must be recomputed with that frequency.
- Convert each result back to the time domain.
- Add the results in the time domain.
The transient is not included
A circuit switched on at t = 0 has a transient response that decays, followed by the steady-state response. Phasors give only the steady-state part. For an RL circuit the transient decays with time constant τ = L/R. After about 5τ it is below 1% of its starting size, and the phasor answer is then a good description.
If you need the response right after switching, you must solve the differential equation or use Laplace methods.
A quick check in code
The sum of two cosines at the same frequency is another cosine at that frequency. The code below checks that the phasor sum matches a direct time-domain sum.
import cmath
import math
w = 2 * math.pi * 50.0
A = cmath.rect(3, 0)
B = cmath.rect(4, math.radians(90))
S = A + B
def from_phasor(P, t):
return (P * cmath.exp(1j * w * t)).real
worst = 0.0
for k in range(200):
t = k * 1e-4
direct = 3 * math.cos(w * t) + 4 * math.cos(w * t + math.pi / 2)
worst = max(worst, abs(direct - from_phasor(S, t)))
print(abs(S), math.degrees(cmath.phase(S)))
print(worst < 1e-9)The output shows magnitude 5, angle about 53.13 degrees, and True. The check succeeds because both terms share ω. If the second term used 2ω, the same phasor sum would fail this test.
Common errors
| Mistake | Result | Fix |
|---|---|---|
| Using phasors on a diode circuit | Wrong waveform, wrong harmonics | Use a piecewise or numerical time-domain method |
| Adding phasors of different frequencies | Meaningless value | Use superposition and add in the time domain |
| Using phasors right after switching | Misses the transient | Solve the differential equation or use Laplace methods |
| Reusing jωL from another frequency | Wrong impedance | Recompute ω for every source |
Exercise
A linear circuit has two sources: 10 cos(100t) V and 5 cos(300t) V. A student finds one phasor for each, adds them to get 15 V, and computes a single response. What is wrong, and what should the student do instead?
Show answer
The sources have different frequencies (100 rad/s and 300 rad/s), so their phasors cannot be added. The student should use superposition. Solve the circuit once at ω = 100 rad/s with the second source set to zero, and once at ω = 300 rad/s with the first source set to zero, recomputing jωL and 1/(jωC) each time. Then convert both results to time-domain sinusoids and add them there.
Exercise
Which of these circuits can be analysed with a single set of phasors: (a) a series RLC circuit driven by 12 cos(1000t) V in steady state, (b) a resistor and diode driven by a sine source, (c) an RL circuit 1 ms after a sinusoidal source is switched on, where τ = 5 ms?
Show answer
Only (a). Circuit (b) is nonlinear because of the diode. In (c), the transient has not decayed, since 1 ms is less than one time constant of 5 ms, so the steady-state phasor answer does not describe the response yet.