Nallyfish
- 6
- 0
Homework Statement
The function f has period 4 and is such that
f(x)=2+x, -2<x\leq0
f(x)=2, 0<x<2
Sketch the graph of f for x∈[−4, 4] and obtain its Fourier series.
Homework Equations
The Attempt at a Solution
Okay so I've pretty much sketched the graph, but I've been thrown by the 2+x and I'm not sure what to do from this point onwards.
So a0=\frac{1}{2}\int^{2}_{0}2dx=2
an=\frac{1}{2}\int^{2}_{0}2*cosnxdx
So
an=\frac{sin2n}{n}
And
bn=\frac{-(cos(2n)-1)}{n}
Am I on the right lines...?
Last edited: