find the fourier series expansion for the following function
f(x)=x sin x for -pi
can you draw the function?
can you tell if it is odd even or neither?
what i know when i test f(-x) is x is odd then sin x is odd when odd n odd it become even right?
yeah it turns out to be even
so you only have to find \(a_0\) and , \(a_n\)
can you set you the \(a_0\) integral?
what do u mean? is it right i use formula \[2 \div \pi \int\limits_{\pi}^{- \pi} xsinx dx\]
\[a_0=\frac1l\int\limits_{a}^{a+2l} f(x)\,\text dx\] \[a_0=\frac1\pi\int\limits_{-\pi}^{\pi} x\sin(x)\,\text dx\]
now we note that the function even, so \[=\frac2\pi\int\limits_0^{\pi} x\sin(x)\,\text dx\]
(you were close ), can you integrate that?
i get \[a _{0}=2\] is it correct? then how to find \[a _{n}?\]
yes! good work
\[a_n=\frac1l\int\limits_{a}^{a+2l} f(x)\cos\left(\frac{n\pi}lx\right)\,\text dx\]
its a bit trickier
(and use the fact its even first then you might need to use some trig formula like \[2\sin(A)\cos(B)=\sin(A+B)+\sin(A-B)\]
why we used full range equation? even though we know that it is even..
Join our real-time social learning platform and learn together with your friends!