Understanding Complex Numbers
A complex number combines a real component and an imaginary component. The standard form is z = a + ib, where a and b are real numbers and i is the imaginary unit satisfying i² = −1.
The real part is denoted Re(z) = a, and the imaginary part is Im(z) = b. A purely imaginary number has zero real part; for example, 3i has Re = 0 and Im = 3.
Complex numbers are essential in fields requiring oscillating or rotating quantities: AC electrical circuits use complex impedance, quantum mechanics relies on complex wavefunctions, and control theory employs complex poles and zeros to characterise system stability.
Magnitude and Phase Angle
Every complex number can be expressed in polar form using its magnitude (absolute value) and phase angle (argument). These two representations—rectangular and polar—are equivalent but useful in different contexts.
The magnitude represents the distance from the origin to the point in the complex plane:
|z| = √(a² + b²)
The phase angle (measured in radians) is found using the inverse tangent function:
φ = atan2(b, a)
The polar form is then written as:
z = |z| × e^(iφ)
a— Real part of the complex numberb— Imaginary part of the complex number|z|— Magnitude (absolute value) of zφ— Phase angle in radians, ranging from −π to π
Arithmetic Operations on Complex Numbers
Addition and Subtraction are performed component-wise. For z₁ = a + ib and z₂ = c + id:
- z₁ + z₂ = (a + c) + i(b + d)
- z₁ − z₂ = (a − c) + i(b − d)
Multiplication uses the distributive property, remembering that i² = −1:
- z₁ × z₂ = (ac − bd) + i(ad + bc)
Division requires multiplying numerator and denominator by the complex conjugate of the denominator. The conjugate of z₂ = c + id is c − id.
Powers and Logarithms are typically easier in polar form: raise the magnitude to the power and multiply the phase by the exponent, or apply logarithmic rules to magnitude and phase separately.
Common Pitfalls and Practical Tips
Avoid these frequent mistakes when working with complex numbers:
- Phase angle quadrant errors — The arctangent function only returns values between −π/2 and π/2. Use <code>atan2(b, a)</code> instead of <code>atan(b/a)</code> to correctly place the angle in the appropriate quadrant based on the signs of both <em>a</em> and <em>b</em>.
- Conjugate in division — When dividing complex numbers algebraically, always multiply both numerator and denominator by the conjugate of the denominator. Forgetting this step is the most common algebraic error and produces incorrect results.
- Rounding precision loss — Complex number calculations accumulate rounding errors, especially over multiple operations. Store intermediate results with more precision than your final answer requires, then round only at the end. Specify decimal places or significant figures consistently.
- Polar vs. rectangular trade-offs — Multiplication and division are simpler in polar form (multiply/divide magnitudes, add/subtract phases), but addition and subtraction require conversion back to rectangular form. Choose your representation based on the operation sequence.
Example: Natural Logarithm of a Complex Number
Finding the natural logarithm of a complex number exemplifies why polar form is powerful. For z = 5 + 7i:
- Calculate the magnitude: |z| = √(5² + 7²) = √74 ≈ 8.602
- Calculate the phase angle: φ = atan2(7, 5) ≈ 0.951 rad
- Apply the complex logarithm formula: ln(z) = ln|z| + iφ
- Substitute: ln(5 + 7i) = ln(8.602) + i(0.951) ≈ 2.152 + 0.951i
This method generalises to any complex number and avoids the algebraic complexity of taking logarithms in rectangular form.