What is the correct Fourier series for f(x) = 2x-1 on the interval 0<x<1?

Click For Summary
SUMMARY

The correct Fourier series for the function f(x) = 2x - 1 on the interval 0 < x < 1 includes the Fourier coefficients A_n = (4/π²) Σ [(-1)ⁿ - 1]/n² cos(nπx) and B_n = -(2/π) Σ [(-1)ⁿ - 1]/n sin(nπx). The confusion arose from the choice of periodic extension for the function, which can be defined as either even or odd, affecting the calculation of coefficients. The half-range formulas can simplify the integration process by allowing the use of only the interval [0, a] instead of [-a, a].

PREREQUISITES
  • Understanding of Fourier series and Fourier coefficients
  • Knowledge of periodic functions and their extensions
  • Familiarity with integration techniques, particularly in the context of trigonometric functions
  • Basic concepts of even and odd functions in mathematical analysis
NEXT STEPS
  • Study the derivation of Fourier coefficients for piecewise functions
  • Learn about the half-range Fourier series and its applications
  • Explore the concepts of even and odd extensions in Fourier analysis
  • Practice solving Fourier series problems using different periodic extensions
USEFUL FOR

Students studying Fourier analysis, mathematicians working with periodic functions, and educators teaching advanced calculus or mathematical analysis concepts.

gl0ck
Messages
85
Reaction score
0

Homework Statement



Hello guys,

I have to solve one basic problem, but I got the result twice smaller that it should be. So, I am thinking that I must have missed something basic.
The problem is f\left(x\right) = 2x-1 for ##0<x<1##.

I have to find the Fourier coefficients.
I have found A_n = \frac{2}{\pi^2}\sum \frac{ (-1)^{n} -1 }{n^2}\cos(n\pi x)
but the answer says A_n=\frac{4}{\pi^2}\sum \frac{ (-1)^n -1 }{n^2}\cos(n\pi x) and B_n = -\frac{2}{\pi} \sum \frac{(-1)^n - 1}{n} \sin(n\pi x)

Also I am confused about the thing that I can see on some places formulas for An such that A_n = \frac{1}{L} \int_{-L}^L f(x)\cos\left(\frac{n\pi}{L}x\right)dx and on some places it is \frac{2}{L}\int_{-L}^L f(x) \cos\left(\frac{n\pi x}{2} x\right)dx in my case I solved with the second formula and get for ##L - 1/2## and formula for ##An = 4 \int_0^1 (2x - 1)\cos(2n\pi x)dx##, same for ##B_n## but with sin.

Thanks and hope you could understand my question(s)
 
Last edited by a moderator:
Physics news on Phys.org
gl0ck said:

Homework Statement



Hello guys,

I have to solve one basic problem, but I got the result twice smaller that it should be. So, I am thinking that I have missed something basic.
The problem is ƒ\left(x\right) = 2x-1 , 0<x<1
I have to find the Fourier coefficients.

You have given a function of (0,1). That is not a periodic function. Your first decision is what periodic function you are expanding, specifically what is the definition going to be on (-1,0). There are three "natural" choices. You could just use the same formula 2x-1 on -1<x<0, or the even extension of 2x-1, or the odd extension of 2x-1 on (-1,0), and extend them periodically. The first choice would be neither even nor odd and would have both ##a_n## and ##b_n## coefficients. The second and third choices being even or odd would have only ##a_n## or ##b_n## coefficients, respectively. Those last two can use the half range formulas. Surely your text talks about that.
 
Not sure I understand what you mean. Are you suggesting to use limits -1<x<0 or -1<x<1 ? If it is that does't it really change the answer much if it is -1<x<0 or 0<x<1.
Or you mean I should understand what is written here : http://www.math24.net/even-and-odd-extensions.html ?
The whole text of the problem says :
Find the Fourier cosine and sine series for the following functions and sketch their corresponding even and odd extensions.
 
Last edited:
gl0ck said:
Not sure I understand what you mean. Are you suggesting to use limits -1<x<0 or -1<x<1 ? If it is that does't it really change the answer much if it is -1<x<0 or 0<x<1.
Or you mean I should understand what is written here : http://www.math24.net/even-and-odd-extensions.html ?

Yes, you need to understand that.

The whole text of the problem says :
Find the Fourier cosine and sine series for the following functions and sketch their corresponding even and odd extensions.

The point is that the even and odd extensions are in fact even and odd functions. And because of that the Fourier coefficients can be calculated by using the so-called half range formulas. The idea is that the ##a_n## formulas for an even function have even integrands. So instead of doing an integral like ##\int_{-a}^a## you can do ##2\int_0^a##. That's the idea behind the half range formulas and you don't have to worry about (-a,0) in the formulas.
 
I forgot to thank you, sorry :) This helped me a lot and I solved them all :D
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K