x
cos (E)*(pi*I + log(-cos(E)))
$$\left(\log{\left(- \cos{\left(e \right)} \right)} + i \pi\right) \cos^{x}{\left(e \right)}$$
2 x
(pi*I + log(-cos(E))) *cos (E)
$$\left(\log{\left(- \cos{\left(e \right)} \right)} + i \pi\right)^{2} \cos^{x}{\left(e \right)}$$
3 x
(pi*I + log(-cos(E))) *cos (E)
$$\left(\log{\left(- \cos{\left(e \right)} \right)} + i \pi\right)^{3} \cos^{x}{\left(e \right)}$$