# Complex Fourier Series

• Sep 19th 2011, 05:26 AM
halfnormalled
Complex Fourier Series
Hello, I did a forum search and I think this is the correct place to post this. There seem to be a lot of other posts in here on this topic. The question is this:

Find the complex Fourier series of the sawtooth wave
$f(t) = t, 0 and where $f(t+1) = f(t)$

So, I'm trying to use the equation:

$f(t) = \sum_{-\infty}^{\infty} c_n e^{jnwt}$

where

$c_n = \frac{1}{T} \int_{-\frac{T}{2}}^{\frac{T}{2}} f(t) e^{-jnwt} \,dt$

But I'm not getting the answer I'm expecting. I'm not sure what the limits of the integral should be. As the function is not defined for t<0, can I just put:

$c_n = \frac{1}{T} \int_{0}^{1} te^{-jnwt} \,dt$

Or do I need to do something to balance out the fact that the equation doesn't run across the origin...? I'm confused....

• Sep 19th 2011, 12:07 PM
Opalg
Re: Complex Fourier Series
Quote:

Originally Posted by halfnormalled
Hello, I did a forum search and I think this is the correct place to post this. There seem to be a lot of other posts in here on this topic. The question is this:

Find the complex Fourier series of the sawtooth wave
$f(t) = t, 0 and where $f(t+1) = f(t)$

So, I'm trying to use the equation:

$f(t) = \sum_{-\infty}^{\infty} c_n e^{jnwt}$

where

$c_n = \frac{1}{T} \sum_{-\frac{T}{2}}^{\frac{T}{2}} f(t) e^{-jnwt} \,dt$

But I'm not getting the answer I'm expecting. I'm not sure what the limits of the integral should be. As the function is not defined for t<0, can I just put:

$c_n = \frac{1}{T} \sum_{0}^{1} te^{-jnwt} \,dt$

Or do I need to do something to balance out the fact that the equation doesn't run across the origin...? I'm confused....

1. The function certainly is defined for t<0 (by the condition f(t) = f(t+1)).

2. However, it is fine to take the integral from 0 to 1, since that covers one complete period of this periodic function.

3. it would be helpful if you reserved the summation symbol \sum for sums, and used the integral symbol \int for integrals.

4. The function has period 1, so you should put $T=1.$

5. For the same reason, you should put $w=2\pi$ (because $w = 2\pi/T$ always).

If you do all that, then you get the formula $c_n = \int_0^1te^{-2\pi ntj}\,dt,$ and you can evaluate that integral using integration by parts.
• Sep 19th 2011, 11:51 PM
halfnormalled
Re: Complex Fourier Series

Apologies, I was rather rushing to post this on my lunch break at work... I've corrected the signs. Thanks for pointing it out.

Yes, I see now that the function is defined for t<0. I was confusing myself slightly. I did get to the equation you provided at the end, but I think there must have been something suspect in my working as I'm not getting the answer provided in the book. I'll keep trying today and post back here with my findings.

What I'm still not completely clear on is the limits of the integral. It's given in the definition with the following limits

$\int_{-\frac{T}{2}}^{\frac{T}{2}}$

Is there any reason why it goes from a negative to a positive? It made me think initially that the limits should then be

$\int_{-\frac{1}{2}}^{\frac{1}{2}}$
• Sep 20th 2011, 12:42 AM
Opalg
Re: Complex Fourier Series
The integral can be taken over any interval of length 1. The function has period 1, so that (for example) its values in the interval [–1/2,0] are the same as its values in the interval [1/2,1]. Therefore the integrals over those two intervals are the same, and it follows that the integral over [–1/2,1/2] is the same as the integral over [0,1].