Complex numbers for engineers

Calculate · 12 min

A sine wave in a circuit needs two numbers: how big it is, and how far it's shifted. A capacitor's current is a size and a quarter-cycle lead. Ordinary numbers carry only one.

A complex number carries two. Draw it as an arrow on a flat plane: its real part is how far along, its imaginary part how far up. Engineers write the "up" direction as j (mathematicians use i, but in electronics i is already the current).

Drag the arrow:

Press × j a few times: multiplying by j turns the arrow a quarter turn anticlockwise. Twice, and it points the opposite way.

So what is j×j, written j2?

  • +1
  • −1
  • 0
  • 2j

Rectangular to polar

The length is Pythagoras, the angle is the arctangent:

|a+jb|=a2+b2θ=arctan⁡ba

(For an arrow pointing left, a<0, add 180° to the arctangent: a calculator's atan2 does this for you.)

What's the size of Z = 20 + j21 Ω?

Answer in Ω.

And the angle of Z = 20 + j21 Ω, from the real axis?

Answer in °.

Polar to rectangular

Going back, the real part is the shadow on the real axis, the imaginary part the height:

a=Mcos⁡θb=Msin⁡θ

A voltage is 50 V ∠ 30°. What's its real part?

Answer in V.

A current is 5 A ∠ 30°. What's its imaginary part?

Answer in A.

Adding: use rectangular

Add the real parts and the imaginary parts separately, like moving along then up:

(a+jb)+(c+jd)=(a+c)+j(b+d)

Two impedances in series add. What's the size of (20 + j50) + (20 − j30) Ω?

Answer in Ω.

Multiplying: use polar

Multiply the sizes and add the angles:

M1∠θ1×M2∠θ2=M1M2∠(θ1+θ2)

(In rectangular it works too, with j2=−1, but takes longer.)

A current of 0.5 A ∠ 0° flows through an impedance of 100 Ω ∠ 90°. The voltage is V=IZ. What's its size?

Answer in V.

And its angle: a current of 0.5 A ∠ 0° through 100 Ω ∠ 90°?

Answer in °.

Dividing: polar again

Divide the sizes and subtract the angles:

M1∠θ1M2∠θ2=M1M2∠(θ1−θ2)

A 10 V ∠ 0° source drives Z = 3 + j4 Ω. What's the size of the current, I=V/Z?

Answer in mA.

And the current's angle: 10 V ∠ 0° across 3 + j4 Ω?

Answer in °.

Complex numbers for circuits:

Rectangular a+jbPolar M∠θ
convertM=a2+b2, θ=arctan⁡(b/a)a=Mcos⁡θ, b=Msin⁡θ
add, subtracteasy: part by partconvert first
multiply, dividepossible, with j2=−1easy: sizes multiply or divide, angles add or subtract

And j is a quarter turn: multiplying by j adds 90°, dividing by it takes 90° off.

On a real bench most scientific calculators do complex numbers directly, often with a key that converts between the two forms; check your calculator's manual for "complex" or "polar". Spreadsheets and Python handle them too: in Python, 3+4j is a complex number.