I have been given the following:
$$y''(x)+\omega^2y(x)=s(x),$$
$$s(x)= \delta(x)-\delta(x-\frac{1}{2})$$ for $-\frac{1}{4}<x<\frac{3}{4}$. (Periodically repeating for x outside this interval.)
Question: Find the Fourier series solution y(x) of the above differential equation. I am completely lost, as I am unsure of how to expand s(x) into a Fourier series. Thanks :)
HINT: The Fourier series for a function $f(x)$ on the interval $[-L, L]$ is defined as $$f(x) \sim\frac {a_0}{2} + \sum_{n=1}^\infty{a_n \cos \frac{n \pi x}{L} + b_n \sin \frac{n \pi x}{L}}$$ where $$a_n = \int_{-L}^{L} f(x) \cos \frac{n \pi x}{L}$$ and $$b_n = \int_{-L}^{L} f(x) \sin \frac{n \pi x}{L}$$ And if $f(x)$ is continuous on $(-L, L)$ then this is an equality.