Adjust signal type, window function and frequency with sliders to see the time-domain waveform, magnitude spectrum and phase spectrum update in real time. Build deep intuition for FFT fundamentals.
The core of the Continuous Fourier Transform decomposes a time-domain signal $x(t)$ into its constituent complex exponentials (sine and cosine waves) across all frequencies $f$.
$$X(f) = \int_{-\infty}^{\infty}x(t) e^{-i 2 \pi f t}dt$$Where $X(f)$ is the complex frequency spectrum (showing magnitude and phase), $x(t)$ is the input signal, $f$ is frequency, and $i$ is the imaginary unit. This equation assumes we know the signal for all time, which is impossible in practice.
In reality, we use the Discrete Fourier Transform (DFT) on a sampled signal of length $N$. Applying a window function $w[n]$ weights the samples before the transform to mitigate spectral leakage.
$$X[k] = \sum_{n=0}^{N-1}x[n] \cdot w[n] \cdot e^{-i 2 \pi k n / N}$$Here, $x[n]$ are the discrete signal samples, $w[n]$ is the window (e.g., Hann window), and $X[k]$ is the DFT output at frequency bin $k$. The choice of $w[n]$ directly controls the trade-off between spectral leakage and frequency resolution, which you can visualize directly in the simulator.
Audio Engineering & Music: Fourier Transforms are the backbone of digital audio. They allow for equalization (boosting or cutting specific frequencies), audio compression (like MP3, which removes inaudible frequencies), and synthesizers that generate complex sounds from simple waves. When a mastering engineer "cleans up" a muddy recording, they are often editing in the frequency domain.
Vibration Analysis & Condition Monitoring: Engineers mount accelerometers on machinery like turbines or motors. By transforming vibration signals over time into the frequency domain, they can identify specific frequencies associated with worn bearings, imbalance, or misalignment, allowing for predictive maintenance before a catastrophic failure.
Medical Imaging (MRI): Magnetic Resonance Imaging doesn't take a direct picture. It measures signals in what is essentially the frequency domain (k-space). The inverse Fourier Transform is then used to reconstruct the detailed cross-sectional images of the body that doctors use for diagnosis.
Communications & Radar: Every modern wireless technology, from WiFi to GPS, relies on processing signals in the frequency domain. It allows multiple users to share the same channel (frequency division multiplexing) and enables radar systems to determine both the distance and speed of an object by analyzing the frequency shift of the reflected signal.
When you start using the FFT, there are a few common pitfalls you might encounter. The first is the "relationship between the sampling frequency and the displayed frequency range". For example, with a sampling frequency of 44.1 kHz, the highest frequency you can theoretically see with the FFT is half of that, 22.05 kHz (the Nyquist frequency). Frequency components above this will appear as incorrect low frequencies due to a phenomenon called aliasing, completely skewing your analysis. In practice, it's a golden rule to always remove high-frequency components with an anti-aliasing filter before measurement.
The second point is that "the values on the spectrum's vertical axis (amplitude) are not absolute values". What this tool displays as the "amplitude spectrum" is the absolute value $|X[k]|$ of the complex spectrum $X[k]$. This includes the influence of the window function and the FFT point count N as a normalization factor. For instance, even if you analyze a sine wave with an amplitude of 1, the displayed peak value will not simply be "1". To know the precise amplitude value, you need to consider the correction factor for the window function you used (e.g., approximately 2x for a Hann window).
The third is the "trade-off between resolution and measurement time". The frequency resolution $\Delta f$ is determined by the sampling frequency $f_s$ divided by the FFT point count $N$ ($\Delta f = f_s / N$). If you want to distinguish finer frequencies (make $\Delta f$ smaller), you need to increase $N$, but that means acquiring data over a longer period. For example, when analyzing the vibration of machinery with fluctuating rotational speed, taking data for too long can cause the frequencies to "smear". If you don't understand this dilemma, you might fail to capture effective data in the field.
The concepts of FFT and signal processing handled by this tool can be considered a common language flowing through the foundation of a very wide range of engineering fields, beyond just CAE. The first to mention is "Control Engineering". The Frequency Response Function (FRF) used to evaluate the stability of feedback control systems is calculated directly from the FFT of the input and output signals. This analysis is essential for robot servo control and plant automation.
Next is "Communications Engineering". Modern digital communications (4G/5G, Wi-Fi) are based on a technology called Orthogonal Frequency-Division Multiplexing (OFDM), which is precisely a method that utilizes FFT/IFFT (Inverse FFT) to efficiently transmit and receive multiple signals. Furthermore, in radar and sonar, FMCW (Frequency-Modulated Continuous Wave) technology is used, which estimates both an object's velocity (Doppler shift) and distance from the FFT result of the reflected wave.
Additionally, "Image Processing & Computer Vision" are deeply related. JPEG compression divides an image into 8x8 pixel blocks and applies a two-dimensional Discrete Cosine Transform (DCT, a close relative of the Fourier transform) to each to reduce data. Many algorithms for image blurring (filtering) and feature extraction are based on the convolution theorem of the Fourier transform, which states that processing in the "spatial domain" corresponds to multiplication in the "frequency domain".
Once you've developed intuition with this tool, it's recommended to gradually solidify the mathematical background. First, deepen your understanding of "Euler's formula $e^{i\theta} = \cos\theta + i\sin\theta$". This is the key to handling "waves" expressed with real numbers using the convenient tool of complex numbers. When you grasp why the core calculation of the FFT is $e^{-i 2\pi k n / N}$, your perspective will suddenly broaden.
The next concept to tackle is understanding the "Convolution Theorem". This powerful theorem states that convolution in the time domain (or discrete convolution) becomes simple multiplication in the frequency domain, and it forms the basis of digital filter design. Here, you'll understand the true meaning of the part explained in this tool: "applying a window is equivalent to convolution in the spectrum".
As a practical next step, I recommend learning about the Short-Time Fourier Transform (STFT) and Wavelet Transform. The FFT assumes the entire signal is "stationary" (its frequency components do not change over time). However, many real-world signals like music or vibration data are non-stationary. STFT is a method that splits the signal into short segments and applies the FFT to each, tracking changes in both time and frequency. It can be seen as the mathematical evolution of this tool's "real-time visualization". Beyond that lies the deep and fascinating world of signal processing.