TExcelTAD
Home › Circuit Theory & Network Analysis › Sinusoids and Phasors

Sinusoids and Phasors

Two signal sources feed the same node of an audio mixer: one gives 10 V10\ \text{V} peak at 1 kHz, the other 6 V6\ \text{V} peak at the same frequency but a quarter of a period later. What is the peak of the sum? Not 16 V, and not 4 V. Adding the two sine waves point by point with trigonometric identities works but is slow and error-prone. Phasors turn this into one complex addition, and they turn every later AC problem (impedance, AC nodal analysis, power) into the DC methods you already know with complex numbers. The RMS basics are in Alternating Current and RMS Values; the complex-number tools are in Complex Numbers for Circuit Analysis.

Describing a sinusoid

A sinusoidal voltage has three numbers that matter:

v(t)=Vmcos⁡(ωt+θ),ω=2πf=2πTv(t) = V_m \cos(\omega t + \theta), \qquad \omega = 2\pi f = \frac{2\pi}{T}
quantity symbol unit meaning
amplitude (peak) VmV_m V largest value
angular frequency ω\omega rad/s 2π2\pi times the frequency ff in Hz
phase θ\theta rad or degrees where the peak sits: the cosine peaks at ωt=−θ\omega t = -\theta
RMS value Vrms=Vm/2V_\text{rms} = V_m/\sqrt{2} V the DC value that heats a resistor equally

This course uses the cosine as reference; a sine is a cosine delayed by 90∘90^\circ, sin⁡(ωt)=cos⁡(ωt−90∘)\sin(\omega t) = \cos(\omega t - 90^\circ), so always convert before comparing phases. Two sinusoids of the same frequency differ only in amplitude and phase. If θ1>θ2\theta_1 > \theta_2, the first leads the second by θ1−θ2\theta_1 - \theta_2: its peaks come earlier in time, by

Δt=θ1−θ2360∘ T\Delta t = \frac{\theta_1 - \theta_2}{360^\circ}\, T

From a rotating vector to a phasor

Euler's formula ejϕ=cos⁡ϕ+jsin⁡ϕe^{j\phi} = \cos\phi + j\sin\phi (electrical engineers write jj for −1\sqrt{-1}, since ii is current) gives

Vmcos⁡(ωt+θ)=Re⁡{Vmejθ ejωt}V_m \cos(\omega t + \theta) = \operatorname{Re}\left\{ V_m e^{j\theta}\, e^{j\omega t} \right\}

The factor ejωte^{j\omega t} is a unit vector rotating at ω\omega; it is the same for every voltage and current in a linear circuit driven at one frequency. All the information that differs from one signal to another is in the fixed complex number VmejθV_m e^{j\theta}, the phasor. Picture the phasor as an arrow that rotates anticlockwise; the waveform is its shadow on the real axis. Complex exponentials treats the same idea from the signals side.

Two conventions for the length of the arrow are common:

  • amplitude phasor Vm∠θV_m \angle \theta, convenient when comparing waveforms on a scope;
  • RMS phasor V=Vrms∠θ=(Vm/2)∠θ\mathbf{V} = V_\text{rms} \angle \theta = (V_m/\sqrt{2}) \angle \theta, convenient for power, because P=VrmsIrmscos⁡ϕP = V_\text{rms} I_\text{rms} \cos\phi needs no factor 1/21/2.

In this course phasors are RMS values unless stated otherwise, written in bold: V=7.07 V∠30∘\mathbf{V} = 7.07\ \text{V} \angle 30^\circ. Addition, Kirchhoff's laws and impedance work identically in both conventions, because the factor 2\sqrt{2} is common to every term.

The lab shows a source driving a resistor in series with an inductor. Switch the phasors to "rotating" and watch the waveforms trace the shadows of the two arrows; the current arrow trails the voltage arrow by a fixed angle.

ReImVRVLVIphi = 45.2 deg, I lags(I drawn on its own scale)-pk0+pk0T/2T3T/22Tv(t), peak 14.1 Vi(t), peak 199 mAimpedance trianglepower triangleRX|Z|PQSR = 50.0 OhmP = 995 mWX = 50.3 OhmQ = 1.00 var|Z| = 70.9 OhmS = 1.41 VApf = cos phi = 0.705 lagging

With R=50 ΩR = 50\ \Omega and L=40 mHL = 40\ \text{mH} at 200 Hz200\ \text{Hz} the lab reads XL=50.27 ΩX_L = 50.27\ \Omega, ∣Z∣=70.90 Ω\lvert Z \rvert = 70.90\ \Omega, ϕ=45.2∘\phi = 45.2^\circ and ∣I∣=141.0 mA\lvert \mathbf{I} \rvert = 141.0\ \text{mA}: the current lags the voltage by about one eighth of a period. Why the inductor causes that lag is the subject of Impedance and Admittance.

Adding sinusoids with phasors

Because the rotating factor is shared, the sum of two same-frequency sinusoids is the sinusoid of the sum of the phasors:

V1cos⁡(ωt+θ1)+V2cos⁡(ωt+θ2)=Re⁡{(V1+V2) ejωt}V_1 \cos(\omega t + \theta_1) + V_2 \cos(\omega t + \theta_2) = \operatorname{Re}\left\{ (\mathbf{V}_1 + \mathbf{V}_2)\, e^{j\omega t} \right\}

Add in rectangular form, then convert back to polar form for the amplitude and phase. This only works for one frequency; signals at different frequencies must be added in the time domain (AC Thevenin, Norton and Superposition).

Re Im V1 = 10 at 30 deg V2 = 6 at -60 deg V1 + V2 30 wt, one period v v1 v2 v1 + v2, peak 11.66 V

Worked example: the mixer node

Given: v1(t)=10cos⁡(ωt+30∘) Vv_1(t) = 10 \cos(\omega t + 30^\circ)\ \text{V} and v2(t)=6cos⁡(ωt−60∘) Vv_2(t) = 6 \cos(\omega t - 60^\circ)\ \text{V}, f=1 kHzf = 1\ \text{kHz} (amplitude phasors, since the data are peak values).

Find: v1+v2v_1 + v_2 as one sinusoid, its RMS value, and the time of its first peak after t=0t = 0.

Solve:

V1=10∠30∘=8.660+j5.000 VV2=6∠−60∘=3.000−j5.196 VV1+V2=11.660−j0.196 V=11.66∠−0.96∘ V\begin{aligned} \mathbf{V}_1 &= 10 \angle 30^\circ = 8.660 + j5.000\ \text{V} \\ \mathbf{V}_2 &= 6 \angle -60^\circ = 3.000 - j5.196\ \text{V} \\ \mathbf{V}_1 + \mathbf{V}_2 &= 11.660 - j0.196\ \text{V} = 11.66 \angle -0.96^\circ\ \text{V} \end{aligned}

So v1+v2=11.66cos⁡(ωt−0.96∘) Vv_1 + v_2 = 11.66 \cos(\omega t - 0.96^\circ)\ \text{V}, with Vrms=11.66/2=8.25 VV_\text{rms} = 11.66/\sqrt{2} = 8.25\ \text{V}. The peak is where ωt−0.96∘=0\omega t - 0.96^\circ = 0: t=(0.96∘/360∘)⋅1 ms=2.68 μst = (0.96^\circ/360^\circ) \cdot 1\ \text{ms} = 2.68\ \mu\text{s}.

Check: the two phasors are exactly 90∘90^\circ apart, so the result is the hypotenuse of a right triangle: 102+62=136=11.66 V\sqrt{10^2 + 6^2} = \sqrt{136} = 11.66\ \text{V}. The sum lies between 1616 (in phase) and 44 (opposite), as it must.

In Python: phasors against the time domain

The script adds the phasors and then checks the answer the slow way, by sampling the two cosines over one period.

python · try it yourself
import numpy as np

def phasor(amp, deg):
    return amp * np.exp(1j * np.deg2rad(deg))

def polar(z):
    return f"{abs(z):.4f} V at {np.degrees(np.angle(z)):+.2f} deg"

f = 1e3
w = 2 * np.pi * f
V1, V2 = phasor(10, 30), phasor(6, -60)
S = V1 + V2
print("V1 + V2 =", polar(S))
print("as rms phasor:", polar(S / np.sqrt(2)))

# check in the time domain: sample one period of v1(t) + v2(t)
t = np.linspace(0, 1 / f, 100001)
v = 10 * np.cos(w * t + np.deg2rad(30)) + 6 * np.cos(w * t - np.deg2rad(60))
k = np.argmax(v)
print(f"sampled peak = {v[k]:.4f} V at t = {t[k] * 1e6:.2f} us")
print(f"phasor says peak at t = {-np.angle(S) / w * 1e6:.2f} us")
print(f"rms of the samples = {np.sqrt(np.mean(v[:-1] ** 2)):.4f} V")
V1 + V2 = 11.6619 V at -0.96 deg
as rms phasor: 8.2462 V at -0.96 deg
sampled peak = 11.6619 V at t = 2.68 us
phasor says peak at t = 2.68 us
rms of the samples = 8.2462 V

One complex addition replaced a hundred thousand samples, and the two agree to every printed digit.

Guided lab: measuring a phase shift with a scope

Hand calculation. A function generator drives a 100 nF100\ \text{nF} capacitor in series with a 1.00 kΩ1.00\ \text{k}\Omega resistor to ground, at f=1.00 kHzf = 1.00\ \text{kHz} and 5.0 V5.0\ \text{V} peak. The resistor voltage (proportional to the current) leads the source by θ=arctan⁡(XC/R)\theta = \arctan(X_C/R) with XC=1/(ωC)=1591.5 ΩX_C = 1/(\omega C) = 1591.5\ \Omega, so θ=57.9∘\theta = 57.9^\circ. Its peak is 5.0⋅R/R2+XC2=5.0⋅1000/1879.6=2.66 V5.0 \cdot R/\sqrt{R^2 + X_C^2} = 5.0 \cdot 1000/1879.6 = 2.66\ \text{V}, and it peaks Δt=(57.9/360)⋅1 ms=161 μs\Delta t = (57.9/360) \cdot 1\ \text{ms} = 161\ \mu\text{s} before the source.

Simulation. The netlist lab solves the circuit as phasors (here with the source's AC magnitude set to the 5 V peak, so the readings are peak values). It reads ∣V(out)∣=2.660 V\lvert \mathbf{V}(\text{out}) \rvert = 2.660\ \text{V} at +57.9∘+57.9^\circ. Move ff and watch the lead shrink towards 0∘0^\circ at high frequency and grow towards 90∘90^\circ at low frequency.

0241001k10kf (Hz)|V| (V)|V(in)||V(out)|phasors at f = 1.000 kHz (magnitude @ phase)V(in)5.00 V @ 0.0 degV(out)2.66 V @ 57.9 degI(V1)2.66 mA @ -122.1 degI(C1)2.66 mA @ 57.9 degI(R1)2.66 mA @ 57.9 deg

What you would measure. Channel 1 on the generator output, channel 2 across the resistor (the resistor is the part connected to ground, so both probe ground clips go to the same ground point). Trigger on channel 1 and use cursors to read the time between rising zero crossings. Expect Δt≈161 μs\Delta t \approx 161\ \mu\text{s} with channel 2 earlier, and a channel 2 amplitude near 2.66 V2.66\ \text{V} peak. A 5 % capacitor moves the phase by about ±1.3∘\pm 1.3^\circ (±4 μs\pm 4\ \mu\text{s}), and reading zero crossings on a 100 µs/div timebase adds about ±2 μs\pm 2\ \mu\text{s}; so a reading between 150150 and 170 μs170\ \mu\text{s} is consistent. Most scopes also have an automatic phase measurement; compare the two.

Hazards and safe setup. Signal levels only: 5 V5\ \text{V} peak from a function generator. On a mains-powered scope the probe ground clips are connected to protective earth: clipping a ground lead to any point other than circuit ground shorts that point to earth through the scope. Here the generator's ground and the scope's ground are the same node, which is why the resistor, not the capacitor, goes to ground.

Pitfalls

  • Mixing sine and cosine references. Convert sin⁡(ωt+α)\sin(\omega t + \alpha) to cos⁡(ωt+α−90∘)\cos(\omega t + \alpha - 90^\circ) before reading phases.
  • Mixing peak and RMS phasors in one calculation. Pick one convention and state it; meters show RMS, scopes show peak or peak-to-peak.
  • Adding magnitudes. 10 V+6 V10\ \text{V} + 6\ \text{V} is only 16 V if the phases are equal; add the complex numbers.
  • Adding phasors of different frequencies. A phasor only makes sense at one ω\omega.
  • The calculator in the wrong mode. atan returns radians; and arctan⁡(b/a)\arctan(b/a) loses the quadrant when a<0a < 0: use atan2 or np.angle.

Practice

  1. Write i(t)=0.2sin⁡(2000t+20∘) Ai(t) = 0.2 \sin(2000t + 20^\circ)\ \text{A} as an amplitude phasor and as an RMS phasor, both with a cosine reference.
  2. Which leads, and by how much in time: va=5cos⁡(ωt+10∘)v_a = 5\cos(\omega t + 10^\circ) or vb=5cos⁡(ωt−35∘)v_b = 5\cos(\omega t - 35^\circ), at f=50 Hzf = 50\ \text{Hz}?
  3. Add 3cos⁡(ωt)+4cos⁡(ωt+90∘)+2cos⁡(ωt+180∘)3\cos(\omega t) + 4\cos(\omega t + 90^\circ) + 2\cos(\omega t + 180^\circ).
Answer
  1. sin⁡(2000t+20∘)=cos⁡(2000t−70∘)\sin(2000t + 20^\circ) = \cos(2000t - 70^\circ): amplitude phasor 0.2∠−70∘ A0.2 \angle -70^\circ\ \text{A}, RMS phasor 0.1414∠−70∘ A0.1414 \angle -70^\circ\ \text{A}.
  2. vav_a leads by 45∘45^\circ, which is (45/360)⋅20 ms=2.5 ms(45/360) \cdot 20\ \text{ms} = 2.5\ \text{ms}.
  3. 3+j4−2=1+j4=4.12∠76.0∘3 + j4 - 2 = 1 + j4 = 4.12 \angle 76.0^\circ, so 4.12cos⁡(ωt+76.0∘)4.12\cos(\omega t + 76.0^\circ).

Test yourself

What is the RMS phasor of v(t)=14.14cos⁡(ωt−45∘) Vv(t) = 14.14 \cos(\omega t - 45^\circ)\ \text{V}?

  1. 14.14 V∠−45∘14.14\ \text{V} \angle -45^\circ
  2. 10.0 V∠−45∘10.0\ \text{V} \angle -45^\circ
  3. 10.0 V∠45∘10.0\ \text{V} \angle 45^\circ
  4. 20.0 V∠−45∘20.0\ \text{V} \angle -45^\circ

Two sinusoids of equal amplitude 5 V at the same frequency are 120∘120^\circ apart. What is the amplitude of their sum?

  1. 10 V
  2. 8.66 V
  3. 5 V
  4. 0 V

Why can phasors not be used to add a 50 Hz and a 60 Hz sinusoid?

  1. their RMS values differ
  2. the rotating factor ejωte^{j\omega t} is different for each, so it cannot be factored out
  3. phasors only work for voltages
  4. the phase of a 60 Hz signal is undefined

On a 1 kHz scope trace, the current peaks 125 μs125\ \mu\text{s} after the voltage. What is the phase of the current relative to the voltage?

  1. +45∘+45^\circ (leads)
  2. −45∘-45^\circ (lags)
  3. −12.5∘-12.5^\circ
  4. −90∘-90^\circ