Historical Context & Motivation
The story of trigonometric derivatives is deeply intertwined with the development of calculus itself. Once mathematicians knew how to differentiate sine and cosine, the natural next step was to find the derivatives of the other four trig functions: tangent, cotangent, secant, and cosecant. These derivatives became essential tools for physics and engineering, powering everything from satellite tracking to electrical circuit analysis.
You already know the derivatives of sin x and cos x. But what happens when you need the rate of change of tan x, or sec x? Since these four remaining trig functions are all built from sine and cosine, their derivatives can be derived using tools you already possess — the quotient rule and Pythagorean identities. This lesson will show you how.
Core Principles & Definitions
Before jumping into formulas, it helps to understand the foundational ideas that make these derivatives possible. Each of the four functions — tan, cot, sec, csc — is a ratio of sin x and cos x, which means we can always rewrite them in terms of those two "parent" functions. This single insight unlocks every derivative in this lesson.
Trig Functions as Ratios
The Quotient Rule
Pythagorean Identities
Paired Derivatives
Visual Explanation — The Derivative Relationships
The diagram below shows the six trig functions arranged in two columns — the regular functions on the left and their "co" counterparts on the right. Arrows indicate the derivative relationships, and you can see the beautiful symmetry: every cofunction derivative picks up a negative sign compared to its non-co partner.
Mathematical Framework — Deriving the Formulas
Let's derive each formula step by step using the quotient rule and Pythagorean identities. Once you see how each one is built, the formulas stop feeling like random things to memorize — they become logical consequences of ideas you already know.
Derivative of tan x
Start by writing tan x = sin x / cos x. Apply the quotient rule with g(x) = sin x and h(x) = cos x. The quotient rule gives us [cos x · cos x − sin x · (−sin x)] / cos²x, which simplifies to [cos²x + sin²x] / cos²x. The Pythagorean identity tells us cos²x + sin²x = 1, so the numerator collapses to 1. The final result is 1/cos²x, which equals sec²x.
Derivative of cot x
Write cot x = cos x / sin x. Apply the quotient rule with g(x) = cos x and h(x) = sin x. This gives [sin x · (−sin x) − cos x · cos x] / sin²x = [−sin²x − cos²x] / sin²x = −1 / sin²x. Since 1/sin²x = csc²x, we arrive at −csc²x.
Derivative of sec x
Write sec x = 1 / cos x. Using the quotient rule (or equivalently, the reciprocal rule) with g(x) = 1 and h(x) = cos x, we get [cos x · 0 − 1 · (−sin x)] / cos²x = sin x / cos²x. This can be factored as (1/cos x) · (sin x / cos x) = sec x · tan x.
Derivative of csc x
Write csc x = 1 / sin x. The quotient rule gives [sin x · 0 − 1 · cos x] / sin²x = −cos x / sin²x. Factoring yields −(1/sin x) · (cos x / sin x) = −csc x · cot x.
All Four Formulas at a Glance
The table below collects all four derivative formulas alongside the two you already know (sin x and cos x). Study the pattern: every cofunction derivative is the negative of the corresponding function's derivative, with trig functions swapped accordingly.
| Function f(x) | Derivative f′(x) | Sign |
|---|---|---|
| sin x | cos x | + |
| cos x | −sin x | − |
| tan x | sec²x | + |
| cot x | −csc²x | − |
| sec x | sec x tan x | + |
| csc x | −csc x cot x | − |
The left graph illustrates an important observation: since sec²x is always positive (at least 1), the tangent function is always increasing within any interval where it is defined. The right graph shows that sec x has a derivative of zero at x = 0, which corresponds to the local minimum of sec x at that point.
Worked Example — Differentiating a Trig Expression
Let's find the derivative of f(x) = 3 sec x + 2 tan x − 5 csc x. This problem combines three of our new derivative rules along with the constant multiple rule.
Common Mistakes & How to Avoid Them
These derivatives are straightforward once memorized, but certain pitfalls trip up students over and over. The table below highlights the most frequent errors alongside the correct approach.
| Common Mistake | Why It's Wrong | Correct Approach |
|---|---|---|
| Writing d/dx[tan x] = sec x | Missing the squared exponent — sec²x ≠ sec x | d/dx[tan x] = sec²x (the entire sec x is squared) |
| Forgetting the negative sign on cot and csc derivatives | Cofunctions always carry a negative in their derivatives | d/dx[cot x] = −csc²x, d/dx[csc x] = −csc x cot x |
| Confusing sec x tan x with tan x sec x | These are actually the same — multiplication is commutative! | sec x tan x = tan x sec x. This is NOT a mistake — both forms are correct. |
| Swapping tan and cot in the sec/csc derivative formulas | sec pairs with tan (both use cosine), and csc pairs with cot (both use sine) | d/dx[sec x] = sec x · tan x, d/dx[csc x] = −csc x · cot x |
| Not applying chain rule when the argument isn't just x | d/dx[tan(3x)] ≠ sec²(3x); must multiply by inner derivative | d/dx[tan(3x)] = sec²(3x) · 3 = 3 sec²(3x) |
Connection to Advanced Topics
Mastering these four derivatives is not just an end in itself — they are building blocks for many topics you'll encounter later in calculus and beyond. The table below shows how the current material connects to more advanced concepts.
| Current Topic | Advanced Extension |
|---|---|
| d/dx[tan x] = sec²x | ∫ sec²x dx = tan x + C — this becomes an essential antiderivative (integral) formula |
| d/dx[sec x] = sec x tan x | Used in trigonometric substitution for integrals like ∫ √(x² − 1) dx |
| Chain rule with trig derivatives | Implicit differentiation and related rates problems frequently involve nested trig functions |
| All six trig derivatives | Fourier series and differential equations use these derivatives extensively in physics and engineering |
When you reach integration (the reverse of differentiation), you'll essentially read these derivative formulas backward. Knowing that the derivative of tan x is sec²x immediately tells you that the integral of sec²x is tan x + C. So the time you invest now in learning these formulas pays off doubly later.
Practice Problems
Lesson Summary
The four new derivative formulas in this lesson all stem from the quotient rule and the Pythagorean identities. The derivative of tan x is sec²x, the derivative of cot x is −csc²x, the derivative of sec x is sec x tan x, and the derivative of csc x is −csc x cot x. The unifying pattern is that every cofunction derivative includes a negative sign.
To remember the pairings: sec pairs with tan (both involve cosine in the denominator), and csc pairs with cot (both involve sine). These formulas will reappear when you study integration, where they are read in reverse to find antiderivatives. Practice combining them with the product rule and chain rule to build fluency for more complex problems.