next up previous
Next: About this document ... Up: Fseries_1 Previous: Even and Odd Functions

Even and Odd Extensions

In some applications, a function $ f$ is defined only on the interval $ (0,L)$, and we need to find its Fourier series of period $ 2L$. We know how to find the Fourier series on a symmetric interval $ (-L, L)$, so we need to extend $ f$ somehow to the interval $ (-L, 0)$. After this we can extend $ f$ to the entire real line by the periodicity condition $ f(x + 2L) = f(x)$.

There are two natural ways of extending $ f(x)$. One is to obtain an even function $ f_{even}(x)$ of period $ 2L$,



$\displaystyle f_{even}(x) = \left \{ \begin{array}{lc} f(x), & 0 < x < L ,\ f(-x), & -L < x < 0.\end{array} \right.$ (18)



The values of $ f_{even}$ at 0 and integral multiples of $ L$ do not affect the Fourier series of $ f_{even}$. The Fourier series of $ f_{even}$ will contain only cosine terms and is called the Fourier cosine series of the original function $ f$.

The other canonical way of extending $ f$ is to obtain an odd function $ f_{odd}$ of period $ 2L$,



$\displaystyle f_{odd}(x) = \left \{ \begin{array}{lc} f(x), & 0 < x < L ,\ -f(-x), & -L < x < 0.\end{array} \right.$ (19)



The Fourier series of $ f_{odd}$ will contain only sine terms and is called the Fourier sine series of the original function $ f$.

Figures 5 and 6 show the even and the odd extension respectively, for the function $ f(x) = x^2+ 1$ given on its half-period $ 0 < x < 1$.



The choice of the extension depends on the concrete application in which we use Fourier series. For example, when the Fourier series is a possible solution to a differential equation, there is usually additional information available about the behaviour of the expected solution (e.g. boundary conditions). That information allows us to make the choice of the extension. However, the topic of applications of Fourier series is beyond the scope of this course, and you will always be told which extension to use.



Example 7 The function $ f(x)= -x,   0 < x < 2$ is given on its half-period. Find the even and the odd extensions, sketch their graphs. Find the Fourier cosine and sine series of $ f(x)$.



Solution:



We have to extend the function to the interval $ (-2,0)$:

\begin{displaymath}f_{even}(x) =
\left \{
\begin{array}{rl}
-x, & 0 < x < 2 ,\\
x, & -2 < x < 0;
\end{array}\right.
\end{displaymath}



\begin{displaymath}f_{odd}(x) =
\left \{
\begin{array}{ll}
-x, & 0 < x < 2 ,\\
-x, & -2 < x < 0.
\end{array}\right.
\end{displaymath}



The graphs of the extensions are sketched in Figures 7 and 8, respectively.

For the Fourier cosine series we need to calculate $ a_0$ and $ a_n$:



$ a_0 = \displaystyle{\frac{2}{L} \int_{0}^{L} f(x)  dx  = \
\frac{2}{2} \int_{0}^{2} (-x)  dx  = \
\biggl. -\frac{x^2}{2} \biggr\vert^{2}_0  =  -2,
}$



whence

$ a_n = \displaystyle{\frac{2}{L} \int_{0}^L f(x) \cos \frac{n\pi x}{L}  dx  =...
...t \cos (\frac{n \pi x}{2})  dx  =  \frac{4}{n^2 {\pi}^2} ( 1 - \cos n\pi)
,}$



\begin{displaymath}a_n = \displaystyle{
\left \{
\begin{array}{cl}
\displaystyle...
...
0 & {\mbox for}  n  {\mbox even.} \\
\end{array}\right .
}\end{displaymath}



For the Fourier sine series we need to calculate $ b_n$:



$ b_n = \displaystyle{\frac{2}{L} \int_{0}^L f(x) \sin \frac{n\pi x}{L}  dx  =...
...^{2} (-x) \cdot \sin (\frac{n \pi x}{2})  dx  =  \frac{4}{n{\pi}} (-1)^n
.}$



Then the Fourier cosine series is

$ f_{even}(x) = \displaystyle{ \frac{a_0}{2} + \sum_{n=1}^{\infty}a_n \cos (\fra...
...c{8}{{\pi}^2} \sum_{\mbox n  odd}\frac{1}{n^2} \cos \frac{n \pi x}{2}  = \
}$



$ =  \displaystyle{ - 1 + \frac{8}{{\pi}^2}(\cos \frac{ \pi x}{2}  +  \frac{1...
... \frac{3 \pi x}{2}  + \
\frac{1}{25} \cos \frac{5 \pi x}{2}  +  \ldots )
,}$



and the Fourier sine series is

$ f_{odd}(x) = \displaystyle{ \sum_{n=1}^{\infty}b_n \sin (\frac{ n \pi x}{L})  = \
= \sum_{n=1}^{\infty} \frac{4}{n\pi}(-1)^n \sin \frac{n \pi x}{2}  = \
}$



$ =  \displaystyle{ \frac{4}{\pi}(-\sin \frac{ \pi x}{2}  +  \frac{1}{2} \sin \frac{2 \pi x}{2}  - \
\frac{1}{3} \sin \frac{3 \pi x}{2}  +  \ldots )
.}$



Termwise Differentiation of Fourier Series In applications, if we consider Fourier series as a solution to a differential equation, we wish to substitute $ f$ by the series in the equation. In order to do so, we need to differentiate the series. In general, term-by-term differentiation of an infinite series is not always allowed. However, if the function $ f$ is continuous and its derivative $ f^{\prime}$ is piecewise smooth, then the Fourier series of $ f$ can be differentiated termwise, and

$\displaystyle f^{\prime}(x)  =  \sum_{n=1}^{\infty}(-\frac{n\pi}{L} a_n \sin \frac{n\pi x}{L} + \frac{n\pi}{L} b_n \cos \frac{n\pi x}{L}).$ (20)








next up previous
Next: About this document ... Up: Fseries_1 Previous: Even and Odd Functions
Matthias Neufang 2002-09-18