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