Courses / Computer Science I
Algebra

Complex Numbers

Computer Science I 300 words Free to read

Extending the Number Line

Some equations, like x2=1x^2 = -1, have no real solution — no real number squares to a negative. Mathematicians extend the reals by introducing the imaginary unit ii, defined by i2=1i^2 = -1. A complex number then has the form z=a+biz = a + bi, with a real part aa and an imaginary part bb. This modest extension makes every polynomial equation solvable — the Fundamental Theorem of Algebra.

Arithmetic works by treating ii as a symbol with i2=1i^2 = -1:

Geometrically, a complex number is a point in the plane — real part on the horizontal axis, imaginary part on the vertical. Its modulus z=a2+b2|z| = \sqrt{a^2 + b^2} is its distance from the origin, and its argument is the angle it makes. In this view, multiplying complex numbers adds their angles and multiplies their moduli — so multiplication by a unit complex number is a rotation. This deep link between complex arithmetic and rotation powers signal processing (the Fourier transform), computer graphics, and quantum computing.

Common pitfall: mishandling i2i^2, or adding complex numbers as if the parts mix. Remember i2=1i^2 = -1 (not +1+1), so a product like (bi)(di)=bdi2=bd(bi)(di) = bd\,i^2 = -bd contributes to the real part. And addition keeps the parts separate — real adds to real, imaginary to imaginary; you never add a real part to an imaginary part.

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
Start Computer Science I free

Algebra