Fourier series expansion of Sin(x)

therimalaya
Messages
7
Reaction score
0
May be simple, but I'm getting problem with doing Fourier series expansion of Sin(x) for -pi\leqx\leqpi
 
Physics news on Phys.org


What does the formula for the Fourier expansion of a general function f(x) look like?
 


CompuChip said:
What does the formula for the Fourier expansion of a general function f(x) look like?

f(x)=ao+\sum(ancos(nx)+bnsin(nx))

where,
ao=\frac{1}{\pi}\intf(x) dx
an=\frac{1}{2\pi}\intf(x)cos(nx) dx
bn=\frac{1}{2\pi}\intf(x)sin(nx) dx
 
Last edited by a moderator:


Isn't it supposed to be 1/pi for both a_n and b_n and 1/2pi for a_0? And in the formulae for a_n, b_n, these are supposed to be definite integrals not indefinite ones.
 
Last edited:


Anyway, for the sine you can either calculate all these coefficients, but you can also just read off the values from the general expression.

HallsOfIvy, you may be right, didn't notice that. Asked the mods to look into it and maybe split the thread.[/size]
 


Defennder said:
Isn't it supposed to be 1/pi for both a_n and b_n and 1/2pi for a_0? And in the formulae for a_n, b_n, these are supposed to be definite integrals not indefinite ones.

Yes there is definite intergral from -infinity to +infinity. I missed that.
Sorry

----------------
Now playing: Various Artists - A house with no name - America
via FoxyTunes
 


CompuChip said:
Anyway, for the sine you can either calculate all these
----------------

HallsOfIvy, you may be right, didn't notice that. Asked the mods to look into it and maybe split the thread.[/size]

I've tried that, May be I might have done some mistake, The integral term while calculating a_o, a_n and b_n vanishes and results zero. That is why I kept this in this forum. Any way I'll try that.
Thank You
 
You mean they all vanished? Check again the ones for n = -1 and n = 1.
Also, check the integration boundaries. They are not (-\infty, \infty).
 
Back
Top