$\int_0^\pi\sin(2t)e^{-in2t}dt$ complex number integral for integer values of n

97 Views Asked by At

$$\int_0^\pi\sin(2t)e^{-in2t} \, dt$$

wolfram alpha say the answer is

$$\frac{1-e^{-2 i n π}}{2-2 n^2}$$

although using the integral trig identity

$$\int \sin(bt)e^{at}\,dt=e^{at}\dfrac{1}{a^2+b^2}\left(a \sin(bt)-b \cos(bt)\right)$$

and the integral across the period of sine and cosine is 0.

I want to express this as a Fourier Series.

2

There are 2 best solutions below

3
On

The trig identity is wrong

$$ \int \sin(ax) \exp(bx) dx = \frac{1}{a^2+b^2} \exp(bx) \Big( b \sin(ax) - a \cos(bx) \Big) $$

1
On

Hint: A slightly easier trig identity to derive* is,

$$\int_{0}^{2\pi}\sin{(x)}\exp{(bx)}\,\mathrm{d}x=\frac{1-e^{2\pi b}}{1+b^2}.$$

Your integral can of course be put in this form via the substitution $x=2t$:

$$\int_{0}^{\pi}\sin{(2t)}\,e^{-2int}\,\mathrm{d}t=\frac12\int_{0}^{2\pi}\sin{(x)}\,e^{-inx}\mathrm{d}x.$$


*Derivation of trig integral identity:

$$\begin{align} \int_{0}^{2\pi}e^{bx}\sin{x}\,\mathrm{d}x&=-\frac{1}{b}\int_{0}^{2\pi}e^{bx}\cos{x}\,\mathrm{d}x\\ &=-\frac{e^{bx}\cos{(x)}}{b^2}\bigg{|}_{0}^{2\pi}-\frac{1}{b^2}\int_{0}^{2\pi}e^{bx}\sin{x}\,\mathrm{d}x\\ \left(1+\frac{1}{b^2}\right)\int_{0}^{2\pi}e^{bx}\sin{x}\,\mathrm{d}x&=-\frac{e^{2\pi b}}{b^2}-(-\frac{1}{b^2})\\ \left(\frac{b^2+1}{b^2}\right)\int_{0}^{2\pi}e^{bx}\sin{x}\,\mathrm{d}x&=\frac{1-e^{2\pi b}}{b^2}\\ \int_{0}^{2\pi}e^{bx}\sin{x}\,\mathrm{d}x&=\frac{1-e^{2\pi b}}{1+b^2} \end{align}$$