derivative of tan x — Definition, Formula & Examples
The derivative of tan x is sec²x. This means that at any point where tan x is defined, the rate at which tan x changes equals the square of the secant of that angle.
If , then for all , where is any integer. This result follows from applying the quotient rule to and using the Pythagorean identity .
Key Formula
Where:
- = Angle in radians (x must not equal π/2 + nπ for any integer n)
How It Works
Since , you can derive the result with the quotient rule. The numerator becomes . The denominator is . Dividing gives . You can also verify this by noting that , which is always positive — consistent with the fact that is always increasing on each interval where it is defined.
Worked Example
Problem: Find the derivative of f(x) = 3tan(x) + x².
Differentiate each term: Apply the sum rule and constant multiple rule. The derivative of 3tan(x) uses the tan x derivative formula, and the derivative of x² uses the power rule.
Evaluate at x = 0: Substitute x = 0. Since sec(0) = 1/cos(0) = 1, you get sec²(0) = 1.
Answer: , and the slope at is .
Why It Matters
This derivative appears constantly in calculus problems involving trigonometric functions — from related-rates problems in AP Calculus to integration by substitution where recognizing sec²x as the derivative of tan x lets you evaluate integrals directly.
Common Mistakes
Mistake: Writing the derivative as sec x · tan x instead of sec²x.
Correction: The derivative of sec x is sec x · tan x. The derivative of tan x is sec²x. Keep these two standard results distinct by remembering which function you started with.
