I am computing the Fourier series of
f(x)=sinπxL.
The Fourier series of a piecewise smooth function f(x) defined on the interval −L≤x≤L is given by
f(x)∼a0+∞∑n=1ancosnπxL+∞∑n=1bnsinnπxL,
where
a0=12L∫L−Lf(x)dx,an=1L∫L−Lf(x)cosnπxLdx,bn=1L∫L−Lf(x)sinnπxLdx.
Since f is an odd function, we have that both a0 and an are equal to zero. However, bn is the integral of an even function. Hence
bn=2L∫L0f(x)sinnπxLdx.
But it turns out that (1) is equal to zero, because
bn=2Lsin(nπ)π(1−n2)=0,n∈N.
On the other hand, my book claims that bn=1. Why is this so?
Answer
A trigonometric polynomial is equal to its own fourier expansion. So f(x)=sin(x) has a fourier expansion of sin(x) only (from [−π,π] I mean). The series is finite just like how the taylor expansion of a polynomial is itself (and hence finite). In addition, bn=0 IF n≠1 because your expression is undefined for n=1. For all other values of n, you are correct and bn=0. And you can see that from equation (1) too. n=1 must be handled separately. And when you do compute the integral with n=1, you will get b1=1.
No comments:
Post a Comment