0
$\begingroup$

$f(x)=\begin{cases}\tfrac{1}{2a},& 0<|x|

Note that $a<\pi$.

$a_0=\frac{2}{a}\int_0^a \frac{1}{2a}dx=\frac{1}{a}$

$a_n=\frac{2}{a}\int_0^a \frac{1}{2a}\cos\left(\frac{n\pi x}{a}\right)dx=\frac{\sin(n\pi)}{an\pi}$

There are no $b_n$ coefficients because the function is strictly even.

Hence the Fourier series representation is:

$f(x)=\frac{1}{2a}+\sum_{n=1}^\infty \frac{\sin(n\pi)}{an\pi}\cos\left(\frac{n\pi x}{a}\right)$

But the infinite series on the right collapses to zero, so something must be wrong here. Can someone help me out?

  • 0
    Nothing looks wrong. The coefficients you obtained for the Fourier series are $a_0={1\over a}$ and $a_n=b_n=0\,\forall\,n$. It just isn't a very interesting series...2012-11-13

1 Answers 1

2

The answer depends on which Fourier series you are computing. Your above work is correct if the Fourier series you are computing is the Fourier series on the interval $(-a,a)$. This is because you are decomposing a function which is constant (on the interval in question) into sums of cosines and sines. As the function is constant, then all the Fourier coefficients vanish except the very first one, which is the constant term.

However, that is not the only Fourier series possible; if I were to have seen this problem at face value, I would've assumed that you are to compute the Fourier series on the interval $(-\pi, \pi)$. Since $a < \pi$, you'll see very different behavior, because you'll be integrating over a different region. In particular, you'll be integrating $a_n = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x) \cos(nx) \, dx $ and similarly for $b_n$.

  • 0
    OK, this time I got: $f(x)=\frac{1}{2\pi}+\sum_{n=1}^\infty \frac{sin(an)}{\pi an} cos(nx)$. Is that better?2012-11-13