Courses / Computer Science I
Algebra

Complex Numbers

Computer Science I 260 words Free to read

The Imaginary Unit

Some equations, like x2=1x^2 = -1, have no real solution. Mathematicians extend the reals by introducing the imaginary unit ii, defined by i2=1i^2 = -1. A complex number takes the form z=a+biz = a + bi, with real part aa and imaginary part bb.

Arithmetic treats ii as a symbol alongside real numbers:

OperationRule
Addition(a+bi)+(c+di)=(a+c)+(b+d)i(a + bi) + (c + di) = (a + c) + (b + d)i
Multiplication(a+bi)(c+di)=(acbd)+(ad+bc)i(a + bi)(c + di) = (ac - bd) + (ad + bc)i
Conjugatea+bi=abi\overline{a + bi} = a - bi (yields a2+b2a^2 + b^2)

Common pitfall: Always remember i2=1i^2 = -1, not +1+1. A product like (bi)(di)=bd(bi)(di) = -bd contributes to the real part, whereas addition strictly keeps real and imaginary parts separate.

Four cross terms sorted into two piles, and the one that changes pile

Geometry of Complex Numbers

Geometrically, a complex number is a point in the plane with its real part on the horizontal axis and imaginary part on the vertical.

Key geometric terms:

TermFormula / Meaning
Modulusz=a2+b2|z| = \sqrt{a^2 + b^2}, distance from origin
ArgumentThe angle the vector makes with the axis

Multiplying complex numbers adds their arguments and multiplies their moduli. Thus, multiplying by a unit complex number is a rotation.

This deep link powers signal processing, computer graphics, and quantum computing. It ensures every polynomial equation is solvable, known as the Fundamental Theorem of Algebra.

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

10practice questions
2interactive scenes

Algebra