Did I set this Fourier series up correctly?

Click For Summary

Homework Help Overview

The discussion revolves around the setup and definitions of Fourier series for a function \( f(x) \) defined on the interval \( (0, \pi) \). Participants are examining different formulations and definitions of the Fourier coefficients \( a_{0} \), \( a_{n} \), and \( b_{n} \), as well as the implications of using different frequency terms in the series expansion.

Discussion Character

  • Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • The original poster attempts to clarify the definitions of Fourier coefficients and questions the validity of their setup compared to another source that uses different frequency terms. Some participants discuss the implications of extending the function to different intervals and the resulting forms of the Fourier series.

Discussion Status

The discussion is ongoing, with participants exploring various definitions and approaches to Fourier series. There is no explicit consensus, but multiple interpretations of the Fourier series setup are being examined, including the effects of even and odd function extensions.

Contextual Notes

Participants note variations in the definitions of the Fourier coefficients and the potential for different setups based on the choice of interval and function properties. There is mention of differing constants in the definitions, which adds to the uncertainty in the original poster's understanding.

snesnerd
Messages
26
Reaction score
0

If you take the Fourier series of a function $f(x)$ where $0 < x < \pi$, then would $a_{0}$, $a_{n}$, and $b_{n}$ be defined as,

$a_{0} = \displaystyle\frac{1}{\pi}\int_{0}^{\pi}f(x)dx$

$a_{n} = \displaystyle\frac{2}{\pi}\int_{0}^{\pi}f(x)\cos(nx)dx$

$b_{n} = \displaystyle\frac{2}{\pi}\int_{0}^{\pi}f(x)\sin(nx)dx$

assuming that I am using the definition of a Fourier series in the following way:

$f(x) = \displaystyle\frac{a_{0}}{2} + \sum_{k=1}^{\infty}a_{n}\cos\left(\frac{n\pi x}{L}\right) + b_{n}\sin\left(\frac{n\pi x}{L}\right)$

I only ask because I found this article:

http://people.uncw.edu/hermanr/mat463/ODEBook/Book/Fourier.pdf

On page 163 he defines the Fourier series from $[0,L]$ but in his definition, he has

$\cos\left(\frac{2n\pi x}{L}\right)$ and $\sin\left(\frac{2n\pi x}{L}\right)$ in his formulation. Is the way I set it up correct or his way? I have seen it both ways. I have also seen $a_{0}$ defined with the constant $\displaystyle\frac{2}{\pi}$ in front of the integral at times too so I am unsure if mine is correct or I need to add the two.
 
Physics news on Phys.org
Hmmmm it did not translate my latex writing. I apologize for that.
 
snesnerd said:
Hmmmm it did not translate my latex writing. I apologize for that.

Edit your post and put double pound signs ## around inline tex and double dollar signs $$ around displayed tex. Then use the preview button before posting it.
 
Given f: [0,L] \to \mathbb{R} there are three ways to express it as a Fourier series.

First, you can expand it as is, and you'll have in general both sines and cosines of frequencies 2\pi n/L for each positive integer n (because when x = L you want 2\pi n x/L = 2n\pi).

Secondly, you can extend it to [-L,L] as an even function by setting f(-x) = f(x) for each x \in [0,L] and using the series of that. Because it's an even function the series will only have cosine terms, and the frequencies are \pi n/L for each positive integer n (because when x = \pm L you want \pi nx/L = \pm n\pi).

Thirdly, you can extend it to [-L,L] as an odd function setting f(-x) = -f(x) for each x \in [0,L] and using the series of that. Because it's an odd function the series will only have sine terms, and the frequencies are \pi n/L for each positive integer n (because when x = \pm L you want \pi nx/L = \pm n\pi).
 
pasmith said:
Given f: [0,L] \to \mathbb{R} there are three ways to express it as a Fourier series.

Actually, there are infinitely many ways, of which, admittedly, most are pointless. But you could define ##f(x)## pretty much any way you want on ##(-L,0)## and extend periodically from ##(-L,L)##.
 
Last edited:

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K