Course scope. This topic is shared by Calculus AB and Calculus BC. Everything here is examinable for both.
A note on notation
This page has no equation renderer. sec²x means (sec x)², and d/dx tan x means “the derivative of tan x with respect to x”. Fractions are written on one line with brackets. All angles are in radians: the derivatives of the trig functions are only this simple in radians.
The idea: rewrite, then use a rule you know
From Topic 2.7 you know two trig derivatives:
d/dx sin x = cos x and d/dx cos x = −sin x.
The other four trig functions are built from sine and cosine:
| Function | Rewritten | Defined where |
|---|---|---|
| tan x | sin x / cos x | cos x ≠ 0, so x ≠ π/2 + kπ |
| cot x | cos x / sin x | sin x ≠ 0, so x ≠ kπ |
| sec x | 1 / cos x | cos x ≠ 0, so x ≠ π/2 + kπ |
| csc x | 1 / sin x | sin x ≠ 0, so x ≠ kπ |
(Here k is any integer.) Each one is a quotient. So the quotient rule from Topic 2.9 gives its derivative. The skill being tested is to spot that an identity turns a new function into one you can already differentiate.
Deriving d/dx tan x
Write tan x = sin x / cos x. Top: sin x, derivative cos x. Bottom: cos x, derivative −sin x. Quotient rule, bottom first:
d/dx tan x = [cos x · cos x − sin x · (−sin x)] / cos²x
= (cos²x + sin²x) / cos²x
The Pythagorean identity makes the top equal to 1:
= 1 / cos²x = sec²x
So d/dx tan x = sec²x, for every x where cos x ≠ 0.
Deriving d/dx sec x
Write sec x = 1 / cos x. Top: 1, derivative 0. Bottom: cos x, derivative −sin x.
d/dx sec x = [cos x · 0 − 1 · (−sin x)] / cos²x = sin x / cos²x
Split the fraction into two factors:
= (1/cos x) · (sin x/cos x) = sec x tan x
So d/dx sec x = sec x tan x, for every x where cos x ≠ 0.
The four results
| Function | Derivative | Quick reason |
|---|---|---|
| tan x | sec²x | Quotient rule on sin x / cos x, then sin²x + cos²x = 1 |
| cot x | −csc²x | Quotient rule on cos x / sin x (Worked example 1) |
| sec x | sec x tan x | Reciprocal rule on 1 / cos x |
| csc x | −csc x cot x | Reciprocal rule on 1 / sin x (try it in Practice Q5) |
A memory pattern. Pair each function with its “co” partner. tan ↔ cot, sec ↔ csc. Swap every function for its partner and add a minus sign:
- tan x → sec²x, so cot x → −csc²x.
- sec x → sec x tan x, so csc x → −csc x cot x.
This is the same pattern as sin x → cos x and cos x → −sin x.
Rewriting works in both directions. Sometimes an identity makes a function simpler before you differentiate. For example, sin x · sec x = sin x/cos x = tan x, so its derivative is sec²x at once. The product rule gives the same result, with more work:
d/dx (sin x · sec x) = cos x · sec x + sin x · sec x tan x = 1 + tan²x = sec²x
because cos x · sec x = 1 and sin x · sec x = tan x. Getting the same answer two ways is a useful check. Before you differentiate, always ask: can an identity make this shorter?
Reading the derivative on a graph
The derivative of tan x is sec²x = 1/cos²x. Since 0 < cos²x ≤ 1 wherever tan x is defined, sec²x ≥ 1. So the graph of y = tan x rises on every interval where it is defined, such as (−π/2, π/2), and its slope is never less than 1. The slope is exactly 1 at x = 0, where cos²x = 1, and grows without bound near the asymptotes.
Worked example 1: deriving d/dx cot x and using it
Question. (a) Use the quotient rule to show that d/dx cot x = −csc²x. (b) Find the equation of the line tangent to y = cot x at x = π/6.
(a)
- Rewrite with an identity. cot x = cos x / sin x, defined where sin x ≠ 0.
- Name the parts. Top: cos x, derivative −sin x. Bottom: sin x, derivative cos x.
- Quotient rule, bottom first. d/dx cot x = [sin x · (−sin x) − cos x · cos x] / sin²x
- Simplify the top. −sin²x − cos²x = −(sin²x + cos²x) = −1.
- Finish. −1/sin²x = −(1/sin x)² = −csc²x.
(b)
- Find the point. cot(π/6) = cos(π/6)/sin(π/6) = (√3/2)/(1/2) = √3. The point is (π/6, √3).
- Find the slope. csc(π/6) = 1/sin(π/6) = 2, so the slope is −csc²(π/6) = −4.
- Write the line. y = √3 − 4(x − π/6).
Check. The slope is negative. That fits: −csc²x < 0 everywhere cot x is defined, so cot x falls on every interval where it is defined.
Worked example 2: a product with tan x
Question. Let f(x) = x tan x for −π/2 < x < π/2. Find f′(x), then the equation of the tangent line at x = π/4.
- Choose the rule. f is a product of x and tan x, so use the product rule (Topic 2.8).
- Differentiate each part. d/dx x = 1. d/dx tan x = sec²x.
- Product rule. f′(x) = (1)(tan x) + (x)(sec²x) = tan x + x sec²x
- Evaluate at π/4. tan(π/4) = 1 and sec²(π/4) = (√2)² = 2. So f′(π/4) = 1 + (π/4)(2) = 1 + π/2
- Find the point. f(π/4) = (π/4)(1) = π/4.
- Write the line. y = π/4 + (1 + π/2)(x − π/4).
Check. 1 + π/2 ≈ 2.571. A symmetric difference quotient for f near π/4 also gives 2.571 to four significant figures.
Common slip. Writing f′(x) = 1 · sec²x = sec²x multiplies the derivatives. That is not the product rule.
Worked example 3: a quotient simplified with an identity
Question. Let g(x) = sec x / (1 + tan x), on an interval where 1 + tan x ≠ 0 and cos x ≠ 0. Show that g′(x) = sec x (tan x − 1)/(1 + tan x)², and find g′(0).
- Name the parts. Top: sec x, derivative sec x tan x. Bottom: 1 + tan x, derivative sec²x.
- Quotient rule. g′(x) = [(1 + tan x)(sec x tan x) − (sec x)(sec²x)] / (1 + tan x)²
- Factor out sec x from the top. top = sec x [tan x + tan²x − sec²x]
- Use an identity. 1 + tan²x = sec²x, so tan²x − sec²x = −1. The bracket becomes tan x − 1.
- Result. g′(x) = sec x (tan x − 1)/(1 + tan x)².
- Evaluate at 0. sec 0 = 1, tan 0 = 0, so g′(0) = 1 × (0 − 1)/1² = −1.
Interpretation. g′(x) = 0 where tan x = 1, for example at x = π/4. The identity step turned a messy top into one you can solve.
Common misconceptions
- “d/dx tan x = sec x.” The square matters: d/dx tan x = sec²x.
- “d/dx sec x = tan x.” It is sec x tan x. Check by deriving it from 1/cos x.
- Losing the minus sign on cot x and csc x. Use the pattern: every “co” function’s derivative starts with a minus.
- Mixing up the reciprocals. sec x = 1/cos x and csc x = 1/sin x. Each reciprocal pair has exactly one “co” in it: sec pairs with cos, cosec (csc) pairs with sin.
- Reading sin⁻¹x as 1/sin x. sin⁻¹x is the inverse sine (arcsine). The reciprocal is csc x = (sin x)⁻¹.
- Using degrees. d/dx tan x = sec²x is true only when x is in radians.
- Forgetting the domain. tan x and sec x are not differentiable at x = π/2 + kπ, because they are not defined there.
- Multiplying derivatives in a product. In x tan x, the derivative is tan x + x sec²x, not sec²x.
Where this leads
You now have the derivative of every basic trig function. In Topic 3.1 the chain rule lets you differentiate compositions such as tan(3x) or sec(x²). Later, d/dx tan x = sec²x becomes the antiderivative fact that sec²x integrates to tan x. Students in either course can return to the Calculus AB roadmap or the Calculus BC roadmap. If the quotient rule still feels shaky, review Topic 2.9 first.
Try the practice questions now, then use the revision notes and the checklist to consolidate.
Quick questions
Is this page for Calculus AB or Calculus BC?
Both. Topic 2.10 is common content, so the same page serves AB and BC students.
Do I need to memorise all four derivatives?
Yes. In the exam you should write them down at once. But you should also be able to derive each one in a few lines, which is a good check if you forget a sign.
Why does sec²x appear so often?
Because the derivative of tan x is sec²x, and the identity 1 + tan²x = sec²x lets you swap between the two forms when you simplify.