Electrical Engineering › Section I · Sinusoidal waveforms and phasors › Topic I.7

Complex numbers in rectangular and polar form

Every sinusoid in an ac circuit carries two pieces of information, a size and a phase angle. Complex numbers carry exactly two pieces of information too, and their arithmetic does the work of adding and scaling sinusoids. This topic is the toolkit; the next one, "Phasors", puts it to use.

Why ac needs complex numbers

Two sinusoids of the same frequency can be added point by point on a graph, but that is slow and imprecise. Each sinusoid is fully described by two numbers, its magnitude and its phase angle, and the reactances of the topic "Response of R, L, and C to sinusoids" add a 90° shift that ordinary arithmetic cannot represent. A complex number also holds two numbers, and multiplying by one can rotate an angle as well as scale a size. With complex arithmetic, adding sinusoids, finding impedances and solving ac circuits all become routine algebra.

The imaginary unit j

The imaginary unit is defined by \(j^2 = -1\), so \(j = \sqrt{-1}\). Mathematicians write it \(i\), but in electrical engineering \(i\) already means current, so the course always writes \(j\). Two consequences are used constantly: \(j^2 = -1\) and \(1/j = -j\), because \(j \times (-j) = -j^2 = 1\). Complex numbers live on the complex plane: the horizontal axis is the real axis, and the vertical axis is the imaginary axis, often marked \(j\). Each complex number is a point on this plane, or equally an arrow from the origin to that point.

Rectangular form

In rectangular form a complex number is written by its two coordinates:

\mathbf{C} = X + jY

Here \(X\) is the real part, the horizontal distance, and \(Y\) is the imaginary part, the vertical distance. So \(3 + j4\) sits 3 units right and 4 units up; \(-6 + j8\) sits 6 left and 8 up, in the second quadrant; and \(0 - j5\) lies on the negative imaginary axis. Rectangular form is the natural form for adding and subtracting. When you write a number, say which form it is in, so that a magnitude and angle are never mistaken for real and imaginary parts.

Polar form

In polar form a complex number is written by its length and direction:

\mathbf{C} = Z\angle\theta

The magnitude \(Z\) is the arrow's length, always positive, and \(\theta\) is its angle measured from the positive real axis. Anticlockwise angles are positive and clockwise ones negative, and this course gives polar angles in degrees, between −180° and +180°. So \(10\angle 126.9^\circ\) points up and to the left. A negative sign reverses the arrow: \(-Z\angle\theta = Z\angle(\theta \pm 180^\circ)\). Polar form also has an exponential version, \(Ze^{j\theta}\), from Euler's identity \(e^{j\theta} = \cos\theta + j\sin\theta\).

Converting between forms

The two forms are linked by a right triangle. From rectangular to polar:

Z = \sqrt{X^2 + Y^2}, \quad \theta = \tan^{-1}\frac{Y}{X}

From polar to rectangular:

X = Z\cos\theta, \quad Y = Z\sin\theta

The inverse tangent needs care. A calculator returns an angle between −90° and +90°, which is correct only when the real part \(X\) is positive. When \(X\) is negative the point is in the second or third quadrant, and you must add or subtract 180°. Always sketch the point first so you know which quadrant the answer belongs in.

Worked example: conversions

1. Rectangular to polar, \(3 + j4\): \(Z = \sqrt{9 + 16} = 5\) and \(\theta = \tan^{-1}(4/3) = 53.13^\circ\), so \(5\angle 53.13^\circ\). 2. Rectangular to polar, \(-6 + j8\): \(Z = \sqrt{36 + 64} = 10\). The calculator gives \(\tan^{-1}(8/-6) = -53.13^\circ\), but the point is in the second quadrant, so add 180°: \(10\angle 126.87^\circ\). 3. Polar to rectangular, \(12\angle -150^\circ\): \(X = 12\cos(-150^\circ) = -10.39\) and \(Y = 12\sin(-150^\circ) = -6.00\), so \(-10.39 - j6.00\). 4. Check: the third-quadrant angle gave a negative real and imaginary part, as it should.

Adding, subtracting, conjugates and reciprocals

To add or subtract, use rectangular form and combine the real parts and the imaginary parts separately: \((2 + j3) + (4 - j7) = 6 - j4\). Polar numbers must be converted to rectangular first; magnitudes cannot be added unless the angles are equal. The conjugate of \(X + jY\) is \(X - jY\), the mirror image in the real axis; in polar form only the sign of the angle changes. The reciprocal of \(Z\angle\theta\) is \((1/Z)\angle -\theta\). In rectangular form, multiply top and bottom by the conjugate:

\frac{1}{X + jY} = \frac{X - jY}{X^2 + Y^2}

For example, \(1/(8 + j6) = 0.08 - j0.06\).

Multiplying and dividing

Multiplication and division are easiest in polar form:

(Z_1\angle\theta_1)(Z_2\angle\theta_2) = Z_1Z_2\angle(\theta_1 + \theta_2)
\frac{Z_1\angle\theta_1}{Z_2\angle\theta_2} = \frac{Z_1}{Z_2}\angle(\theta_1 - \theta_2)

Multiply the magnitudes and add the angles; divide the magnitudes and subtract the angles. You can also multiply in rectangular form by expanding the brackets and replacing \(j^2\) with \(-1\). Because \(j = 1\angle 90^\circ\), multiplying by \(j\) rotates a number 90° anticlockwise without changing its size, and dividing by \(j\), multiplying by \(-j\), rotates it 90° clockwise. That rotation is the inductor's and the capacitor's 90° shift in algebraic form.

Worked example: all four operations

Let \(\mathbf{A} = 8 + j6\) and \(\mathbf{B} = 5\angle -30^\circ\). 1. Convert each to the other form: \(\mathbf{A} = 10\angle 36.87^\circ\) and \(\mathbf{B} = 4.330 - j2.500\). 2. Sum: \(\mathbf{A} + \mathbf{B} = 12.33 + j3.50\), which is \(12.82\angle 15.85^\circ\). 3. Difference: \(\mathbf{A} - \mathbf{B} = 3.67 + j8.50\). 4. Product: multiply \(10 \times 5\) and add \(36.87^\circ - 30^\circ\), so \(\mathbf{AB} = 50\angle 6.87^\circ\). 5. Quotient: \(\mathbf{A}/\mathbf{B} = 2\angle 66.87^\circ\). 6. Check the product in rectangular form:

(8 + j6)(4.330 - j2.500) = 49.64 + j5.98

and \(50\angle 6.87^\circ\) converts to the same.

Calculators and software

Most scientific calculators convert between forms and do complex arithmetic directly; set them to degree mode for polar angles in this course. In software, use a two-argument inverse tangent, often called atan2, which puts the angle in the correct quadrant automatically. Python has complex numbers built in, also written with j, but its angles are in radians. In Python 3, after import cmath, math, the call cmath.polar(-6+8j) returns (10.0, 2.214297435588181), and math.degrees(2.214297435588181) gives about 126.87, matching the worked example. Always check one result by hand, because a wrong angle mode gives answers that look perfectly reasonable.

Common mistakes to avoid

First, trusting the calculator's inverse tangent when the real part is negative; \(-6 + j8\) is at 126.87°, not −53.13°. Second, adding polar magnitudes directly: \(5\angle 0^\circ + 5\angle 90^\circ\) is \(7.07\angle 45^\circ\), not 10. Third, forgetting that \(j^2 = -1\) when multiplying in rectangular form. Fourth, subtracting the angles the wrong way round in division. Fifth, mixing radians and degrees between a program and a calculator.

Key takeaways

The imaginary unit is j, with j² = −1 and 1/j = −j. Rectangular form X + jY gives the real and imaginary parts; polar form Z∠θ gives magnitude and angle, in degrees from the positive real axis. Convert with Z = √(X² + Y²), θ = tan⁻¹(Y/X) corrected for the quadrant, X = Z cos θ and Y = Z sin θ. Add and subtract in rectangular form; multiply and divide in polar form by multiplying or dividing magnitudes and adding or subtracting angles. The conjugate flips the sign of the imaginary part or angle. Multiplying by j rotates 90° anticlockwise.

Flashcards

Flashcard

j

The imaginary unit: j² = −1

Engineers avoid i, which means current.

Test your understanding

Question 1 of 5

What is −4 − j3 in polar form?

Question 2 of 5

What is 10∠−60° in rectangular form?

Question 3 of 5

What is (4∠30°)(3∠−75°)?

Question 4 of 5

What is (20∠50°) ÷ (4∠−10°)?

Question 5 of 5

What is (3 + j4) + 5∠−90°?

← Previous topicNext topic →