AP Calculus AB and BC
Integral of sin x: Answer, Proof, and Mistakes
The integral of sin x is -cos x + C. The sign flips because the derivative of cos x is -sin x, so the antiderivative of sin x needs a minus sign in front. Check it by differentiating: the derivative of -cos x + C is sin x. As a definite integral, sin x from 0 to pi equals 2.
Why the antiderivative of sin x carries a minus sign
Antidifferentiation is differentiation run backwards, so the fastest way to find is to ask which function has as its derivative. The trig derivative that produces a sine is the one for cosine, and it comes with a negative sign.
That is off by a factor of , so multiply by . Differentiating cancels the two negatives and leaves exactly .
Because the check works for every real , the antiderivative is valid on the whole real line. There is no domain restriction to state, unlike .
The + C is part of the answer
An indefinite integral names a whole family of functions, since any constant differentiates to zero. Writing without on a free-response indefinite integral loses a point. On a definite integral the constant cancels in the subtraction, so you do not write it there.
Definite integrals of sin x you should recognize
Antiderivatives of appear on the AP exam mostly inside definite integrals evaluated with the Fundamental Theorem of Calculus (Topic 6.7). Unit 6, Integration and Accumulation of Change, is weighted 15 to 20 percent on both AB and BC, so these evaluations are worth drilling until they are automatic.
One arch of the sine curve is the standard case. Substituting the limits into gives a clean whole number, which is why this integral shows up so often in area and average-value problems.
Over a full period the answer is zero, because the arch below the axis contributes the same amount with the opposite sign. This is the difference between net signed area and total area: for total area you would integrate , or double the result over .
The same antiderivative feeds Unit 8. The average value of on (Topic 8.1) is the integral divided by the length of the interval, and it is a number worth remembering.
- , the quarter arch.
- , one full arch.
- , one full period of net signed area.
- The average value of on is .
When the sine has something else inside it
A bare is rare. Most AP integrals hand you , and then the rule is substitution (Topic 6.9), not the memorized form. The tell is that differentiating would produce an extra factor of 3 by the chain rule, so the antiderivative has to divide it back out.
The general linear case follows the same pattern for any nonzero constant . This shortcut is safe only when the inside is linear; anything else needs a real substitution.
When the inside is not linear, look for its derivative sitting in the integrand. In , let , so and .
A squared sine is a different animal entirely. is not a composite of the form , so no substitution untangles it directly; you rewrite it with the power-reducing identity first.
Common mistakes with the integral of sin x
- Dropping the minus sign. The derivative of is , but the integral of is . Going forwards and backwards move the sign in opposite directions, and mixing them up is the most common error on this integral.
- Forgetting the constant of integration. An indefinite integral without is an incomplete answer.
- Skipping the reciprocal factor on a composite. , not . Differentiate your answer to catch this in seconds.
- Sign-flipping the limits. In you compute , which is . Distributing the outer minus sign carelessly turns a 2 into a 0.
- Reporting 0 as the area under one full period. is the net signed area; the total area is 4.
- Working in degrees. Every antiderivative here assumes radians, so a calculator left in degree mode will disagree with your exact answer.
Always check by differentiating
Antidifferentiation has a free verification step that differentiation does not. Differentiate your candidate and see whether the integrand comes back. If , the answer is right, sign and all.
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 sin x?
, valid for every real . Verify it by differentiating: .
Why is the integral of sin x negative cos x?
Because . Cosine alone differentiates to , which is off by a factor of , so the antiderivative of must be to cancel that sign.
What is the integral of sin x from 0 to pi?
It equals 2. Evaluate the antiderivative at the endpoints: . That is the area under one arch of the sine curve.
What is the integral of sin(2x)?
. Substituting contributes the factor , which undoes the chain rule factor you would pick up differentiating .
Is the integral of sin x the same as the derivative of cos x?
They are related but not equal. , while . Both carry a minus sign, but one turns cosine into sine and the other turns sine into cosine.