logoalt Hacker News

prewett • yesterday at 8:01 PM • 5 replies • view on HN

This is a strange explanation, compared to the standard explanation that a Fourier transform converts time-domain to frequency domain (that is, the x-axis goes from time to freq), and it comes from the observation that a (possibly infinite) sum of sin/cosines of different frequencies can make any curve. A discrete Fourier transform would change the integral into a summation.

I guess you could consider the sines as basis functions and use matrices, but I suspect that a series of sines varying only by frequency and amplitude aren’t orthogonal basis functions, although linear algebra isn’t my strong suite.


Replies

2muchcoffeeman • yesterday at 8:20 PM

A lot of the explanations I’ve seen on HN of Fourier transforms are strange. The standard explanation is by far the most intuitive and simple with the right examples. Though maybe you would need more math to be able to manipulate things. But certainly not to understand what’s happening.

➕ show 1 reply
geokon • yesterday at 8:33 PM

The problem is that "frequency domain" is a vague conecept - and in some respects a bit deceptive. I'm not an expect, but I think it's worth for instance pointing out that you have a fixed set of orthogonal frequencies, meanwhile phases are smooth and continuous. You could argue it's like time steps are fixed and amplitudes are continuous, but it just creates all sorts of strange knock-on effects. When you start thinking "what happens if I have an input frequency that is not one in the orthogonal set?" the answers are not obvious (something something bessel functions) and it's not obvious how to deal with them. You can think of plenty of other "issues" like amplitude/frequency modulation that don't have intuitive explanation in a "frequency domain"

➕ show 1 reply
fasterik • yesterday at 8:46 PM

The two views are equivalent. We can start with linear algebra and see sines and cosines as arising naturally from matrices, or we can start with calculus and see how matrices naturally arise from local linear approximations. I thought it would be interesting to see how we get the Fourier transform without calculus, and how to motivate it from physical principles. Plus, linear algebra is simpler than calculus, and in my opinion more fundamental. But judging from the comments, I probably should made more of an effort to relate this to the standard explanation.

VygmraMGVl • yesterday at 9:03 PM

Iirc you can't use sines as a basis because sin(0)=0. You can use cosines and a basis, see the Discrete Cosine Transform as an example.

You also don't need to vary amplitude for the basis, as linear combinations of the basis handle any changes in amplitude you need. E.g. if your basis is x and y, your basis spans ax + by for all real a,b.

duped • yesterday at 10:47 PM

My favorite FT joke is "it's just a change of basis" which is as alien a term to non mathematicians as "infinite length orthogonal transform" or "eigenvalues of a shift matrix."

There's precisely one confusing part of teaching the FT integral to non-practitioners and its "what the fuck is e and j doing there"

➕ show 1 reply