Dove's LibraryDove's Library

2.10 - Finding the Derivatives of Tangent, Cotangent, Secant, and/or Cosecant Functions

Review: Basic Trig Derivatives

You should already know these:
ddx[sin⁡x]=cos⁡xddx[cos⁡x]=−sin⁡x\frac{d}{dx}[\sin x] = \cos x \qquad \frac{d}{dx}[\cos x] = -\sin x
They’re the foundation for everything else here.

The Four Remaining Trig Derivatives

Memory Aid: The “C” Rule

When a trig function starts with “c” (cosine, cotangent, cosecant), its derivative has a negative sign in front.

Group 1: Tangent and Cotangent

ddx[tan⁡x]=sec⁡2x\frac{d}{dx}[\tan x] = \sec^2 xddx[cot⁡x]=−csc⁡2x\frac{d}{dx}[\cot x] = -\csc^2 x
Cotangent starts with “c,” so it gets the negative.

Group 2: Secant and Cosecant

ddx[sec⁡x]=sec⁡xtan⁡x\frac{d}{dx}[\sec x] = \sec x \tan xddx[csc⁡x]=−csc⁡xcot⁡x\frac{d}{dx}[\csc x] = -\csc x \cot x
Secant becomes “secant tangent,” and cosecant becomes “negative cosecant cotangent.”
Another way to see it: the c-count matches. If the original function has two c’s (like csecant), the answer has two c’s too.

Where ddx[tan⁡x]=sec⁡2x\frac{d}{dx}[\tan x] = \sec^2 x Comes From

You should just memorize it, but here’s the derivation. Start with tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x} and apply the quotient rule:
ddx[sin⁡xcos⁡x]=(cos⁡x)(cos⁡x)−(sin⁡x)(−sin⁡x)cos⁡2x\frac{d}{dx}\left[\frac{\sin x}{\cos x}\right] = \frac{(\cos x)(\cos x) - (\sin x)(-\sin x)}{\cos^2 x}=cos⁡2x+sin⁡2xcos⁡2x=1cos⁡2x=sec⁡2x= \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x

Where the Other Three Come From

Same move each time: rewrite the function with sine and cosine, then use the quotient rule.
Cotangent: cot⁡x=cos⁡xsin⁡x\cot x = \frac{\cos x}{\sin x}
ddx[cos⁡xsin⁡x]=(−sin⁡x)(sin⁡x)−(cos⁡x)(cos⁡x)sin⁡2x=−(sin⁡2x+cos⁡2x)sin⁡2x=−1sin⁡2x=−csc⁡2x\frac{d}{dx}\left[\frac{\cos x}{\sin x}\right] = \frac{(-\sin x)(\sin x) - (\cos x)(\cos x)}{\sin^2 x} = \frac{-(\sin^2 x + \cos^2 x)}{\sin^2 x} = -\frac{1}{\sin^2 x} = -\csc^2 x
Secant: sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}
ddx[1cos⁡x]=(0)(cos⁡x)−(1)(−sin⁡x)cos⁡2x=sin⁡xcos⁡2x=1cos⁡x⋅sin⁡xcos⁡x=sec⁡xtan⁡x\frac{d}{dx}\left[\frac{1}{\cos x}\right] = \frac{(0)(\cos x) - (1)(-\sin x)}{\cos^2 x} = \frac{\sin x}{\cos^2 x} = \frac{1}{\cos x} \cdot \frac{\sin x}{\cos x} = \sec x \tan x
Cosecant: csc⁡x=1sin⁡x\csc x = \frac{1}{\sin x}
ddx[1sin⁡x]=(0)(sin⁡x)−(1)(cos⁡x)sin⁡2x=−cos⁡xsin⁡2x=−1sin⁡x⋅cos⁡xsin⁡x=−csc⁡xcot⁡x\frac{d}{dx}\left[\frac{1}{\sin x}\right] = \frac{(0)(\sin x) - (1)(\cos x)}{\sin^2 x} = -\frac{\cos x}{\sin^2 x} = -\frac{1}{\sin x} \cdot \frac{\cos x}{\sin x} = -\csc x \cot x
If you ever forget one of the four, this is how to rebuild it in under a minute.

Common Challenges

Challenge 1: Memorization

You have to commit all six derivatives to memory. Sine and cosine show up the most, but the others are essential too.

Challenge 2: Unit Circle Values

You need to be able to recall things like:
  • csc⁡(π6)=1sin⁡(π6)=11/2=2\csc\left(\frac{\pi}{6}\right) = \frac{1}{\sin\left(\frac{\pi}{6}\right)} = \frac{1}{1/2} = 2
  • cos⁡(π4)=22\cos\left(\frac{\pi}{4}\right) = \frac{\sqrt{2}}{2}
  • tan⁡(π3)=3\tan\left(\frac{\pi}{3}\right) = \sqrt{3}
This is precalc knowledge but it’s critical here.

Challenge 3: Simplifying Trig Expressions

You have to recognize equivalent forms:
sin⁡x⋅1cos⁡x=sin⁡xcos⁡x=tan⁡x\sin x \cdot \frac{1}{\cos x} = \frac{\sin x}{\cos x} = \tan x
Multiple choice answers are usually simplified, so you’ll need to manipulate your result to match.

Challenge 4: Calculator Input for Reciprocal Functions

Most calculators don’t have cotangent, secant, or cosecant buttons. Enter them as reciprocals:
  • Cotangent: 1÷tan⁡x1 \div \tan x
  • Secant: 1÷cos⁡x1 \div \cos x
  • Cosecant: 1÷sin⁡x1 \div \sin x
Warning: the sin⁡−1\sin^{-1} button is inverse sine (arcsine), NOT 1sin⁡x\frac{1}{\sin x}.

Practice Problems

Example 1: Product Rule with Trig Functions

Find dydx\frac{dy}{dx} if y=cos⁡x⋅cot⁡xy = \cos x \cdot \cot x.
Two functions multiplied, so use the product rule:
dydx=(−sin⁡x)(cot⁡x)+(cos⁡x)(−csc⁡2x)=−sin⁡xcot⁡x−cos⁡xcsc⁡2x\frac{dy}{dx} = (-\sin x)(\cot x) + (\cos x)(-\csc^2 x) = -\sin x \cot x - \cos x \csc^2 x
Simplify using cot⁡x=cos⁡xsin⁡x\cot x = \frac{\cos x}{\sin x}:
=−sin⁡x⋅cos⁡xsin⁡x−cos⁡xcsc⁡2x=−cos⁡x−cos⁡xcsc⁡2x= -\sin x \cdot \frac{\cos x}{\sin x} - \cos x \csc^2 x = -\cos x - \cos x \csc^2 x=−cos⁡x(1+csc⁡2x)= -\cos x(1 + \csc^2 x)

Example 2: Quotient Rule and Evaluation

Find f′(π4)f'\left(\frac{\pi}{4}\right) if f(x)=xtan⁡xf(x) = \dfrac{x}{\tan x}.
Step 1: Quotient rule.
f′(x)=(1)(tan⁡x)−(x)(sec⁡2x)tan⁡2x=tan⁡x−xsec⁡2xtan⁡2xf'(x) = \frac{(1)(\tan x) - (x)(\sec^2 x)}{\tan^2 x} = \frac{\tan x - x\sec^2 x}{\tan^2 x}
Step 2: Evaluate at x=π4x = \frac{\pi}{4}. From the unit circle, tan⁡(π4)=1\tan\left(\frac{\pi}{4}\right) = 1 and sec⁡(π4)=12/2=2\sec\left(\frac{\pi}{4}\right) = \frac{1}{\sqrt{2}/2} = \sqrt{2}.
f′(π4)=1−π4(2)212=1−π4(2)1=1−π2=2−π2≈−0.571f'\left(\frac{\pi}{4}\right) = \frac{1 - \frac{\pi}{4}(\sqrt{2})^2}{1^2} = \frac{1 - \frac{\pi}{4}(2)}{1} = 1 - \frac{\pi}{2} = \frac{2 - \pi}{2} \approx -0.571

Example 3: Calculator Usage

Find the derivative of f(x)=csc⁡2(3x)f(x) = \csc^2(3x) at x=0.5x = 0.5 using a calculator.
Calculator steps (TI-83/84):
  1. Press MATH, then select option 8 (nDeriv)
  1. Enter the function as (1/sin(3x))^2. Type (1 ÷ sin(3X)) then press x2x^2. The square applies to the whole 1sin⁡(3x)\frac{1}{\sin(3x)} expression.
  1. Enter the variable: X
  1. Enter the evaluation point: 0.5
  1. Press ENTER
Make sure your calculator is in RADIAN mode (check the MODE menu).
The result should be about f′(0.5)≈−0.428f'(0.5) \approx -0.428.
Note on squaring:
  • Correct: (1/sin(3x))^2 squares the whole reciprocal
  • Incorrect: 1/sin((3x)^2) only squares the argument

Example 4: Rewrite with Identities First

Find f′(x)f'(x) if f(x)=1+sin⁡xcos⁡xf(x) = \dfrac{1 + \sin x}{\cos x}.
You could use the quotient rule, but splitting the fraction and using identities is faster:
f(x)=1cos⁡x+sin⁡xcos⁡x=sec⁡x+tan⁡xf(x) = \frac{1}{\cos x} + \frac{\sin x}{\cos x} = \sec x + \tan xf′(x)=sec⁡xtan⁡x+sec⁡2xf'(x) = \sec x \tan x + \sec^2 x
Check with the quotient rule:
f′(x)=(cos⁡x)(cos⁡x)−(1+sin⁡x)(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡x+sin⁡2xcos⁡2x=1+sin⁡xcos⁡2xf'(x) = \frac{(\cos x)(\cos x) - (1 + \sin x)(-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin x + \sin^2 x}{\cos^2 x} = \frac{1 + \sin x}{\cos^2 x}
Those match, since sec⁡xtan⁡x+sec⁡2x=sin⁡xcos⁡2x+1cos⁡2x=1+sin⁡xcos⁡2x\sec x \tan x + \sec^2 x = \frac{\sin x}{\cos^2 x} + \frac{1}{\cos^2 x} = \frac{1 + \sin x}{\cos^2 x}. Both forms are correct, which is why you may need to rearrange your answer to match a multiple-choice option.

Key Takeaways

  • C-Rule: derivatives of functions starting with “c” have a negative sign in front
  • All six trig derivatives:
    • ddx[sin⁡x]=cos⁡x\frac{d}{dx}[\sin x] = \cos x
    • ddx[cos⁡x]=−sin⁡x\frac{d}{dx}[\cos x] = -\sin x
    • 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
  • Pattern: tangent/cotangent derivatives involve squared functions, secant/cosecant derivatives are products
  • Calculator reciprocals: use 1÷sin⁡x1 \div \sin x for cosecant, NOT sin⁡−1\sin^{-1}
  • Your derivative may need algebraic manipulation to match the answer choices
  • Forgot one? Rewrite it with sine and cosine and use the quotient rule

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.