Copy the files for the assignment from my directory:
cp -r ~sethna/FourierLab .
cd FourierLab
Wave32
Here we use only 32 points, and plot x from -10 to 10. Try various values of k: what value gives one wave in the interval? What does small k look like?
What value of k gives one wavelength per four plotted points (asterisks)? What happens if you input a number for k larger than this? (Hit "send", "OK", and "send"). This problem is called "aliasing": any time you evaluate the function only at points with finite spacing $\delta x$, you can't describe wavelengths that fall between the cracks.
FourierWave
On the left, you see the cosine wave (with 100 points plotted): on the right, you see its complex Fourier transform.
What's the Fourier transform of a cosine wave? Which curve is the real part? Which is the imaginary part? Vary delta. What value of delta gives a sine wave? What is the Fourier tranform of a sine wave?
See how the peak k is related to the wavelength. We're now using 100 points instead of 32: at what value of k should aliasing be important? Try typing in 20 for k, and scroll down to 10: watch the peaks shift past the maximum possible k in the Fourier transform. How is the maximum k in the Fourier tranform related to aliasing?
Try to fit an integer number of wavelengths into the interval (you can type in the slider box and hit "Send" if you like). Do the Fourier peaks look cleaner? The Fourier series in an interval L is more-or-less the same as a Fourier transform of the same function made periodic with period L: if the function isn't naturally periodic, the Fourier series gets this ringing phenomenon.
FourierPacket
Notice that the Fourier transform of a Gaussian is a Gaussian.
How is the width of the Fourier transform related to the width of the original Gaussian? Why?
How is the height of the Fourier transform related to the height of the original Gaussian? What does this have to do with the normalization A?
Pick a small width sigma so the Fourier transform is fairly broad. Shift x0. What happens? This is one of the typical forms for a wave packet.
FourierNoise
will take a random series of numbers and plot them and their power spectrum (the absolute square of the Fourier transform). You can see that random noise is white noise.
Try zooming into the random noise time series with the magnifying glass. (This doesn't work with the animations, but here you can do it.) Does it look random? Try zooming into the Fourier plot. Random? Random in, random out.
Try zooming in to the power spectrum near k=0. Why is it symmetric?
FourierSquared
shows this for a random, smoothed function. How is this related to inversion?
Statistical Mechanics: Entropy, Order Parameters, and Complexity,
now available at
Oxford University Press
(USA,
Europe).