TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Fourier Transform, explained in one sentence

364 pointsby ggonwebover 10 years ago

24 comments

karpathyover 10 years ago
Fourier Transform became trivial to me when I noticed that it&#x27;s just a basis transform, as you would do with ANY other basis. Except this basis happens to be sine and cos waves of different frequencies.<p>i.e. you view the entire signal in the original domain as a single point in space of dimensionality equal to number of measurements, and then you project it onto the new (fourier) basis. For example, one of the new basis vectors could be sine signal of some frequency k. You find the component of the original signal along this new basis just as you would do for any other basis vector, with a dot product. The only slight complication is that to get the phase information you have to actually dot with a cosine at that frequency as well. The confusing e^ix complex number multiply &quot;hides&quot; the fact that we are actually doing two simultaneous dot products (since e^ix = sinx + icosx): one with the sine and the other with the cos, to get both the frequency and phase.<p>this is the intuition for DFT but for FT you just have infinite-dimensional vector space, done. This is much more intuitive to me than &quot;spinning a signal in circle&quot;, which I personally find very to be a very confusing statement.<p>EDIT: granted, basic linear algebra concepts (vectors, basis transform) needed.
评论 #8505812 未加载
评论 #8506257 未加载
评论 #8506024 未加载
评论 #8507926 未加载
评论 #8505880 未加载
评论 #8506555 未加载
评论 #8505933 未加载
评论 #8505972 未加载
评论 #8507547 未加载
评论 #8506089 未加载
评论 #8511282 未加载
评论 #8505892 未加载
ggonwebover 10 years ago
<a href="http://betterexplained.com/articles/an-interactive-guide-to-the-fourier-transform/" rel="nofollow">http:&#x2F;&#x2F;betterexplained.com&#x2F;articles&#x2F;an-interactive-guide-to-...</a><p>The animations are here
Terr_over 10 years ago
I like to think of it like a vertical line of individual LEDs that sequentially shine to show current amplitude. (Like a Cylon visor or KITT the car.)<p>Sweep it sideways across a dark area, and you will see the waveform as an afterimage.<p>But start to <i>spin</i> it around the center, and you get a blob of light, one that becomes tighter and more symmetric whenever the spin-rate approaches the rate of a repeating subpattern.
评论 #8506521 未加载
platzover 10 years ago
i.e. color coding is necessary because math notation is typically expressed with ambiguous assumptions in service to absolute terseness.<p>As far as I can tell the only time it&#x27;s attempted to combat this is in proofs.<p>Note that in a real paper or textbook, such a detailed description explaining each term would most definitely be absent, even without the color coding.
评论 #8505604 未加载
shubhamjainover 10 years ago
One thing I don&#x27;t fathom is why FT is always explained in terms of circles? For me it was always confusing this way; the concept was much more graspable when visualized in the terms superposition of sinusoidal waves.
评论 #8507902 未加载
评论 #8507982 未加载
评论 #8508194 未加载
quarterwaveover 10 years ago
Think of FFT like music notation - a separation into notes, dynamics, and tempo.<p>Alexander Graham Bell came up with the idea of increasing the capacity of telegraph lines by combining several &#x27;dit-da-dit&#x27; streams at different pitches. He called it a &#x27;harmonic telegraph&#x27;. The idea was that a mechanical arrangement of reeds tuned to different pitches would pluck out each stream of data. This insight eventually led to the invention of the telephone.<p>Finally, if &#x27;orthogonal basis set&#x27; is difficult to understand, think of giving someone &#x27;left&#x2F;right&#x27; driving directions. An FFT would then (roughly) be the mathematical equivalent of &#x27;driving directions&#x27; for a clip of music or speech.
ggonwebover 10 years ago
Here is another visualized Fourier <a href="http://blog.matthen.com/post/42112703604/the-smooth-motion-of-rotating-circles-can-be-used" rel="nofollow">http:&#x2F;&#x2F;blog.matthen.com&#x2F;post&#x2F;42112703604&#x2F;the-smooth-motion-o...</a>
j2kunover 10 years ago
This is an extremely confusing sentence. My sentence would be:<p>&gt; Every &quot;nice&quot; function can be uniquely decomposed into complex exponentials, which in some contexts represent physical frequencies.
评论 #8505672 未加载
评论 #8505654 未加载
评论 #8505787 未加载
marmadukeover 10 years ago
Neat idea but this is a discrete Fourier transform (the original is continuous, with an integral), and it&#x27;s only &quot;explained&quot; in the context of signal processing. And even then, the explanation is imperative.<p>I agree with another commenter that the more useful explanation is in terms of a change of basis.
评论 #8505711 未加载
tylerneylonover 10 years ago
The Fourier transform is the map between sound waves and music as written on a staff.<p>That&#x27;s an informal statement with some hand-waving since, for example, music notation is discrete and sound waves aren&#x27;t, but that&#x27;s the main idea.
评论 #8507237 未加载
vpeters25over 10 years ago
I remember fondly a college lab experiment where we had to design a circuit that modulated a signal on a carrier (basic FM modulator).<p>The prep for the lab included a paper running all the math predicting the outcome, that included fourier transforms.<p>The moment we hooked the circuit&#x27;s output to an spectral analyzer was the first time I saw years of theoretical math resulting on something &quot;tangible&quot;: the carrier signal&#x27;s peak and +&#x2F;- modulated peaks around it.
zwiebackover 10 years ago
I think all the efforts to make FT more intuitive are necessary because representation of signals in terms of complex numbers is a tricky abstraction. It&#x27;s definitely worth taking the time to get comfortable with the idea of representing a signal in the complex plane without trying to understand the FT at the same time. Then all the spinning-around-a-pole verbiage makes a lot more sense.
评论 #8507161 未加载
ggonwebover 10 years ago
Understanding the fourier transform (from archive) <a href="https://archive.today/ulPFk" rel="nofollow">https:&#x2F;&#x2F;archive.today&#x2F;ulPFk</a><p>(original link(dead) <a href="http://www.altdev.co/2011/05/17/understanding-the-fourier-transform/" rel="nofollow">http:&#x2F;&#x2F;www.altdev.co&#x2F;2011&#x2F;05&#x2F;17&#x2F;understanding-the-fourier-tr...</a>)
natchover 10 years ago
&gt;then there is frequency corresponding the pole&#x27;s rotational frequency is represented in the sound.<p>Parse error.
评论 #8508554 未加载
Lambdanautover 10 years ago
For a `slightly` longer explanation: <a href="http://betterexplained.com/articles/an-interactive-guide-to-the-fourier-transform/" rel="nofollow">http:&#x2F;&#x2F;betterexplained.com&#x2F;articles&#x2F;an-interactive-guide-to-...</a>
Adrockover 10 years ago
Here&#x27;s how to make this with MathJax:<p><a href="http://adereth.github.io/blog/2013/11/29/colorful-equations/" rel="nofollow">http:&#x2F;&#x2F;adereth.github.io&#x2F;blog&#x2F;2013&#x2F;11&#x2F;29&#x2F;colorful-equations&#x2F;</a>
bbrennanover 10 years ago
Felt inspired after reading this this morning and spent my Saturday hacking up a little demo in d3:<p><a href="http://bbrennan.info/fourier-work.html" rel="nofollow">http:&#x2F;&#x2F;bbrennan.info&#x2F;fourier-work.html</a>
dlwjover 10 years ago
Would thinking of the fourier transform as breaking a signal down into basic elements (like atoms) and figuring out how much of each atom is in the signal? Each different value of &quot;K&quot; then is like using a Ph strip to measure approximate energy b&#x2F;c that particular strip reacts most strongly to a certain k.
__mover 10 years ago
What about phase?
评论 #8509467 未加载
jokoonover 10 years ago
isn&#x27;t this theorem used to transmit signals across DSL connexions ? isn&#x27;t it also used for wireless internet ?
bluecalmover 10 years ago
As I switch off the moment I see &quot;signal&quot; or &quot;wave&quot; let alone spinning it around the circle here is my take without any engineering intuitions:<p>-you can represent any (nice enough) function as sum of sines and cosines of given frequencies and amplitudes (frequency is how often the function hits the whole period, amplitude is by how much you multiple its value). The functions look this way: Amplitude* sine(x* freq)<p>-So you have your sines and cosines at various frequencies and you wonder what the amplitudes should be for every one o them so that if we add them all up we end up with the original function<p>-The idea to answer this question is to see how values of your sine or cosine correlate with values of original function. If it turns out that the original function is high in value when your sine&#x2F;cosine is high in value then sine&#x2F;cosine at this frequency needs to have higher weight than sine&#x2F;cosine at other frequency where it doesn&#x27;t correlate well with original function. Intuitively if you take functions which correlate well with original one with higher weight and those which doesn&#x27;t with lower weight then you will have good approximation of the original function.<p>-Euler formula tells you what sine and cosine at given point are representing it as one complex number; to get value of sine&#x2F;cosine at frequency different than 1 you need to multiple the argument by k*2PI (as frequency is given in beats&#x2F;period and period is 2PI it&#x27;s quite obvious why); So e^(xi) is value of cosx and sinx and e^(xik2PI) is value of those functions at frequencies different than 1.<p>So now let&#x27;s see what this formula is:<p>-it&#x27;s an average of things (1&#x2F;N and a sum of N elements)<p>-those things are multplications of values of sine&#x2F;cosine at given frequency at given point with value of original function at this point<p>-this average is going to be high if places where sine&#x2F;cosine at given frequency is high and original function is high overlap (you multiple big number by big number) and low if described correlation is low; that&#x27;s the concept of correlation<p>-the points are evenly spaced from 0 to n-1 (that&#x27;s why n&#x2F;N in the formula) and the sum goes over them.<p>That&#x27;s it. No circles and spinning. The only trick is to realize that: e^(ix) represent value of sine and cosine at x and e^(ixk2PI) represents value of sine&#x2F;cosine at frequency k (if k is 1, then it&#x27;s standard sine&#x2F;cosine as everything simplifies).<p>One sentence explanation could be: the more sine&#x2F;cosine at given frequency correlates with original function the more that sine&#x2F;cosine contribute to the original function.
burtonatorover 10 years ago
you know, it should be possible to generate some of these sentences from the mathematical notation directly to make concepts more understandable to the lay person (and people in general).
madengrover 10 years ago
It just correlates a signal against harmonically related complex sinusoids.
评论 #8506496 未加载
crimsonalucardover 10 years ago
Maybe an animation would serve to be a better vehicle for understanding.
评论 #8505924 未加载