TOPICS
Search

Fast Fourier Transform


The fast Fourier transform (FFT) is an algorithm for computing a discrete Fourier transform using O(NlgN) arithmetic operations instead of the O(N^2) operations of direct evaluation, where N is the number of points, lg is the base-2 logarithm, and O denotes big-O notation.

Cooley and Tukey (1965) popularized the FFT, although Gauss had described the critical factorization step as early as 1805 (Cooley et al. 1967, Heideman et al. 1984). A discrete Fourier transform can be computed using an FFT by means of the Danielson-Lanczos lemma if the number of points N is a power of two. If the number of points N is not a power of two, a transform can be performed on sets of points corresponding to the prime factors of N which is slightly degraded in speed. An efficient real Fourier transform algorithm or a fast Hartley transform (Bracewell 1999) gives a further increase in speed by approximately a factor of two. Base-4 and base-8 fast Fourier transforms use optimized code, and can be 20-30% faster than base-2 fast Fourier transforms. prime factorization is slow when the factors are large, but discrete Fourier transforms can be made fast for N=2, 3, 4, 5, 7, 8, 11, 13, and 16 using the Winograd transform algorithm (Press et al. 1992, pp. 412-413, Arndt).

Fast Fourier transform algorithms generally fall into two classes: decimation in time, and decimation in frequency. The Cooley-Tukey FFT algorithm first rearranges the input elements in bit-reversed order, then builds the output transform (decimation in time). The basic idea is to break up a transform of length N into two transforms of length N/2 using the identity

sum_(n=0)^(N-1)a_ne^(-2piink/N)=sum_(n=0)^(N/2-1)a_(2n)e^(-2pii(2n)k/N)+sum_(n=0)^(N/2-1)a_(2n+1)e^(-2pii(2n+1)k/N)
(1)
=sum_(n=0)^(N/2-1)a_n^(even)e^(-2piink/(N/2))+e^(-2piik/N)sum_(n=0)^(N/2-1)a_n^(odd)e^(-2piink/(N/2)),
(2)

sometimes called the Danielson-Lanczos lemma. The easiest way to visualize this procedure is perhaps via the Fourier matrix.

The Sande-Tukey algorithm (Stoer and Bulirsch 1980) first transforms, then rearranges the output values (decimation in frequency).

In a random-access machine model with exact complex arithmetic, unrestricted coefficients, and a root of unity supplied as an exact input, OpenAI (2026) gave a deterministic algorithm for the discrete Fourier transform of every length N in time O(N(lnN)^(1-epsilon)) with epsilon=10^(-13). The bound includes computing the required order of the supplied root and index operations. Toledo independently verified the formalized all-length transform and convolution bounds with the OpenAI exponent. Sussman (2026) obtained epsilon=17887045/10^(10) in the same model for both the transform and the linear convolution of two length-N vectors.

The discrete Fourier transform entry discusses the reported complexity of exact binary linear-gate circuits over fields containing the relevant roots of unity.


See also

Aliasing, Danielson-Lanczos Lemma, Discrete Fourier Transform, Fourier Matrix, Fourier Transform, Fractional Fourier Transform, Hartley Transform, Leakage, Number Theoretic Transform, Winograd Transform

Explore with Wolfram|Alpha

References

Arndt, J. "FFT Code and Related Stuff." https://www.jjj.de/fxt/.Arndt, J. "The Fourier Transform." Ch. 21 in Matters Computational: Ideas, Algorithms, Source Code. Berlin, Germany: Springer, pp. 410-439, 2010. https://doi.org/10.1007/978-3-642-14764-7_21.Bell Laboratories. "Netlib FFTPack." http://netlib.bell-labs.com/netlib/fftpack/.Bergland, G. D. "A Guided Tour of the Fast Fourier Transform." IEEE Spectrum 6, 41-52, July 1969.Blahut, R. E. Fast Algorithms for Digital Signal Processing. New York: Addison-Wesley, 1984.Bracewell, R. The Fourier Transform and Its Applications, 3rd ed. New York: McGraw-Hill, 1999.Briggs, W. L. and Henson, V. E. The DFT: An Owner's Manual for the Discrete Fourier Transform. Philadelphia, PA: SIAM, 1995. https://doi.org/10.1137/1.9781611971514.Brigham, E. O. The Fast Fourier Transform and Applications. Englewood Cliffs, NJ: Prentice Hall, 1988.Chu, E. and George, A. Inside the FFT Black Box: Serial and Parallel Fast Fourier Transform Algorithms. Boca Raton, FL: CRC Press, 2000.Cooley, J. W.; Lewis, P. A. W.; and Welch, P. D. "Historical Notes on the Fast Fourier Transform." IEEE Trans. Audio Electroacoust. 15, 76-79, 1967. https://doi.org/10.1109/TAU.1967.1161903.Cooley, J. W. and Tukey, J. W. "An Algorithm for the Machine Calculation of Complex Fourier Series." Math. Comput. 19, 297-301, 1965. https://doi.org/10.1090/S0025-5718-1965-0178586-1.Crandall, R.; Jones, E.; Klivington, J.; and Kramer, D. "Gigaelement FFTs on Apple G5 Clusters." 27 Aug 04. https://web.archive.org/web/20111012161735if_/http://images.apple.com/acg/pdf/20040827_GigaFFT.pdf.Duhamel, P. and Vetterli, M. "Fast Fourier Transforms: A Tutorial Review." Signal Processing 19, 259-299, 1990.Gentleman, W. M. and Sande, G. "Fast Fourier Transforms: For Fun and Profit." In Proc. Fall Joint Computer Conference, November 7-10, 1966. Washington, DC: Spartan Books, pp. 563-578, 1966. https://doi.org/10.1145/1464291.1464352.Heideman, M. T.; Johnson, D. H.; and Burrus, C. S. "Gauss and the History of the Fast Fourier Transform." IEEE ASSP Mag. 1, 14-21, 1984. https://doi.org/10.1109/MASSP.1984.1162257.Lipson, J. D. Elements of Algebra and Algebraic Computing. Reading, MA: Addison-Wesley, 1981.Nussbaumer, H. J. Fast Fourier Transform and Convolution Algorithms, 2nd ed. New York: Springer-Verlag, 1982.OpenAI. "An Explicit Power Saving for the Exact Discrete Fourier Transform." Sep. 25, 2026. https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/An-explicit-power-saving-for-the-exact-discrete-Fourier-transform-September-25-2026/main.pdf.Papoulis, A. The Fourier Integral and Its Applications. New York: McGraw-Hill, 1962.Press, W. H.; Flannery, B. P.; Teukolsky, S. A.; and Vetterling, W. T. "Fast Fourier Transform." Ch. 12 in Numerical Recipes in FORTRAN: The Art of Scientific Computing, 2nd ed. Cambridge, England: Cambridge University Press, pp. 490-529, 1992.Ramirez, R. W. The FFT: Fundamentals and Concepts. Englewood Cliffs, NJ: Prentice-Hall, 1985.Stoer, J. and Bulirsch, R. Introduction to Numerical Analysis. New York: Springer-Verlag, 1980.Strang, G. "Wavelet Transforms Versus Fourier Transforms." Bull. Amer. Math. Soc. 28, 288-305, 1993.Sussman, J. "Discrete Fourier Transform of Every Length in O(n(logn)^z), z=1-1.7887045×10^(-3), Checked in Lean." 20 Oct 2026. https://github.com/jacobalansussman/wht-power-saving-lean.Toledo, C. "OpenAI Math Kernel Certificates." https://github.com/carlostoledo1891/cert-machine/blob/9814e4c06281e34a113ce853d7d99ccce160b750/certs/openai-math-kernel.json.Van Loan, C. Computational Frameworks for the Fast Fourier Transform. Philadelphia, PA: SIAM, 1992.Walker, J. S. Fast Fourier Transform, 2nd ed. Boca Raton, FL: CRC Press, 1996.

Referenced on Wolfram|Alpha

Fast Fourier Transform

Cite this as:

Weisstein, Eric W. "Fast Fourier Transform." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/FastFourierTransform.html

Subject classifications