[Math] Fourier series with half range

fourier analysisfourier series

Question What are $a_0,a_n,b_n$ equal to with range $-L\leq x \lt0$, rather than the standard $-L\leq x \leq L$?

For example:
$$f(x)=2x^2,\quad-1\leq x\leq0$$

Instead of $f(x)=2x^2,\quad-1\leq x\leq1$

$a_0 = \frac{1}{2L} \int_{-L}^L f(x) \, dx$

$a_n=\frac{1}{2L}\int_{-L}^L f(x) \cos nx \,dx$

$b_n=\frac{1}{2L} \int_{-L}^L f(x) \sin nx \,dx$


I assumed I would just take the Fourier Cosine series, e.g.

$$a_0 = \frac{1}{L}\int_0^L f(x) \, dx=\int_0^1 2x^2 \, dx=\frac23$$
$$a_n = \frac{2}{L}\int_0^L f(x) \cos\left(\frac{n\pi x}{L}\right) \, dx = 2\int_0^1 2x^2 \cos(n\pi x) \, dx=(-1)^n\frac{8}{n^2\pi^2}$$

But this doesn't appear to be right when subbed in to give:

$$f(x) = a_0+\sum_{n=1}^\infty a_n \cos\left(\frac{n\pi x}{L}\right)=\frac23 + \sum_{n=1}^\infty (-1)^n\frac{8}{n^2\pi^2} \cos(n\pi x)$$

Best Answer

Hey you have a few things that you are doing wrong. First of all the fact that the function is defined on the interval [-1,0] doesn't mean that you have to try and expand it. You can really just use the formula's for the coefficients on the range [-1,0]. The formula's bounds are between -L and L but the bounds can be used between any two points with difference 2L which is the period. In your case the period is 1 so the integral of the function on [-L,L] is the same as the integral on the ranges [-1,0]. Another thing that you don't really seem to get is that you can't just arbitrarily calculate the cosine and sine series and expect it to equal the function. You can only say that when the function you are finding the Fourier series for is even for the cosine series and odd for the sine series. In your case the function is neither which means you have to calculate all of the coefficients. Hope that helps

Related Question