Sub topic 5
Adding, differentiating and integrating with phasors
This chapter assumes you can convert a sinusoid to a phasor and back, and that you can work with complex numbers in rectangular and polar form. It also assumes you know basic derivatives and integrals of sine and cosine.
The convention
A sinusoid v(t) = Vm cos(ωt + φ) maps to the phasor V = Vm∠φ. The time function is recovered with v(t) = Re{V e^(jωt)}. The factor e^(jωt) is the same for every signal in the circuit, so it is dropped during the algebra and restored at the end.
Three operations carry over to phasors: addition, differentiation and integration. Each one becomes simple complex arithmetic.
Adding sinusoids
Adding two sinusoids of the same frequency gives another sinusoid of that frequency. The phasor of the sum is the sum of the phasors. This is what KVL and KCL rely on.
Take 3 cos(ωt) + 4 cos(ωt + 90°). The phasors are 3∠0° = 3 and 4∠90° = j4. Their sum is 3 + j4, which has magnitude 5 and angle 53.13°. So the result is 5 cos(ωt + 53.13°).
import cmath
import math
# 3 cos(w t) + 4 cos(w t + 90 degrees)
A = cmath.rect(3, 0)
B = cmath.rect(4, math.radians(90))
S = A + B
print(abs(S), math.degrees(cmath.phase(S)))Add in rectangular form, because components add directly. Convert to polar form only when you need the magnitude and angle.
Differentiating
Differentiate v(t) = Re{V e^(jωt)} with respect to time:
dv/dt = Re{jω V e^(jωt)}
The derivative therefore has the phasor jωV. Multiplying by j rotates a phasor by +90°, and multiplying by ω scales it. So differentiation turns calculus into multiplication by jω.
Check this with v(t) = 10 cos(ωt + 30°). The derivative is −10ω sin(ωt + 30°), which equals 10ω cos(ωt + 120°). The phasor method gives jω · 10∠30° = 10ω∠120°. The two results match.
Integrating
Integration is the inverse operation. The integral of v(t) has the phasor V/(jω), which is the same as −jV/ω. Dividing by j rotates the phasor by −90°, and dividing by ω scales it down.
| Operation | Time domain | Phasor domain | Effect on angle |
|---|---|---|---|
| Derivative | dv/dt | jωV | +90° |
| Integral | ∫v dt | V/(jω) | −90° |
Why the integration constant disappears
A time-domain integral includes an arbitrary constant. The phasor result V/(jω) has none. This is correct for steady state, because a steady-state sinusoid has no DC offset, so the constant is zero. If your circuit has a DC component or a decaying transient, phasors do not describe it. The next chapters treat those limits.
Common errors
- Forgetting that ω is in rad/s. With f in hertz, use ω = 2πf.
- Mixing sine and cosine. Convert every sinusoid to cosine first, using sin(x) = cos(x − 90°), then take phasors.
- Adding magnitudes instead of phasors. 3 and 4 do not give 7 unless the phases agree.
- Adding sinusoids of different frequencies. Their phasors cannot be summed.
Worked example
A current i(t) = 2 cos(1000t − 60°) A flows through a 5 mH inductor. The voltage is v = L di/dt. In phasor form I = 2∠−60°, so V = jωL I = j(1000)(0.005)(2∠−60°) = j5 · 2∠−60° = 10∠30° V. Then v(t) = 10 cos(1000t + 30°) V.
Exercise
Using phasors, find the sum of 6 cos(ωt + 30°) and 8 cos(ωt − 60°), and then the integral of that sum at ω = 100 rad/s.
Show answer
The phasors are 6∠30° = 5.196 + j3 and 8∠−60° = 4 − j6.928. Their sum is 9.196 − j3.928, which has magnitude 10 and angle −23.1°. The sum is 10 cos(100t − 23.1°). The integral has phasor 10∠−23.1° / (j100) = 0.1∠−113.1°. So the integral is 0.1 cos(100t − 113.1°).