AP Calculus AB and BC
Integral of cos x: Answer, Proof, and Mistakes
The integral of cos x is sin x + C. Because the derivative of sin x is cos x, sin x is an antiderivative of cos x, and adding an arbitrary constant C gives every antiderivative. For a definite integral the constant cancels, so the integral of cos x from a to b equals sin(b) minus sin(a).
Why the integral of cos x is sin x + C
Antidifferentiation is differentiation run backwards. A function is an antiderivative of when , so to integrate you only need to name the function whose derivative is . That function is , one of the basic derivatives memorized in Unit 2, Topic 2.7.
Reading that statement right to left gives the indefinite integral. Note the differential : it is part of the notation, not decoration, and AP readers expect it.
Why the + C is not optional
Constants differentiate to zero, so , , and all have derivative . The symbol stands for that whole family. On an indefinite integral, leaving it off is a lost point; on a definite integral it cancels and does not appear.
There is no domain restriction to state. Both and are defined and continuous for every real , so the rule holds on all of , unlike , which breaks at .
Definite integrals of cos x
Once you have an antiderivative, the Fundamental Theorem of Calculus (Topic 6.7) turns any definite integral of into one subtraction.
Over a quarter period starting at zero, the area under one arch of the cosine curve comes out to exactly 1.
Extend the interval to and the answer collapses to zero, because the curve sits above the axis on and an equal amount below it on .
Signed area against total area
A definite integral reports signed area, so the zero above is correct and is not a mistake. If a question asks for the total area between and the -axis on , split at and add the absolute values, which gives .
Integrating composites such as cos(u)
Bare is rare on the free-response section. What actually appears is of something, which calls for u-substitution (Topic 6.9), the reverse of the chain rule.
Example 1. For , let , so and . The reciprocal of the inside coefficient comes out front.
Example 2. For , let , so . The stray outside is exactly what makes the substitution work, up to the factor of .
Example 3. is a different problem entirely, since no substitution clears the square. Use the power-reduction identity first, then integrate term by term.
Check any antiderivative by differentiating
Every result on this page can be confirmed in one line. Differentiate and you get . If differentiating your answer does not return the integrand, the answer is wrong, and this costs about ten seconds.
Common mistakes with the integral of cos x
- Importing a minus sign. Differentiating cosine produces one, , but integrating it does not: , positive. The negative belongs to the other pair, .
- Dropping the constant of integration. An indefinite integral names a family of functions, so alone is an incomplete answer.
- Forgetting the on . The answer to is ; differentiate and the chain rule hands back a stray 3.
- Working in degrees. The rule depends on , which only holds in radians, so keep a graphing calculator in radian mode for every integral on the AP exam.
- Confusing with . The first needs power reduction; the second has no elementary antiderivative at all and will never be asked for as an indefinite integral.
- Carrying limits through a substitution unchanged. If you switch to in a definite integral, either convert the limits to values or convert back to before evaluating.
Every answer on this page is machine checked
An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you.
Frequently asked questions
What is the integral of cos x?
. Sine is the antiderivative because , and the constant covers every function in that family. The rule is valid for all real .
Why is there no negative sign in the integral of cos x?
The minus sign appears when you differentiate cosine, since . Integration reverses the derivative of sine instead, and that derivative is , so . The companion rule with the negative is .
What is the integral of cos(kx)?
for any nonzero constant . Substituting gives , which is where the comes from. For example, .
What is the definite integral of cos x from 0 to pi?
It is 0. By the Fundamental Theorem, . The positive area on exactly cancels the negative area on . The total unsigned area is 2.
Is the integral of cos squared x just sine squared?
No. There is no product rule for integrals, so you cannot square the answer. Apply the identity first, which gives .