Sub topic 2
Complex Numbers: Rectangular and Polar Form
This chapter assumes you know basic trigonometry (sine, cosine, phase angles) and basic algebra. It covers the complex-number arithmetic you need for phasors in later chapters. Euler's formula, which links the two forms, comes in the next chapter.
Why circuits need complex numbers
A phasor carries two pieces of information: a magnitude and a phase angle. A complex number holds both in one quantity. Once voltages and currents are complex numbers, adding, multiplying and dividing them replaces solving differential equations.
In electrical engineering the imaginary unit is written j, not i, because i is already the symbol for current. It is defined by j² = -1.
Rectangular form
A complex number in rectangular form is
z = x + jy
Here x is the real part and y is the imaginary part. Both are ordinary real numbers. You can plot z as a point on a plane. The horizontal axis is the real axis and the vertical axis is the imaginary axis.
Polar form
Polar form describes the same point by its distance from the origin and its angle from the positive real axis:
z = r∠θ
Here r is the magnitude and θ is the angle, also called the argument or phase. The two forms convert as follows.
| Direction | Formulas |
|---|---|
| Polar to rectangular | x = r cos θ, y = r sin θ |
| Rectangular to polar | r = √(x² + y²), θ = atan2(y, x) |
Choosing the right quadrant
The plain formula θ = arctan(y/x) only returns angles between -90° and 90°. It cannot tell (-3, 4) from (3, -4), because both give the same ratio. Check the signs of x and y to find the quadrant, or use the two-argument function atan2(y, x), which does this for you.
For example, z = -3 + j4 has r = 5. A calculator's arctan(4/(-3)) gives -53.13°, but the point is in the second quadrant. The correct angle is 180° - 53.13° = 126.87°.
Arithmetic in each form
Use the form that makes the operation easy.
- Addition and subtraction: use rectangular form. Add the real parts and add the imaginary parts separately.
- Multiplication: use polar form. Multiply the magnitudes and add the angles. (r₁∠θ₁)(r₂∠θ₂) = r₁r₂∠(θ₁ + θ₂).
- Division: use polar form. Divide the magnitudes and subtract the angles. (r₁∠θ₁)/(r₂∠θ₂) = (r₁/r₂)∠(θ₁ - θ₂).
Rectangular multiplication also works. It uses j² = -1: (a + jb)(c + jd) = (ac - bd) + j(ad + bc).
The complex conjugate of z = x + jy is z* = x - jy, which in polar form is r∠(-θ). Multiplying a number by its conjugate gives r², a real number.
Worked example in Python
Python writes the imaginary unit as 1j. The cmath module converts between forms.
import cmath
import math
z1 = complex(-3, 4)
z2 = cmath.rect(2, math.radians(30)) # 2 at 30 degrees
r, theta = cmath.polar(z1)
print(r, math.degrees(theta)) # 5.0 126.87...
print(z1 + z2) # add in rectangular form
prod = z1 * z2
print(abs(prod), math.degrees(cmath.phase(prod))) # 10.0 156.87...
quot = z1 / z2
print(abs(quot), math.degrees(cmath.phase(quot))) # 2.5 96.87...The product has magnitude 5 × 2 = 10 and angle 126.87° + 30° = 156.87°. The quotient has magnitude 5 / 2 = 2.5 and angle 126.87° - 30° = 96.87°. These match the rules above.
Exercise
Convert z = 6 - j8 to polar form, then multiply it by 2∠60° and give the result in polar form.
Show answer
The magnitude is √(36 + 64) = 10. The point is in the fourth quadrant, so the angle is atan2(-8, 6) = -53.13°. So z = 10∠-53.13°. Multiplying gives magnitude 10 × 2 = 20 and angle -53.13° + 60° = 6.87°. The result is 20∠6.87°.
Exercise
Add 5∠0° and 5∠90°. Give the answer in polar form.
Show answer
In rectangular form the numbers are 5 + j0 and 0 + j5. Their sum is 5 + j5. The magnitude is √50 ≈ 7.07 and the angle is 45°. The result is 7.07∠45°.