I have worked through the following question

with a period of 4

and got

4/n^2*pi^2 sin (n*pi/2) - 2/n*pi cos (n*pi)

Can someone tell me why the cos part of the answer is n*pi and not (-1)^n?

Printable View

- February 9th 2011, 01:27 AMhunterage2000question about answer to fourier series question
I have worked through the following question

with a period of 4

and got

4/n^2*pi^2 sin (n*pi/2) - 2/n*pi cos (n*pi)

Can someone tell me why the cos part of the answer is n*pi and not (-1)^n? - February 9th 2011, 07:53 AMAckbeet
Well,

You can convince yourself of this by looking at the graph of the cosine function.

Does that answer your question? - February 9th 2011, 10:02 AMhunterage2000
so why would this be (-1)^2 and not the another?

- February 9th 2011, 10:08 AMAckbeet
I don't understand your question. Can you please rephrase?

- February 9th 2011, 11:15 AMhunterage2000
The step before I got the answer of (-1)^2 was cos(n*pi) for post 3. The step before post 1 was cos(n*pi) and stayed cos(n*pi) and I dont know why.

- February 9th 2011, 11:17 AMAckbeet
Where did the (-1)^2 come from? I thought we were talking about (-1)^n. Did you mean (-1)^n in all your posts?

- February 9th 2011, 11:46 AMhunterage2000
yeah sorry I do

- February 9th 2011, 11:54 AMAckbeet
Ah. So the answer to your question is post # 5 is that I have no clue. Post # 2 still stands. It could be a preference of the author, though I find the exponential expression to be simpler than the trig expression.

- February 9th 2011, 01:16 PMhunterage2000
so the answer can be both in post #2

- February 9th 2011, 01:18 PMAckbeet
They're entirely equivalent. It's a preference thing.

- February 9th 2011, 01:26 PMhunterage2000
or right, we were never told that in class. Thats helped me, thanks for that.

- February 9th 2011, 01:29 PMAckbeet
You're very welcome. Have a good one!