Fourier series problem solving for an,bn

dp182
Messages
19
Reaction score
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?
 
Physics news on Phys.org
Hi dp182!

dp182 said:

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?

You made two mistakes: you forgot the term 1/L, so you still need to divide by 2. Secondly, when you "subbed for x", you made a mistake in "subbing for 0". That is, the correct formula is

\int_0^2{f(x)dx}=F(2)-F(0)

But somehow, you calculated F(0) wrong.
 
but wouldn't F(0) be 4cos(0)/n2pi2 which is just 4/n2pi2
 
dp182 said:
but wouldn't F(0) be 4cos(0)/n2pi2 which is just 4/n2pi2

Indeed, but you wrote -1 instead of -4 in the end.
 
ya but I brought out a 4/n2pi2 so its not -1 its -4/n2pi2
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top