All courses › Laplace, Fourier and PDEs › Odd and even functions

Odd and even functions

The symmetry of a function greatly simplifies its Fourier series: an odd function has only sine terms, and an even function has only cosine terms (and a constant term).

odd f: an=0 (sine terms only)\text{odd } f:\ a_n=0\ (\text{sine terms only})odd function
even f: bn=0 (cosine terms only)\text{even } f:\ b_n=0\ (\text{cosine terms only})even function

Symbols

ana_ncosine coefficients
bnb_nsine coefficients

Example

f(x)=xf(x)=x on (−π,π)(-\pi,\pi) is odd: bn=2(−1)n+1nb_n=\dfrac{2(-1)^{n+1}}{n}, so b5=25=0.4b_5=\dfrac{2}{5}=0.4.

sin⁡\sin is odd and cos⁡\cos is even - that is why the symmetry of ff decides which terms vanish.
Practise fourier series for free →

← Fourier coefficients · The Gibbs phenomenon →

Part of Laplace, Fourier and PDEs: Fourier series.