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
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top