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.
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.
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"
> Everything we’ve covered so far has been linear algebra, which is the theory of finite-dimensional vector spaces. The generalization of this theory to infinite dimensions is known as functional analysis.
I've seen this a lot of times and I don't like it. Linear algebra means you just study vector spaces (over arbitrary fields). Functional analysis means you study Banach or Hilbert spaces and generalizations thereof. In both cases the spaces can be finite or infinite dimensional.
I never found dspguide helpful when i was a kid, I found it somehow too colloquial and imprecise. I think the beauty of textbooks is that everyone can find their right "niche", so let me make a plug for Oppenheim and Willksy's now classic, "Signals and Systems"
I loved this book so much I spent a lot of my career doing signal processing, and I love that this is a calc-first (no linear algebra) book. It also is precise but not pedantic with notation. By that I mean there's no analysis or measure theory (it is the text for MIT's sophomore-year 6.003 course, after all) but also that the authors spent a lot of time thinking about proper, pedagogically-precise notation, and are incredibly consistent with it.
I'm so grateful for this book, and signal processing was the first formal applied mathematical topic I ever really "mastered" (and even would go on to teach sometimes at UChicago when I was CS faculty). So if the linear algebra puts you off, or if you like a slower introduction, or if you want something really fun to get into over the holidays, I really recommend this book!
But maybe others can reply with their favorite signal processing books.
Thanks for the feedback. The article is about where the Fourier transform comes from, and I guess it's subjective what counts as an answer to that. Personally, I don't find "computing how similar to an oscillation a given function is" to be a satisfying answer, although it is certainly a part of it and I probably could have done a better job emphasizing it.
Well, the central insight is about linearity + translation invariance, and that more generally given some linear system that's invariant under some group G, it is a decomposition of some representation (e.g. the regular representation, which is tied to convolution) of G into irreducible representations of G. That idea ties together various "Fourier-like" transforms like Fourier series, DTFT, DFT, Mellin transform, and wavelet transforms.
If you want to know "what it is," then yeah, waves. If you want to know "why it is" and why it keeps appearing, then there's more of a story to tell about symmetry.
As a layman, I find the explanation that functions can be expressed as a sum of sine waves to be quite clear, even if I don't fully understand the details of how the transform is calculated.
Isn't that the central insight behind the Fourier Transform? Once that is accepted, the tricky part is understanding how to transform functions back and forth.
What you posted was, in fact, mean. Disclaimers of meanness don't negate that—in practice they facilitate it.
Your comment would have been just fine without that first sentence, and if you had expanded on your (quite interesting) second sentence it would have been even better.
Like most concepts in math, rigorous explanations are terrible. Unless one is already comfortable with the prerequisites.
Here: Linear algebra (vectors, matrices, basis, change of basis, inverses). Eigenvectors/eigenvalues and diagonalization. Polynomials and roots (Fundamental Theorem of Algebra). Complex numbers (polar form, conjugation, Euler's formula, roots of unity), and some basic calculus/integrals.
> Unless one is already comfortable with the prerequisites.
> Here: Linear algebra (vectors, matrices, basis, change of basis, inverses). Eigenvectors/eigenvalues and diagonalization. Polynomials and roots (Fundamental Theorem of Algebra). Complex numbers (polar form, conjugation, Euler's formula, roots of unity), and some basic calculus/integrals.
This is all taught (depending on the curriculum) in the 1st or 2nd semester when one studies basically any arbitrary STEM subject at a university. So, this all can very easily be assumed.
Yes, and those are prerequisites someone would have before they first encountered the Fourier transform in, say, a differential equations class. This article is probably not as approachable for someone who hasn't seen those concepts before, though I did try to provide brief explanations of the key ideas so that interested readers would know what to Google.
I think you did, and nicely, mention all the necessary concepts.
My comment was rather arguing that any math explanation, or book even, can be deemed poorly written. The problem is what is reader assumed to be comfortable with. The problem isn't on you.
If you take the FFT of two different signals, then yes you end up with two waveforms that "line up" (being in the frequency domain) and can be compared to see how well they match, and thus how "similar" the frequencies in the two signals were. But FFT itself has nothing to do with comparing two wave forms. All FFT is doing is determining what frequencies are in a given single signal. Whether you compare that to the FFT (frequency domain) of some other signal is totally separate from FFT itself.
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.
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.
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"
> Everything we’ve covered so far has been linear algebra, which is the theory of finite-dimensional vector spaces. The generalization of this theory to infinite dimensions is known as functional analysis.
I've seen this a lot of times and I don't like it. Linear algebra means you just study vector spaces (over arbitrary fields). Functional analysis means you study Banach or Hilbert spaces and generalizations thereof. In both cases the spaces can be finite or infinite dimensional.
The best resource for understanding Fourier transforms is https://www.dspguide.com, a free textbook that is now >20 years old.
I never found dspguide helpful when i was a kid, I found it somehow too colloquial and imprecise. I think the beauty of textbooks is that everyone can find their right "niche", so let me make a plug for Oppenheim and Willksy's now classic, "Signals and Systems"
I loved this book so much I spent a lot of my career doing signal processing, and I love that this is a calc-first (no linear algebra) book. It also is precise but not pedantic with notation. By that I mean there's no analysis or measure theory (it is the text for MIT's sophomore-year 6.003 course, after all) but also that the authors spent a lot of time thinking about proper, pedagogically-precise notation, and are incredibly consistent with it.
I'm so grateful for this book, and signal processing was the first formal applied mathematical topic I ever really "mastered" (and even would go on to teach sometimes at UChicago when I was CS faculty). So if the linear algebra puts you off, or if you like a slower introduction, or if you want something really fun to get into over the holidays, I really recommend this book!
But maybe others can reply with their favorite signal processing books.
I do not want to be mean, but this is one of the worst explanations of the Fourier transform I have ever seen.
The central insight is that what the Fourier transform computes how similar to a oscillation a given function is.
Thanks for the feedback. The article is about where the Fourier transform comes from, and I guess it's subjective what counts as an answer to that. Personally, I don't find "computing how similar to an oscillation a given function is" to be a satisfying answer, although it is certainly a part of it and I probably could have done a better job emphasizing it.
Well, the central insight is about linearity + translation invariance, and that more generally given some linear system that's invariant under some group G, it is a decomposition of some representation (e.g. the regular representation, which is tied to convolution) of G into irreducible representations of G. That idea ties together various "Fourier-like" transforms like Fourier series, DTFT, DFT, Mellin transform, and wavelet transforms.
If you want to know "what it is," then yeah, waves. If you want to know "why it is" and why it keeps appearing, then there's more of a story to tell about symmetry.
As a layman, I find the explanation that functions can be expressed as a sum of sine waves to be quite clear, even if I don't fully understand the details of how the transform is calculated.
Isn't that the central insight behind the Fourier Transform? Once that is accepted, the tricky part is understanding how to transform functions back and forth.
> I do not want to be mean, but
What you posted was, in fact, mean. Disclaimers of meanness don't negate that—in practice they facilitate it.
Your comment would have been just fine without that first sentence, and if you had expanded on your (quite interesting) second sentence it would have been even better.
Like most concepts in math, rigorous explanations are terrible. Unless one is already comfortable with the prerequisites.
Here: Linear algebra (vectors, matrices, basis, change of basis, inverses). Eigenvectors/eigenvalues and diagonalization. Polynomials and roots (Fundamental Theorem of Algebra). Complex numbers (polar form, conjugation, Euler's formula, roots of unity), and some basic calculus/integrals.
> Unless one is already comfortable with the prerequisites.
> Here: Linear algebra (vectors, matrices, basis, change of basis, inverses). Eigenvectors/eigenvalues and diagonalization. Polynomials and roots (Fundamental Theorem of Algebra). Complex numbers (polar form, conjugation, Euler's formula, roots of unity), and some basic calculus/integrals.
This is all taught (depending on the curriculum) in the 1st or 2nd semester when one studies basically any arbitrary STEM subject at a university. So, this all can very easily be assumed.
Yes, and those are prerequisites someone would have before they first encountered the Fourier transform in, say, a differential equations class. This article is probably not as approachable for someone who hasn't seen those concepts before, though I did try to provide brief explanations of the key ideas so that interested readers would know what to Google.
I think you did, and nicely, mention all the necessary concepts.
My comment was rather arguing that any math explanation, or book even, can be deemed poorly written. The problem is what is reader assumed to be comfortable with. The problem isn't on you.
I think the article is a great explanation of a use case for FTs, but only if you already know what the FT is.
If you take the FFT of two different signals, then yes you end up with two waveforms that "line up" (being in the frequency domain) and can be compared to see how well they match, and thus how "similar" the frequencies in the two signals were. But FFT itself has nothing to do with comparing two wave forms. All FFT is doing is determining what frequencies are in a given single signal. Whether you compare that to the FFT (frequency domain) of some other signal is totally separate from FFT itself.