- 665
- 68
Homework Statement
Find the Fourier Series Expansion for:
(a) f(x) = [pi-2x, 0 < x < pi | pi+2x, -pi < x < 0]
(b) f(x) = [0, -pi < x < 0 | sin(x), 0 < x < pi]
Homework Equations
F(x)=\frac{a_0}{2}+\Sigma_{n=1}^{\infty}[a_ncos(nx)+b_nsin(nx)]
a_0=\frac{1}{\pi} \int_{- \pi}^{\pi}f(x)dx
a_n= \frac{1}{\pi} \int_{- \pi}^{\pi}f(x)cos(nx)dx
b_n= \frac{1}{\pi} \int_{- \pi}^{\pi}f(x)sin(nx)dx
The Attempt at a Solution
For (a) my final answer was:
f(x)=\frac{8}{\pi}(cos(x)+\frac{cos(3x)}{9}+...+\frac{cos(nx)}{n^2})
and i think this is correct, but for (b) i got kind of a funny answer imo;
f(x)=\frac{1}{\pi}+\frac{2}{\pi}(\frac{cos(3x)}{8}+\frac{cos(5x)}{24}+...+\frac{cos(nx)}{n^2-1})
if someone could work out b and see if they get the same answer i would appreciate it.
Josh