Comparing Two Different Answers for Calculating Nth Order Fourier Approximation

  • Context: Graduate 
  • Thread starter Thread starter roam
  • Start date Start date
  • Tags Tags
    Approximation Fourier
Click For Summary
SUMMARY

The discussion centers on the calculation of the nth order Fourier approximation for the function f(x) = x, highlighting discrepancies between two textbooks. The first textbook derives the sine coefficients using the integral b_k = (1/π) ∫[0 to 2π] x sin(kx) dx, resulting in b_k = -2/k. In contrast, the second textbook employs a different approach, yielding b_k = -(-1)^k (2/kπ). The divergence in results stems from the different periodic extensions of the function, one on the interval (-1, 1) and the other on (-π, π), leading to distinct sawtooth waveforms.

PREREQUISITES
  • Understanding of Fourier series and Fourier coefficients
  • Familiarity with integral calculus, particularly definite integrals
  • Knowledge of periodic functions and their properties
  • Experience with sine and cosine functions in mathematical analysis
NEXT STEPS
  • Study the derivation of Fourier coefficients for odd functions
  • Explore the concept of periodic extensions in Fourier analysis
  • Learn about the differences between Fourier series on different intervals
  • Investigate the implications of convergence in Fourier series
USEFUL FOR

Mathematicians, physics students, and engineers involved in signal processing or harmonic analysis will benefit from this discussion, particularly those seeking clarity on Fourier series calculations and their applications.

roam
Messages
1,265
Reaction score
12
I once wanted to find the nth order Fourier approximation for [tex]f(x)=x[/tex]. Since this function is odd, the projections on all cosines will be zero, hence it will be expressed through the sines only. So I just needed to find the sine coefficients.

The problem is that I checked the answer to this problem in two different textbooks, each one giving a different answer from the other.

  • The first book calculates the coefficients like this:
[tex]b_k= \frac{1}{\pi} \int^{2 \pi}_{0} f(x)sin(kx)= \frac{1}{\pi} \int^{2 \pi}_0 xsin(kx) dx =- \frac{2}{k}[/tex]

  • The second book calculates the coefficients this way:
[tex]b_k = (f(x),sin (k \pi x))= \int^1_{-1} x sin (k \pi x) dx= -x\frac{cos (k \pi x)}{k \pi} \right]^1_{-1} + \int^1_{-1} \frac{cos (k \pi x)}{k \pi}dx[/tex][tex]= -2 \frac{cos k \pi}{k \pi}=-(-1)^k \frac{2}{k \pi}[/tex]

So which one is correct? I mean, they both are probably correct but I don't understand why each of these books use different methods and end up with different answers. Any explanation is very much appreciated.
 
Physics news on Phys.org
Those two expressions are for the series of different functions. One is the periodic extension of f(x) = x on (-1,1) and the other the periodic extension of f(x) = x on (-π,π). One is a sawtooth of period 2π and the other a sawtooth of period 2. They happen to agree on (-1,1).
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 29 ·
Replies
29
Views
5K