Mathematics, Statistics & Geometry

Fourier Series Calculator

Generate the Fourier Series approximation for any continuous mathematical function using high-precision numerical integration.

Fourier Series Approximation
3.2899 - 4.0000cos(1πx/3.14159) + 1.0000cos(2πx/3.14159) - 0.4444cos(3πx/3.14159) + 0.2500cos(4πx/3.14159) - 0.1600cos(5πx/3.14159)
Calculation StepsFunction: f(x) = x^2, L = 3.14159 a₀ = (1/L) ∫ f(x) dx = 6.5797 First term = a₀ / 2 = 3.2899 n=1: a_n = -4.0000, b_n = 0.0000 n=2: a_n = 1.0000, b_n = -0.0000 n=3: a_n = -0.4444, b_n = 0.0000 n=4: a_n = 0.2500, b_n = -0.0000 n=5: a_n = -0.1600, b_n = -0.0000

Calculated locally in your browser. Fast, secure, and private.

Deconstructing Waves

The Fourier Series Calculator brings university-level signal processing to your browser. By calculating the exact Fourier coefficients, it breaks down any continuous mathematical function into its fundamental sine and cosine harmonics.

f(x)a02+n=1[ancos(nπxL)+bnsin(nπxL)]\begin{aligned} f(x) \approx \frac{a_0}{2} + \sum_{n=1}^{\infty} \left[ a_n \cos\left(\frac{n\pi x}{L}\right) + b_n \sin\left(\frac{n\pi x}{L}\right) \right] \end{aligned}

Where:
a0,an,bna_0, a_n, b_n=
The weights determining how much of each wave is present
L=
Half the length of the repeating interval

The Greatest Discovery in Mathematics

Joseph Fourier discovered that any periodic wave, no matter how jagged or complex, can be perfectly recreated by stacking enough simple, smooth sine and cosine waves on top of each other. This is the mathematical equivalent of taking a baked cake and extracting the exact amounts of flour, sugar, and eggs used to make it.

Real-World Applications

  • Audio Engineering: MP3 compression works by using Fourier analysis to identify and delete audio frequencies that human ears can't hear well.
  • Image Compression: JPEG images use a 2D variation of Fourier series (Discrete Cosine Transform) to compress visual data.
  • Telecommunications: Wi-Fi, 5G cellular data, and fiber optics all rely on Fourier transforms to encode data into radio and light waves.

Frequently Asked Questions

A Fourier Series is a way to represent any complex, repeating function as an infinite sum of simple sine and cosine waves.

It uses high-precision numerical integration to calculate the 'Fourier Coefficients' (the weights) for the first N terms, allowing you to approximate complex curves with standard waves.

Sine and cosine are the most fundamental, 'pure' waves in mathematics. They are mathematically 'orthogonal', meaning they don't interfere with each other when added together.

Yes, Fourier series technically only work for periodic (repeating) functions. However, if you only care about a specific interval [-L, L], you can use a Fourier series to approximate it on just that interval.

If a function is purely 'even' (like x²), all the sine coefficients (bn) will be zero. If a function is purely 'odd' (like x³), all the cosine coefficients (an) will be zero.