Sub topic 4
From sinusoid to phasor
Prerequisites and scope
This chapter assumes you know DC circuit analysis (Ohm's law, KVL, KCL), the voltage-current laws of R, L and C, basic trigonometry, and the idea of a derivative. It also assumes the earlier chapters on sinusoids, complex numbers in rectangular and polar form, and Euler's formula. Here we combine them into the phasor transform. Later chapters use phasors for sums, derivatives, impedance and circuit methods.
The problem phasors solve
Take a series RL circuit driven by a source v(t) = V_m cos(ωt + φ). KVL gives a differential equation:
L di/dt + R i = V_m cos(ωt + φ)
Solving this in the time domain means finding a particular solution built from sines and cosines, then matching amplitudes and phases with trigonometric identities. That is slow and easy to get wrong.
Once the circuit has settled into sinusoidal steady state, every voltage and current is a sinusoid at the source frequency ω. Only two numbers per signal are unknown: an amplitude and a phase. A phasor is a complex number that stores exactly those two numbers. With it, the differential equation becomes ordinary complex algebra.
Starting from Euler's formula
Euler's formula states e^(jθ) = cos θ + j sin θ. Taking the real part gives
cos θ = Re{e^(jθ)}
Apply this to a general cosine:
v(t) = Vm cos(ωt + φ) = Re{Vm e^(j(ωt + φ))}
The exponent splits into two factors:
v(t) = Re{V_m e^(jφ) · e^(jωt)}
The first factor, V_m e^(jφ), does not depend on time. The second, e^(jωt), carries all the time dependence and is identical for every signal in the circuit, because they all share the frequency ω. That observation is the core of the method.
Definition of the phasor
The phasor of v(t) = V_m cos(ωt + φ) is the complex number
V = Vm e^(jφ) = Vm ∠φ
So the phasor has magnitude V_m (the amplitude) and angle φ (the phase). The frequency ω is not stored in it. You must remember it separately, as a property of the whole circuit.
The relationship in both directions:
- Time domain to phasor: v(t) = Vm cos(ωt + φ) becomes V = Vm ∠φ.
- Phasor to time domain: multiply by e^(jωt), take the real part: v(t) = Re{V e^(jωt)}.
The following code 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)The output is a magnitude of 10, an angle of 30 degrees (up to floating-point rounding), and the rectangular form of about 8.660 + 5.000j.
The cosine reference convention
Phasors are defined relative to cosine. A sine must be converted first, using
sin(x) = cos(x − 90°)
So v(t) = 8 sin(ωt + 20°) = 8 cos(ωt − 70°), and its phasor is 8∠−70°.
Some textbooks use sine as the reference instead. Both conventions give the same circuit answers, provided you use one of them consistently inside a problem. Mixing them within one problem is a common source of errors of exactly 90°.
Also note that the amplitude is the peak value. Many power and instrumentation texts define the phasor magnitude as the RMS value, Vrms = Vm/√2. This chapter uses peak values. If a problem gives an RMS voltage such as 120 V, state which convention you are using and stay with it. The phasor-domain algebra is the same either way. Only the conversion back to time domain changes.
Why the transform works: linearity
The transform is useful because it is linear and because it commutes with the operations circuits need. Two signals of the same frequency give:
- Scaling: if v(t) has phasor V, then k·v(t) has phasor kV, for a real constant k.
- Addition: if v₁ ↔ V₁ and v₂ ↔ V₂, then v₁ + v₂ ↔ V₁ + V₂.
Addition holds because taking the real part is a linear operation:
v₁ + v₂ = Re{V₁e^(jωt)} + Re{V₂e^(jωt)} = Re{(V₁ + V₂)e^(jωt)}
Here is a worked example. Add 3 cos(ωt) and 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 arctan(4/3) ≈ 53.13°. So the sum 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)))This prints 5.0 and about 53.13. Doing the same sum with trigonometric identities takes several lines. In the phasor domain it is one complex addition.
Derivatives and integrals become multiplication and division
Differentiate the complex form of a signal:
d/dt [V e^(jωt)] = jω V e^(jωt)
Since the derivative of a real part is the real part of the derivative, the phasor of dv/dt is jωV. By the same argument, the phasor of ∫v dt is V/(jω).
| Time domain | Phasor domain |
|---|---|
| v(t) | V |
| dv/dt | jωV |
| d²v/dt² | (jω)² V = −ω²V |
| ∫v dt | V/(jω) |
Now return to the RL equation. With i(t) ↔ I and the source ↔ Vs, the equation L di/dt + R i = vs(t) becomes
jωL I + R I = V_s
Solving gives I = V_s / (R + jωL). The differential equation has turned into one complex division. This step is also the origin of impedance, which the later chapters define formally.
A full worked example
A source v_s(t) = 20 cos(1000t + 10°) V drives a series connection of R = 30 Ω and L = 40 mH. Find i(t).
- Source phasor: V_s = 20∠10° V. The frequency is ω = 1000 rad/s.
- Inductor term: ωL = 1000 × 0.040 = 40 Ω, so jωL = j40 Ω.
- Total: R + jωL = 30 + j40 = 50∠53.13° Ω.
- Current phasor: I = 20∠10° / 50∠53.13° = 0.4∠−43.13° A.
- Back to time: i(t) = 0.4 cos(1000t − 43.13°) A.
The current lags the voltage by 53.13°, which is the angle of the inductive denominator. Check that the sizes are sensible: a 50 Ω magnitude with 20 V peak gives 0.4 A peak.
Phasors as rotating vectors
The product V e^(jωt) is a vector of length V_m that rotates counterclockwise in the complex plane at ω rad/s. The actual signal v(t) is the projection of that rotating vector onto the real axis. The phasor V is a snapshot of that vector at t = 0.
Because every signal in the circuit rotates at the same speed, their relative angles stay fixed. That is why a diagram of phasors at t = 0 shows all the phase relationships at once, and why the common factor e^(jωt) can be dropped during the algebra.
Common errors
- Forgetting the frequency. The phasor does not contain ω. When converting back, you must reinsert the correct ω. Always write ω next to your phasor list.
- Sine versus cosine. A sine phasor needs a −90° shift. Skipping it gives answers wrong by 90°.
- Degrees versus radians. In ωt + φ, φ may be in degrees, but ωt is in radians. Write the angle's unit explicitly when computing cos(ωt + φ) in code or on a calculator.
- Peak versus RMS. Decide the convention first. A mismatch produces an error of a factor √2.
- Adding in polar form. You cannot add 5∠30° and 3∠60° by adding magnitudes and angles. Convert to rectangular form, add, and convert back.
- Mixed frequencies. Phasors at different frequencies cannot be added into one phasor. The next chapters on validity cover how to handle this with superposition.
Edge cases
Zero frequency. At ω = 0 the phasor of a constant has angle 0 or 180° and the rule jω = 0 makes inductors short circuits and the integral rule V/(jω) undefined. DC is handled separately.
Negative amplitude. v(t) = −5 cos(ωt) has phasor −5 = 5∠180°. A negative amplitude is the same as adding 180° to the phase, so always normalize to a positive magnitude before reading the angle.
Phase ambiguity. Angles differing by 360° are the same phasor. Report angles in the range −180° to 180° unless asked otherwise.
Non-sinusoidal periodic signals. A square wave is not a single phasor. It can be split into a sum of sinusoids by Fourier series, each analyzed at its own frequency.
Exercise
A voltage is v(t) = 12 sin(500t + 40°) V. Write its phasor using the cosine reference, then find the phasor of its derivative dv/dt and the corresponding time-domain expression.
Show answer
Convert the sine: 12 sin(500t + 40°) = 12 cos(500t + 40° − 90°) = 12 cos(500t − 50°), so V = 12∠−50° V. The derivative phasor is jωV = j500 × 12∠−50° = 6000∠(90° − 50°) = 6000∠40°. In the time domain, dv/dt = 6000 cos(500t + 40°) V/s. Check by direct differentiation: d/dt of 12 sin(500t + 40°) is 6000 cos(500t + 40°), which matches.
Exercise
Add i₁(t) = 6 cos(ωt + 20°) A and i₂(t) = 8 cos(ωt − 70°) A. Give the result as a single cosine.
Show answer
The phasors are I₁ = 6∠20° and I₂ = 8∠−70°. In rectangular form, I₁ = 6cos20° + j6sin20° ≈ 5.638 + j2.052. I₂ = 8cos(−70°) + j8sin(−70°) ≈ 2.736 − j7.518. The sum is about 8.374 − j5.466, with magnitude √(8.374² + 5.466²) = 10 and angle arctan(−5.466/8.374) ≈ −33.1°. So i(t) = 10 cos(ωt − 33.1°) A. The result is 10 because the two phasors are 90° apart, forming a 6-8-10 right triangle.