• Support PF! Buy your school textbooks, materials and every day products Here!

Half range fourier cosine series

  • Thread starter v_pino
  • Start date
  • #1
169
0

Homework Statement



The function f(x) is defined on the interval 0<x<L by f(x)=x. It can be represented by the fourier cosine series

f(x) = a_0 + sum a_n cos(n*pi*x / L)

Find its Fourier coefficients a_0 and a_n.


Homework Equations



Multiply both sides by cos(n*pi*x / L) and integrate from L to 0. Then integration by parts.


The Attempt at a Solution



I got a_0 = L and a_n = 4L/ n^2 pi^2

The answers should be : a_0 = L/4 and a_n = -2L/n^2 pi^2 for n = odd and a_n=0 for n = even.

thanks!
 

Answers and Replies

  • #2
318
0
The give answer is not quite correct, but neither is yours.
a_0 should be L/2 and a_n(odd) = -4L/(n^2 pi^2).
The value for a_0 can be seen to be correct by shifting the function by L/2 to the left. Then it is an odd function up to the shift upwards by L/2. So it can be represented by only sines, which explains that even values of the cosine are 0.

If you want us to find your mistake you have to post your calculation.
 

Related Threads for: Half range fourier cosine series

Replies
0
Views
16K
Replies
29
Views
5K
Replies
21
Views
3K
Replies
4
Views
6K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
2
Views
3K
  • Last Post
Replies
1
Views
1K
Top