Tutorials › AP Calculus › Derivatives of Trigonometric Functions: Tangent, Cotangent, Secant, Cosecant
← All AP Calculus Tutorials
AP Calculus AB & BC Intermediate

Derivatives of Trigonometric Functions: Tangent, Cotangent, Secant, Cosecant

Master the four less-obvious trigonometric derivative rules, understand where they come from, and learn how to use them with the chain rule on AP Calculus problems.

The Four Derivatives You Need to Know

You already know the basic derivatives of sine and cosine. The remaining four trigonometric functions have derivative rules that are just as important: tangent, cotangent, secant, and cosecant.

The key is not to memorize these as four completely unrelated formulas. They come in natural pairs, and their signs follow a pattern that makes them easier to remember.

Tangent

Positive derivative; the derivative is secant squared.

Cotangent

Negative derivative; the derivative is cosecant squared.

Secant

The function reproduces itself and picks up a tangent factor.

Cosecant

The function reproduces itself with a negative sign and cotangent factor.

A Pattern Worth Memorizing

There are two especially useful pairs:

Notice the signs: tan is positive, cot is negative, sec is positive, and csc is negative. Remembering that alternating sign pattern prevents one of the most common errors on these problems.

Why Is the Derivative of Tangent Secant Squared?

You can derive the tangent rule instead of treating it as a mysterious formula. Start by writing tangent as a quotient:

Now apply the quotient rule:

Use the Pythagorean identity :

So:

This gives the familiar result:

Why Is the Derivative of Cotangent Negative?

Cotangent can be written as cosine divided by sine:

Applying the quotient rule gives:

Using , the result simplifies to:

The negative sign is essential. A surprisingly common mistake is to remember instead of the correct formula.

Why Do Secant and Cosecant Keep the Original Function?

The secant derivative follows directly from the reciprocal relationship:

Using the quotient rule,

and simplifying with the identities and gives:

Similarly, because , differentiation gives:

So the two rules are:

Using the Chain Rule

The formulas above are for functions of . But AP Calculus problems often put another function inside the trigonometric function. When that happens, you need the chain rule.

For example, if , the derivative is not merely . You must multiply by the derivative of the inside:

The same idea works for all four functions:

Worked Examples

Example 1: Tangent

Differentiate .

Step 1: Recognize the outside function: .
Step 2: Differentiate tangent while leaving the inside alone: .
Step 3: Multiply by the derivative of the inside, .
Result:
Example 2: Cotangent

Differentiate .

Step 1: The outside function is and the inside is .
Step 2: The derivative of cotangent is negative cosecant squared: .
Step 3: Multiply by .
Result:
Example 3: Secant

Differentiate .

Step 1: The outside function is ; the inside is .
Step 2: Differentiate secant: .
Step 3: The inside derivative is .
Result:
Example 4: Cosecant

Differentiate .

Step 1: The outside function is ; the inside is .
Step 2: Differentiate cosecant: .
Step 3: Multiply by the inside derivative, .
Result:
Example 5: Multiple Rules

Differentiate .

Step 1: This is a product, so use the product rule.
Step 2: Differentiate : .
Step 3: Differentiate using the chain rule: .
Step 4: Combine the two product-rule terms.
Result:

Evaluating Trigonometric Derivatives at a Point

AP Calculus problems frequently ask you to find a derivative value such as . In these problems, the most important step is often recognizing which trigonometric values you need.

Example 6: Evaluate at a Known Angle

Let . Find .

Step 1: Differentiate: .
Step 2: Substitute .
Step 3: Use .
Result:

Common Mistakes

Forgetting the negative signs

The derivatives of cotangent and cosecant are negative. The safest memory pattern is tan positive, cot negative, sec positive, csc negative.

Confusing secant with cosecant

Secant differentiates to , while cosecant differentiates to . The original function stays in both answers, but the companion function and sign change.

Forgetting the chain rule

For , the derivative is not just . You must multiply by the derivative of the inside function.

Squaring the wrong function

The derivative of tangent is , not . Likewise, the derivative of cotangent is , not .

A Fast AP Calculus Memory Table

A useful verbal shortcut is:

Practice Problems

Question 1

Differentiate .

Show answer
Question 2

Differentiate .

Show answer
Question 3

Differentiate .

Show answer
Question 4

Differentiate .

Show answer
Question 5

Differentiate .

Show answer
Question 6 (Combined Rules)

Differentiate .

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