$$\frac{1+\cos 5x+i\sin 5x}{1+\cos 5x-i\sin 5x}=\cos 5x+i\sin 5x$$
When I attempted this I first tried multiplying top and bottom of the LHS by the complex conjugate of what's on the bottom, $1+\cos 5x+i\sin 5x$. After simplification I got:
$$LHS=\frac{1+2\cos 5x+2i\sin 5x+\cos^25x+2i\sin 5x \cos5x-\sin^2x}{2\cos 5x+sin 5x}$$
I cannot see a way of simplifying further to give the RHS, where have I gone wrong?
Also, I know that since $\cos 5x+i\sin 5x=(\cos x+i\sin x)^5$ I could do an expansion but after doing that I could also see no way of getting the LHS. Please help.