08

AC Signals & Phasors

Trading differential equations for complex-number algebra

Every circuit so far has been DC: constant sources, constant currents, algebra with real numbers. AC changes the source, not the toolkit you'd expect to need — v(t)=Vmsin(ωt+θ)v(t) = V_m\sin(\omega t+\theta) replaces a battery, and suddenly every voltage and current in the circuit is a function of time, and KVL/KCL applied directly turn into differential equations (a resistor's v=iRv=iR is still instant, but an inductor's v=Ldi/dtv=L\,di/dt and a capacitor's i=Cdv/dti=C\,dv/dt are not). Solving a multi-loop circuit that way, by hand, every single time, would be miserable. The phasor is the trick that makes it unnecessary: it repackages a sinusoid's magnitude and phase into one static complex number, and — because differentiation of a complex exponential is just multiplication by jωj\omega — every derivative in the circuit's equations turns into ordinary multiplication. The differential equations disappear, and you're back to solving simultaneous algebraic equations with node-voltage or mesh-current analysis, exactly like DC, just with complex numbers standing in for real ones. This chapter builds that transform from scratch: what a sinusoid's parameters mean, why the transform is legal, and how to move fluently between the time-domain picture and the phasor picture. Chapters 9–10 then spend that machinery on impedance and full AC circuit analysis — this chapter is the toll you pay once so the rest of AC is DC-shaped.

Where this is going
Sinusoid anatomy and RMS first (the numbers you're actually given). Then the phasor transform itself, derived through Euler's formula so d/dtjωd/dt \leftrightarrow j\omega isn't a rule you memorize but a fact you watched fall out. Then the mechanics: sine-to-cosine conversion, rectangular ↔ polar, and reading lead/lag straight off two phasors' angles. A draggable phasor widget ties the static-vector picture to the moving sinusoid directly. Budget this chapter as a fast read — it's short on drama and long on notation you'll use in every remaining AC chapter.

8.1  Anatomy of a sinusoid

Every AC voltage or current in this course is written in the general form

v(t)=Vmsin(ωt+θ)v(t) = V_m\sin(\omega t + \theta)

with three parameters that fully describe it:

  • VmV_m — the peak amplitude (volts or amps), the maximum value the signal reaches.
  • ω\omega — the angular frequency (rad/s), related to the ordinary frequency ff (Hz) and period TT (s) by ω=2πf=2π/T\omega = 2\pi f = 2\pi/T.
  • θ\theta — the phase angle (degrees, occasionally radians), a horizontal shift: it tells you how far the waveform is shifted earlier in time relative to a plain sin(ωt)\sin(\omega t).
V_m θ/ω T = 2π/ω ω t v(t)
A positive θ\theta shifts the whole waveform left — it reaches its peak earlier than plain sin(ωt)\sin(\omega t) would.

8.2  RMS value

Multimeters and power calculations don't use the peak VmV_m — they use the root-mean-square (RMS) value, the DC-equivalent value that would deliver the same average power to a resistor. Squaring makes the signal positive everywhere, so a plain time-average of v(t)v(t) (which is zero for any pure sinusoid) won't do; you need the average of v(t)2v(t)^2, then undo the square with a root:

Vrms=1T0Tv(t)2dtV_{\text{rms}} = \sqrt{\frac{1}{T}\int_0^T v(t)^2\,dt}

For a pure sinusoid this integral collapses to a clean constant. Using sin2x=12(1cos2x)\sin^2 x = \tfrac{1}{2}(1-\cos 2x):

Vrms2=1T0TVm2sin2(ωt+θ)dt=Vm2T0T1cos(2ωt+2θ)2dtV_{\text{rms}}^2 = \frac{1}{T}\int_0^T V_m^2\sin^2(\omega t+\theta)\,dt = \frac{V_m^2}{T}\int_0^T \frac{1-\cos(2\omega t+2\theta)}{2}\,dt

The cos(2ωt+2θ)\cos(2\omega t + 2\theta) term oscillates twice per period and integrates to exactly zero over one full period TT, leaving only the constant 12\tfrac12 term:

Vrms2=Vm22Vrms=Vm2V_{\text{rms}}^2 = \frac{V_m^2}{2} \quad\Longrightarrow\quad V_{\text{rms}} = \frac{V_m}{\sqrt2}
This shortcut is sinusoid-only
Vrms=Vm/2V_{\text{rms}}=V_m/\sqrt2 falls straight out of the identity above, which only works because a pure sinusoid's square has that clean cos(2x)\cos(2x) oscillating term that vanishes over a full period. A square wave, triangle wave, or anything else non-sinusoidal needs the defining integral evaluated directly, piece by piece — see Worked Example 3 below. Don't reach for /2/\sqrt2 on a waveform that isn't a plain sine or cosine.

8.3  The phasor transform

Here is the actual trick. Euler's formula says ejϕ=cosϕ+jsinϕe^{j\phi} = \cos\phi + j\sin\phi for any real ϕ\phi — a single complex exponential secretly contains both a cosine and a sine. This course's phasors use the cosine as the reference (matching every worked solution you'll see in the sources), so first put any signal into cosine form, then read Euler's formula backwards: the real part of a rotating complex exponential is exactly a cosine wave.

Take v(t)=Vmcos(ωt+θ)v(t) = V_m\cos(\omega t+\theta). Then:

v(t)=Vmcos(ωt+θ)=Re[Vmej(ωt+θ)]=Re[VmejθVejωt]v(t) = V_m\cos(\omega t+\theta) = \text{Re}\Big[V_m e^{j(\omega t+\theta)}\Big] = \text{Re}\Big[\underbrace{V_m e^{j\theta}}_{\displaystyle \mathbf{V}}\,e^{j\omega t}\Big]

Split the exponent into two factors: ejθe^{j\theta} (fixed — depends only on the signal's own phase) and ejωte^{j\omega t} (spinning — depends only on time, and is the same for every voltage and current in a fixed-frequency circuit). Since every quantity you'll ever compare shares that same spinning factor, it carries no information once you're comparing things to each other — so it's dropped, and what's left, V=Vmejθ=Vmθ\mathbf{V} = V_m e^{j\theta} = V_m\angle\theta, is the phasor: a single static complex number that fully encodes the signal's magnitude and phase, with time removed entirely.

Re Im θ V=V_m∠θ
The phasor is a snapshot at t=0t=0. The dashed circle is the path Vejωt\mathbf{V}e^{j\omega t} traces as tt advances — the phasor spins around it at rate ω\omega, and its real-axis projection redraws v(t)v(t).

8.4  Why d/dtjωd/dt \leftrightarrow j\omega

This is the entire payoff, and it follows in two lines. Differentiate v(t)v(t) using the rotating-exponential form directly — ω\omega and θ\theta are constants, so the derivative only ever touches the tt in the exponent:

dvdt=ddtRe[Vejωt]=Re[Vjωejωt]=Re[(jωV)ejωt]\frac{dv}{dt} = \frac{d}{dt}\,\text{Re}\Big[\mathbf{V}e^{j\omega t}\Big] = \text{Re}\Big[\mathbf{V}\cdot j\omega\, e^{j\omega t}\Big] = \text{Re}\Big[(j\omega\mathbf{V})\,e^{j\omega t}\Big]

Read the right-hand side the same way you read the original definition: it's a sinusoid at the same frequency ω\omega, whose phasor is jωVj\omega\mathbf{V}. So differentiating a sinusoid in the time domain is the same as multiplying its phasor by jωj\omega — a real, second-order, messy operation (differential equations) has become a single complex multiplication (algebra). Integration runs the same argument backwards, dividing instead of multiplying:

ddtv(t)    jωVv(t)dt    Vjω\frac{d}{dt}v(t) \;\longleftrightarrow\; j\omega\mathbf{V} \qquad\qquad \int v(t)\,dt \;\longleftrightarrow\; \frac{\mathbf{V}}{j\omega}

This is exactly what makes an inductor's vL=Ldi/dtv_L = L\,di/dt and a capacitor's iC=Cdv/dti_C = C\,dv/dt collapse into plain Ohm's-law-shaped equations in the phasor domain — the derivative just becomes a multiplying factor of jωLj\omega L or jωCj\omega C. That's Chapter 9's impedance; this chapter only needs you to trust the mechanism.

8.5  Sine ↔ cosine, and rectangular ↔ polar

Two mechanical conversions come up constantly.

Sine to cosine. The phasor transform above assumed a cosine reference, but sources — and this course's own slides — are often written with sin\sin. Convert first, using sinx=cos(x90°)\sin x = \cos(x-90°):

Vmsin(ωt+θ)=Vmcos(ωt+θ90°)    V=Vm(θ90°)V_m\sin(\omega t+\theta) = V_m\cos(\omega t+\theta-90°) \;\longrightarrow\; \mathbf{V}=V_m\angle(\theta-90°)
The most common sign slip in this chapter
It's θ90°\theta - 90°, not θ+90°\theta+90° — sine lags the cosine of the same argument by 90° (equivalently, cosine leads sine by 90°), because cosx=sin(x+90°)\cos x = \sin(x+90°) reversed gives sinx=cos(x90°)\sin x=\cos(x-90°). Get the sign backwards here and every phasor angle you compute afterward is off by 180°.

Rectangular ↔ polar. A phasor V=Vr+jVi\mathbf{V}=V_r+jV_i (rectangular) and V=Vθ\mathbf{V}=|V|\angle\theta (polar) describe the same number two ways — pick whichever form the next step needs (rectangular for addition/subtraction, polar for multiplication/division):

Vr=Vcosθ,Vi=VsinθV=Vr2+Vi2,θ=arctan ⁣(ViVr) (watch the quadrant)V_r = |V|\cos\theta,\quad V_i=|V|\sin\theta \qquad\qquad |V|=\sqrt{V_r^2+V_i^2},\quad \theta=\arctan\!\left(\frac{V_i}{V_r}\right)\ \text{(watch the quadrant)}

8.6  Lead and lag from a phasor diagram

Once two signals are phasors at the same ω\omega (comparison is meaningless otherwise — the shared ejωte^{j\omega t} factor is what made phasors comparable in the first place), their relative timing reads straight off the angle between the two vectors on a phasor diagram: whichever phasor sits at the larger angle reaches its peak earlier in time, i.e. it leads.

30° V I
Lag: I\mathbf{I} sits below (smaller angle than) V\mathbf{V} — current lags voltage by 30°.
30° V I
Lead: I\mathbf{I} sits above (larger angle than) V\mathbf{V} — current leads voltage by 30°.

Formally: for V=Vα\mathbf{V}=|V|\angle\alpha and I=Iβ\mathbf{I}=|I|\angle\beta, the phase difference is βα\beta-\alpha. If it's positive, I\mathbf{I} leads V\mathbf{V}; if negative, I\mathbf{I} lags. This is exactly the comparison you'll make constantly in Chapter 9 to read off whether a load is inductive (current lags) or capacitive (current leads).

8.7  Worked examples

Example 1 — full sinusoid characterization
Given v(t)=10sin(1000πt+30°)v(t) = -10\sin(1000\pi t + 30°) V. The leading minus sign is easiest to absorb first: sinx=sin(x+180°)-\sin x = \sin(x+180°), so v(t)=10sin(1000πt+210°)v(t)=10\sin(1000\pi t + 210°).
Convert to cosine reference (sinx=cos(x90°)\sin x = \cos(x-90°)): v(t)=10cos(1000πt+210°90°)=10cos(1000πt+120°)v(t) = 10\cos(1000\pi t + 210°-90°) = 10\cos(1000\pi t + 120°) V. (Equivalently, reduce 120°360°=240°120°-360°=-240°... but 120°120° is already the simplest form here — no reduction needed.)
Read off the parameters directly: ω=1000π\omega = 1000\pi rad/s, so f=ω/2π=500f=\omega/2\pi = 500 Hz and T=1/f=2T=1/f=2 ms. Phase θ=120°\theta=120° (cosine reference). Vrms=10/2=7.071V_{\text{rms}} = 10/\sqrt2 = 7.071 V.
Power delivered to a 50 Ω load: P=Vrms2/R=(7.071)2/50=50/50=1P = V_{\text{rms}}^2/R = (7.071)^2/50 = 50/50 = 1 W.
First peak after t=0t=0: cosine peaks when its argument is 0° (mod 360°360°). 1000πt+120°=360°t=240°(π/180°)1000π=4π/31000π1.331000\pi t + 120° = 360° \Rightarrow t = \dfrac{240°\cdot(\pi/180°)}{1000\pi} = \dfrac{4\pi/3}{1000\pi}\approx 1.33 ms (the argument is already past 0° at t=0t=0, so the next zero-crossing-to-peak is a full cycle ahead, landing at 360°120°=240°360°-120°=240° into the cycle).
v(t)=10cos(1000πt+120°)v(t)=10\cos(1000\pi t+120°) V; f=500f=500 Hz, T=2T=2 ms, Vrms=7.071V_{\text{rms}}=7.071 V, P=1P=1 W, first peak at t1.33t\approx1.33 ms.
Example 2 — adding two phasors
Given v1(t)=100cos(ωt)v_1(t)=100\cos(\omega t) V and v2(t)=100sin(ωt)v_2(t)=100\sin(\omega t) V, find vs=v1+v2v_s=v_1+v_2 in the form Vmcos(ωt+θ)V_m\cos(\omega t+\theta).
Phasors (cosine reference): V1=1000°\mathbf{V}_1 = 100\angle0°. For v2v_2, convert first: 100sin(ωt)=100cos(ωt90°)V2=10090°100\sin(\omega t)=100\cos(\omega t-90°) \Rightarrow \mathbf{V}_2=100\angle{-90°}.
Add in rectangular form: V1=100+j0\mathbf{V}_1=100+j0, V2=0j100\mathbf{V}_2=0-j100. Sum: Vs=100j100\mathbf{V}_s = 100-j100.
Convert back to polar: Vs=1002+1002=141.4|V_s|=\sqrt{100^2+100^2}=141.4, θ=arctan(100/100)=45°\theta=\arctan(-100/100)=-45° (fourth quadrant, matches signs of both parts).
vs(t)=141.4cos(ωt45°)v_s(t)=141.4\cos(\omega t-45°) V. Since V2\mathbf{V}_2 sits at 90°-90° and V1\mathbf{V}_1 at 0°, v2v_2 lags v1v_1 by 90°; the sum sits between them, lagging v1v_1 by 45°.
Example 3 — RMS of a non-sinusoidal waveform
A square wave with period T=2T=2 s: v(t)=5v(t)=5 V for 0t<10\le t<1 s, v(t)=0v(t)=0 V for 1 s<t<21\text{ s}<t<2 s. The /2/\sqrt2 shortcut from §8.2 doesn't apply — go back to the defining integral.
Vrms=1T0Tv(t)2dt=12[0152dt+1202dt]=12(251+0)V_{\text{rms}}=\sqrt{\frac{1}{T}\int_0^T v(t)^2\,dt} = \sqrt{\frac{1}{2}\Big[\int_0^1 5^2\,dt + \int_1^2 0^2\,dt\Big]} = \sqrt{\frac{1}{2}(25\cdot1 + 0)}
Vrms=12.5=3.536V_{\text{rms}}=\sqrt{12.5}=3.536 V — noticeably less than the 5 V peak, since the signal spends half of every cycle at 0 V.

8.8  Draggable phasor widget

The static phasor and the moving sinusoid are the same object viewed two ways — the derivation in §8.3 said so, but it's worth watching happen. Drag the tip of the vector (or use the sliders) to set VmV_m and θ\theta, then press Animate to spin the phasor at rate ω\omega and watch its real-axis projection trace out v(t)v(t) live on the right.

Phasor ↔ sinusoid
Re Im ωt v(t)

8.9  Self-check

Self-check 1

What is the correct cosine-reference phasor for v(t)=8sin(500t+15°)v(t) = 8\sin(500t + 15°) V?

Self-check 2

V=5040°\mathbf{V}=50\angle40° and I=570°\mathbf{I}=5\angle70°, same ω\omega. Does the current lead or lag the voltage, and by how much?

8.10  Practice problems

Each solution below is cross-solved two independent ways — the sine-to-cosine identity, and direct coefficient matching against the AcosωtBsinωtA\cos\omega t - B\sin\omega t expansion of Re[Vejωt]\text{Re}[\mathbf{V}e^{j\omega t}] — and shipped only because both agree.

Practice 1 — sine-form to phasor, with RMS
A voltage is given as v(t)=15sin(200t40°)v(t) = 15\sin(200t-40°) V. Find (a) its cosine-reference phasor V\mathbf{V} and (b) its RMS value.
Method 1 — sine-to-cosine identity. sinx=cos(x90°)\sin x=\cos(x-90°), so v(t)=15cos(200t40°90°)=15cos(200t130°)v(t)=15\cos(200t-40°-90°)=15\cos(200t-130°) V. Phasor: V=15130°\mathbf{V}=15\angle{-130°}.
Method 2 — direct coefficient matching (independent check). Write V=A+jB\mathbf{V}=A+jB so that Re[Vejωt]=AcosωtBsinωt\text{Re}[\mathbf{V}e^{j\omega t}] = A\cos\omega t - B\sin\omega t. Expand the given signal directly: 15sin(200t40°)=15[sin200tcos40°cos200tsin40°]=15cos40°sin200t15sin40°cos200t11.49sin200t9.64cos200t15\sin(200t-40°) = 15[\sin200t\cos40°-\cos200t\sin40°] = 15\cos40°\sin200t - 15\sin40°\cos200t \approx 11.49\sin200t - 9.64\cos200t. Matching coefficients: A=9.64A=-9.64, B=11.49B=11.49-B=11.49\Rightarrow B=-11.49.
V=9.642+11.492=92.9+132.0=224.915.0|\mathbf{V}|=\sqrt{9.64^2+11.49^2}=\sqrt{92.9+132.0}=\sqrt{224.9}\approx15.0 ✓. Angle: both A,BA,B negative → third quadrant; reference angle arctan(11.49/9.64)50.0°\arctan(11.49/9.64)\approx50.0°, so V=(180°50°)=130°\angle\mathbf{V}=-(180°-50°)=-130° ✓ — matches Method 1 exactly.
RMS is independent of the phasor arithmetic — it only needs the peak amplitude: Vrms=15/2=10.61V_{\text{rms}}=15/\sqrt2=10.61 V.
V=15130°\mathbf{V}=15\angle{-130°} V; Vrms=10.61V_{\text{rms}}=10.61 V.
Practice 2 — RMS of a periodic ramp
A periodic voltage ramps linearly v(t)=6tv(t)=6t V for 0t<20\le t<2 s, then sits at v(t)=0v(t)=0 V for 2t<42\le t<4 s, repeating with period T=4T=4 s. Find VrmsV_{\text{rms}}.
Method 1 — direct integral. Vrms2=1T0Tv(t)2dt=1402(6t)2dt=1436[t33]02=143683=24V_{\text{rms}}^2 = \frac{1}{T}\int_0^T v(t)^2\,dt = \frac{1}{4}\int_0^2 (6t)^2\,dt = \frac{1}{4}\cdot36\left[\frac{t^3}{3}\right]_0^2 = \frac{1}{4}\cdot36\cdot\frac{8}{3}=24 So Vrms=244.899V_{\text{rms}}=\sqrt{24}\approx4.899 V.
Method 2 — general ramp formula (independent check). For a linear ramp from 0 to a peak VpV_p occupying a fraction DD of the period (zero the rest of the time), the mean-square value is DVp2/3D\cdot V_p^2/3 — the 1/31/3 comes from averaging x2x^2 over the unit interval, exactly the same integral in disguise, but derived from the ramp's shape rather than plugging into the defining integral directly. Here the ramp reaches Vp=6×2=12V_p=6\times2=12 V at t=2t=2 s, occupying D=2/4=0.5D=2/4=0.5 of the period: mean-square =0.5×122/3=0.5×48=24=0.5\times12^2/3=0.5\times48=24.
Both methods give Vrms2=24V_{\text{rms}}^2=24, agreeing exactly.
Vrms=244.90V_{\text{rms}}=\sqrt{24}\approx4.90 V.
Practice 3 — combining a cosine and a sine, then reading lead/lag
v1(t)=40cos(ωt+20°)v_1(t)=40\cos(\omega t+20°) V and v2(t)=30sin(ωt10°)v_2(t)=30\sin(\omega t-10°) V. Find vs=v1+v2v_s=v_1+v_2 in the form Vmcos(ωt+θ)V_m\cos(\omega t+\theta), and state whether vsv_s leads or lags v1v_1, and by how much.
Method 1 — phasor addition. Convert v2v_2 to cosine reference: 30sin(ωt10°)=30cos(ωt100°)30\sin(\omega t-10°)=30\cos(\omega t-100°). Phasors: V1=4020°=37.59+j13.68\mathbf{V}_1=40\angle20°=37.59+j13.68; V2=30100°=5.21j29.54\mathbf{V}_2=30\angle{-100°}=-5.21-j29.54. Sum: Vs=32.38j15.86\mathbf{V}_s=32.38-j15.86. Polar: Vs=32.382+15.862=36.06|V_s|=\sqrt{32.38^2+15.86^2}=36.06, θ=arctan(15.86/32.38)=26.09°\theta=\arctan(-15.86/32.38)=-26.09° (fourth quadrant).
Method 2 — direct trig identity, no phasors (independent check). Expand both directly: v1=40cos20°cosωt40sin20°sinωt=37.59cosωt13.68sinωtv_1=40\cos20°\cos\omega t-40\sin20°\sin\omega t=37.59\cos\omega t-13.68\sin\omega t; v2=30sin(ωt10°)=30cos10°sinωt30sin10°cosωt=29.54sinωt5.21cosωtv_2=30\sin(\omega t-10°)=30\cos10°\sin\omega t-30\sin10°\cos\omega t=29.54\sin\omega t-5.21\cos\omega t. Sum: (37.595.21)cosωt+(13.68+29.54)sinωt=32.38cosωt+15.86sinωt(37.59-5.21)\cos\omega t+(-13.68+29.54)\sin\omega t=32.38\cos\omega t+15.86\sin\omega t. Match to Rcos(ωtϕ)=Rcosϕcosωt+RsinϕsinωtR\cos(\omega t-\phi)=R\cos\phi\cos\omega t+R\sin\phi\sin\omega t: Rcosϕ=32.38R\cos\phi=32.38, Rsinϕ=15.86R=36.06R\sin\phi=15.86\Rightarrow R=36.06, ϕ=arctan(15.86/32.38)=26.09°\phi=\arctan(15.86/32.38)=26.09°, giving vs=36.06cos(ωt26.09°)v_s=36.06\cos(\omega t-26.09°) — identical to Method 1.
Lead/lag versus v1v_1 (at 20°20°): 26.09°20°=46.09°-26.09°-20°=-46.09°, so vsv_s lags v1v_1 by about 46.1°46.1°.
vs(t)=36.06cos(ωt26.09°)v_s(t)=36.06\cos(\omega t-26.09°) V, lagging v1v_1 by 46.1°\approx46.1°.