Search

Search papers and lessons

Complex Numbers

Level 1 · 9 min read

A complex number is a pair of real numbers written as a + bi, where i squares to -1; it lets you add, multiply and rotate points on a plane with one rule.

On this page

TL;DR

A complex number has two parts: a real part and an imaginary part, written a+bia + bi. The letter ii is a new number defined by one rule, i2=−1i^2 = -1. With that rule you can add, subtract and multiply these pairs like ordinary algebra, and multiplying by a complex number of size 1 turns a point around the origin.

Complex numbers are not a mystical extra. They are a compact way to store a point on a flat plane, and the multiplication rule does the geometry for you.

Where you'll see it: in the signal processing behind the Fourier transform, in the phasor analysis of alternating-current circuits, and in the wave functions of quantum mechanics.

Intuition

The square root that did not fit

Ask for a number whose square is 2 and you get 2\sqrt{2}, which sits on the number line. Ask for a number whose square is −1-1 and nothing on the number line works. A positive number squared is positive, and a negative number squared is also positive.

For centuries mathematicians treated −1\sqrt{-1} as a useful trick that cancelled out at the end. Solving some cubic equations forced the issue: intermediate steps needed square roots of negative numbers, even when the final answers were ordinary real numbers. So the trick was kept, and it turned out to be a real tool. The name "imaginary" stuck, and it is a poor name, because these numbers are as concrete as any other.

A point on a plane

A real number is a point on a line. A complex number needs two coordinates, so it is a point on a plane. Write 3+4i3 + 4i and read it as: go 3 units along the horizontal axis (the real axis), then 4 units up the vertical axis (the imaginary axis). This plane is called the Argand diagram, or the complex plane.

This is exactly how a Vector (3,4)(3, 4) looks. The difference is the multiplication rule. Two vectors have no natural product that gives another vector in the same plane. Two complex numbers do, and the product has a clean geometric meaning: it rotates and scales.

flowchart LR
  N[Natural numbers] --> Z[Integers]
  Z --> Q[Rational numbers]
  Q --> R[Real numbers]
  R --> C[Complex numbers]

Each set in that chain is a larger world that contains the last one. The complex numbers are the last stop: every polynomial equation with complex coefficients has a complex solution, so you never need a bigger set for solving equations.

The math

Definition

Definition: Complex number

A complex number is an expression z=a+biz = a + bi where aa and bb are real numbers and ii is a symbol with i2=−1i^2 = -1. The number aa is the real part, written Re(z)\mathrm{Re}(z), and bb is the imaginary part, written Im(z)\mathrm{Im}(z). The set of all such numbers is written C\mathbb{C}.

Two complex numbers are equal exactly when their real parts are equal and their imaginary parts are equal. This is why a pair is a good description: 3+4i3 + 4i is the pair (3,4)(3, 4), and nothing more.

Arithmetic

Treat ii like a variable and collect terms, then replace i2i^2 with −1-1:

(a+bi)+(c+di)=(a+c)+(b+d)i(a + bi) + (c + di) = (a + c) + (b + d)i (a+bi)(c+di)=(ac−bd)+(ad+bc)i(a + bi)(c + di) = (ac - bd) + (ad + bc)i

The second line comes from expanding the product term by term: ac+adi+bci+bdi2ac + adi + bci + bdi^2, and then using i2=−1i^2 = -1 on the last term.

Modulus and conjugate

The modulus of z=a+biz = a + bi is its distance from the origin, the length of the arrow:

∣z∣=a2+b2|z| = \sqrt{a^2 + b^2}

The conjugate flips the sign of the imaginary part: zˉ=a−bi\bar{z} = a - bi. Multiplying a number by its conjugate always gives a real number:

zzˉ=(a+bi)(a−bi)=a2−(bi)2=a2+b2=∣z∣2z \bar{z} = (a + bi)(a - bi) = a^2 - (bi)^2 = a^2 + b^2 = |z|^2

This is how you divide complex numbers. Multiply the top and bottom by the conjugate of the bottom, and the bottom becomes real.

Multiplication rotates

Let ww be a complex number with ∣w∣=1|w| = 1. Multiplying zz by ww leaves the length of zz unchanged and rotates it by the angle of ww. The simplest case is w=iw = i. Then i⋅zi \cdot z is zz turned a quarter turn counter-clockwise, because multiplying by ii twice gives −1-1, which is a half turn. Each factor of ii is one quarter turn.

0123456−1−0.500.51angle θ (radians)part of e^{iθ}
  • Re(e^{ix}) = cos x
  • Im(e^{ix}) = sin x
The real part (cos θ) and imaginary part (sin θ) of the unit-length number e^{iθ} as θ goes from 0 to 2π. Together they trace a circle of radius 1 in the complex plane. The marked points are (0, cos 0 = 1) and (π/2, sin π/2 = 1).

The plot shows the real and imaginary parts of the number eiθe^{i\theta} for each angle θ\theta, which is the unit-length rotation. You will meet that exponential in Euler's formula. For now the picture is enough: a unit complex number is a direction.

Worked examples

Example
Adding and multiplying

Let z=2+3iz = 2 + 3i and w=1−5iw = 1 - 5i.

  1. Sum: z+w=(2+1)+(3−5)i=3−2iz + w = (2 + 1) + (3 - 5)i = 3 - 2i.
  2. Product, expanding: zw=2⋅1+2⋅(−5i)+3i⋅1+3i⋅(−5i)zw = 2 \cdot 1 + 2 \cdot (-5i) + 3i \cdot 1 + 3i \cdot (-5i).
  3. Simplify each term: 2−10i+3i−15i22 - 10i + 3i - 15i^2.
  4. Replace i2i^2 with −1-1: 2−10i+3i+15=17−7i2 - 10i + 3i + 15 = 17 - 7i.

Interpretation: the real and imaginary parts of the product are not the products of the parts. You have to expand the way you would for two binomials, and the i2i^2 term is what flips a sign and moves a term into the real part.

Example
Modulus and division

Let z=3+4iz = 3 + 4i.

  1. Modulus: ∣z∣=32+42=9+16=25=5|z| = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5.
  2. Conjugate: zˉ=3−4i\bar{z} = 3 - 4i, and zzˉ=9+16=25=∣z∣2z \bar{z} = 9 + 16 = 25 = |z|^2, as expected.
  3. Divide 11 by zz: multiply top and bottom by zˉ\bar{z}, so 1z=3−4i25=0.12−0.16i\dfrac{1}{z} = \dfrac{3 - 4i}{25} = 0.12 - 0.16i.
  4. Check: (3+4i)(0.12−0.16i)=0.36−0.48i+0.48i−0.64i2=0.36+0.64=1(3 + 4i)(0.12 - 0.16i) = 0.36 - 0.48i + 0.48i - 0.64i^2 = 0.36 + 0.64 = 1.

Interpretation: zz is 5 units from the origin, so its reciprocal is 1/51/5 as far from the origin. The angle flips sign, which is why 1/z1/z points along the conjugate direction.

Example
Rotating a point by 90 degrees

Take the point 1+2i1 + 2i, which is the point (1,2)(1, 2) on the plane. Multiply by ii:

  1. i(1+2i)=i+2i2i(1 + 2i) = i + 2i^2.
  2. Replace i2i^2 with −1-1: i−2=−2+ii - 2 = -2 + i.
  3. Read the new point: (−2,1)(-2, 1).

Check the picture. The original point is up and to the right. A quarter turn counter-clockwise moves the point to up and to the left, and it keeps the same distance from the origin: 12+22=5\sqrt{1^2 + 2^2} = \sqrt{5} and (−2)2+12=5\sqrt{(-2)^2 + 1^2} = \sqrt{5} agree.

Tradeoffs and failure modes

Complex numbers are the right tool when a problem has two coupled quantities that rotate or oscillate together. They are the wrong tool when the two quantities really are independent. Some common traps:

SituationWhat goes wrongBetter choice
Storing two independent measurementsMultiplying them as if they were rotations gives nonsenseUse a plain two-element Vector
Taking ab=ab\sqrt{ab} = \sqrt{a}\sqrt{b} with negative aa, bbThe rule fails for negative inputs; −1−1=−1\sqrt{-1}\sqrt{-1} = -1 but (−1)(−1)=1\sqrt{(-1)(-1)} = 1Work with ii directly
Comparing sizes, as in "2+i2 + i is bigger than 11"Complex numbers have no ordering that respects the arithmeticCompare moduli ∣z∣\lvert z\rvert instead
Ignoring the conjugate in a formula for a real quantityYou get a complex answer where a real one is expectedTake the real part, or multiply by the conjugate

A practical rule: if a formula is supposed to give a real answer and you get an imaginary part, the imaginary part is usually a sign error or a missing conjugate, and the bug is worth hunting down before you use the result.

History

Gerolamo Cardano's 1545 book Ars Magna solved cubic equations and had to handle square roots of negative numbers along the way. Cardano himself found these numbers troubling. Rafael Bombelli, in the 1570s, gave explicit rules for adding and multiplying them and showed that they produced correct real answers. That was the first real working system.

René Descartes called them "imaginary" in 1637, and the name was meant as a criticism. The geometric picture came later. Caspar Wessel, Jean-Robert Argand and Carl Friedrich Gauss each described the plane representation around 1797 to 1831, and Gauss popularised the term "complex number". Leonhard Euler used the letter ii for −1\sqrt{-1} in the 18th century, and that notation is the one we still use.

The picture caught on because it made the numbers useful for physics. Once a rotation or an oscillation could be written as multiplication by a complex number, whole fields of engineering and physics could use one rule for two quantities at once.

Check yourself

QuestionWhat is i3i^3?Show answer

i3=i2⋅i=(−1)⋅i=−ii^3 = i^2 \cdot i = (-1) \cdot i = -i. Each power of ii cycles through ii, −1-1, −i-i, 11, so i4=1i^4 = 1 and the pattern repeats every four powers.

QuestionCompute (1+i)(1−i)(1 + i)(1 - i).Show answer

Expand: 1−i+i−i2=1−i2=1−(−1)=21 - i + i - i^2 = 1 - i^2 = 1 - (-1) = 2. The answer is real because (1+i)(1 + i) and (1−i)(1 - i) are conjugates, and the product of a number and its conjugate is always ∣z∣2|z|^2, which here is 12+12=21^2 + 1^2 = 2.

QuestionWhat is the modulus of 5−12i5 - 12i?Show answer

∣5−12i∣=52+(−12)2=25+144=169=13|5 - 12i| = \sqrt{5^2 + (-12)^2} = \sqrt{25 + 144} = \sqrt{169} = 13. The sign of the imaginary part does not change the length, which is why the modulus uses b2b^2.

QuestionWhy does multiplying by ii twice give a half turn, and what does that tell you about the rule i2=−1i^2 = -1?Show answer

Multiplying by ii once rotates a point by a quarter turn. Doing it twice is two quarter turns, which is a half turn, and a half turn takes a point to its opposite, z↦−zz \mapsto -z. So i2=−1i^2 = -1 is not an arbitrary definition: it is the statement that two quarter turns equal one half turn. The rule is the geometry written as algebra.

QuestionA circuit has impedance z=3+4iz = 3 + 4i ohms. A student says the magnitude of the impedance is 77 ohms. Is that right?Show answer

No. The magnitude is ∣z∣=32+42=5|z| = \sqrt{3^2 + 4^2} = 5 ohms. Adding the parts, 3+4=73 + 4 = 7, is not the same as taking the length of the vector (3,4)(3, 4), which is the Pythagorean distance. The student mixed up the sum of the parts with the length of the arrow.

Sources