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