# Integral of $\sin(x)\cos(x)$

by Jakub Marian

Tip: Are you a non-native English speaker? I have just finished creating a Web App for people who enjoy learning by reading. Make sure to check it out; there's a lot of free content.

The function $\sin(x)\cos(x)$ is one of the easiest functions to integrate. All you need to do is to use a simple substitution $u = \sin(x)$, i.e. $\frac{du}{dx} = \cos(x)$, or $dx = du/\cos(x)$, which leads to

$$∫ \sin(x)\cos(x)\,dx = \l.∫ u\,du\r|_{u = \sin(x)} = \frac{u^2}2 + C = \frac12 \sin^2(x)+C\,.$$

Another way to integrate the function is to use the formula

$$\sin(2x) = 2\sin(x)\cos(x) \quad ⇒ \quad \sin(x)\cos(x) = \frac12 \sin(2x)\,$$

so

$$∫ \sin(x)\cos(x)\,dx = \frac12 ∫ \sin(2x)\,dx = -\frac14 \cos(2x)+C$$

It is worth mentioning that the $C$ in the equality above is not the same $C$ as in our original expression. In fact, it is possible to calculate that $\frac12 \sin^2(x) - (-\frac14 \cos(2x)) = 1/4$, so the two solutions lead to the same result, just shifted by a constant.

By the way, have you already seen my brand new web app for non-native speakers of English? It's based on reading texts and learning by having all meanings, pronunciations, grammar forms etc. easily accessible. It looks like this: