Simplifying Fourier series coefficients with cos(nπ) terms

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
19 replies · 2K views
teme92
Messages
185
Reaction score
2

Homework Statement


I'm calculating the coefficients for the Fourier series and I got to part where I can't simplify an any further but I know I have to.

[tex]a_n = \frac{1}{2π}\Big[\frac{cos(n-1)π}{n-1}-\frac{cos(n+1)π}{n+1}-\frac{1}{n-1}+\frac{1}{n+1}\Big][/tex]

Homework Equations

The Attempt at a Solution


I have found an example where the above line goes straight to:

[tex]a_n=-\frac{1}{2π}(1+(-1)^n)\frac{2}{(n-1)(n+1)}[/tex]

I don't know how you get from one line to the next. If anyone could explain this to me, it would be greatly appreciated.
 
Physics news on Phys.org
I've tried subbing (-1)n in for both of the cos parts but it doesn't simply to what is given.
 
teme92 said:
I've tried subbing (-1)n in for both of the cos parts but it doesn't simply to what is given.

Yes it does; start again.
 
When I sub in and simplify I'm getting:

[tex]a_n = \frac{1}{2π}\Big[\frac{(-1)^n + (-1)^n}{(n-1)(n+1)}\Big][/tex]
 
Last edited:
Observe that you have ##\cos[(n-1)\pi]## and that you have some other terms too.
 
[tex]a_n = \frac{1}{2π}\Big[\frac{(-1)^n}{n-1}-\frac{(-1)^n}{n+1}-\frac{1}{n-1}+\frac{1}{n+1}\Big][/tex]

Is this correct?
 
teme92 said:
[tex]a_n = \frac{1}{2π}\Big[\frac{(-1)^n}{n-1}-\frac{(-1)^n}{n+1}-\frac{1}{n-1}+\frac{1}{n+1}\Big][/tex]

Is this correct?
Why don't you try inserting a few values to check?
 
That the values that come out of your formula agree with the original expression.
 
If I put integers in for n will the result not be a single number?
 
Yes, but it will be different for different n of course. I said "inserting a few values".
 
[tex]n=0: a_n = 0[/tex]

[tex]n=1: a_n = \frac{1}{2π}[/tex](has zero dividers though)

[tex]n=2: a_n = \frac{1}{12π}[/tex]
 
Yes. But you want to check that you got the right result first. You asked:
teme92 said:
[tex]a_n = \frac{1}{2π}\Big[\frac{(-1)^n}{n-1}-\frac{(-1)^n}{n+1}-\frac{1}{n-1}+\frac{1}{n+1}\Big][/tex]

Is this correct?

If there is any n for which your new expression does not equal the old, then it is not correct.
 
  • Like
Likes   Reactions: teme92