SECTION 1
Historical Context & Motivation
For centuries, mathematicians studied trigonometric functions to solve problems in astronomy, navigation, and surveying. Once calculus was invented in the late 1600s, the natural next question became: how fast do these functions change at any given instant? The derivatives of sine and cosine were discovered first, and from those two building blocks, mathematicians derived the rates of change for every other trig function—tangent, cotangent, secant, and cosecant.
~1500s • Trig Functions Formalized
1665–1676 • Calculus Invented
1748 • Euler's Introductio
1800s • Standard Derivative Table
You already know that the derivative of sin x is cos x and the derivative of cos x is −sin x. But what happens when you need the derivative of tan x, cot x, sec x, or csc x? This lesson answers that question by showing how each of these derivatives follows logically from sine and cosine, using tools you already have: the quotient rule and the Pythagorean identity.
SECTION 2
Core Principles & Definitions
Before jumping into formulas, it helps to understand the three key ideas that make every trig derivative derivable. Each of the remaining four trig functions is built from sine and cosine, so their derivatives are not independent facts—they are consequences of rules you already know.
Quotient Relationships
The Quotient Rule
Pythagorean Identity
Pattern Recognition
KEY TAKEAWAY
SECTION 3
Visual Explanation — Graphs and Slopes
The graph below shows y = tan x alongside its derivative y = sec²x. Notice how the tan curve gets steeper as it approaches the vertical asymptotes, and the sec²x curve shoots upward at exactly those same locations. Where tan x crosses zero (at x = 0, ±π, ±2π, …), its slope equals 1, which is consistent with sec²(0) = 1.
One key visual insight is that sec²x is always positive (it's a squared quantity, so it can never be negative or zero). This tells you that tan x is always increasing wherever it is defined—it never flattens out or turns around between its vertical asymptotes. The same kind of slope analysis applies to the other trig functions and their derivatives.
SECTION 4
Mathematical Framework — Deriving the Formulas
Let's build each derivative step by step. We start with the two you already know and derive the remaining four.
Starting Point: Sine and Cosine
KNOWN DERIVATIVES
These are the two foundational trig derivatives. Every formula below is derived from these using the quotient rule.
Derivative of Tangent
DERIVATIVE OF TAN X
Write tan x = sin x / cos x. Apply the quotient rule: [cos x · cos x − sin x · (−sin x)] / cos²x = (cos²x + sin²x) / cos²x = 1 / cos²x = sec²x.
Derivative of Cotangent
DERIVATIVE OF COT X
Write cot x = cos x / sin x. Quotient rule: [−sin x · sin x − cos x · cos x] / sin²x = −(sin²x + cos²x) / sin²x = −1 / sin²x = −csc²x. Notice the negative sign—cot x is a decreasing function on each interval.
Derivative of Secant
DERIVATIVE OF SEC X
Write sec x = 1 / cos x. Quotient rule (or reciprocal rule): [0 · cos x − 1 · (−sin x)] / cos²x = sin x / cos²x = (1/cos x)(sin x/cos x) = sec x · tan x.
Derivative of Cosecant
DERIVATIVE OF CSC X
Write csc x = 1 / sin x. Quotient rule: [0 · sin x − 1 · cos x] / sin²x = −cos x / sin²x = −(1/sin x)(cos x/sin x) = −csc x · cot x. Again, the 'co-' function picks up a negative sign.
SECTION 5
Complete Trig Derivative Reference
The table below summarizes all six trigonometric derivatives in one place. A helpful pattern to notice: every "co-" function (cosine, cotangent, cosecant) has a negative sign in its derivative. This is not a coincidence—it reflects the way these functions are oriented on the unit circle.
| Function f(x) | Derivative f′(x) | Sign Pattern |
|---|---|---|
| sin x | cos x | Positive (no co-) |
| cos x | −sin x | Negative (co-) |
| tan x | sec²x | Positive (no co-) |
| cot x | −csc²x | Negative (co-) |
| sec x | sec x · tan x | Positive (no co-) |
| csc x | −csc x · cot x | Negative (co-) |
All six standard trigonometric derivatives
Memory Tip
SECTION 6
Worked Example — Differentiating a Combined Expression
Let's differentiate f(x) = 3 tan x − 2 sec x + 5 cot x. This example uses several of our new formulas at once, combined with the constant multiple rule and the sum/difference rule.
Find f′(x) for f(x) = 3 tan x − 2 sec x + 5 cot x
- 1
Step 1 — Recall the Relevant Derivatives
d/dx [tan x] = sec²x, d/dx [sec x] = sec x · tan x, and d/dx [cot x] = −csc²x. We will apply the constant multiple rule to each term: d/dx [c · f(x)] = c · f′(x). - 2
Step 2 — Differentiate Each Term Separately
First term: d/dx [3 tan x] = 3 · sec²x. Second term: d/dx [−2 sec x] = −2 · sec x · tan x. Third term: d/dx [5 cot x] = 5 · (−csc²x) = −5 csc²x. - 3
Step 3 — Combine the Results
Using the sum/difference rule, add all three differentiated terms together:f′(x) = 3 sec²x − 2 sec x · tan x − 5 csc²x - 4
Step 4 — Verify Reasonableness
Check at x = 0: f(0) = 3(0) − 2(1) + 5(undefined). Since cot 0 is undefined, f is not defined at x = 0. Try x = π/4 instead. tan(π/4) = 1, sec(π/4) = √2, cot(π/4) = 1, csc(π/4) = √2. So f′(π/4) = 3(2) − 2(√2)(1) − 5(2) = 6 − 2√2 − 10 = −4 − 2√2 ≈ −6.83. This negative slope is consistent with the behavior of the combined function near π/4.
SECTION 7
Common Mistakes & How to Avoid Them
Students frequently make a few predictable errors when working with trig derivatives. The table below highlights the most common ones so you can watch out for them.
| Common Mistake | Why It's Wrong | Correct Approach |
|---|---|---|
| Writing d/dx [tan x] = sec x | Missing the square; sec x is not the same as sec²x | d/dx [tan x] = sec²x (squared!) |
| Forgetting the negative sign on co-functions | cot, csc, and cos all have negative derivatives | Use the "co = negative" memory rule |
| Confusing sec x · tan x with sec²x · tan x | The derivative of sec x has sec to the first power, not second | d/dx [sec x] = sec x · tan x (one sec, one tan) |
| Applying the chain rule incorrectly (or not at all) | If the argument is not just x, you must multiply by the inner derivative | d/dx [tan(3x)] = sec²(3x) · 3, not just sec²(3x) |
Frequent pitfalls with trig derivatives
KEY TAKEAWAY
SECTION 8
Connection to the Chain Rule & Advanced Topics
In many real problems, you won't simply differentiate tan x or sec x by itself. Instead, the argument will be a more complicated expression, like tan(x²) or sec(3x + 1). In those cases you'll combine these trig derivative formulas with the chain rule: differentiate the outer trig function first, then multiply by the derivative of the inner function.
| This Lesson | With Chain Rule (Next Step) |
|---|---|
| d/dx [tan x] = sec²x | d/dx [tan(u)] = sec²(u) · u′ |
| d/dx [sec x] = sec x · tan x | d/dx [sec(u)] = sec(u) · tan(u) · u′ |
| d/dx [csc x] = −csc x · cot x | d/dx [csc(u)] = −csc(u) · cot(u) · u′ |
How trig derivatives extend with the chain rule
Beyond the chain rule, these derivatives appear frequently in integration (where you reverse the process), related rates problems (where angles change over time), and trigonometric substitution in integral calculus. Mastering them now builds the foundation for everything that follows.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
In this lesson you learned that every trig derivative can be built from the derivatives of sine and cosine using the quotient rule and the Pythagorean identity. The key results are: d/dx [tan x] = sec²x, d/dx [cot x] = −csc²x, d/dx [sec x] = sec x · tan x, and d/dx [csc x] = −csc x · cot x.
The most important pattern to remember is the "co- means negative" rule: cosine, cotangent, and cosecant all have derivatives with a negative sign. These formulas combine naturally with the chain rule when the argument of the trig function is something other than plain x. Mastering these six derivatives gives you the complete toolkit for differentiating any expression involving trigonometric functions.