I started stating that: $$(\cos\theta+i \sin\theta)^5=\sum_{k=0}^5 \binom{5}{k} (\cos\theta)^{5-k}\cdot (i \sin\theta)^k$$ Then, I apply the binomial theorem and develop, so I ended up with this, but arranged:
$$=\cos^5(\theta)-10 \cos^3(\theta) \sin^2(\theta)+5 \cos(\theta) \sin^4(\theta)+5\cos^4(\theta)-i \sin(\theta)\\-10 \cos^2(\theta) i \sin^3(\theta)+i \sin^5(\theta)$$
So you can see I get what I wanted to obtain, but I can't or dont know how to get rid of this part: $$5 \cos^4(\theta)-i \sin(\theta)-10 \cos^2(\theta) i \sin^3(\theta)+i \sin^5(\theta)$$ Until now, I got: $$i \sin(\theta)[\sin^2(\theta)\cos^2(\theta)]$$ I really don't know how to proceed, any help is appreciated.
On the left hand side, use de Moivre's theorem. On the right hand side, make sure you expand carefully.
Then use the fact that two complex numbers are equal if and only if their real and imaginary parts are equal.