Fourier series problem solving for an,bn

Click For Summary

Homework Help Overview

The discussion revolves around finding the Fourier series coefficients \( a_0 \), \( a_n \), and \( b_n \) for a piecewise function defined on the interval from -2 to 2, with a specified period of 4. Participants are analyzing the integration process and the application of Fourier series formulas.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • The original poster attempts to compute the coefficients \( a_0 \) and \( a_n \) using the given formulas but encounters difficulties with the calculation of \( a_n \). They express confusion regarding the integration and substitution steps. Other participants question the correctness of the integration limits and the evaluation of the function at specific points.

Discussion Status

Participants are actively engaging in clarifying the steps involved in calculating the Fourier coefficients. Some guidance has been offered regarding the need to include the factor \( 1/L \) in the calculations and to correctly evaluate the function at the boundaries of the integration. There is an ongoing examination of the calculations and potential errors without reaching a consensus on the final results.

Contextual Notes

There are indications of missing information or potential misunderstandings regarding the evaluation of the function at specific points, particularly at \( x = 0 \). Participants are also navigating the implications of the piecewise definition of the function on the integration process.

dp182
Messages
19
Reaction score
0

Homework Statement


let f(x)={0;-2[itex]\leq[/itex]x[itex]\leq[/itex]0.
x;0[itex]\leq[/itex]x[itex]\leq[/itex]2
find a0
an
bn
given the period is 4

Homework Equations


a0=1/L[itex]\int[/itex]f(x)dx
an=1/L[itex]\int[/itex]f(x)cos(n[itex]\pi[/itex]x/L)
bn=1/L[itex]\int[/itex]f(x)sin(n[itex]\pi[/itex]x/L)

The Attempt at a Solution


so I can get a0 = 1 but I run into trouble with an. so I plug
an=1/2[itex]\int[/itex]xcos(n[itex]\pi[/itex]x/L) for the interval 0[itex]\leq[/itex]x[itex]\leq[/itex]2 and I get the solution
=(1/n2[itex]\pi[/itex]2)2xn[itex]\pi[/itex]sin(n[itex]\pi[/itex]x/2)+4cos(n[itex]\pi[/itex]x/2) then subbing in for x I get (1/n2[itex]\pi[/itex]2)(4n[itex]\pi[/itex]sin(n[itex]\pi[/itex])+4cos(n[itex]\pi[/itex])-1) can anyone tell me what I am doing wrong here?
 
Physics news on Phys.org
Hi dp182!

dp182 said:

Homework Statement


let f(x)={0;-2[itex]\leq[/itex]x[itex]\leq[/itex]0.
x;0[itex]\leq[/itex]x[itex]\leq[/itex]2
find a0
an
bn
given the period is 4

Homework Equations


a0=1/L[itex]\int[/itex]f(x)dx
an=1/L[itex]\int[/itex]f(x)cos(n[itex]\pi[/itex]x/L)
bn=1/L[itex]\int[/itex]f(x)sin(n[itex]\pi[/itex]x/L)

The Attempt at a Solution


so I can get a0 = 1 but I run into trouble with an. so I plug
an=1/2[itex]\int[/itex]xcos(n[itex]\pi[/itex]x/L) for the interval 0[itex]\leq[/itex]x[itex]\leq[/itex]2 and I get the solution
=(1/n2[itex]\pi[/itex]2)2xn[itex]\pi[/itex]sin(n[itex]\pi[/itex]x/2)+4cos(n[itex]\pi[/itex]x/2) then subbing in for x I get (1/n2[itex]\pi[/itex]2)(4n[itex]\pi[/itex]sin(n[itex]\pi[/itex])+4cos(n[itex]\pi[/itex])-1) can anyone tell me what I am doing wrong here?

You made two mistakes: you forgot the term 1/L, so you still need to divide by 2. Secondly, when you "subbed for x", you made a mistake in "subbing for 0". That is, the correct formula is

[tex]\int_0^2{f(x)dx}=F(2)-F(0)[/tex]

But somehow, you calculated F(0) wrong.
 
but wouldn't F(0) be 4cos(0)/n2pi2 which is just 4/n2pi2
 
dp182 said:
but wouldn't F(0) be 4cos(0)/n2pi2 which is just 4/n2pi2

Indeed, but you wrote -1 instead of -4 in the end.
 
ya but I brought out a 4/n2pi2 so its not -1 its -4/n2pi2
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K