Fourier series of a periodic function not starting at x=-L

Click For Summary

Homework Help Overview

The discussion revolves around the Fourier series of a periodic function defined on the interval from x=0 to x=2π, rather than the conventional interval from x=-π to x=π. Participants are exploring how to adapt existing Fourier series formulas to accommodate this different starting point for the periodic function.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss modifying integration limits for Fourier series calculations to fit the function's defined period. Questions arise about the implications of shifting the function and whether existing formulas can be directly applied or need adjustment.

Discussion Status

There is an ongoing exploration of how to express the function and its Fourier coefficients correctly. Some participants suggest that the formulas can be adapted for the new interval, while others seek clarification on the implications of shifting the function. Multiple interpretations of the problem are being considered, and some guidance has been offered regarding the use of piecewise definitions for the function.

Contextual Notes

Participants note that the function is periodic with a specific interval and question the assumptions underlying the standard Fourier series formulas, particularly regarding the smoothness of the function over the chosen interval.

Nikitin
Messages
734
Reaction score
27

Homework Statement


In "oppgave 4" http://www.math.ntnu.no/emner/TMA4120/2011h/xoppgaver/tma4120-2010h.pdf
you have a periodic function which is NOT periodic from ##x=-L=-\pi## to ##x=L=\pi##, but at ##x=0## and ends at ##x=2 \pi=2L##.

The formulas I have (like these http://tutorial.math.lamar.edu/Classes/DE/FourierSeries.aspx) for building up a Fourier transform assumes the function is periodic and begins its period at ##x=-L## and ends at ##x=L##.

What am I to do?

The Attempt at a Solution



My gut feeling tells me I should just modify them so that the integration starts at ##x=0## and ends at ##x=2 \pi##.

Is this correct? why?

EDIT: Obviously I've missed some important theory on Fourier analysis, so I hope you guys could enlighten me a bit? As a guess: The formulas I already got are built up using that cos and sin are perpendicular functions when their product is integrated from -pi to pi. Since the same holds if they're integrated from 0 to 2pi, all the existing formulas can painlessly be modified to also be valid for a function periodic from x=0 to x=2L? Or, x=x_0 to x=x_0 + 2L, for that matter?
 
Last edited:
Physics news on Phys.org
If f(x) has period from 0 to 2\pi then f(x- \pi) has period from -\pi to \pi.
 
  • Like
Likes   Reactions: 1 person
Ahh, so if I just do that transformation (##x \rightarrow x' - \pi##) on all the formulas, I'll end up with the limits going from ##x'=0## to ##x'=2 \pi##? Alright, thanks :)

So, for example: ##a_0 = \frac{1}{2 \pi} \int_{x=-\pi}^{x=\pi} f(x) dx = \frac{1}{2 \pi} \int_{x'=0}^{x'=2 \pi} f(x'-\pi) dx'##, and ditto for ##a_n## and ##b_n##. But what about the ##(x'-\pi)## input of ##f## in the second integral? the function is shifted to the right?

How would I use the above result to find the Fourier series of the function from the OP, using the original formulas?
 
Last edited:
Your function is periodic of period ##2\pi##. You can use the usual formulas on ##[-\pi,\pi]## as long as you have the right function ##f(x)## on that interval. If there is some reason given in the problem that you can't do this, well, I don't read German (or whatever that is).
 
  • Like
Likes   Reactions: 1 person
I'm sorry, I formulated myself horribly in the OP. Should've read it before posting.What I meant was:

f(x) is periodic, but its period starts on x=0 and ends on x=2pi, instead of starting at x=-pi and ending at x=pi like I am used to.
The question: How am I supposed to find the Fourier series of f(x) in oppgave 4, when all the formulas I know presume that the period of a periodic function f(x)=f(x+2pi) starts on -pi and ends at pi?

I tried transforming the coordinates of my usual formulas to fit the situation for f(x):

##x \rightarrow x' - \pi##
So, : ##a_0 = \frac{1}{2 \pi} \int_{x=-\pi}^{x=\pi} f(x) dx = \frac{1}{2 \pi} \int_{x'=0}^{x'=2 \pi} f(x'-\pi) dx'##, and ditto for ##a_n## and ##b_n##. But what about the ##(x'-\pi)## input of ##f## in the second integral? the function is shifted to the right?
But I am doing it wrong.

So could somebody help to clear this up? I'd really appreciate it.
 
Last edited:
You don't have to shift anything. Write the equation of that line segment in your picture on ##[-\pi,0]## and the equation of the line segment on ##[0,\pi]##. Use those two equations in a two piece formula ##f(x)## and use your standard formulas.
 
Could you write down the expressions for ##a_0##,##a_n## and ##b_n## as an example?

The function from oppgave 2 is this:

##f(x) = 2 \pi -x## for ##0 <x \leq \pi## and ##f(x) = 3 \pi - 2x## for ## \pi <x<2\pi##, while ##f(x) = f(x+ 2 \pi)##.
 
Nikitin said:
Could you write down the expressions for ##a_0##,##a_n## and ##b_n## as an example?

The function from oppgave 2 is this:

##f(x) = 2 \pi -x## for ##0 <x \leq \pi## and ##f(x) = 3 \pi - 2x## for ## \pi <x<2\pi##, while ##f(x) = f(x+ 2 \pi)##.

OK. You already have ##f(x)## on ##(0,\pi)##. What is the equation of that line in your picture going from ##(-\pi,\pi)## to ##(0,-\pi)##? It's just a straight line segment. Write its equation and it is the other piece of ##f(x)##. Then use your standard formulas for the coefficients. You are going to have to break up the integrals like$$
\int_{-\pi}^\pi = \int_{-\pi}^0+\int_0^\pi$$because of the two piece formula. Is that what is bothering you?
 
  • Like
Likes   Reactions: 1 person
oh crap, nevermind. I thought you only could approximate a periodic function with a Fourier expansion if the function is smooth over the interval you use to create the expansion. I realize that's incorrect now.

OK thanks for the help! :)

EDIT: But btw, it would be possible to also use the interval going from ##x=0## to ##x=2 \pi## to create a Fourier series of the function, right?
 
Last edited:
  • #10
Nikitin said:
oh crap, nevermind. I thought you only could approximate a periodic function with a Fourier expansion if the function is smooth over the interval you use to create the expansion. I realize that's incorrect now.

OK thanks for the help! :)

EDIT: But btw, it would be possible to also use the interval going from ##x=0## to ##x=2 \pi## to create a Fourier series of the function, right?

Yes. You can use any ##2\pi## interval for the integration. If you use ##(0,2\pi)## you can use the two piece formulas you are given. For a function of period ##P##$$
\int_0^P f(x)~dx = \int_a^{a+P}f(x)~dx$$for any ##a##.
 
  • Like
Likes   Reactions: 1 person
  • #11
ahh yes, of course. How silly of me. OK, thanks :)
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
4
Views
2K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K