Fourier Transform Homework: Determine First 3 Terms

Click For Summary

Homework Help Overview

The original poster attempts to determine the first three terms in the Fourier series for a piecewise function. There is a focus on defining the function correctly and calculating the Fourier coefficients.

Discussion Character

  • Exploratory, Assumption checking

Approaches and Questions Raised

  • Participants discuss the definition of the piecewise function and question whether the intervals used for integration are appropriate. There is also a consideration of the symmetry of the function and its implications for the Fourier coefficients.

Discussion Status

Some participants have raised questions about the function's definition and the integration limits. There is an acknowledgment of a potential mistake in the integration range, with suggestions to reconsider the intervals used for calculations.

Contextual Notes

There is a mention of an attachment that was not initially included, which is critical for understanding the function being analyzed. The discussion also touches on the importance of integrating over the correct period for accurate results.

roldy
Messages
206
Reaction score
2

Homework Statement


I need to determine the first three terms in the Fourier series pictured in the attachment.
Did I define the peace-wise functions correctly?

I'm re-posting this with the tex code instead of the attached document.

Homework Equations


[tex] a_o=\frac{1}{2L}\int_{-L}^Lf(t)dt[/tex]

[tex] a_n=\frac{1}{L}\int_{-L}^Lf(t)cos\left(\frac{n\pi{t}}{L}\right)dt[/tex]


The Attempt at a Solution


The plot of the series is symmetric, so therefore I am only going to find what [tex]a_o[/tex] and [tex]a_n[/tex].

[tex] a_o=\frac{2}{3T} \left[\int_\frac{-3T}{4}^\frac{-T}{4}(-1)dt+\int_\frac{-T}{4}^\frac{T}{4}(1)dt+\int_\frac{T}{4}^\frac{3T}{4}(-1)dt\right][/tex]
[tex] =\frac{2}{3T}\left[-\left(-T/4-(-3T/4)\right)+\left(T/4-(-T/4)\right)+\left(3T/4-T/4\right)\right]<br /> <br /> =\frac{2}{3T}\left(T/4-3T/4+T/4+T/4+3T/4-T/4\right)=1/3[/tex]

[tex] a_n=\frac{4}{3T}\left[\int_\frac{-3T}{4}^\frac{-T}{4}(-1)cos\left(\frac{n\pi{t}}{3T/4}\right)dt+\int_\frac{-T}{4}^\frac{T}{4}(1)cos\left(\frac{n\pi{t}}{3T/4}\right)dt+\int_\frac{T}{4}^\frac{3T}{4}(-1)cos\left(\frac{n\pi{t}}{3T/4}\right)dt\right][/tex]

[tex] =\frac{4}{3T}\left[\left[-sin\left(\frac{n\pi{\left(-T/4\right)}}{3T/4}\right)+sin\left(\frac{n\pi{\left(-3T/4\right)}}{3T/4}\right)\right]\frac{3T}{4n\pi}+\left[sin\left(\frac{n\pi{\left(T/4\right)}}{3T/4}\right)-sin\left(\frac{n\pi{\left(-T/4\right)}}{3T/4}\right)\right]\frac{3T}{4n\pi}[/tex]
[tex] -\left[sin\left(\frac{n\pi{\left(3T/4\right)}}{3T/4}\right)-sin\left(\frac{n\pi{\left(T/4\right)}}{3T/4}\right)\right]\frac{3T}{4n\pi}[/tex]


[tex] \frac{1}{n\pi}\left[\left[-sin\left(\frac{-n\pi}{3}\right)+sin\left(-n\pi\right)\right]+\left[sin\left(\frac{n\pi}{3}\right)-sin\left(\frac{-n\pi}{3}\right)\right]-\left[sin\left(n\pi\right)-sin\left(\frac{n\pi}{3}\right)\right]\right][/tex]

Distributing the signs through and simplifying:

[tex] \frac{1}{n\pi}\left[4sin\left(\frac{n\pi}{3}\right)-2sin\left(n\pi\right)\right][/tex]

So for n=1,2,3 I get

[tex] a_1=\frac{2\sqrt{3}}{2\pi}[/tex]

[tex] a_2=\frac{\sqrt{3}}{2\pi}[/tex]

[tex] a_3=0[/tex]
 
Physics news on Phys.org
What is f?
 
lanedance said:
What is f?

It's not f. It's f(t), meaning f of t. If you look at the attached picture I came up with f(t) on three intervals. I'm not sure if they are correct. They look correct to me.
 
yeah i get its f(t) but can't see any attached pic? pretty important part of the problem
 
Sorry about that. For some reason it didn't attach. Here's another try at it.
 

Attachments

  • untitled.JPG
    untitled.JPG
    15.9 KB · Views: 364
ok, so why integrate over more that a period?

3T/4 - (-3T/4) = 3T/2
 
I think that's where I might of made the mistake. I think I should of done it from -T/4 to 3T/4.
 
That sounds better... Note that the integral over sin(tnpi/T) would be non zero over that interval as well, you could try your new interval on a sin as a check
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K