I'm trying to find the complex form for this fourier series and then transform it into the real one.I don't know exactly how this transformation is suppose to happen..I'm thinking it must have something to do with .Also when I try to calculate the complex form I get zero which means I"m doing something wrong.
F(t) is defined as:
and
Now (don't know how to define a definite integral on latex but this one is from -pi to pi)
=>
(the first integral is from -pi->0 and the second from 0->pi)
=>
This is not the correct answer.Can someone please help me?
Use the facts that and . That tells you that the cosine coefficients are given by , and the sine coefficients are given by .
In this example, you should find that the complex Fourier coefficients have the property that , so all the cosine terms in the real Fourier series vanish. Also, when k is odd, so the only nonzero sine terms occur for odd values of k. Write for those terms, and you should get the given solution.
I found the right answer....but the problem is that I was under the impression that I did that by accident...so I tried another ex. and unfortunately this was the case.....can you please give me a full example of a fourier transformation from complex to real?
The formulas I gave in my previous comment were wrong (I have now edited it to correct them). They should be (for the cosine coefficients) and (for the sine coefficients).
For the square wave function in this example, you should have found that the complex Fourier coefficients are given by
Here, you can see that if k is even, and if k is odd. So the cosine coefficients are all zero. For the sine coefficients, if k is even, and if k is odd then Since k is odd, we can put . Then you see that the coefficient of is , for m=1,2,3,..., and all the other terms in the Fourier series are 0.
That gives you the formula , just as the book says.