Derivative of sec x
The derivative of sec x is sec x tan x. It follows from writing sec x as 1/cos x and differentiating.
How to find the derivative of sec x
Method: chain rule.
- 1Write sec x as a power: sec x = (cos x)⁻¹.
- 2Apply the chain rule: −1 · (cos x)⁻² · (−sin x).
- 3Simplify the signs: sin x / cos²x.
- 4Split it into two fractions: (1/cos x) · (sin x / cos x).
- 5That is sec x tan x.
What it means on the graph
The secant has a U-shaped branch around x = 0 with a minimum of 1. At that point the slope is 0, and sec x tan x is 0 because tan 0 = 0. The slope is negative to the left of the minimum and positive to the right.
In the window shown, the derivative is zero at x = −π, x = 0, x = π. Those are the points where the graph of sec x has a horizontal tangent.
Table of values
The derivative column uses the formula. The last column estimates the slope directly from the original function, as an independent check.
| x | sec x | sec x tan x | Slope, measured |
|---|---|---|---|
| −6/5 | 2.7597 | −7.09838 | −7.09838 |
| −π/4 | √2 | −√2 | −√2 |
| 0 | 1 | 0 | 0 |
| π/6 | 2√3/3 | 2/3 | 2/3 |
| π/4 | √2 | √2 | √2 |
| 6/5 | 2.7597 | 7.09838 | 7.09838 |
Second derivative
Differentiating once more gives:
The second derivative tells you which way the graph bends: positive means it curves upward, and negative means it curves downward.
Related derivatives
The same result with the chain or product rule. Each of these is checked numerically too.
| Function | Derivative |
|---|---|
sec(2x) | 2sec(2x)tan(2x) |
sec(x)2 | 2sec(x)2tan(x) |
Common mistakes
- Confusing it with the derivative of tan x, which is sec²x.
- Adding a minus sign. Only the “co-” functions have negative derivatives.
Frequently asked questions
What is the derivative of sec x?
What is the second derivative of sec x?
What is the derivative of sec²x?
Keep going
Type your own function into the derivative calculator and see every rule applied, step by step.