TFM
- 1,016
- 0
Homework Statement
Find the Fourier series corresponding to the following functions that are periodic over the
interval [-\pi,\pi]
f(x) = 1, -\pi/2 < x< \pi/2; f(x) otherwise.
Homework Equations
Fourier Series:
f(x) = \frac{1}{2}a_0 + \sum^\infty_{n=1}a_n cos\frac{2*\pi*n*x}{l} + \sum^\infty_{n=1} b_n sin\frac{2*\pi*n*x}{l}
\frac{1}{l}\int^{l/2}_{-l/2}f(x) dx
a_n = \frac{1}{l}\int^{l/2}_{-l/2}f(x) cos frac{2*\pi*n*x}{l}dx
a_n = \frac{1}{l}\int^{l/2}_{-l/2}f(x) sin frac{2*\pi*n*x}{l}dx
The Attempt at a Solution
So far I have:
a_0 = 1
a_n = \frac{1}{\pi n}[sin(nx)]^{\pi/2}_{-\pi/2}
b_n = -\frac{1}{\pi n}[cos(nx)]^{\pi}_{-\pi}
But I am not sure what to do now. I seem to be mainly confused about the n's
TFM