Fourier Series Approximator
Math Calculus • Infinite Series and Sequences
Frequently Asked Questions
What does the Fourier series approximator compute?
It computes a finite Fourier partial sum S_N(x) that approximates a T-periodic function using sine and cosine harmonics. The coefficients a_n and b_n are estimated numerically from integrals over one period.
How are the Fourier coefficients calculated in this tool?
The calculator approximates the required integrals with Simpson’s rule over an interval of length T. Increasing the integration subintervals can improve accuracy, especially for sharp corners or jump-like behavior.
What does the epsilon helper for N mean at x0?
It finds the smallest N (up to the tool limit) such that the change in the partial sum at x0 is small: |S_N(x0)-S_{N-1}(x0)|<=epsilon. This is a practical indicator at that point, not a guaranteed global error bound.
Why do I see overshoot near jumps even when N is large?
Fourier partial sums can show persistent oscillations near discontinuities, known as the Gibbs phenomenon. As N increases the oscillations narrow, but the peak overshoot does not fully disappear.
How do I enter a piecewise function for one period?
Use pw(condition,a,b) where the condition is built from lt, le, gt, ge, eq, or ne and returns 1 or 0. The calculator interprets your input over one period and then extends it periodically.