# Expanding as fourier series

Any continuous function of period 2L can be expanded as a Fourier series

f(x)=a0/2+∑(from n=1 to∞) (ancos(n pi x/L)+bnsin(n pi x/L))

Using ∫(from -L to +L) sin(m pi x/L)sin(n pi x/L)dx=L kronecker delta m n

Show that
Bn=1/L∫(from -L to+L) sin(n pi x/L)f(x) dx

i am seriously stuck on this - kinda can't stand proof questions

you must multiply f(x) by (1/L)sin(m pi x/L) and then integrate from -L to L in order to obtein:
$$\frac{1}{L}\int_{-L}^{L}sin(\frac{m\pi x}{L})f(x)dx=\frac{a_{0}}{2L}\int_{-L}^{L}sin(\frac{m\pi x}{L})dx+\sum a_{n} \frac{1}{L}\int_{-L}^{L}sin(\frac{m\pi x}{L})cos(\frac{n\pi x}{L})dx+\sum b_{n} \frac{1}{L}\int_{-L}^{L}sin(\frac{m\pi x}{L})sin(\frac{n\pi x}{L})dx$$

then just apply the previous property that you mentioned and the fact that sin and cos are ortogonal function:

$$\int_{-L}^{L}sin(\frac{m\pi x}{L})cos(\frac{n\pi x}{L})dx=0$$

but how do i get rid of th a0 and summation signs?
i tried what accatagliato said but 1)i couldnt get rid of the a0, and 2) i ended up with sin (n pi x/L) on a denominator

$$\int_{-L}^{L}sin(\frac{m\pi x}{L})dx=0$$
because the sin function is an odd function and the interval of integration is symmetric. In fact:

$$\int_{-L}^{L}sin(\frac{m\pi x}{L})dx=\int_{-L}^{0}sin(\frac{m\pi x}{L})dx+\int_{0}^{L}sin(\frac{m\pi x}{L})dx$$
changing x --> -x in the second integral

$$\int_{-L}^{0}sin(\frac{m\pi x}{L})dx+\int_{0}^{-L}sin(\frac{m\pi x}{L})dx=0$$

For the summation:

$$\sum_{n} b_{n}\delta_{nm}=b_{m}$$

thanks
im so sorry but what am i supposed to now do with b m (b subscript m)?
if i substitute the last equation in, the b n disappears, so then i can't actually do what they ask me to do in the question cos in the question they ask me to show that b n equals something

after substitution you obteined:

$$b_{m}=\frac{1}{L}\int_{-L}^{L}sin(\frac{m\pi x}{L})f(x)d$$

nothing changes if there is n or m in the final result, you can call the index however you want, so this result transforms into:

$$b_{n}=\frac{1}{L}\int_{-L}^{L}sin(\frac{n\pi x}{L})f(x)d$$