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

Integral of sin(x)

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

The antiderivative of sin(x) follows directly from the derivative of cosine and is one of the first formulas every calculus student memorizes.

Result

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

Derivation

Recall that \(\dfrac{d}{dx}[\cos(x)] = -\sin(x)\). Multiplying both sides by \(-1\):

\[ \frac{d}{dx}[-\cos(x)] = \sin(x) \]

By the fundamental theorem of calculus, the antiderivative is:

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

Verification: differentiate \(-\cos(x) + C\). The result is \(\sin(x)\) ✓

Definite integral examples

\(\int_0^{\pi} \sin(x)\,dx\)

\[ \Big[-\cos(x)\Big]_0^{\pi} = -\cos(\pi) - \bigl(-\cos(0)\bigr) = 1 + 1 = 2 \]

The area under one full arch of the sine curve equals 2.

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

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

Common variants

IntegralAntiderivativeNotes
\(\int \sin(ax)\,dx\)\(-\dfrac{\cos(ax)}{a} + C\)Chain rule: scale the result by \(1/a\).
\(\int \sin^2(x)\,dx\)\(\dfrac{x}{2} - \dfrac{\sin(2x)}{4} + C\)Half-angle identity: \(\sin^2 x = \tfrac{1-\cos 2x}{2}\).
\(\int x\sin(x)\,dx\)\(\sin(x) - x\cos(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