What the formula says
∫ cos x dx = sin x + C
An antiderivative of cos x is sin x, and C is the constant of integration. The rule is a theorem:
the derivative of sine read backwards. x is in
radians.
Example. From 0 to π/2, where the cosine curve falls from 1 to 0:
∫₀^(π/2) cos x dx = sin(π/2) − sin 0 = 1 − 0 = 1
The minus sign that does not belong here
Having learned that the antiderivative of sin x has a minus sign, many readers put one here too and write −sin x + C. Differentiate to check: (−sin x)′ = −cos x, the wrong sign. (sin x)′ = cos x, so sin x is right.
A second example: something inside
∫ cos(3x) dx = sin(3x)/3 + C. The derivative of sin(3x) is 3cos(3x), so dividing by 3 cancels the factor the chain rule brings out. Check: (sin(3x)/3)′ = 3cos(3x)/3 = cos(3x).
And from 0 to π the integral is sin π − sin 0 = 0: the cosine curve is above the axis on the first half and below on the second, and the two parts cancel.
Sine and cosine side by side
| f(x) | f′(x) | ∫ f(x) dx |
|---|---|---|
| sin x | cos x | −cos x + C |
| cos x | −sin x | sin x + C |
Common mistakes
- −sin x + C. The minus sign belongs to the integral of sin, not of cos.
- Degrees. The rule holds only in radians.
- Multiplying by the inner factor. ∫ cos(2x) dx is sin(2x)/2 + C, not 2sin(2x) + C.
- Forgetting + C.
Common questions
How do I check an antiderivative?
Differentiate it. If the integrand comes back, it is right. This works for every antiderivative.
Why is ∫₀^π cos x dx zero?
Because the curve is above the axis from 0 to π/2 and equally far below it from π/2 to π. The integral
counts the second part as negative.

