Showing fourier series of sin^2(x)=(1/2)-(cos(2x)/2)

charity4thep
Messages
4
Reaction score
0

Homework Statement



f(x)=sin^2(x)

Homework Equations





The Attempt at a Solution



solving for a(0)= i did (1/2Pi)*int(sin^2(x),x,-Pi..Pi)=1/2
b(n)=0 because sin^2(x) is an even function
a(n)=(1/Pi)*int(sin^2(x)cos(n*x),x,-Pi..Pi)=1/2Pi((sin(xn)/n)-(.5sin((2-n)x)/(2-n))-(.5sin((2+n)x)/(2+n))) this whole thing evaluated from -Pi..Pi

I keep getting zero although I know this is not the answer, so maybe I am messing up somewhere. Help is greatly appreciated.
 
Physics news on Phys.org
Make sure you're not dividing by zero.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...

Similar threads

Back
Top