$$\int \cos\ nxdx$$
$\left\{\begin{matrix}\frac{\sin(nx)}{n}+С,&n\neq 0\\x+С,&n=0\end{matrix}\right.$
$\cos(nx)$