Fourier Series Coefficients for f(x)=xcos(x) on [-∏,∏]

Click For Summary
To find the Fourier coefficients for f(x)=xcos(x) on the interval [-∏,∏], the user is struggling with the calculation of bn and consistently obtaining a result of zero for b1. The discussion reveals that the user is breaking the integral into two parts but is missing a factor of x in their integration process. Proper application of integration by parts is necessary to include the term x cos(k+1)x in the calculations. When the correct bounds are substituted, the terms will not cancel out, leading to a non-zero result for b1. Accurate integration techniques are crucial for determining the Fourier coefficients correctly.
tigertan
Messages
24
Reaction score
0
Hey there,

First time user of this forum.

I have a question regarding an integral I've been stuck on for the past few days. I would really appreciate any eye opener into this problem!

How do I find the Fourier coefficients for f(x)=xcos(x), x [-∏,∏]

So when calculating the coefficient bn I figure that the equation I'll be working with is (1/∏)∫xcos(x)sin(kx)dx (FROM -∏ to ∏).

I keep getting down to 1/2∏∫xsin((k+1)x)dx (FROM -∏ to ∏) + 1/2∏∫xsin((k-1)x)dx (FROM -∏ to ∏) . I some how always get a 0 for b1. What am I doing incorrectly??
 
Physics news on Phys.org
Welcome to PF, tigertan! :smile:

I'm not getting 0 for b1.
So what did you do?
 
Am I right in breaking it up to 1/2∏∫xsin((k+1)x)dx (FROM -∏ to ∏) + 1/2∏∫xsin((k-1)x)dx (FROM -∏ to ∏)?

I then end up with 1/2∏[-(k+1)cos((k+1)x) + sin((k+1)x)](FROM -∏ to ∏) + 1/2∏[-(k-1)cos((k-1)x) + sin((k-1)x)](FROM -∏ to ∏)

This equals to 0 when I put b1
 
You lost a factor x in your integration.
It seems you did not properly apply integration by parts.

You should have an expression containing: x cos(k+1)x.
When you substitute the bounds -pi and +pi, these add up.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
11K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
12
Views
11K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 6 ·
Replies
6
Views
1K