What Are the Fourier Coefficients for the Half-Range Cosine Series of f(x)=x?

v_pino
Messages
156
Reaction score
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!
 
Physics news on Phys.org
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.
 
Thread 'Need help understanding this figure on energy levels'
This figure is from "Introduction to Quantum Mechanics" by Griffiths (3rd edition). It is available to download. It is from page 142. I am hoping the usual people on this site will give me a hand understanding what is going on in the figure. After the equation (4.50) it says "It is customary to introduce the principal quantum number, ##n##, which simply orders the allowed energies, starting with 1 for the ground state. (see the figure)" I still don't understand the figure :( Here is...
Thread 'Understanding how to "tack on" the time wiggle factor'
The last problem I posted on QM made it into advanced homework help, that is why I am putting it here. I am sorry for any hassle imposed on the moderators by myself. Part (a) is quite easy. We get $$\sigma_1 = 2\lambda, \mathbf{v}_1 = \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix} \sigma_2 = \lambda, \mathbf{v}_2 = \begin{pmatrix} 1/\sqrt{2} \\ 1/\sqrt{2} \\ 0 \end{pmatrix} \sigma_3 = -\lambda, \mathbf{v}_3 = \begin{pmatrix} 1/\sqrt{2} \\ -1/\sqrt{2} \\ 0 \end{pmatrix} $$ There are two ways...
Back
Top