---
title: Phasor analysis of AC circuits
heading: DC methods with complex numbers
eyebrow: C3 · Lesson 7 · Phasor analysis
xp: 50
---

::: hook
Here's the payoff for phasors and impedance. To find any voltage or current in a linear circuit driven at one frequency, you don't need differential equations. Turn the sources into phasors and the parts into impedances, then use the same divider, nodal and Thevenin methods as for DC, with complex numbers. The answer comes out as an amplitude and a phase, which you read straight back as a sinusoid.

::: play
- A 10 V, 1 kHz source drives a resistor and a capacitor in series; the output is across the capacitor. The meters give each signal's amplitude and phase.
- Work out the output by the divider rule with $Z_C = -j/(\omega C)$, then compare with the meter.
- Change the frequency. The output's amplitude and phase both change.
:::
:::

```sim circuit
V1 in 0 sine 10 V 1k Hz     @ 0,0 down
R1 in out 1k                @ 0,0 right
C1 out 0 100n               @ 2,0 down
slider: V1.f 100..10k log
slider: R1 100..10k log
scope: v(in), v(out)
time: 0..3m s
meter: v(out), i(R1)
```

::: predict
## In the circuit above, at 1 kHz the capacitor's reactance is 1.59 kΩ. Is the output larger or smaller than the 10 V input, and is it ahead or behind?

- [ ] Larger and ahead
- [x] Smaller and behind
- [ ] Smaller and ahead
- [ ] Equal and in phase

::: reveal
Smaller and behind. The divider gives $\mathbf V_\text{out} = 10 \times \frac{-j1592}{1000 - j1592} = 8.47\angle{-32.1°}$ V: 8.47 V, lagging the input by 32°. The capacitor takes most of the voltage because its reactance is bigger than R, and the phase lags because of the way the two impedances combine.
:::
:::

::: nameit
## The method

1. **Sources to phasors.** $V_p\cos(\omega t + \phi)$ becomes $V_p\angle\phi$. All sources must share one frequency (otherwise, superpose: C1.16).
2. **Parts to impedances** at that frequency: $R$, $j\omega L$, $1/(j\omega C)$.
3. **Solve** with any DC method: dividers, KCL and KVL, nodal or mesh analysis, Thevenin and Norton, all with complex arithmetic.
4. **Back to time.** A result $A\angle\theta$ means $A\cos(\omega t + \theta)$.

**Example: the RC divider above.** With $\omega = 2\pi \times 1000$ and $C = 100$ nF, $Z_C = -j1592$ Ω:

$$\mathbf V_\text{out} = \mathbf V_\text{in}\frac{Z_C}{R + Z_C} = 10\angle0° \times \frac{1592\angle{-90°}}{1880\angle{-57.9°}} = 8.47\angle{-32.1°}\text{ V}$$

so $v_\text{out}(t) = 8.47\cos(\omega t - 32.1°)$ V.

**Tips for the arithmetic.**

- Multiply and divide in polar form (multiply magnitudes, add angles).
- Add and subtract in rectangular form.
- Check limits: at very low or very high frequency, capacitors and inductors become opens or shorts, so the answer should approach the simple DC result.

**What phasors can't do.** They give the **steady state** only, after start-up transients have died away (C2). And they need a linear circuit: diodes and transistors are handled by linearizing around an operating point (C5).
:::

::: example
## 10 V at 1 kHz drives 1 kΩ in series with an inductor of 1 kΩ reactance. What voltage is across the resistor?

::: solution
1. **Voltage divider.** The resistor's share of the source is
   $$\begin{aligned} V_R &= 10 \times \frac{1000}{1000 + j1000} \\ &= 7.07\angle{-45°}\ \text{V} \end{aligned}$$
2. **Phases.** The resistor's voltage lags the source by 45°, and the inductor's leads it by 45°.

**Answer:** $7.07\angle{-45°}$ V across the resistor.
:::
:::

::: example
## Two branch currents, $3\angle 0°$ and $4\angle 90°$ mA, join at a node. What leaves?

::: solution
1. **Add the phasors.**
   $$\begin{aligned} I &= 3 + j4\ \text{mA} \\ &= 5\angle 53.1°\ \text{mA} \end{aligned}$$
2. **Why it isn't 7.** Phasors add like vectors, so 3 and 4 make 5 rather than 7.

**Answer:** $5\angle 53.1°$ mA leaves the node.
:::
:::

::: example
## A series RLC of 10 Ω, 1 mH and 1 µF is driven by 1 V at its resonant frequency. What voltage appears across the capacitor?

::: solution
1. **Resonant frequency.**
   $$\begin{aligned} f_0 &= \frac{1}{2\pi\sqrt{LC}} \\ &= 5.03\ \text{kHz} \end{aligned}$$
2. **Reactance at resonance.** Each reactance there is
   $$\begin{aligned} X &= \sqrt{L/C} \\ &= 31.6\ \Omega \end{aligned}$$
3. **Current.** The reactances cancel, so only the resistor limits it:
   $$\begin{aligned} I &= \frac{1\ \text{V}}{10\ \Omega} \\ &= 100\ \text{mA} \end{aligned}$$
4. **Capacitor voltage.**
   $$\begin{aligned} |V_C| &= I X_C \\ &= 0.1 \times 31.6 \\ &= 3.16\ \text{V} \end{aligned}$$
   over three times the source, lagging it by 90°.
5. **Inductor voltage.** The inductor has the same 3.16 V, leading, and the two cancel.
6. **Why it matters.** Resonant voltage step-up is how a radio's front end builds a weak signal, and why capacitors in resonant circuits need voltage ratings above the source.

**Answer:** 3.16 V across the capacitor, over three times the 1 V source.
:::
:::

::: check
given: V = 5 | 10; R = 1 | 2.2; X = 1.5 | 4.7
answer: V*X/sqrt(R^2 + X^2)
unit: V
tolerance: 0.5%

## A {V} V source drives {R} kΩ in series with a capacitor of {X} kΩ reactance. What is the amplitude of the capacitor's voltage?

::: right
Right. $V\frac{X}{\sqrt{R^2 + X^2}}$ = {answer}.
:::

::: misses
- [V*X/(R + X)] Use the magnitude of the complex sum, $\sqrt{R^2 + X^2}$.
- [V*R/sqrt(R^2 + X^2)] That's the resistor's voltage.
- [any] Not yet. Divider with $Z_C = -jX$.
:::
:::

::: check
given: R = 1 | 2.2; X = 1.5 | 4.7
answer: -atan(R/X)*180/pi
unit: °
tolerance: 0.5%

## Same circuit: {R} kΩ, and a capacitor of {X} kΩ reactance. What is the phase of the capacitor's voltage relative to the source?

::: right
Right. $\angle\frac{-jX}{R - jX} = -90° + \arctan(X/R) = -\arctan(R/X)$ = {answer}.
:::

::: misses
- [-atan(X/R)*180/pi] That's the angle of the total impedance. The capacitor's share is $-90° - \angle Z$.
- [atan(R/X)*180/pi] The capacitor's voltage lags.
- [any] Not yet. Find $\angle Z_C - \angle(R + Z_C)$.
:::
:::

::: check
given: V = 5 | 10; R = 100 | 220; f = 100 | 1000; L = 10 | 100
answer: V*2*pi*f*L*1e-3/sqrt(R^2 + (2*pi*f*L*1e-3)^2)
unit: V
tolerance: 0.5%

## A {V} V source at {f} Hz drives {R} Ω in series with {L} mH. What is the amplitude of the inductor's voltage?

::: right
Right. $V\frac{\omega L}{\sqrt{R^2 + (\omega L)^2}}$ = {answer}.
:::

::: misses
- [V*2*pi*f*L*1e-3/(R + 2*pi*f*L*1e-3)] Use the magnitude of $R + j\omega L$.
- [V*R/sqrt(R^2 + (2*pi*f*L*1e-3)^2)] That's across the resistor.
- [any] Not yet. Divider with $Z_L = j\omega L$.
:::
:::

::: check
given: A = 3 | 5 | 8; ph = -30 | 45 | 60; f = 50 | 100; t = 1 | 2
answer: A*cos(2*pi*f*t/1000 + ph*pi/180)
unit: V
tolerance: 1%

## A voltage's phasor is {A}∠{ph}° at {f} Hz. What is the voltage at t = {t} ms?

::: right
Right. $A\cos(\omega t + \phi)$ = {answer}.
:::

::: misses
- [A*cos(2*pi*f*t/1000 - ph*pi/180)] Add the phase angle.
- [A*sin(2*pi*f*t/1000 + ph*pi/180)] The convention uses cosine.
- [any] Not yet. $v(t) = A\cos(2\pi ft + \phi)$.
:::
:::

::: check
given: V = 10 | 20; R = 100 | 200; XL = 300 | 500; XC = 100 | 200
answer: V/sqrt(R^2 + (XL - XC)^2)*1000
unit: mA
tolerance: 0.5%

## A {V} V source drives R = {R} Ω, an inductor of {XL} Ω reactance and a capacitor of {XC} Ω reactance, all in series. What is the current amplitude?

::: right
Right. $V/|R + j(X_L - X_C)|$ = {answer}.
:::

::: misses
- [V/(R + XL + XC)*1000] The reactances have opposite signs, and the result adds to R as a complex number.
- [V/sqrt(R^2 + (XL + XC)^2)*1000] The capacitor's reactance subtracts from the inductor's.
- [any] Not yet. $Z = R + j(X_L - X_C)$.
:::
:::

::: check
kind: parts
given: R = 5 | 20; L = 0.5 | 2; C = 0.5 | 2

## A series RLC of {R} Ω, {L} mH and {C} µF is driven by 1 V at resonance.

::: part
answer: 1/(2*pi*sqrt(L*1e-3*C*1e-6))/1000
unit: kHz
tolerance: 0.5%

### What's its resonant frequency?

::: misses
- [any] $\frac{1}{2\pi\sqrt{LC}}$.
:::
:::

::: part
answer: sqrt(L*1e-3/(C*1e-6))/R
unit: V
tolerance: 0.5%

### What voltage appears across the capacitor?

::: misses
- [any] $I X_C$ with $I = \frac{1\text{ V}}{R}$.
:::
:::
:::

::: check
kind: derivation
vars: V = 0.1..10, R = 1..1000, L = 0.000001..0.1, C = 0.000000001..0.0001

## A series RLC driven by V at its resonance.

::: step
answer: V/R

### What current flows?
:::

::: step
answer: V/R*sqrt(L/C)

### What's across the capacitor?
:::

::: step
answer: sqrt(L/C)/R

### What's that as a multiple of V (the circuit's Q)?
:::

::: right
Right. At resonance the reactive voltages are Q times the drive.
:::
:::

::: explain
## Why can the circuit techniques developed for DC be used unchanged for AC circuits once phasors and impedances are introduced?

::: model
DC analysis rests on KCL, KVL and Ohm's law, all of which are linear. In the sinusoidal steady state, every voltage and current is a sinusoid at the source frequency, so each can be represented by a phasor, and KCL and KVL hold for the phasors because they hold at every instant. Each part's voltage-current relation becomes a multiplication by its impedance. The equations therefore have exactly the same form as for DC, just with complex numbers, so every method built on them works the same way.
:::
:::

::: practice

::: check
given: A = 2 | 4 | 6; ph = 30 | 60
answer: A*cos(ph*pi/180)
unit: V
tolerance: 0.5%

## A phasor {A}∠{ph}°. Its real part?

::: misses
- [A*sin(ph*pi/180)] That's the imaginary part.
- [any] $A\cos\phi$.
:::
:::

::: check
given: V = 6 | 12; Z = 2 | 3
answer: V/Z
unit: A
tolerance: 0.5%

## {V} V across an impedance of magnitude {Z} Ω. Current amplitude?

::: misses
- [V*Z] Divide.
- [any] $V/|Z|$.
:::
:::

::: check
given: a = 10 | 20; b = 30 | 45
answer: a + b
unit: °
tolerance: 0.5%

## Multiplying phasors at {a}° and {b}°. Angle of the product?

::: misses
- [a*b] Angles add.
- [any] Add the angles.
:::
:::
:::
