Sub topic 7
Impedance: Ohm's law for phasors
This chapter assumes you know DC Ohm's law, the voltage-current laws of resistors, inductors and capacitors, and how to convert a sinusoid into a phasor and back. Complex arithmetic in rectangular and polar form is also assumed. Here we define impedance, show where it comes from, and read its parts. The next chapter derives the impedance of each element.
From Ohm's law to a complex ratio
In a DC circuit, resistance is the ratio of voltage to current: R = v / i. For a sinusoidal source, voltage and current in a linear circuit are both sinusoids at the same frequency, but they can differ in amplitude and in phase. A single real number cannot capture both differences. A complex number can.
Take a two-terminal element or network in sinusoidal steady state:
- v(t) = Vm cos(ωt + θv)
- i(t) = Im cos(ωt + θi)
Their phasors are V = Vm∠θv and I = Im∠θi. Impedance is the ratio of the voltage phasor to the current phasor:
Z = V / I
Dividing in polar form divides the magnitudes and subtracts the angles:
Z = (Vm / Im) ∠(θv − θi)
So the magnitude |Z| = Vm / Im is a gain: ohms of voltage per ampere of current. The angle of Z is θv − θi, the amount by which voltage leads current. The unit of impedance is the ohm (Ω), the same as resistance.
Rearranged, this is Ohm's law for phasors:
V = Z I
Why the ratio is constant
The ratio V/I is useful because it does not depend on the source amplitude or on the time origin. Two facts make this true.
- The network is linear. Doubling the voltage doubles the current, so Vm / Im stays the same.
- Only the phase difference matters. Shifting the time origin adds the same angle to θv and θi, so θv − θi stays the same.
The ratio does depend on frequency, because inductors and capacitors respond differently at different ω. Impedance is therefore a function Z(jω), and a value of Z is only meaningful at the ω where you computed it. If you change the frequency, recompute everything.
Resistance and reactance
Write Z in rectangular form:
Z = R + jX
- R = Re(Z) is the resistance. It is the part of the impedance that is in phase with the current.
- X = Im(Z) is the reactance. It is the part that is 90° ahead of or behind the current.
Both are measured in ohms. The conversions between forms are:
- |Z| = √(R² + X²)
- θ = atan2(X, R)
- R = |Z| cos θ
- X = |Z| sin θ
Use atan2 (or cmath.phase), not a plain arctangent, so that the angle lands in the correct quadrant when R is negative or zero.
The sign of the angle tells you how the network behaves:
| Angle θ of Z | Sign of X | Behavior | Current relative to voltage |
|---|---|---|---|
| 0° | X = 0 | Purely resistive | In phase |
| 0° to 90° | X > 0 | Inductive | Lags |
| −90° to 0° | X < 0 | Capacitive | Leads |
| ±90° | R = 0 | Purely reactive | 90° out of phase |
For a passive network, which contains no sources, R ≥ 0 and so θ stays between −90° and +90°. An angle outside that range from a passive network points to an arithmetic error.
A worked example
Suppose a two-terminal network is measured at ω = 1000 rad/s:
- v(t) = 10 cos(1000t + 30°) V
- i(t) = 2 cos(1000t − 15°) A
Steps:
- Write the phasors: V = 10∠30° V and I = 2∠−15° A.
- Divide the magnitudes: 10 / 2 = 5.
- Subtract the angles: 30° − (−15°) = 45°.
- So Z = 5∠45° Ω.
- Convert to rectangular form: R = 5 cos 45° ≈ 3.536 Ω and X = 5 sin 45° ≈ 3.536 Ω.
Since X is positive, the network is inductive. At this frequency it behaves like a 3.536 Ω resistor in series with a reactance of 3.536 Ω. If that reactance is an inductor, its inductance is L = X / ω = 3.536 mH. The same network at a different ω would give a different Z.
Computing with impedance in Python
Python's complex type and cmath module follow the same rules as the hand calculation. This script repeats the example, then uses Z to predict the current for a different source at the same frequency.
import cmath
import math
w = 1000.0 # rad/s
# Measured phasors from the worked example
V = cmath.rect(10, math.radians(30)) # 10 at 30 degrees, volts
I = cmath.rect(2, math.radians(-15)) # 2 at -15 degrees, amperes
Z = V / I
mag = abs(Z)
ang = math.degrees(cmath.phase(Z))
print(f"Z = {mag:.3f} ohm at {ang:.2f} deg")
print(f"R = {Z.real:.3f} ohm, X = {Z.imag:.3f} ohm")
print(f"Equivalent inductance at this w: {Z.imag / w * 1e3:.3f} mH")
# Predict the current for a new source at the same frequency
V2 = cmath.rect(24, math.radians(-60))
I2 = V2 / Z
print(f"I2 = {abs(I2):.3f} A at {math.degrees(cmath.phase(I2)):.2f} deg")The output is Z = 5.000 Ω at 45.00°, R = X = 3.536 Ω, an equivalent inductance of 3.536 mH, and I2 = 4.800 A at −105.00°. The new current is the magnitude 24 / 5 at the angle −60° − 45°. This prediction works because the circuit is linear and the frequency is unchanged.
Going back to the time domain
Once you have a phasor current, the time-domain answer follows from the rule you already know. For the example above, I2 = 4.8∠−105° A at ω = 1000 rad/s gives:
i2(t) = 4.8 cos(1000t − 105°) A
Always return to the time domain with the same reference function you used to form the phasor. Here that is cosine, and the frequency is the ω of the source.
Common errors
- Mixing peak and RMS values. If V is a peak phasor, I must be a peak phasor. The ratio is the same either way, but the magnitudes of V and I are not. Do not divide a peak voltage by an RMS current.
- Mixing sine and cosine references. Convert every sine to cosine first, using sin(x) = cos(x − 90°). Otherwise the angle difference is off by 90° and an inductor looks like a capacitor.
- Adding angles instead of subtracting. For Z = V/I, the angle is θv − θi. The sign matters, and reversing it flips lead and lag.
- Forgetting the sign convention. The formula Z = V/I assumes the passive sign convention: the current enters the terminal where the voltage reference is positive. If the current reference points the other way, insert a minus sign.
- Adding polar values directly. Convert to rectangular form for sums and differences, and use polar form for products and quotients.
- Reusing Z at another frequency. A Z that includes inductors or capacitors is valid only at the ω it was computed for.
Special cases
Two limits are worth knowing. A pure resistor has Z = R, a real number, so voltage and current are in phase. A short circuit has Z = 0, and an open circuit has Z → ∞. Dividing by a zero impedance fails, so for an ideal short, specify the current and solve for V = Z I instead.
The reciprocal of impedance is called admittance, Y = 1/Z. It is covered in its own chapter and is convenient for parallel circuits.
Exercise
A network has Z = 30 − j40 Ω at ω = 2000 rad/s. A source V = 100∠0° V is applied. Find the current phasor, say whether the network is inductive or capacitive, and give the equivalent series capacitance if the reactance comes from a capacitor.
Show answer
Convert Z to polar form: |Z| = √(30² + 40²) = 50 Ω and the angle is atan2(−40, 30) = −53.13°, so Z = 50∠−53.13° Ω. Then I = V / Z = (100∠0°) / (50∠−53.13°) = 2∠53.13° A. The reactance X = −40 Ω is negative, so the network is capacitive, and the current leads the voltage by 53.13°. For a capacitor, X = −1/(ωC), so C = 1/(ω · 40) = 1/(2000 · 40) = 12.5 µF.
Exercise
A network at ω = 500 rad/s has v(t) = 20 cos(500t + 60°) V and i(t) = 4 sin(500t + 60°) A. Find Z in polar and rectangular form, and the equivalent inductance.
Show answer
Convert the sine to cosine first: i(t) = 4 cos(500t + 60° − 90°) = 4 cos(500t − 30°) A. The phasors are V = 20∠60° V and I = 4∠−30° A. Then Z = (20/4)∠(60° − (−30°)) = 5∠90° Ω = j5 Ω. So R = 0 and X = 5 Ω, and the network is purely inductive. The equivalent inductance is L = X/ω = 5/500 = 10 mH.