Solving Fourier Question: -\pi < x< 0 & 0 < x < \pi

  • Thread starter Thread starter manenbu
  • Start date Start date
  • Tags Tags
    Fourier
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
manenbu
Messages
101
Reaction score
0

Homework Statement



function is:
[tex]1, -\pi < x< 0[/tex]
[tex]2, 0 < x < \pi[/tex]

The Attempt at a Solution



What I get is this:

[tex]\frac{3}{2}+\frac{1}{\pi}\sum_{n=1}^\infty\frac{(-1)^n}{n}\sin{nx}[/tex]

According to the answers in the exercise sheet, it should be:
[tex]\frac{3}{2}+\frac{2}{\pi}\sum_{n=1}^\infty\frac{1}{2n-1}\sin{(2n-1)x}[/tex]

I don't understand why this is true. The 2n-1 hints that I should've got a [itex]\pi/2[/itex] somewhere inside the trig functions in the intergal, but I can't see where this is coming from.
Can anyone help me here?
 
Physics news on Phys.org
manenbu said:

Homework Statement



function is:
[tex]1, -\pi < x< 0[/tex]
[tex]2, 0 < x < \pi[/tex]

The Attempt at a Solution



What I get is this:

[tex]\frac{3}{2}+\frac{1}{\pi}\sum_{n=1}^\infty\frac{(-1)^n}{n}\sin{nx}[/tex]

According to the answers in the exercise sheet, it should be:
[tex]\frac{3}{2}+\frac{2}{\pi}\sum_{n=1}^\infty\frac{1}{2n-1}\sin{(2n-1)x}[/tex]

I don't understand why this is true. The 2n-1 hints that I should've got a [itex]\pi/2[/itex] somewhere inside the trig functions in the intergal, but I can't see where this is coming from.
Can anyone help me here?

That is giving you every other term. You should probably have something like (-1)n-1 in the numerator which would drop out every other term. Maybe you overlooked a lower limit in your integral.
 
Yes, apparently 2-1 became 0 in my first calculation. I got it correct now. Thanks!