I'm for once attempting to do the practise questions for the subject but confused already just looking at it!
Anyone able to help with the following?
Show the following:
x~ (2)[SUM ((-1)^(n-1))((sin nx)/n), -PI<x<PI
x^2~ ((PI^2)/3)+ (4)[SUM ((-1)^n)((cos nx)/(n^2))]
I'm thinking the problems need the same method so if I could get a start on the first I might be able to figure out the second? It won't leave my oo and n=1 sign where I want them so they are supposed to go above and below the SUM if anyone is wondering
Presumably these are exercises in calculating Fourier series? For the first one, the function f(x)=x is an odd function, so all the Fourier cosine coefficients will be zero. You calculate the sine coefficients like this:
. . . . . (integrating by parts)
. . . . . (because )
. . .
For anyone else following this, the coefficients a_n =0 since x->xcos(nx) are even functions.
The next step with the final answer given by Opalg is (excuse my simple notation)
x~a_0/2 + SUM[a_n(cos(nx)) + b_n(sin(nx))]
x~2 SUM (-1)^(n-1)[sin(nx)]/n
Hope thats clear. Still stuck on the second if anyone has any ideas. I don't think you can simple square it or maybe you can?
(PS it keeps moving my infinity sign and n=1 so I'm sorry but they won't stay above and below the SUM!)
The function f(x)=x^2 is even, so all the sin coefficients are zero. For the cos coefficients, you need to evaluate the integral in the formula (you'll need to integrate by parts twice).
Didn't think so!
Ok I'm running into trouble in the actual integration
So integration by parts,
Let u=x^2 and du=2dx
Let dv=cosnx and v=nsinnx?
Then using the integration by parts formula
a_n= (x^2)(nsinnx) - INT[(nsinnx)2]dx
= (x^2)(nsinnx) - 2n INT(sinnx)dx [getting lost here, n is constant right? so I can take it out?]
Now where to I go?
How do I know what to do in the first term, if x or n is zero it will disappear right?
PS is there anywhere I could learn to use latec (I think thats the term for it) as it really is so much clearer
. . . . . . .
(integrating by parts a second time). Now take it from there!
One snag: that calculation won't work for n=0 (obviously, because you mustn't divide by 0). So you have to calculate a_0 separately.