Draw a waveform (click and drag)
Frequency Spectrum
Reconstructed Signal
The Fourier Series Formula
This formula tells us that any periodic function f(t) can be expressed as an infinite sum of sine and cosine waves. The coefficients an and bn determine how much of each frequency is present in the signal.
What is the Fourier Transform?
The Fourier Transform is one of the most powerful ideas in mathematics and engineering. It tells us that any periodic signal can be decomposed into a sum of simple sine and cosine waves of different frequencies. This insight is fundamental to signal processing, audio engineering, image compression, quantum mechanics, and countless other fields.
Think of it like this: if you hear a chord played on a piano, your ear naturally separates it into the individual notes. The Fourier Transform does the same thing mathematically -- it takes a complex waveform and tells you exactly which frequencies (notes) are present and how strong each one is.
How Different Waveforms Are Built
- Square Wave: Uses only odd harmonics (1st, 3rd, 5th, 7th, ...) with amplitudes proportional to 1/n. The formula is: (4/pi) * sum[1/n * sin(n*w*t)] for odd n.
- Sawtooth Wave: Uses all harmonics (1st, 2nd, 3rd, ...) with amplitudes proportional to 1/n. The formula is: (2/pi) * sum[(-1)^(n+1) * 1/n * sin(n*w*t)].
- Triangle Wave: Uses only odd harmonics with amplitudes proportional to 1/n^2, making it converge much faster than a square wave. Formula: (8/pi^2) * sum[(-1)^((n-1)/2) * 1/n^2 * sin(n*w*t)] for odd n.
The Gibbs Phenomenon
When you approximate a discontinuous signal (like a square wave) with a finite number of harmonics, you'll notice "ripples" or "overshoot" near the sharp edges. This is called the Gibbs phenomenon. No matter how many harmonics you add, the overshoot remains about 9% of the jump height -- but it gets narrower and narrower. This is a fundamental property of Fourier series, not an error in the calculation.
Real-World Applications
- Audio Processing: Equalization, compression, and effects all work in the frequency domain using Fourier transforms.
- Image Compression: JPEG uses the Discrete Cosine Transform (a cousin of the DFT) to compress images by discarding high-frequency components.
- Communications: Radio, WiFi, and cellular networks use Fourier analysis to multiplex signals and manage bandwidth.
- Medical Imaging: MRI scanners use Fourier transforms to convert magnetic resonance signals into detailed images.
- Quantum Mechanics: The position and momentum representations of a quantum state are related by a Fourier transform.
- Structural Engineering: Vibration analysis and earthquake response studies rely on frequency-domain analysis.
Frequently Asked Questions
What is the Fourier Transform?
The Fourier Transform decomposes a signal into its constituent frequencies. Any periodic waveform can be represented as a sum of sine and cosine waves of different frequencies and amplitudes. This is fundamental to signal processing, audio, image compression, and physics.
What is the difference between DFT and FFT?
DFT (Discrete Fourier Transform) computes the frequency components of a discrete signal in O(n^2) time. FFT (Fast Fourier Transform) is an efficient algorithm that computes the same result in O(n log n) time by exploiting symmetry in the computation. For educational purposes, this visualizer uses the DFT algorithm since it's easier to understand and sufficient for small sample sizes.
Why does a square wave need infinite harmonics?
A perfect square wave has sharp discontinuities (instant jumps from low to high). Sine waves are smooth, so you need infinitely many odd harmonics (1st, 3rd, 5th, ...) with decreasing amplitudes to approximate those sharp corners. With finite harmonics, you see ripples near the edges (Gibbs phenomenon).
What are epicycles?
Epicycles are a beautiful way to visualize Fourier series. Each harmonic is represented as a rotating circle (epicycle) whose radius is the amplitude of that harmonic. These circles are chained together, and the endpoint traces out the waveform. This visualization makes it viscerally clear that "any wave is a sum of circles rotating at different speeds."
Does this tool store any data?
No. All visualizations run entirely in your browser. No data is sent to any server. You can use this tool completely offline after the page loads.
Related Tools
Privacy
This Fourier Transform visualizer runs entirely in your browser. No waveforms, drawings, or settings are uploaded to any server. All computation happens locally using JavaScript and the Canvas API. Your data never leaves your device.
Related Tools
View all toolsPrime Number Checker
Check if a number is prime and see a quick reason
Fraction Visualizer
Visualize a fraction and see the simplified form
Multiplication Table
Generate a multiplication table up to any size
Unit Circle
Common unit circle angles with sine and cosine values
GPA Calculator
Calculate GPA from course grades and credit hours
Final Grade Calculator
Calculate required final exam score for target grade
Fourier Transform Visualizer FAQ
What is Fourier Transform Visualizer?
Fourier Transform Visualizer is a free education tool that helps you Draw a waveform and watch it decompose into sine and cosine components in real time.
How do I use Fourier Transform Visualizer?
Enter your input values, review the calculated output, and adjust inputs until you reach the result you need. The result updates in your browser.
Is Fourier Transform Visualizer private?
Yes. Calculations run locally in your browser. Inputs are not uploaded to a server by default, and refreshing the page clears session data.
Does Fourier Transform Visualizer require an account or installation?
No. You can use this tool directly in your browser without sign-up or software installation.
How accurate are results from Fourier Transform Visualizer?
This tool applies standard formulas or deterministic processing logic for estimates. For medical, legal, tax, or investment decisions, verify with a qualified professional.
Can I save or share outputs from Fourier Transform Visualizer?
You can bookmark this page and copy outputs manually. Results are not persisted in your account and are typically not embedded in the URL.