Sub topic 4
From sinusoid to phasor
This chapter assumes you know basic trigonometry, the idea of a derivative, and complex numbers in rectangular and polar form. It also assumes you know Euler's formula, which says e^(jθ) = cos θ + j sin θ.
Why a transform helps
In sinusoidal steady state, every voltage and current in a linear circuit is a sinusoid at the same frequency. Only two numbers differ from one signal to the next: the amplitude and the phase. A phasor is a complex number that stores exactly those two numbers. Once the frequency is set aside, a differential equation becomes ordinary algebra.
The transform
Take a cosine with amplitude V_m, angular frequency ω and phase φ:
v(t) = V_m cos(ωt + φ)
Euler's formula lets you write it as the real part of a complex exponential:
v(t) = Re{ Vm e^(j(ωt + φ)) } = Re{ (Vm e^(jφ)) e^(jωt) }
The factor in parentheses does not depend on time. It is the phasor:
V = Vm e^(jφ) = Vm ∠φ
So the transform is a short recipe:
- Write the signal as a cosine. Convert a sine with sin(x) = cos(x − 90°).
- Keep the amplitude as the magnitude.
- Keep the phase as the angle.
- Drop ωt. The frequency is understood and is the same everywhere.
To go back to the time domain, multiply by e^(jωt) and take the real part.
| Time domain | Phasor |
|---|---|
| 10 cos(ωt + 30°) | 10 ∠30° |
| 5 cos(ωt) | 5 ∠0° |
| 8 sin(ωt) | 8 ∠−90° |
| 3 cos(ωt − 45°) | 3 ∠−45° |
Check it in code
The script below builds the phasor of v(t) = 10 cos(ωt + 30°) and reads its magnitude and angle back.
import cmath
import math
# v(t) = 10 cos(w t + 30 degrees) -> phasor 10 at angle 30 degrees
V = cmath.rect(10, math.radians(30))
print(abs(V), math.degrees(cmath.phase(V)))
print(V)It prints a magnitude of 10 and an angle of 30 degrees (up to floating-point rounding). The rectangular form is about 8.66 + 5j, which is 10 cos 30° and 10 sin 30°.
Worked example: back to the time domain
Suppose a phasor is I = 4 ∠−60° A and the frequency is 50 Hz. Then ω = 2π(50) ≈ 314.16 rad/s, and
i(t) = 4 cos(314.16t − 60°) A
The phasor carries amplitude and phase. The frequency has to be remembered separately, because the phasor does not contain it.
Common errors
- Mixing sine and cosine. The convention is cosine. If you convert a sine without the −90° shift, every phase in that circuit will be wrong.
- Treating the phasor as the signal. A phasor is a complex number and does not vary in time. The real signal is Re{V e^(jωt)}.
- Peak versus RMS. Here the magnitude is the peak amplitude. Power work often uses RMS phasors, which are the peak value divided by √2. State which one you use.
- Mixing frequencies. Phasors with different ω cannot be added or combined in one phasor equation.
- Degrees and radians. Keep the angle in one unit. Most code libraries use radians.
Exercise
Write the phasor for v(t) = 12 sin(200t + 20°) V, then give the time-domain expression for the phasor I = 2 ∠−35° A at ω = 200 rad/s.
Show answer
Convert the sine to a cosine: 12 sin(200t + 20°) = 12 cos(200t + 20° − 90°) = 12 cos(200t − 70°). The phasor is V = 12 ∠−70° V. For the current, i(t) = 2 cos(200t − 35°) A.