LASmith
- 21
- 0
Homework Statement
f(x) = x+1 for -1,x<0
x-1 for 0<x<1
0 for x=0
expand it in an appropriate cosine or sine series
Homework Equations
f(x) = a0/2 + \sum [ancos (n\pix/p) + bn sin (n\pix/p)
a0 = 1/p \intf(x).dx
an = 1/p \int f(x)cos (n\pix/p).dx
bn = 1/p \int f(x)sin (n\pix/p).dx
The Attempt at a Solution
As there are two functions within this f(x), I am unsure of how to go ahead and do this.
I realize the overall function is odd, therefore would only need to expand the bn part of the Fourier series, however the individual functions are not odd.
How would I go about setting this up?