What is it?
Numbers with . Geometrically they are points of the plane, and multiplying by is a rotation — which is why they are the natural language of oscillations, waves and signals.
Why does it exist?
Historically, to solve cubic equations: the formula for real roots passed through square roots of negative numbers. Today the reason is different: every polynomial of degree has exactly complex roots (fundamental theorem of algebra), and rotations and oscillations become simple multiplications.
Intuition
Write : a length and an angle . Multiplying two complex numbers multiplies the lengths and adds the angles. So is a point spinning around the unit circle at angular speed ; its shadow on the real axis is . A signal is a sum of such spinning arrows, and that is the whole idea of Fourier analysis.
Formulas
- Euler's formula
- modulus and conjugate
- roots of unity (the heart of the FFT)
Where it shows up in computing
The FFT is built on the symmetries of the -th roots of unity .
Qubit amplitudes are complex numbers; interference is addition of complex phases.
Sinusoids are handled as phasors : amplitude and phase in one number.
A wave function takes complex values; only is a probability.
A linear system is stable when the poles of its transfer function lie in the left half of the complex plane.
Where is it used?
Computing topics reachable from here, through the chain of ideas that leads to them:
⚛ Physics and simulation
- Second-order linear equations (oscillations)→Classical mechanics★★★★★
- Fourier series→Heat equation and diffusion★★★★★
- Second-order linear equations (oscillations)→Classical mechanics→Physics engines★★★★★
- Second-order linear equations (oscillations)→Classical mechanics→Physics engines→N-body gravitational simulation★★★★★
- Second-order linear equations (oscillations)→Classical mechanics→Physics engines→Fluid dynamics and CFD★★★★★
- Second-order linear equations (oscillations)→Classical mechanics→Physics engines→Fluid dynamics and CFD→Weather and climate modelling★★★★★
ℒ AI and machine learning
- Second-order linear equations (oscillations)→Momentum and Adam★★★★★
- Second-order linear equations (oscillations)→Momentum and Adam→Deep learning★★★★★
- Second-order linear equations (oscillations)→Momentum and Adam→Deep learning→Convolutional networks (CNNs)★★★★★
- Second-order linear equations (oscillations)→Momentum and Adam→Deep learning→Generative models★★★★★
- Second-order linear equations (oscillations)→Momentum and Adam→Deep learning→Neural ODEs★★★★★
What depends on it
Exercises
Compute using the polar form.
Solution
, so .
Where in the plane are the solutions of ? What shape do they form?
Solution
At , : the vertices of a regular hexagon inscribed in the unit circle.