5m left·0%
Reading Time: 5 min
Last Updated: February 25, 2026
Main Ideas: 7
Reading Time: 5 min
Last Updated: February 25, 2026
Main Ideas: 7

Topic 2.10 Notes – Finding the Derivatives of Tangent, Cotangent, Secant, and/or Cosecant Functions

Verified for 2027 AP® Calculus BC Exam
Read aloud
You already know ddx(sin⁡x) \frac{d}{dx}(\sin x) and ddx(cos⁡x) \frac{d}{dx}(\cos x) . Now we add tangent, cotangent, secant, and cosecant, and then use them inside product, quotient, and chain rule situations the way the AP exam loves to do.

The Remaining Trig Derivatives You Must Know

All of these assume x is in radians.

ddx(tan⁡x)=sec⁡2x \frac{d}{dx}(\tan x) = \sec^2 x

ddx(cot⁡x)=−csc⁡2x \frac{d}{dx}(\cot x) = -\csc^2 x

ddx(sec⁡x)=sec⁡xtan⁡x \frac{d}{dx}(\sec x) = \sec x \tan x

ddx(csc⁡x)=−csc⁡xcot⁡x \frac{d}{dx}(\csc x) = -\csc x \cot x

A quick memory pattern:

  • tan → sec²
  • cot → −csc²
  • sec → sec·tan
  • csc → −csc·cot

Only cot and csc have negatives.

If the input is not just xx, use the chain rule:

ddx[tan⁡(g(x))]=sec⁡2(g(x))⋅g′(x) \frac{d}{dx}[\tan(g(x))] = \sec^2(g(x)) \cdot g'(x)

Example:

ddx[sec⁡(4x3)]=sec⁡(4x3)tan⁡(4x3)⋅12x2 \frac{d}{dx}[\sec(4x^3)] = \sec(4x^3)\tan(4x^3)\cdot 12x^2

That inside derivative is where people drop points.

Rewriting with Identities Before Differentiating

You do not always have to use the memorized derivative formula. Sometimes rewriting makes the problem cleaner.

Key identities:

  • tan⁡x=sin⁡xcos⁡x \tan x = \frac{\sin x}{\cos x}
  • cot⁡x=cos⁡xsin⁡x \cot x = \frac{\cos x}{\sin x}
  • sec⁡x=1cos⁡x \sec x = \frac{1}{\cos x}
  • csc⁡x=1sin⁡x \csc x = \frac{1}{\sin x}

Example:

f(x)=cot⁡xcsc⁡x f(x) = \frac{\cot x}{\csc x}

Rewrite:

cos⁡x/sin⁡x1/sin⁡x \frac{\cos x / \sin x}{1/\sin x}

Multiply by the reciprocal:

=cos⁡x = \cos x

Now the derivative is just:

f′(x)=−sin⁡x f'(x) = -\sin x

Way easier than quotient rule.

On tests, especially no-calculator sections, simplifying first can save time and reduce algebra mistakes.

Using Product Rule with These Functions

Trig functions rarely appear alone. You’ll often see something like:

f(x)=x2tan⁡x f(x) = x^2 \tan x

This is a product, so:

f′(x)=2xtan⁡x+x2sec⁡2x f'(x) = 2x\tan x + x^2\sec^2 x

Notice how we plugged in the derivative of tan immediately.

Another example:

f(x)=csc⁡xln⁡x f(x) = \csc x \ln x

f′(x)=(−csc⁡xcot⁡x)ln⁡x+csc⁡x⋅1x f'(x) = (-\csc x \cot x)\ln x + \csc x \cdot \frac{1}{x}

Keep the trig derivative clean before worrying about simplification.

Using Quotient Rule

If rewriting doesn’t simplify nicely, use quotient rule:

ddx(fg)=f′g−fg′g2 \frac{d}{dx}\left(\frac{f}{g}\right) = \frac{f'g - fg'}{g^2}

Example:

f(x)=tan⁡xx3 f(x) = \frac{\tan x}{x^3}

f′(x)=sec⁡2x⋅x3−tan⁡x⋅3x2x6 f'(x) = \frac{\sec^2 x \cdot x^3 - \tan x \cdot 3x^2}{x^6}

You could factor later, but structurally this is correct and earns full credit.

On free-response, structure matters more than perfect simplification.

Chain Rule Situations

This is where most errors happen.

If you see:

  • tan⁡(5x) \tan(5x)
  • sec⁡(x2+1) \sec(x^2+1)
  • csc⁡(3x−4) \csc(3x-4)
  • tan⁡3(2x) \tan^3(2x)

There is an inner function.

Example:

ddx[tan⁡(5x)]=sec⁡2(5x)⋅5 \frac{d}{dx}[\tan(5x)] = \sec^2(5x)\cdot 5

Power + trig + chain together:

ddx[tan⁡3(2x)] \frac{d}{dx}[\tan^3(2x)]

Think of it as (tan⁡(2x))3(\tan(2x))^3:

=3tan⁡2(2x)⋅sec⁡2(2x)⋅2 = 3\tan^2(2x)\cdot \sec^2(2x)\cdot 2

Three layers:

  1. Power rule
  2. Trig derivative
  3. Inner derivative

BC questions often stack rules like this on purpose.

When to Simplify First

Before you differentiate, pause and scan.

Simplify first if:

  • Trig ratios cancel.
  • Expressions reduce to sin or cos.
  • Algebra shortens the problem.

Differentiate first if:

  • It’s already clearly a product or quotient.
  • Rewriting makes it longer.

That small decision can save you a lot of time under pressure.

Common Mistakes

  • Writing ddx(tan⁡x)=sec⁡x \frac{d}{dx}(\tan x) = \sec x . It is sec² x.
  • Forgetting the negative on cot or csc.
  • Missing the inner derivative in tan⁡(7x) \tan(7x) .
  • Using degrees instead of radians.
  • Dropping parentheses in expressions like sec⁡2(3x) \sec^2(3x) .

Key Takeaways

Memorize the four derivatives and know which two include negatives.
Always multiply by the inner derivative in expressions like sec⁡(g(x)) \sec(g(x)) .
Look for identity simplifications before using product or quotient rule.
On free-response, correct structure of product or quotient rule earns points even if not fully simplified.
If you see powers of trig functions like tan⁡4(3x) \tan^4(3x) , expect power rule + trig rule + chain rule all in one.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse this website.

Notes

1 credit used · 5/5 remaining