-1

Consider $n\in\mathbb{N}$ and $l\in\mathbb{N}$. How do I calculate the integral that follows? $$\int_0^L x\sin\left(\frac{\pi n x}{L}\right)\sin\left(\frac{\pi l x}{L}\right) dx$$

1 Answers1

1

Hints:

Note $\cos(ax \pm bx) = \cos ax \cos bx \mp \sin ax \sin bx$, so $$\sin ax \sin bx = \tfrac12\cos(ax - bx)-\tfrac12\cos(ax+bx)$$

Note also that you can integrate by parts: $$\int x\cos kx\; dx = \int x\;d(\tfrac1k\sin kx) = \tfrac1k x\sin kx - \int\tfrac1k \sin kx \; dx = \tfrac1k x\sin kx + \tfrac1{k^2}\cos kx$$

With these, you can perform the integration easily.

MPW
  • 43,638