| 
May 15th, 2008, 11:33 AM
| | Newbie | | Join Date: Feb 2008
Posts: 20
Country: Thanks: 4
Thanked 0 Times in 0 Posts
| | Fourier series expansion of f(x)=x Hi, I'm doing a course on PDEs and we have started looking at Fourier series. I am revising and 2 questions have come up that I am stuck on. One wants the Fourier series expansion of the extension of f(x)=x , -pi<x<pi, and the other the same but with f(x)=|x|.
I can start both but then I get stuck. I know that I need to use complex Fourier series and that you start by finding the Fourier coefficient f^(n) (thats f with a hat, not f to the power n) using integration by parts. This is fine. Its when you have to put everything together at the end and for some reason use f^(0) that I start getting confused. If anyone could help me solve these particualr questions or just give me a general step-by-step guide that would be great. This is what I have so far....(im not very good with the inserting of the symbols so bear with me!)
For f(x)=x, -pi<x<pi
f(x) = 1/(2*pi)*sum(from n= - infinity to infinity) f^(n)*e^(i*n*x) and
f^(n) = integral (between -pi and pi) f(x)*e^(-i*n*x)
I can substitute an x in wherever there is an f(x) and then integrate f^(n) by parts to eventually get f^(n) = (2*pi*((-1)^n)*i)/n
From here I am stuck!
Firstly am I right so far? If so, what do I do next?
Thanks,
Sooz | 
May 15th, 2008, 12:33 PM
|  | Global Moderator | | Join Date: Nov 2005 Location: New York City
Posts: 11,186
Country: Thanks: 482
Thanked 3,758 Times in 3,070 Posts
| | Quote:
Originally Posted by Sooz Hi, I'm doing a course on PDEs and we have started looking at Fourier series. I am revising and 2 questions have come up that I am stuck on. One wants the Fourier series expansion of the extension of f(x)=x , -pi<x<pi | The Fourier Series is given by,  .
Where  and  because it is odd function.
And  .
It remains for you to compute that  's. | 
May 15th, 2008, 02:19 PM
| | Newbie | | Join Date: Feb 2008
Posts: 20
Country: Thanks: 4
Thanked 0 Times in 0 Posts
| | Thanks,
I'm just a bit confused as my lecturer said we have to use the complex form of Fourier series. So if I take what you put, is it easy to convert it into the form that I need to use?
Thanks again | 
May 15th, 2008, 02:35 PM
|  | MHF Contributor | | Join Date: Aug 2007 Location: Leeds, UK
Posts: 2,065
Country: Thanks: 126
Thanked 1,262 Times in 1,049 Posts
| | Quote:
Originally Posted by Sooz For f(x)=x, -pi<x<pi
f(x) = 1/(2*pi)*sum(from n= - infinity to infinity) f^(n)*e^(i*n*x) and
f^(n) = integral (between -pi and pi) f(x)*e^(-i*n*x)
I can substitute an x in wherever there is an f(x) and then integrate f^(n) by parts to eventually get f^(n) = (2*pi*((-1)^n)*i)/n
From here I am stuck!
Firstly am I right so far? If so, what do I do next? | You're right so far. The formula  is correct, except that it doesn't work when n=0, because you can't divide by 0. That's why you usually have to calculate  separately. For the function f(x)=x, you get  .
All that remains to do is to write down the (complex) Fourier series as  . To get round the problem of incorporating the n=0 term into the sum, it's probably easiest to split the sum into two parts, one going from –∞ to –1, and the other one from 1 to ∞. Then  .
(This can be written as  , which is the same as you would get by calculating the real Fourier series. The complex series is not different from the real series, but it's often easier to calculate because integrals with exponentials tend to be more convenient than trigonometrical ones. Also, you only have one integral to deal with, instead of two separate ones for the sines and the cosines.)
For the other function, f(x) = |x|, the method is the same, but you need to split the integral into two intervals, from –π to 0, and from 0 to π. On the first interval, |x|=–x and on the second interval |x|=x. So the formula for the Fourier coefficients becomes  (and again, you'll have to deal with the case n=0 separately).
Last edited by Opalg; May 16th, 2008 at 12:10 PM.
Reason: Corrected another mistake
| 
May 16th, 2008, 04:02 AM
| | Newbie | | Join Date: Feb 2008
Posts: 20
Country: Thanks: 4
Thanked 0 Times in 0 Posts
| | Thanks! Thanks so much for your help! I really appreciate it!
Its all making sense now!!!
Sooz | 
November 6th, 2009, 06:04 PM
| | Newbie | | Join Date: Sep 2009 Location: Michigan
Posts: 14
Country: Thanks: 7
Thanked 0 Times in 0 Posts
| | Quote:
Originally Posted by Opalg You're right so far. The formula  is correct... | At the risk of sounding slow, which has never stopped me before, could someone please show step by step how using partial fractions ended up with this equation? I have tried repeatedly to reproduce, but I feel like I'm missing one key, simple, step that would make it all seem clear.
Thanks in advance! | 
November 7th, 2009, 04:51 AM
| | MHF Contributor | | Join Date: Oct 2009
Posts: 1,172
Thanks: 54
Thanked 400 Times in 378 Posts
| | Quote:
Originally Posted by dsprice At the risk of sounding slow, which has never stopped me before, could someone please show step by step how using partial fractions ended up with this equation? I have tried repeatedly to reproduce, but I feel like I'm missing one key, simple, step that would make it all seem clear.
Thanks in advance! | ![\int\limits_{-\pi}^{\pi}xe^{-inx}\,dx=\left[\frac{ixe^{-inx}}{n}\right]_{-\pi}^{\pi}+\frac{i}{n}\int\limits_{-\pi}^{\pi}e^{-inx}\,dx \int\limits_{-\pi}^{\pi}xe^{-inx}\,dx=\left[\frac{ixe^{-inx}}{n}\right]_{-\pi}^{\pi}+\frac{i}{n}\int\limits_{-\pi}^{\pi}e^{-inx}\,dx](http://www.mathhelpforum.com/math-help/latex2/img/a4bdaba9ed71277aaa51f2239a7b4fa3-1.gif) (remember that  ) =
Tonio | | The following users thank tonio for this useful post: | |  | 
November 7th, 2009, 08:06 AM
| | Newbie | | Join Date: Sep 2009 Location: Michigan
Posts: 14
Country: Thanks: 7
Thanked 0 Times in 0 Posts
| | Quote:
Originally Posted by tonio (remember that  ) | This is precisely the part that I was missing! Thanks! | 
November 7th, 2009, 08:55 AM
|  | Member | | Join Date: Feb 2008
Posts: 163
Country: Thanks: 69
Thanked 2 Times in 2 Posts
| | Quote:
Originally Posted by ThePerfectHacker The Fourier Series is given by,  .
Where  and  because it is odd function.
And  .
It remains for you to compute that  's. | For this I just did:
No good?
Last edited by billym; November 7th, 2009 at 09:06 AM.
| | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -7. The time now is 10:24 PM. | | |