Fourier Series complex coefficients

Click For Summary

Discussion Overview

The discussion revolves around the calculation of complex Fourier coefficients for a square wave function. Participants are exploring the derivation of these coefficients, particularly focusing on the integral formulation and the implications of the function's periodicity and symmetry. The scope includes mathematical reasoning and technical explanation related to Fourier analysis.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents the formula for the complex Fourier coefficient, c_n, and attempts to derive it for a square wave function.
  • Another participant points out a potential error in the integral, suggesting a missing minus sign and inconsistencies in the limits of integration.
  • A participant acknowledges the hints provided and indicates a possible understanding of the derivation after revisiting the calculations.
  • There is a mention of the behavior of the term e^{-in\pi} for odd and even n, referencing its relationship to cosine and sine functions.
  • One participant notes a technical issue with loading an image that is relevant to the discussion.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the derivation of the coefficients, as there are indications of errors and differing interpretations of the integral limits and the function's behavior. The discussion remains unresolved regarding the correct expressions for c_n.

Contextual Notes

There are limitations in the discussion regarding the assumptions made about the function's behavior beyond certain limits of integration, as well as the dependence on the correct interpretation of the exponential terms involved in the Fourier series.

jellicorse
Messages
40
Reaction score
0
I have been trying to follow how the complex Fourier coefficients are obtained; the reference I am using is at www.thefouriertransform.com. However I am unable to follow the author's working exactly and wondered if anyone could help me see where I am going wrong.

First, I understand that the coefficient c_n=\frac{1}{T}\int^T_0 f(t) e^{\frac{-i2\pi nt}{T}}dt

Given a square wave, of period 2T, and amplitude :

http://s90.photobucket.com/user/jonnburton/media/SqareWave_zpsbdf193c1.jpg.html

It can be seen directly from the graph that c_0=\frac{1}{2} (I also managed to calculate this, too.)

But I can't follow how the author obtained expressions for c_n.

This is what I have done in attempt to obtain c_n:

c_n=\frac{1}{T}\int^{\frac{T}{2}}_0 1 \cdot e^{\frac{-i2\pi nt}{T}}dt

\frac{1}{T}\left[\frac{T e^{\frac{-i2\pi nt}{T}}}{i2\pi n}\right]^{\frac{T}{2}}_0

\frac{1}{T}\left[\left(\frac{T e^{-in\pi}}{in2\pi}\right)-\left(\frac{T}{in2\pi}\right)\right]

\left(\frac{e^{-in\pi}}{in2\pi}-\frac{1}{in2\pi}\right)

However, the expression the author finds is:

\frac{1}{i\pi n} for odd n, and zero for even n.
 
Last edited by a moderator:
Physics news on Phys.org
You seem to be missing a minus sign in your integral.

Also, simply for consistency, the limits you originally give (between 0 and T) aren't the limits you say you end up using (between 0 and T/2).

Lastly, what is e^{-in\pi} for odd/even n? Recall e^{in\pi} = cos(n\pi) + isin(n\pi).
 
  • Like
Likes   Reactions: 1 person
Thanks for the hints Silversonic. I will go back through it again but I think I can see how this works out now!

(I just changed the limits because I though it wasn't necessary to integrate beyond \frac{T}{2} because the function there is zero.)
 
jellicorse said:
(I just changed the limits because I though it wasn't necessary to integrate beyond \frac{T}{2} because the function there is zero.)

Okay, the picture won't load for me. That could be an issue on my end.
 
Not sure why it wasn't working; I've just typed the URL in again and I think it's OK now.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
9K
  • · Replies 33 ·
2
Replies
33
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K