Fourier series expansion of Sin(x)

Click For Summary
SUMMARY

The discussion focuses on the Fourier series expansion of the function Sin(x) over the interval -π ≤ x ≤ π. The correct formula for the Fourier expansion is given by f(x) = a0 + Σ(an cos(nx) + bn sin(nx)), where a0 = (1/π) ∫ f(x) dx, an = (1/2π) ∫ f(x) cos(nx) dx, and bn = (1/2π) ∫ f(x) sin(nx) dx. Participants clarified that a0 should use 1/π, while an and bn should use 1/2π, and emphasized the importance of using definite integrals for accurate calculations. The need to check integration boundaries was also highlighted to avoid errors in coefficient calculations.

PREREQUISITES
  • Understanding of Fourier series and their applications
  • Knowledge of definite integrals and their properties
  • Familiarity with trigonometric functions and their expansions
  • Basic calculus skills for evaluating integrals
NEXT STEPS
  • Study the derivation of Fourier series for different functions
  • Learn about the convergence properties of Fourier series
  • Explore the application of Fourier series in signal processing
  • Investigate common mistakes in calculating Fourier coefficients
USEFUL FOR

Mathematicians, physics students, engineers, and anyone interested in signal processing or harmonic analysis will benefit from this discussion on Fourier series expansion.

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).
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K