I want to solve this indefinite integral: $$\int \cos^2(x)dx$$
I tried doing integration by parts with $u=\cos x$ and $dv=\cos xdx$, and again with $u=\cos^2x$ and $dv=dx$, but with no luck either way. No obvious substitutions to be made, either- what do I do?