Fourier B-coefficients for a tricky f(x)

  • Thread starter Thread starter blaksheep423
  • Start date Start date
  • Tags Tags
    Fourier
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 1K views
blaksheep423
Messages
17
Reaction score
0

Homework Statement



compute the Fourier coefficient Bn:

Bn = 2/L[tex]\int[/tex]f(x)*sin(kn x) dx
where kn = n*pi/L and the integral runs over L (pardon the appearance, I am not very good with LaTeX).

Homework Equations


f(x) = 1/2(1-cos(2*pi*x/a) for 0 < x < a
f(x) = 0 for a < x < L


The Attempt at a Solution



I have a pretty solid grip on Fourier transforms and integrating to find the coefficients. Using quite a bit of trig identities and splitting the integral into about 5 parts I was able to come up with a very long solution, a solution which Maple 12 verified was true. I won't bother putting it here because I'm fairly sure that my professor is not looking for something that large and unwieldy. We are expected to use the coefficients for later parts of the assignment. Are there any sneaky tricks I don't know about for integrating sin*cos when the arguments inside are different?
 
Physics news on Phys.org
I don't know if this is "sneaky", but I do such integrals by converting sines and cosines to complex exponentials using

sinx= (eix-e-ix)/2i
cosx= (eix+e-ix)/2

When you multiply things out, you end up with a bunch of exponentials which are trivial to integrate. Once you evaluate the integrals, you can go back from complex exponentials to sines and cosines.
 
Last edited: