My question is kinda dumb, but here I go: I'm studying Fourier Series on my own for my next semester. I needed to calculate the Fourier Series of the function f(x)=5 defined in [−4,4].
In this case, using the standard notation, L=4 are the coefficients are
a0=1L∫L−Lf(x) dx; an=1L∫L−Lf(x)⋅cos(nπxL) dx and bn=1L∫L−Lf(x)⋅sin(nπxL) dx, correct?
Since the function is constant the sines and cosines must have no contribution to the Fourier series at all, i.e., an=bn=0, but when I'm doing the calculations I'm getting an=10πnsin(πn). It must be a pretty dumb mistake I'm not seeing, I'm kinda new at this subject.
Thanks for the help :]
Answer
an=1L∫L−L5cos(nπxL)dx1L(5sin(nπxL)(Lnπ)|L−L(5nπ)(sin(nπ)−sin(−nπ))=0
since sin(nπ)=0
bn=1L∫L−L5sin(nπxL)dx1L(−5cos(nπxL)(Lnπ)|L−L(−5nπ)(cos(nπ)−cos(−nπ))=0
since cosx is an even function.
No comments:
Post a Comment