You are currently viewing What is the integral of cos^2(x)?
integral of cos^2(x)

What is the integral of cos^2(x)?

The integral of \cos^2(x) is \frac{1}{2}(x + \sin(x)\cos(x)) + C.

Proof. We want to determine the integral of \cos^2(x), that is:
\begin{align*}
\int \cos^2(x) dx.
\end{align*}
Notice that we saw here that we have the next identity equality \sin^2(x) = \frac{1}{2}(1 + \cos(2x)), and here that \sin(2x) = 2\sin(x)\cos(x). Both identities will be applied to find the integral of \cos^2(x):
\begin{align*}
\int \cos^2(x) dx &= \int \frac{1}{2}(1 + \cos(2x)) dx \\
&= \frac{1}{2} \int (1 + \cos(2x)) dx, \quad \text{ }\cos^2(x) = \frac{1}{2}(1 + \cos(2x)) \\
&= \frac{1}{2} \bigg(x + \frac{1}{2}\sin(2x)\bigg) + C \\
&= \frac{x}{2} + \frac{1}{4}\sin(2x) + C \\
&= \frac{x}{2} + \frac{1}{4}\cdot 2\sin(x)\cos(x) + C, \quad \text{ } \sin(2x) = 2\sin(x)\cos(x) \\
&= \frac{1}{2}(x + \sin(x)\cos(x)) + C.
\end{align*}
Therefore, the integral of \cos^2(x) is \frac{1}{2}(x + \sin(x)\cos(x)) + C.

Leave a Reply