Integrating for Fourier Series

tomeatworld
Messages
49
Reaction score
0

Homework Statement


For positive integers m and n, calculate the two integrals:

\frac{1}{L}\int^{L}_{-L}sin(\frac{n \pi x}{L})sin(\frac{m \pi x}{L})dx and \frac{1}{L}\int^{L}_{-L}sin(\frac{n \pi x}{L})cos(\frac{m \pi x}{L})dx

Homework Equations


\int u v' dx = [u v] - \int u' v dx

The Attempt at a Solution


For the first one, I can't seem to get anything other than 0 for the integral (but not in the normal way). If I work through, I end with I = \frac{n^{2}}{m^{2}}I and that makes no sense at all. Every other part of the integral I find cancels to 0 as they all include sin(\frac{n \pi x}{L}) or sin(\frac{m \pi x}{L}) which will be 0 as n and m are integers. What am I doing wrong?

Edit: I plugged the two integrals into Mathematica and found the second one to be 0, which I calculated, but the first one is not. What do I need to change in my working?
 
Last edited:
Physics news on Phys.org
You could use the relations

sinAsinB=\frac{cos(A-B)-cos(A+B)}{2}

sinAcosB=\frac{sin(A+B)+sin(A-B)}{2}

This will make your integration easy.
It is better to view graphically too. Try to plot multiplication of two sine waves of different frequencies ( a sin and cos wave of different frequencies also) and see graphically. You can guess their average value graphically. In fact that is the result of your integration also.
 
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