dp182
- 19
- 0
Homework Statement
let f(x)={0;-2\leqx\leq0.
x;0\leqx\leq2
find a0
an
bn
given the period is 4
Homework Equations
a0=1/L\intf(x)dx
an=1/L\intf(x)cos(n\pix/L)
bn=1/L\intf(x)sin(n\pix/L)
The Attempt at a Solution
so I can get a0 = 1 but I run into trouble with an. so I plug
an=1/2\intxcos(n\pix/L) for the interval 0\leqx\leq2 and I get the solution
=(1/n2\pi2)2xn\pisin(n\pix/2)+4cos(n\pix/2) then subbing in for x I get (1/n2\pi2)(4n\pisin(n\pi)+4cos(n\pi)-1) can anyone tell me what I am doing wrong here?