Even/Odd & Half-Range Fourier Series
Even and Odd Functions
Understanding even and odd functions can significantly simplify Fourier series calculations. When a function exhibits symmetry, many of its Fourier coefficients become zero, reducing the amount of computation required.
Definition of Even and Odd Functions
A function $f(x)$ is said to be even if for all $x$ in its domain:
Even functions are symmetric about the y-axis. Examples include $x^2, \cos(x), |x|$.
A function $f(x)$ is said to be odd if for all $x$ in its domain:
Odd functions are symmetric about the origin. Examples include $x^3, \sin(x), x$.
Note: Not all functions are strictly even or odd. Many functions are a combination of both. Also, checking for even/odd symmetry numerically has limitations.
Fourier Series for Even Functions (on $[-L, L]$)
If $f(x)$ is an even function on the interval $[-L, L]$, its Fourier series simplifies to a Fourier Cosine Series:
The coefficients are given by:
Enter even function, period, and number of terms, then calculate.
Fourier Series for Odd Functions (on $[-L, L]$)
If $f(x)$ is an odd function on the interval $[-L, L]$, its Fourier series simplifies to a Fourier Sine Series:
The coefficients are given by:
Enter odd function, period, and number of terms, then calculate.
Fourier Half-Range Series (on $[0, L]$)
For a function $f(x)$ defined only on the interval $[0, L]$, we can extend it to the interval $[-L, L]$ as either an even or an odd function. This allows us to use the simplified Fourier cosine or sine series formulas, resulting in either a Half-Range Cosine Series or a Half-Range Sine Series.
The Fourier series will accurately represent the original function only within its defined range $[0, L]$. Outside this range, it will represent the chosen periodic extension.
Fourier Half-Range Cosine Series
To obtain a cosine series for $f(x)$ defined on $[0, L]$, we assume an even extension to $[-L, L]$, i.e., $f(-x) = f(x)$.
The coefficients are identical to the even function case:
Enter function, half-range length $L$, and number of terms, then calculate.
Fourier Half-Range Sine Series
To obtain a sine series for $f(x)$ defined on $[0, L]$, we assume an odd extension to $[-L, L]$, i.e., $f(-x) = -f(x)$.
The coefficients are identical to the odd function case:
Enter function, half-range length $L$, and number of terms, then calculate.