Trigonometric Derivatives (Advanced)
When you first encountered trigonometric derivatives, you learned that d/dx(sin x) = cos x and d/dx(cos x) = −sin x. These two results are the foundation for everything else in trigonometric differentiation. The four remaining standard trigonometric functions — tangent, cotangent, secant, and cosecant — can all be differentiated by expressing them as quotients involving sine and cosine, then applying the quotient rule. The results are elegant formulas that appear constantly in physics, engineering, and advanced mathematics. Understanding these derivatives is essential because tan x, cot x, sec x, and csc x appear naturally in problems involving angles, waves, oscillations, and geometry. For example, the slope of a tangent line to a circle involves sec²x, and the rate of change of the angle of elevation of a rising rocket involves sec²x through the derivative of arctan. Mastering these six trigonometric derivatives (including sin and cos) gives you a complete toolkit for differentiating any trigonometric expression. In this article, we derive each formula from first principles using the quotient rule, state the results clearly, and show how to apply them in combination with the chain rule and product rule. We also examine the domains of each derivative — because tan x and sec x are undefined at x = π/2 + nπ, and cot x and csc x are undefined at x = nπ, the derivatives share the same domain restrictions.
- Derivative of tan x
- Derivative of cot x
- Derivative of sec x
- Derivative of csc x
- Applying the Chain Rule
- Memory Pattern: The Co-Function Rule
Derivative of tan x
Write tan x = sin x / cos x. Applying the quotient rule d/dx(u/v) = (v·u' − u·v') / v²: d/dx(tan x) = (cos x · cos x − sin x · (−sin x)) / cos²x = (cos²x + sin²x) / cos²x = 1 / cos²x = sec²x. Therefore: d/dx(tan x) = sec²x. This derivative is always positive (or undefined), meaning tan x is a strictly increasing function on each interval of its domain.
Derivative of cot x
Write cot x = cos x / sin x. Applying the quotient rule: d/dx(cot x) = (sin x · (−sin x) − cos x · cos x) / sin²x = (−sin²x − cos²x) / sin²x = −(sin²x + cos²x) / sin²x = −1 / sin²x = −csc²x. Therefore: d/dx(cot x) = −csc²x. Note the crucial negative sign. This derivative is always negative (or undefined), confirming that cot x is strictly decreasing on each interval of its domain.
Derivative of sec x
Write sec x = 1 / cos x. Using the quotient rule (or chain rule): d/dx(sec x) = (0 · cos x − 1 · (−sin x)) / cos²x = sin x / cos²x = (1/cos x)(sin x / cos x) = sec x · tan x. Therefore: d/dx(sec x) = sec x tan x. A useful memory aid: the derivative of a 'co-' function always introduces a negative sign (as seen with cos and cot), while sec x does not carry a negative sign.
Derivative of csc x
Write csc x = 1 / sin x. Applying the quotient rule: d/dx(csc x) = (0 · sin x − 1 · cos x) / sin²x = −cos x / sin²x = −(1/sin x)(cos x / sin x) = −csc x · cot x. Therefore: d/dx(csc x) = −csc x cot x. Notice the negative sign — consistent with the pattern that derivatives of co-functions (cosine, cotangent, cosecant) all carry a negative sign.
Applying the Chain Rule
When the argument is a function g(x) rather than plain x, the chain rule extends each formula. For example: d/dx(tan(g(x))) = sec²(g(x)) · g'(x). Similarly: d/dx(sec(g(x))) = sec(g(x)) tan(g(x)) · g'(x), d/dx(cot(g(x))) = −csc²(g(x)) · g'(x), and d/dx(csc(g(x))) = −csc(g(x)) cot(g(x)) · g'(x). For instance, d/dx(tan(3x²)) = sec²(3x²) · 6x = 6x sec²(3x²).
Memory Pattern: The Co-Function Rule
There is a beautiful symmetry in the six trigonometric derivatives. Each 'co-function' derivative (cosine, cotangent, cosecant) is the negative of the corresponding non-co derivative, with sin replaced by cos (and vice versa): d/dx(sin x) = cos x, d/dx(cos x) = −sin x; d/dx(tan x) = sec²x, d/dx(cot x) = −csc²x; d/dx(sec x) = sec x tan x, d/dx(csc x) = −csc x cot x. Learning the three non-co derivatives automatically gives you the three co-function derivatives by adding a negative sign and swapping to co-functions.
The Key Equation
- \sec x — Secant of x (dimensionless): Defined as 1/cos x; undefined where cos x = 0, i.e., at x = π/2 + nπ for integer n.
- \csc x — Cosecant of x (dimensionless): Defined as 1/sin x; undefined where sin x = 0, i.e., at x = nπ for integer n.
- \tan x — Tangent of x (dimensionless): Defined as sin x / cos x; its derivative sec²x is always ≥ 1 on its domain.
- \cot x — Cotangent of x (dimensionless): Defined as cos x / sin x; its derivative −csc²x is always ≤ −1 on its domain.
Worked Example
Problem. Differentiate the function f(x) = x² sec(4x) + cot(x³). Find f'(x).
Answer. f'(x) = 2x sec(4x)(1 + 2x tan(4x)) − 3x² csc²(x³)
Origins · 1 minGottfried Wilhelm Leibniz and how this was discovered
Leibniz independently developed calculus alongside Isaac Newton in the late 17th century and introduced much of the notation we still use today, including d/dx for derivatives and the integral sign ∫. His systematic approach to differentiating functions — treating differentiation as an algebraic operation — made it straightforward to derive formulas like d/dx(tan x) = sec²x using the quotient rule, which he formulated. The 'Leibniz notation' makes chain rule applications such as d/dx(tan(g(x))) = sec²(g(x)) · g'(x) visually intuitive. Leibniz was also a philosopher, diplomat, and inventor. He designed a mechanical calculator called the Stepped Reckoner that could multiply and divide — a remarkable engineering achievement for the 1670s. Despite his enormous contributions to mathematics, he died in relative obscurity, with only his secretary attending his funeral.
Related Concepts
- The Quotient Rule — Every formula in this article was derived using the quotient rule d/dx(u/v) = (v·u' − u·v') / v². Mastering this rule is a prerequisite for understanding why these trigonometric derivatives take the forms they do.
- The Chain Rule — Applying trigonometric derivatives to composite functions like tan(3x²) or sec(x³ + 1) requires the chain rule. Most real-world applications involve composite forms, making this an essential companion concept.
- Derivatives of sin x and cos x — The entire derivation of tan, cot, sec, and csc derivatives rests on knowing that d/dx(sin x) = cos x and d/dx(cos x) = −sin x. These are the building blocks from which all other trigonometric derivatives are constructed.
- Pythagorean Trigonometric Identities — The key step in deriving d/dx(tan x) uses the identity sin²x + cos²x = 1 to simplify the numerator. The identities 1 + tan²x = sec²x and 1 + cot²x = csc²x are direct consequences that appear constantly when simplifying derivative expressions.
- Derivatives of Inverse Trigonometric Functions — Once you have mastered the derivatives of the six trigonometric functions, the natural next step is differentiating their inverses (arcsin, arctan, arcsec, etc.), which appear frequently in integration problems and physics applications.