# Thread: Evaluate sum(requires use of complex numbers)?

1. ## Evaluate sum(requires use of complex numbers)?

Evaluate:
$\displaystyle \sin x + 3\sin 3x + 5\sin 5x + ... + (2n - 1)\sin \{(2n - 1)x\}$

Spoiler:
$\displaystyle \frac{2n\sin(2nx) - (2n - 1)\sin\{(2n + 1)x\} - 1}{4\sin^2 \frac{x}{2}}$

I do not know how the problem is done. Any ideas?

2. Hi

I do not find the same and your answer seems not to work with values like $\displaystyle \frac{\pi}{4}$ for instance ...

3. Originally Posted by running-gag
Hi

I do not find the same and your answer seems not to work with values like $\displaystyle \frac{\pi}{4}$ for instance ...
Hello running-gag,
I checked the answer in the text again and it is the apparent answer. But it doesn't work with $\displaystyle \frac{\pi}{4}$ as you said. Can you post the correct solution?

4. Let $\displaystyle f(x) = \sin x + 3\sin 3x + 5\sin 5x + ... + (2n - 1)\sin \{(2n - 1)x\} = \sum_{k=1}^{n} (2k-1) \sin{(2k-1)x}$

Let F(x) one antiderivative of f

Then $\displaystyle F(x) = -\sum_{k=1}^{n} \cos{(2k-1)x}$

$\displaystyle F(x) = -Re\left(\sum_{k=1}^{n} e^{i(2k-1)x}\right)$

After some calculations I can find

$\displaystyle f(x) = \frac{\sin(2nx) \cos x - 2n \cos(2nx) \sin x}{2 \sin^2x}$

But there are many other possible expressions for f(x)

5. We cannot get a single unique answer?

6. If you use $\displaystyle \sin{(2n+1)x} = \sin(2nx) \cos x + \cos(2nx) \sin x$

you can substitute $\displaystyle \sin(2nx) \cos x = \sin{(2n+1)x} - \cos(2nx) \sin x$

or even $\displaystyle \cos(2nx) \sin x = \sin{(2n+1)x} - \sin(2nx) \cos x$

in the below expression of f

$\displaystyle f(x) = \frac{\sin(2nx) \cos x - 2n \cos(2nx) \sin x}{2 \sin^2x}$

At first I thought that this was the reason why I did not find the same result as yours but then I realized that your solution is not correct