\int \cos^2 ax dx = \frac{x}{2}+\frac{ \sin 2ax}{4a} + C