Computing Fourier Series for x^2 Between -pi and pi

Click For Summary

Homework Help Overview

The discussion revolves around computing the Fourier series for the function x² over the interval from -π to π. Participants are exploring the calculations for the coefficients a₀ and aₙ, as well as the implications of the function's evenness on the bₙ coefficients.

Discussion Character

  • Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • The original poster attempts to compute the Fourier coefficients, particularly aₙ, and expresses difficulty with the integration process. Some participants suggest simplifications for aₙ and mention the behavior of trigonometric functions at specific points.

Discussion Status

Participants are actively discussing the simplification of the Fourier coefficients, with some guidance provided regarding the expected form of aₙ. There is an ongoing exploration of the properties of trigonometric functions, particularly in relation to the original poster's confusion about their values at certain points.

Contextual Notes

The original poster references using Wolfram Alpha for verification, indicating a reliance on computational tools for assistance. There is also a mention of the function's evenness affecting the bₙ coefficients, which are noted to be zero.

Studious_stud
Messages
38
Reaction score
0

Homework Statement



15qyqe9.jpg


Homework Equations


Equations to compute Fourier series given in question


The Attempt at a Solution



Ok so I've just done this problem and I'm having some trouble computing the Fourier series of x^{2} between -∏ < ∏

So first I calculate a_{0} and that turns out to be \frac{∏^{2}}{3}, which according to wolfram is right.

Next a_{n}, which is the one I'm having trouble with. Essentially you have to do integration by parts twice (right?) and I end up getting something quite messy, as does wolfram

http://www.wolframalpha.com/input/?i=integrate+x^2+cos+%28n+x%29+dx+from+x%3D-pi+to+pi

Is there any way to clean this up for when I plug a_{n} into the final formula?

b_{n} is 0 obviously so there's no issue there (since it's an even function times an odd function).

Thanks in advance everyone. :)
 
Physics news on Phys.org
You should find it simplifies down to a_n = (-1)^n\frac{4}{n^2}. Since you know n is an integer, you should find some terms vanish, etc.

You can get the answer from Wolfram Alpha by entering "FourierTrigSeries[x^2, x, 10]".
 
vela said:
You should find it simplifies down to a_n = (-1)^n\frac{4}{n^2}. Since you know n is an integer, you should find some terms vanish, etc.

You can get the answer from Wolfram Alpha by entering "FourierTrigSeries[x^2, x, 10]".

Thanks for the response.

So let me get this right... cosn∏ = (-1)^n and sinn∏ = (-1)^n?

Sorry still a bit confused!
 
Not quite. You might want to take a look at a plot of the trig functions.
 
vela said:
Not quite. You might want to take a look at a plot of the trig functions.

Whoops, meant to say sinn∏=0, is this correct?
 
Yes, that's right.
 

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
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K