01 / 21

Derivatives of
\(\tan, \cot, \sec, \csc\)

Master the derivative rules for the four remaining trig functions and see how they connect back to \(\sin\) and \(\cos\).

Calculus 1

Why Learn These Derivatives?

You already know \(\frac{d}{dx}[\sin x] = \cos x\) and \(\frac{d}{dx}[\cos x] = -\sin x\). But calculus problems constantly involve \(\tan x\), \(\sec x\), and their reciprocals. Knowing their derivatives by heart lets you tackle integration, related rates, and differential equations far more efficiently.

The Foundation: Quotient Rule

Since each of these four functions is a ratio of \(\sin x\) and \(\cos x\), the quotient rule is the key tool:

\(\tan x = \frac{\sin x}{\cos x}\)
\(\cot x = \frac{\cos x}{\sin x}\)
\(\sec x = \frac{1}{\cos x}\)
\(\csc x = \frac{1}{\sin x}\)

Deriving \(\frac{d}{dx}[\tan x]\)

1
Write \(\tan x = \dfrac{\sin x}{\cos x}\). Here \(f = \sin x\), \(g = \cos x\).
2
Apply the quotient rule: \(\dfrac{\cos x \cdot \cos x - \sin x \cdot (-\sin x)}{\cos^2 x}\).
3
Simplify the numerator: \(\cos^2 x + \sin^2 x = 1\).
4
Result: \(\dfrac{d}{dx}[\tan x] = \dfrac{1}{\cos^2 x} = \sec^2 x\).

Visualizing \(\tan x\) and \(\sec^2 x\)

\(0\)
\(-\pi\)
\(\pi\)
\(1\)
\(\tan x\)
\(\sec^2 x\)
\(x = \tfrac{\pi}{2}\)

Deriving \(\frac{d}{dx}[\cot x]\)

1
Write \(\cot x = \dfrac{\cos x}{\sin x}\). Here \(f = \cos x\), \(g = \sin x\).
2
Quotient rule: \(\dfrac{(-\sin x)(\sin x) - (\cos x)(\cos x)}{\sin^2 x}\).
3
Numerator: \(-\sin^2 x - \cos^2 x = -(\sin^2 x + \cos^2 x) = -1\).
4
Result: \(\dfrac{d}{dx}[\cot x] = \dfrac{-1}{\sin^2 x} = -\csc^2 x\).

Deriving \(\frac{d}{dx}[\sec x]\)

1
Write \(\sec x = \dfrac{1}{\cos x} = (\cos x)^{-1}\).
2
Chain rule: \(-1 \cdot (\cos x)^{-2} \cdot (-\sin x) = \dfrac{\sin x}{\cos^2 x}\).
3
Rewrite: \(\dfrac{\sin x}{\cos^2 x} = \dfrac{1}{\cos x} \cdot \dfrac{\sin x}{\cos x} = \sec x \tan x\).

Deriving \(\frac{d}{dx}[\csc x]\)

1
Write \(\csc x = \dfrac{1}{\sin x} = (\sin x)^{-1}\).
2
Chain rule: \(-1 \cdot (\sin x)^{-2} \cdot \cos x = \dfrac{-\cos x}{\sin^2 x}\).
3
Rewrite: \(\dfrac{-\cos x}{\sin^2 x} = -\dfrac{1}{\sin x} \cdot \dfrac{\cos x}{\sin x} = -\csc x \cot x\).

The Complete Rule Set

\(\frac{d}{dx}[\tan x]\)
\(= \sec^2 x\)
\(\frac{d}{dx}[\cot x]\)
\(= -\csc^2 x\)
\(\frac{d}{dx}[\sec x]\)
\(= \sec x \tan x\)
\(\frac{d}{dx}[\csc x]\)
\(= -\csc x \cot x\)

Ratio vs Reciprocal Patterns

Ratio Functions Reciprocal Functions
Functions \(\tan x,\;\cot x\) \(\sec x,\;\csc x\)
Derivative form Squared result: \(\sec^2 x,\;-\csc^2 x\) Product result: \(\sec x\tan x,\;-\csc x\cot x\)
Negative sign? \(\tan\): no  |  \(\cot\): yes \(\sec\): no  |  \(\csc\): yes
Rule of thumb Co-functions (\(\cot, \csc\)) always get the negative

Step-by-Step Approach

1
Identify the outermost trig function: is it \(\tan\), \(\cot\), \(\sec\), or \(\csc\)?
2
Recall the base derivative formula for that function.
3
Check for a chain rule: is the argument something other than plain \(x\)? If so, multiply by the derivative of the inner function.
4
Simplify and factor where possible. Watch for Pythagorean identities.

Example 1: \(\frac{d}{dx}[\tan(3x)]\)

1
Outer function: \(\tan\). Inner function: \(u = 3x\).
2
Apply the derivative: \(\sec^2(3x)\).
3
Multiply by the chain rule factor: \(u' = 3\).

Example 2: \(\frac{d}{dx}[\sec(x^2)]\)

1
Outer function: \(\sec\). Inner function: \(u = x^2\).
2
Base derivative: \(\sec(x^2)\tan(x^2)\).
3
Chain rule factor: \(u' = 2x\).

Example 3: \(\frac{d}{dx}[x^2 \csc x]\)

This requires the product rule combined with the derivative of \(\csc x\):

1
Let \(f = x^2\) and \(g = \csc x\). Then \(f' = 2x\) and \(g' = -\csc x \cot x\).
2
Product rule: \(f'g + fg' = 2x\csc x + x^2(-\csc x \cot x)\).
3
Factor: \(x\csc x(2 - x\cot x)\).

Common Mistakes

✕ Forgetting the Negative
Writing \(\frac{d}{dx}[\cot x] = \csc^2 x\) instead of \(-\csc^2 x\). The co-functions always carry a minus sign.
✕ Dropping the Chain Rule
Writing \(\frac{d}{dx}[\tan(5x)] = \sec^2(5x)\) and forgetting to multiply by \(5\).
✕ Mixing Up the Forms
Confusing the squared form (\(\sec^2 x\)) with the product form (\(\sec x \tan x\)). Remember: ratio → squared, reciprocal → product.

Summary Table

Function \(f(x)\) Derivative \(f'(x)\) Sign
\(\tan x\) \(\sec^2 x\) +
\(\cot x\) \(-\csc^2 x\) \(-\)
\(\sec x\) \(\sec x \tan x\) +
\(\csc x\) \(-\csc x \cot x\) \(-\)

Question 1 of 5

What is \(\dfrac{d}{dx}[\tan x]\)?

Question 2 of 5

What is \(\dfrac{d}{dx}[\csc x]\)?

Question 3 of 5

Find \(\dfrac{d}{dx}[\sec(4x)]\).

Question 4 of 5

Find \(\dfrac{d}{dx}[\cot(x^3)]\).

Question 5 of 5

Which two derivatives share the same form (a squared trig function in the result)?