- #1
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 + [itex]\sum[/itex] [ancos (n[itex]\pi[/itex]x/p) + bn sin (n[itex]\pi[/itex]x/p)
a0 = 1/p [itex]\int[/itex]f(x).dx
an = 1/p [itex]\int[/itex] f(x)cos (n[itex]\pi[/itex]x/p).dx
bn = 1/p [itex]\int[/itex] f(x)sin (n[itex]\pi[/itex]x/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?