Finding Fourier coefficients for a step function on [-π, π)

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 1K views
Calu
Messages
73
Reaction score
0

Homework Statement


Define ##f : [−π, π) → \mathbb R ## by
##f(x)## = ##−1## if ##− π ≤ x < 0##, ##1## if ##0 ≤ x < π.##
Show that the Fourier series of f is given by
##\frac{4}{π} \sum_{n=0}^\infty \frac{1}{(2k+1)} . sin(2k+1)x##

Homework Equations



The Fourier series for ##f## on the interval ##[−π, π)## is given by:

##\frac{a0}{2} + \sum_{n=0}^\infty ancos(nx) + \sum_{n=0}^\infty bnsin(nx)##
(Not quite sure why the LaTex isn't working here, I'm new at this.)
Where a0/2, an, bn are the Fourier coefficients of ##f##.

The Attempt at a Solution



I have attempted to find the Fourier coefficients, however I don't think that they're correct.

I have found
a0/2 = 1
an = 0.
bn = ##\frac {2}{πn} -2\frac {(-1)^n}{n}##

Could somebody tell me if these are correct? If not, I'll post up how I reached those answers.
 
Physics news on Phys.org
I think you lost a ##\pi## in the second term of your expression for ##b_n##.
 
##a_0## isn't correct either.