Part of the algebraic simplifications involved in a solution to the differential equation $$ y''+ y' - 6y = 4 \cos(2x) $$ make the following jump: $$ -\frac{1}{13}(5+i) e^{2ix} = -\frac{1}{13}(5+i)(\cos 2x + i \sin 2x) $$
I have understood the other examples, so i think this is a more simple algebra issue. Is there some rule for this kind of complex power of e simplification? For context, the surrounding algebra is as follows:
I understand that we want to take the real part of the particular solution $z_p$ to have the general solution, but that algebra jump is defying me.

Use that $$e^{ix}=\cos(x)+i\sin(x)$$