Trouble determining the Fourier Cosine series for a Function

Arthur Yeh
Messages
2
Reaction score
0

Homework Statement


I am only interested in 9 (a)
Determine the Fourier Cosine series of the function g(x) = x(L-x) for 0 < x < L
20180213_160653.jpg

Homework Equations


The Answer for 9 a.
g(x) = (L^2)/6 - ∑(L^2/(nπ)^2)cos(2nπx/L)
20180213_160710.jpg


This is the relevant equation given where ω=π/L
f(t) = a0+∑ancos(nωt)
a0=1/L ∫f(t) dt from 0 to L
an=2/L∫f(t)cos(nωt) dt from 0 to L
20180213_160738.jpg

The Attempt at a Solution


This is my attempt at the solution
g(x) = a0 - Σancos(nωx)
where
a0=L^2/6
an= -2L^2[(cos(nπ)+1)/(nπ)^2]
I have double checked this answer both manually and through the use of an online integral calculator and i still arrive at this conclusion. As a result I believe my partial integrations are correct but my answer is in the wrong form. Initially I tried changing cos(nπ) to (-1)^n but i didnt get anywhere as i didnt couldn't get rid of the n power. I also tried working backwards from the answer using some double angle identities but did not arrive at any recognizable form.
20180213_160424.jpg

20180213_160254.jpg
 

Attachments

  • 20180213_160254.jpg
    20180213_160254.jpg
    30 KB · Views: 801
  • 20180213_160424.jpg
    20180213_160424.jpg
    30.5 KB · Views: 832
  • 20180213_160653.jpg
    20180213_160653.jpg
    20.1 KB · Views: 824
  • 20180213_160710.jpg
    20180213_160710.jpg
    22.3 KB · Views: 969
  • 20180213_160254.jpg
    20180213_160254.jpg
    30 KB · Views: 460
  • 20180213_160738.jpg
    20180213_160738.jpg
    18.6 KB · Views: 904
Last edited:
Physics news on Phys.org
Sure... I believe your integrals are correct. If you write out the first few of the a's you should be able to see that every other one goes to zero because cos(n*pi) is minus one and cos(n*pi)-1 is zero. Only the even n's count. For the even n's, let n=2*i. Then you have a sum from i=1,2,3,4...
 
  • Like
Likes Arthur Yeh
I meant to say cos(n*pi)+1 is zero
 
Thanks alot!
I didnt think to look more closely at its behaviour for odd and even n's
 
Arthur Yeh said:

Homework Statement


I am only interested in 9 (a)
Determine the Fourier Cosine series of the function g(x) = x(L-x) for 0 < x < L
View attachment 220239

Homework Equations


The Answer for 9 a.
g(x) = (L^2)/6 - ∑(L^2/(nπ)^2)cos(2nπx/L)
View attachment 220240

This is the relevant equation given where ω=π/L
f(t) = a0+∑ancos(nωt)
a0=1/L ∫f(t) dt from 0 to L
an=2/L∫f(t)cos(nωt) dt from 0 to L
View attachment 220242

The Attempt at a Solution


This is my attempt at the solution
g(x) = a0 - Σancos(nωx)
where
a0=L^2/6
an= -2L^2[(cos(nπ)+1)/(nπ)^2]
I have double checked this answer both manually and through the use of an online integral calculator and i still arrive at this conclusion. As a result I believe my partial integrations are correct but my answer is in the wrong form. Initially I tried changing cos(nπ) to (-1)^n but i didnt get anywhere as i didnt couldn't get rid of the n power. I also tried working backwards from the answer using some double angle identities but did not arrive at any recognizable form.
View attachment 220238
View attachment 220237

You are developing a very bad habit: posting images instead of typing out your work. Most helpers will not be bothered to look at your images, so will not want to help. (See the post "Guidelines for students and helpers", by Vela, pinned to the start of this forum.)
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top