∫Yoboa Math
Home / Integral of cos(x)
Integral Reference

Integral of cos(x)

Step-by-step derivation, definite integral examples, and common variants.

The antiderivative of cosine is sine — the reverse of one of the two most fundamental differentiation formulas.

Result

\[ \int \cos(x)\,dx = \sin(x) + C \]

Derivation

Since \(\dfrac{d}{dx}[\sin(x)] = \cos(x)\), the antiderivative follows immediately:

\[ \int \cos(x)\,dx = \sin(x) + C \]

Verification: \(\dfrac{d}{dx}[\sin(x) + C] = \cos(x)\) ✓

Definite integral examples

\(\int_0^{\pi/2} \cos(x)\,dx\)

\[ \Big[\sin(x)\Big]_0^{\pi/2} = \sin\!\Bigl(\tfrac{\pi}{2}\Bigr) - \sin(0) = 1 - 0 = 1 \]

\(\int_{-\pi/2}^{\pi/2} \cos(x)\,dx\)

\[ \Big[\sin(x)\Big]_{-\pi/2}^{\pi/2} = 1 - (-1) = 2 \]

The cosine function is symmetric (even), so the area from −π/2 to π/2 is twice the area from 0 to π/2.

Common variants

IntegralAntiderivativeNotes
\(\int \cos(ax)\,dx\)\(\dfrac{\sin(ax)}{a} + C\)Chain rule.
\(\int \cos^2(x)\,dx\)\(\dfrac{x}{2} + \dfrac{\sin(2x)}{4} + C\)Half-angle identity: \(\cos^2 x = \tfrac{1+\cos 2x}{2}\).
\(\int x\cos(x)\,dx\)\(\cos(x) + x\sin(x) + C\)Integration by parts with u = x.

Try it in the calculator

Paste any variant below into the step-by-step integral calculator for a full worked solution and graph.

Open in calculator →

Related guides