logoalt Hacker News

nneonneo • today at 3:38 PM • 1 reply • view on HN

This article misses one of the most useful and deep representations for complex numbers: polar coordinates. There’s some bits in there about adding angles and such when multiplying, but it turns out these are “obvious” in polar notation.

A complex number can be expressed in Cartesian coordinates as (x,y) or x+yi. It can be expressed as polar coordinates as (r,theta). What’s the corresponding complex notation? Surprisingly, it’s r*e^(i theta), where the angle is taken in radians. It might seem really weird to see an exponential there, but it turns out that the exponential behaves like a trig function when given an imaginary exponent - to be precise, e^(i theta) = cos theta + i sin theta.

Now multiplication becomes easy: multiplying two polar-notation complex numbers (r1,t1) x (r2,t2) gives r1r2 e^(i (t1+t2)) following the usual rules of exponential arithmetic, i.e. (r1r1, t1+t2).

The complex exponential looks like a very strange notation at first because we’re all used to grade school exponents, but you can think of it as a function that takes an angle and produces a point on the unit circle. Feed it a continuous input, and it traces out an arc or a circle. sin and cos are merely the one-dimensional projections of this function.

Frequency becomes simply e^(i ft) where f is the frequency in radians and t is time - representing a point racing around a circle at a set speed. Multiplying two signals with different (complex) frequencies produces a new signal with the sum of their frequencies. With this notation, complex signals are the simple ones to understand - real signals are the “more complex” ones, as every real signal consists of a complex signal added to its conjugate.


Replies

alterom • today at 3:50 PM

The "visual intro" misses a lot, and wastes half the space by introducing the complex numbers algebraically without a single visual because it's LLM slop.

A "visual intro" that doesn't even mention Mobius transformations[1] or Riemann surfaces [2] or any of the beautiful, colorful ways to visualize complex functions [3], or..

..well, it's just lazy LLM slop.

Is it better than the average high school introduction to the subject?

Sadly, yes. But it's such a low bar.

[1] https://www.youtube.com/watch?v=0z1fIsUNhO4

[2] https://www.youtube.com/watch?v=Ax5wbKsPBqA

[3] https://www.youtube.com/watch?v=NtoIXhUgqSk

➕ show 1 reply