Sinusoids and Phasors
Two signal sources feed the same node of an audio mixer: one gives peak at 1 kHz, the other 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:
| quantity | symbol | unit | meaning |
|---|---|---|---|
| amplitude (peak) | V | largest value | |
| angular frequency | rad/s | times the frequency in Hz | |
| phase | rad or degrees | where the peak sits: the cosine peaks at | |
| RMS value | V | the DC value that heats a resistor equally |
This course uses the cosine as reference; a sine is a cosine delayed by , , so always convert before comparing phases. Two sinusoids of the same frequency differ only in amplitude and phase. If , the first leads the second by : its peaks come earlier in time, by
From a rotating vector to a phasor
Euler's formula (electrical engineers write for , since is current) gives
The factor is a unit vector rotating at ; 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 , 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 , convenient when comparing waveforms on a scope;
- RMS phasor , convenient for power, because needs no factor .
In this course phasors are RMS values unless stated otherwise, written in bold: . Addition, Kirchhoff's laws and impedance work identically in both conventions, because the factor 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.
With and at the lab reads , , and : 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:
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).
Worked example: the mixer node
Given: and , (amplitude phasors, since the data are peak values).
Find: as one sinusoid, its RMS value, and the time of its first peak after .
Solve:
So , with . The peak is where : .
Check: the two phasors are exactly apart, so the result is the hypotenuse of a right triangle: . The sum lies between (in phase) and (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.
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 capacitor in series with a resistor to ground, at and peak. The resistor voltage (proportional to the current) leads the source by with , so . Its peak is , and it peaks 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 at . Move and watch the lead shrink towards at high frequency and grow towards at low frequency.
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 with channel 2 earlier, and a channel 2 amplitude near peak. A 5 % capacitor moves the phase by about (), and reading zero crossings on a 100 µs/div timebase adds about ; so a reading between and is consistent. Most scopes also have an automatic phase measurement; compare the two.
Hazards and safe setup. Signal levels only: 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 to 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. 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 .
- The calculator in the wrong mode.
atanreturns radians; and loses the quadrant when : useatan2ornp.angle.
Practice
- Write as an amplitude phasor and as an RMS phasor, both with a cosine reference.
- Which leads, and by how much in time: or , at ?
- Add .
Answer
- : amplitude phasor , RMS phasor .
- leads by , which is .
- , so .
Test yourself
What is the RMS phasor of ?
Two sinusoids of equal amplitude 5 V at the same frequency are apart. What is the amplitude of their sum?
- 10 V
- 8.66 V
- 5 V
- 0 V
Why can phasors not be used to add a 50 Hz and a 60 Hz sinusoid?
- their RMS values differ
- the rotating factor is different for each, so it cannot be factored out
- phasors only work for voltages
- the phase of a 60 Hz signal is undefined
On a 1 kHz scope trace, the current peaks after the voltage. What is the phase of the current relative to the voltage?
- (leads)
- (lags)