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+θ) 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=iR is still instant, but an inductor's
v=Ldi/dt and a capacitor's i=Cdv/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ω — 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/dt↔jω 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+θ)
with three parameters that fully describe it:
Vm — the peak amplitude (volts or amps), the maximum value the signal reaches.
ω — the angular frequency (rad/s), related to the ordinary frequency f (Hz)
and period T (s) by ω=2πf=2π/T.
θ — 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).
A positive θ shifts the whole waveform left — it reaches its peak earlier than plain sin(ωt) would.
8.2 RMS value
Multimeters and power calculations don't use the peak Vm — 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) (which is zero for any pure sinusoid)
won't do; you need the average of v(t)2, then undo the square with a root:
Vrms=T1∫0Tv(t)2dt
For a pure sinusoid this integral collapses to a clean constant. Using sin2x=21(1−cos2x):
The cos(2ωt+2θ) term oscillates twice per period and integrates to exactly zero over one full
period T, leaving only the constant 21 term:
Vrms2=2Vm2⟹Vrms=2Vm
This shortcut is sinusoid-only
Vrms=Vm/2 falls straight out of the identity above, which only works because a pure
sinusoid's square has that clean 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 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ϕ for any real ϕ — 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.
Split the exponent into two factors: ejθ (fixed — depends only on the signal's own phase) and
ejω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∠θ, is the phasor: a single static complex
number that fully encodes the signal's magnitude and phase, with time removed entirely.
The phasor is a snapshot at t=0. The dashed circle is the path Vejωt traces as t advances — the phasor spins around it at rate ω, and its real-axis projection redraws v(t).
8.4 Why d/dt↔jω
This is the entire payoff, and it follows in two lines. Differentiate v(t) using the rotating-exponential
form directly — ω and θ are constants, so the derivative only ever touches the t in the
exponent:
dtdv=dtdRe[Vejωt]=Re[V⋅jωejωt]=Re[(jωV)ejωt]
Read the right-hand side the same way you read the original definition: it's a sinusoid at the same
frequency ω, whose phasor is jωV. So differentiating a sinusoid in the time
domain is the same as multiplying its phasor by jω — 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:
dtdv(t)⟷jωV∫v(t)dt⟷jωV
This is exactly what makes an inductor's vL=Ldi/dt and a capacitor's iC=Cdv/dt collapse into
plain Ohm's-law-shaped equations in the phasor domain — the derivative just becomes a multiplying factor of
jωL or jω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. Convert first, using sinx=cos(x−90°):
Vmsin(ωt+θ)=Vmcos(ωt+θ−90°)⟶V=Vm∠(θ−90°)
The most common sign slip in this chapter
It's θ−90°, not θ+90° — sine lags the cosine of the same argument by 90° (equivalently,
cosine leads sine by 90°), because cosx=sin(x+90°) reversed gives sinx=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 (rectangular) and
V=∣V∣∠θ (polar) describe the same number two ways — pick whichever form the next step
needs (rectangular for addition/subtraction, polar for multiplication/division):
Vr=∣V∣cosθ,Vi=∣V∣sinθ∣V∣=Vr2+Vi2,θ=arctan(VrVi)(watch the quadrant)
8.6 Lead and lag from a phasor diagram
Once two signals are phasors at the sameω (comparison is meaningless otherwise — the
shared ejω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.
Lag:I sits below (smaller angle than) V — current lags voltage by 30°.
Lead:I sits above (larger angle than) V — current leads voltage by 30°.
Formally: for V=∣V∣∠α and I=∣I∣∠β, the phase difference is
β−α. If it's positive, I leads V; if negative, 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. The leading minus sign is easiest to absorb first: −sinx=sin(x+180°), so v(t)=10sin(1000πt+210°).
Convert to cosine reference (sinx=cos(x−90°)): v(t)=10cos(1000πt+210°−90°)=10cos(1000πt+120°) V. (Equivalently, reduce 120°−360°=−240°... but 120° is already the simplest form here — no reduction needed.)
Read off the parameters directly: ω=1000π rad/s, so f=ω/2π=500 Hz and T=1/f=2 ms. Phase θ=120° (cosine reference). Vrms=10/2=7.071 V.
Power delivered to a 50 Ω load: P=Vrms2/R=(7.071)2/50=50/50=1 W.
First peak after t=0: cosine peaks when its argument is 0° (mod 360°). 1000πt+120°=360°⇒t=1000π240°⋅(π/180°)=1000π4π/3≈1.33 ms (the argument is already past 0° at t=0, so the next zero-crossing-to-peak is a full cycle ahead, landing at 360°−120°=240° into the cycle).
v(t)=10cos(1000πt+120°) V; f=500 Hz, T=2 ms, Vrms=7.071 V, P=1 W, first peak at t≈1.33 ms.
Example 2 — adding two phasors
Given v1(t)=100cos(ωt) V and v2(t)=100sin(ωt) V, find vs=v1+v2 in the form Vmcos(ωt+θ).
Phasors (cosine reference): V1=100∠0°. For v2, convert first: 100sin(ωt)=100cos(ωt−90°)⇒V2=100∠−90°.
Add in rectangular form: V1=100+j0, V2=0−j100. Sum: Vs=100−j100.
Convert back to polar: ∣Vs∣=1002+1002=141.4, θ=arctan(−100/100)=−45° (fourth quadrant, matches signs of both parts).
vs(t)=141.4cos(ωt−45°) V. Since V2 sits at −90° and V1 at 0°, v2 lags v1 by 90°; the sum sits between them, lagging v1 by 45°.
Example 3 — RMS of a non-sinusoidal waveform
A square wave with period T=2 s: v(t)=5 V for 0≤t<1 s, v(t)=0 V for 1 s<t<2 s. The /2 shortcut from §8.2 doesn't apply — go back to the defining integral.
Vrms=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 Vm and θ, then press Animate to spin the phasor at rate ω and watch
its real-axis projection trace out v(t) live on the right.
Phasor ↔ sinusoid
8.9 Self-check
Self-check 1
What is the correct cosine-reference phasor for v(t)=8sin(500t+15°) V?
Self-check 2
V=50∠40° and I=5∠70°, same ω. 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ωt−Bsinωt expansion of Re[Vejωt]
— and shipped only because both agree.
Practice 1 — sine-form to phasor, with RMS
A voltage is given as v(t)=15sin(200t−40°) V. Find (a) its cosine-reference phasor V and
(b) its RMS value.
Method 1 — sine-to-cosine identity.sinx=cos(x−90°), so v(t)=15cos(200t−40°−90°)=15cos(200t−130°) V. Phasor: V=15∠−130°.
Method 2 — direct coefficient matching (independent check). Write V=A+jB so that Re[Vejωt]=Acosωt−Bsinωt. Expand the given signal directly: 15sin(200t−40°)=15[sin200tcos40°−cos200tsin40°]=15cos40°sin200t−15sin40°cos200t≈11.49sin200t−9.64cos200t. Matching coefficients: A=−9.64, −B=11.49⇒B=−11.49.
∣V∣=9.642+11.492=92.9+132.0=224.9≈15.0 ✓. Angle: both A,B negative → third quadrant; reference angle arctan(11.49/9.64)≈50.0°, so ∠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.61 V.
V=15∠−130° V; Vrms=10.61 V.
Practice 2 — RMS of a periodic ramp
A periodic voltage ramps linearly v(t)=6t V for 0≤t<2 s, then sits at v(t)=0 V for
2≤t<4 s, repeating with period T=4 s. Find Vrms.
Method 1 — direct integral.Vrms2=T1∫0Tv(t)2dt=41∫02(6t)2dt=41⋅36[3t3]02=41⋅36⋅38=24
So Vrms=24≈4.899 V.
Method 2 — general ramp formula (independent check). For a linear ramp from 0 to a peak Vp occupying a fraction D of the period (zero the rest of the time), the mean-square value is D⋅Vp2/3 — the 1/3 comes from averaging x2 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=12 V at t=2 s, occupying D=2/4=0.5 of the period: mean-square =0.5×122/3=0.5×48=24.
Both methods give Vrms2=24, agreeing exactly.
Vrms=24≈4.90 V.
Practice 3 — combining a cosine and a sine, then reading lead/lag
v1(t)=40cos(ωt+20°) V and v2(t)=30sin(ωt−10°) V. Find vs=v1+v2 in the form
Vmcos(ωt+θ), and state whether vs leads or lags v1, and by how much.
Method 2 — direct trig identity, no phasors (independent check). Expand both directly: v1=40cos20°cosωt−40sin20°sinωt=37.59cosωt−13.68sinωt; v2=30sin(ωt−10°)=30cos10°sinωt−30sin10°cosωt=29.54sinωt−5.21cosωt. Sum: (37.59−5.21)cosωt+(−13.68+29.54)sinωt=32.38cosωt+15.86sinωt. Match to Rcos(ωt−ϕ)=Rcosϕcosωt+Rsinϕsinωt: Rcosϕ=32.38, Rsinϕ=15.86⇒R=36.06, ϕ=arctan(15.86/32.38)=26.09°, giving vs=36.06cos(ωt−26.09°) — identical to Method 1.
Lead/lag versus v1 (at 20°): −26.09°−20°=−46.09°, so vslagsv1 by about 46.1°.
vs(t)=36.06cos(ωt−26.09°) V, lagging v1 by ≈46.1°.
↑↓navigate↵openescclose
Keyboard shortcuts
Ctrl KJump to search
Ctrl JAsk about this chapter
EscClose the open panel
Ask about this chapter
Answers may be wrong · verify against the chapter.