Tutorials › AP Calculus › Integrating Trigonometric Functions
← All AP Calculus Tutorials
AP Calculus AB & BC Intermediate

Integrating Trigonometric Functions

A practical guide to finding antiderivatives of sine, cosine, secant, and cosecant functions, recognizing the most important patterns, and avoiding the sign errors that commonly appear on AP Calculus problems.

The Basic Idea

Integration reverses differentiation. If you know the derivative of a trigonometric function, you can work backward to find its antiderivative.

The two most important identities to memorize are:

Notice the negative sign in the antiderivative of cosine. This is one of the most common places students make a mistake.

Because the derivative of is , the antiderivative of must be . Likewise, because the derivative of is , the antiderivative of is .

The Core Trigonometric Antiderivatives

For AP Calculus, you should know the following relationships automatically:

These formulas are simply the reverse of the corresponding derivative rules. For example, since:

we know that:

Remember that every indefinite integral includes a constant of integration .

Integrating Sine and Cosine

The easiest trigonometric integrals are those involving sine and cosine directly. Start by asking: what function has this expression as its derivative?

Example 1: Integrating Cosine

Evaluate .

Step 1: Recall that the derivative of is .
Step 2: Therefore, the antiderivative of is .
Result:
Example 2: Integrating Sine

Evaluate .

Step 1: The derivative of is .
Step 2: Since we need , we need a negative sign.
Result:

Constant Multiples

A constant multiplying a trigonometric function can simply be carried through the integration.

For example, if the integrand is , the coefficient remains attached to the antiderivative.

Example 3: A Constant Multiple

Evaluate .

Step 1: Pull out the constant:
Step 2: Integrate cosine:
Result:

When the Angle Is Not Just x

The chain rule has an integration counterpart. If the argument of sine or cosine is something like , you need to account for the derivative of the inside function.

Likewise:

Example 4: Integrating a Trigonometric Composition

Evaluate .

Step 1: Let .
Step 2: Then , so .
Step 3: Substitute into the integral:
Result:

Integrating Secant and Cosecant

Two especially important trigonometric antiderivatives are:

These are worth memorizing because the derivatives of and produce exactly the expressions needed.

For example:

Therefore:

Example 5: Integrating Secant

Evaluate .

Step 1: Recognize the basic pattern .
Step 2: Multiply the antiderivative by the constant coefficient.
Result:

Integrating Tangent and Cotangent

For tangent and cotangent, rewrite the functions using sine and cosine:

Then use the logarithmic antiderivatives:

Example 6: Integrating Tangent

Evaluate .

Step 1: Rewrite tangent: .
Step 2: Use .
Step 3: Therefore, .
Result:

Definite Integrals

For a definite integral, evaluate the antiderivative at the upper and lower limits and subtract:

The constant of integration is not needed when evaluating a definite integral because it cancels when the upper and lower values are subtracted.

Example 7: Definite Integral of Sine

Evaluate .

Step 1: An antiderivative of sine is .
Step 2: Apply the Fundamental Theorem of Calculus:
Step 3: Simplify the trigonometric values.
Result:

Using Trigonometric Identities Before Integrating

Sometimes the integrand is not immediately recognizable. In those cases, a trigonometric identity can transform the expression into something that is easier to integrate.

One of the most useful identities is the Pythagorean identity:

For example, an expression involving can sometimes be rewritten using .

Example 8: Using a Trigonometric Identity

Evaluate .

Step 1: Use the identity .
Step 2: Rewrite the integral: .
Step 3: Integrate each term separately.
Result:

A Fast Recognition Strategy

On an AP Calculus problem, do not immediately start manipulating the expression. First identify the derivative pattern.

  1. See cosine? Think .
  2. See sine? Think .
  3. See secant squared? Think .
  4. See cosecant squared? Think .
  5. See secant times tangent? Think .
  6. See cosecant times cotangent? Think .
  7. See tangent? Rewrite it as .

Common Mistakes

Forgetting the negative sign for sine

The derivative of cosine is negative sine. Therefore, the antiderivative of sine is negative cosine, not positive cosine.

Forgetting the derivative of the inside angle

For an integral such as , the answer is not simply . You must account for the derivative of the inside function.

Forgetting the constant of integration

Every indefinite integral represents a family of antiderivatives, so include unless you are evaluating a definite integral.

Using the wrong logarithmic form

When integrating tangent, remember that , so the logarithmic antiderivative involves .

Practice Problems

Question 1

Evaluate .

Show answer
Question 2

Evaluate .

Show answer
Question 3

Evaluate .

Show answer
Question 4

Evaluate .

Show answer
Question 5 (Combined Rules)

Evaluate .

Show answer

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon