A Fourier series decomposes any periodic function or signal into a sum of simple oscillating functions, namely sines and cosines. For a function \(s(x)\) with period \(P\), the series is given by \(s(x) \approx \frac{a_0}{2} + \sum_{n=1}^{\infty} \left[ a_n \cos\left(\frac{2\pi n x}{P}\right) + b_n \sin\left(\frac{2\pi n x}{P}\right)\right]\). The terms \(a_n\) and \(b_n\) are the Fourier coefficients.





