How to expand f(x)=x^2, -pi<x<pi as fourier series

Click For Summary
SUMMARY

The discussion focuses on expanding the function f(x) = x², for -π < x < π, as a Fourier series. The correct expansion is given by f(x) = (π²/3) + 4Σ from n=1 to ∞ [(-1)ⁿ/(n²)]cos(nx). The confusion arises from the integration process to find the coefficients a(n), where integrating by parts is necessary to derive the n² term in the denominator. The integral ∫ from -π to π x² cos((nπx)/L) dx is critical for determining the coefficients accurately.

PREREQUISITES
  • Understanding of Fourier series expansion
  • Knowledge of integration by parts
  • Familiarity with trigonometric integrals
  • Basic concepts of series convergence
NEXT STEPS
  • Study the process of deriving Fourier coefficients for piecewise functions
  • Learn advanced integration techniques, particularly integration by parts
  • Explore the properties of cosine functions in Fourier series
  • Investigate convergence criteria for Fourier series
USEFUL FOR

Students and educators in mathematics, particularly those studying Fourier analysis, as well as engineers and physicists applying Fourier series in signal processing and wave analysis.

blueyellow

Homework Statement


how to expand f(x)=x^2, -pi<x<pi as Fourier series
answer at back of the book says:
f(x)=((pi^2)/3)+4sigma(from 1 to infinity) [((-1)^n)/(n^2)]cos nx
i tried the a(n) b(n) stuff but i don't see where they get the n^2 in the denominator from

when i integrated to try to find a(n) i get n on the denominator
 
Physics news on Phys.org
It seems pretty straight forward to me. In order to get rid of that "[itex]x^2[/itex]" you will need to integrate by parts- twice. And each time you will get a 1/n integrating the trig function. If you want more detail on where you went wrong, we will have to see what you did. HOW did you integrate
[tex]\int_{-\pi}^\pi x^2 cos(x) dx[/tex]?
 
integral of x^2 cos ((n*pi*x)/L) dx

using partial integration
integral=first term*integral of second term -[integral of (first term differentiated*integral of second term)]
first term=x^2
second term=cos...
=integral (from -pi to pi) x^2 cos((n*pi*x)/2pi) dx
=integral (from -pi to pi) x^2 cos((n*x)/2) dx
=[(2x^2)/n sin ((nx)/2)- integral of 2x sin (nx/2)] dx
=[(2x^2)/n sin ((nx)/2)- [-4x/n cos (nx/2) + 4/n cos (nx)]dx

putting in the limits
integral=(4pi^2)/n

a(n)=1/L *integral
=2pi/n

that term at the beginning of the answer is a0/2, right?
because if n=0 is put into 2pi/n, it'll be infinity!
 

Similar threads

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