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.
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.
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
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.
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
Derivative of Tangent
Derivative of Cotangent
Derivative of Secant
Derivative of Cosecant
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-) |
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.
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) |
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′ |
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.
Practice Problems
Lesson 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.