I have the function f(x) = cos(x) on the interval from 0 to pi and I need to comput the Fourier sine series.

I have the integral of cos(x) multiplied by sin(nx), I can't figure out a way to integrate them! The "n" gets in the way, what do I do?

4 answers

first sketch a graph of cos x and sin x, sin 2x, sin 3x, sin 4x
in the interval from 0 to pi
You will notice that for n = 1 for example, the plus contribution between 0 and pi/2 cancels the negative contribution between pi/2 and pi
in fact for cos 1x * sin n x dx, only even values of n will contribute for the integral from 0 to pi.
The general rule for this definite integral is:
integral from 0 to pi of
sin ax cos bx dx
is:
2a/(a^2-b^2) if (a-b) is odd
0 if (a-b) is even
so here:
2/(1-n^2) if n is even
0 if n is odd
So basically, that is the coefficient "bn" that I place in the summation from n=1 to infinity of sin(nx)?

If that is correct, thanks, I was going into a complicated page of integration . . .
Okay, I got it, thanks Damon.
yes :)
Similar Questions
  1. the function =-x^2+4x-3 is graphed in the xy-corrdinate plane as shown.Based on the graph of the function, which of the
    1. answers icon 1 answer
  2. 6)The function f(x)=4x3−18x2−480x−2 is decreasing on the interval ? Enter your answer using the interval notation for open
    1. answers icon 0 answers
    1. answers icon 1 answer
    1. answers icon 1 answer
more similar questions