News for hackers. Stuff that matters.
Re:Fourier transform – A math tool used in optics, MP3s, JPE... by catnaroek on Tuesday April 11, 2017 @10:37AM (#14088178)
> Why are [sine waves] better than, say, step functions (...)

Sine and cosine waves whose frequencies are multiples of a fundamental frequency, form an orthonormal basis w.r.t. the inner product given by integrating f(x)ĝ(x)dx over one period of the sine (or cosine) wave whose frequency is the fundamental frequency. In practical signal processing, this means that we can separately consider the contribution of each frequency to the total energy of a signal. Technically, the above only explains Fourier series, but the Fourier transform is just the limit case when the fundamental frequency is made arbitrarily small (re-scaled by a factor of the size of Dirac's delta at 0, of course).

Re:Fourier transform – A math tool used in optics, MP3s, JPE... by alok-g on Tuesday April 11, 2017 @10:51AM (#14088336)
Won't the same apply to square waves also, i.e., they can also form an orthonormal basis?
Re:Fourier transform – A math tool used in optics, MP3s, JPE... by _-__--- on Tuesday April 11, 2017 @11:14AM (#14088645)
They can[0]; however, this requires some further construction.

One major benefit of the sin/cos basis is that each basis function maps uniquely to a dirac delta in frequency space. This allows for power/energy symmetries between time and frequency domain representations of a signal and allows for more tenable frequency filtering, e.g. removing 60/50Hz noise or isolating a particular frequency band.

A haar wavelet or modified square wave basis may provide you with a simple orthonormal signal basis, but each wavelet has a frequency representation with infinite support in frequency space. This is (a) untenable and (b) eliminates the possibility of frequency-specific filtering. Wavelet analysis is more useful in specific cases.

[0] https://en.wikipedia.org/wiki/Haar_wavelet

Re:Fourier transform – A math tool used in optics, MP3s, JPE... by alok-g on Wednesday April 12, 2017 @06:35AM (#14096360)
When you use the term "frequency space", you are already thinking in terms of the frequency of sin/cos functions. If you actually think in terms of frequency in a different orthonormal basis, you'll find that the dirac delta characteristic you mention is not specific to sin/cos, thereby invalidating your argument.
Re:Fourier transform – A math tool used in optics, MP3s, JPE... by sdenton4 on Tuesday April 11, 2017 @11:05AM (#14088521)
Totally of the cuff: I believe you can recast the Sims in the discrete Fourier transform as integrals of step functions. So it should work. However the width of the steps in the discrete dirtier transform is fixed for each n. So you'll need to be a bit clever to make sure your steps line up right of you want to build up a single infinite basis. And I would be a bit afraid that the need for things to line up would end up losing some needed span... So at least the are done things which need to be checked.

The sin and cos basis is very convenient. Even more convenient is the e^(i.n.t) basis...

Re:Fourier transform – A math tool used in optics, MP3s, JPE... by hchenji on Tuesday April 11, 2017 @11:56PM (#14094629)
Re:Fourier transform – A math tool used in optics, MP3s, JPE... by joshuamorton on Tuesday April 11, 2017 @12:56PM (#14089952)
>Sine and cosine waves whose frequencies are multiples of a fundamental frequency, form an orthonormal basis w.r.t. the inner product given by integrating f(x)ĝ(x)dx over one period of the sine

This, by the way, was perhaps the most mindblowing thing I learned in my advanced linear algebra course. I had already learned about applied Fourier Transforms and the FFT, but seeing the same tools we had used to prove things about Cartesian bases could be applied to something so unexpected, with such powerful results, was incredible.

Re:Fourier transform – A math tool used in optics, MP3s, JPE... by blt on Tuesday April 11, 2017 @02:36PM (#14091049)
The "magic" of the Fourier transform and DFT is entirely contained in this proof, IMO. I think a lot of people find the Fourier transform extra-amazing because it is their first encounter with basis change and infinite dimensional vector spaces.

The FFT is still magic though :)

Re:Fourier transform – A math tool used in optics, MP3s, JPE... by mturmon on Tuesday April 11, 2017 @02:28PM (#14090972)
About "why sine waves," the mantra I learned is:

"Complex exponentials are the eigenfunctions of linear systems."

This means that, if you put a complex exponential in, you get the same complex exponential out, scaled by some constant, whose magnitude we call the "frequency response". No other functional form has this property.

They are eigenfunctions, so they are orthogonal. We can represent any function in L2 using a weighted sum of them.

Re:Fourier transform – A math tool used in optics, MP3s, JPE... by blt on Tuesday April 11, 2017 @02:33PM (#14091025)
By L2 you mean the set of square-integrable functions, right?
Re:Fourier transform – A math tool used in optics, MP3s, JPE... by michalskop on Tuesday April 11, 2017 @05:31PM (#14092654)
Re:Fourier transform – A math tool used in optics, MP3s, JPE... by mturmon on Wednesday April 12, 2017 @01:08AM (#14094921)
Yes, and by "represent", I mean represent with respect to the L2 norm.
Re:Fourier transform – A math tool used in optics, MP3s, JPE... by tomrod on Tuesday April 11, 2017 @11:19AM (#14088681)
As someone with a strong linalg background, I love this explanation! Thank you!