# Challenge in trignometry and integration [closed]

Can anyone prove how the two equations are equal? Thanks

$$=\frac1\pi \int_0^{2\pi} f(x) \left\{\frac12+\sum_{n=1}^N \cos [n(t-x)] \right\} \, dx$$

$$=\frac1{2\pi} \int_0^{2\pi} f(x) \frac{(N+\frac12)(x-t)}{\sin\frac12(x-t)}\, dx$$

• Hint : try to work with the sum of $e^{in(t-x)} = (e^{i(t-x) \text{ }}) ^ n$ … Feb 8, 2016 at 14:33
• Have a look here and on some other similar posts. Feb 8, 2016 at 17:24

Now, this is a telescoping sum, hence we can write $$\frac{1}{2}\sin\left[\frac{1}{2}(x-t)\right]+\frac{1}{2}\left[\sin\left[\left(N+\frac{1}{2}\right)(x-t)\right]-\sin\left[\frac{1}{2}(x-t)\right]\right]=\frac{1}{2}\sin\left[\left(N+\frac{1}{2}\right)(x-t)\right]$$
Eventually $$\boxed{\frac{1}{2}+\sum_{n=1}^{N}\cos\left[n(t-x)\right]=\frac{\sin\left[\left(N+\frac{1}{2}\right)(x-t)\right]}{2\sin\left[\frac{1}{2}(x-t)\right]}} \hspace{3cm}\blacksquare$$