Reciprocal trigonometric functions
Derivative of sec(x): Formula, Proof, and Examples
Secant is the reciprocal of cosine, not an inverse trigonometric function. Rewriting it as 1/cos(x) makes both the sign and the product sec(x)tan(x) transparent.

Direct answer
Requires cos(x) ≠ 0; angles are measured in radians.
When does a secant derivative need the chain rule?
Read the expression from the outside inward. The secant rule supplies sec(u)tan(u); the chain rule is needed only when its input u also changes with x.
Ask first 1
Is the expression exactly sec(x)?
What to do
Use sec(x)tan(x), then keep the restriction cos(x)≠0.
Ask first 2
Is sec applied to an inner expression u=g(x)?
What to do
Keep sec(g(x))tan(g(x)) and multiply by g′(x).
Ask first 3
Is sec(g(x)) multiplied by another function?
What to do
Use the product rule at the top level and the chain rule inside the secant factor.
Proof from sec(x) = 1/cos(x)
Write sec(x)=[cos(x)]⁻¹ and differentiate with the power and chain rules.
The two negative signs cancel: −[cos(x)]⁻² · [−sin(x)] = sin(x)/cos²(x).
Split the quotient as [1/cos(x)]·[sin(x)/cos(x)] to obtain sec(x)tan(x).
Worked examples
Multiply by the inner derivative 2.
Apply the chain rule to x².
Combine the power rule with sec′(x).
Common mistakes
- • Confusing sec(x)=1/cos(x) with arccos(x), the inverse of cosine.
- • Dropping one of the two negative signs in the reciprocal-cosine derivation.
- • Ignoring points where cos(x)=0.
Error clinic: find the missing factor
Incorrect attempt
Why it fails
The secant rule is present, but the inner derivative of 2x is missing.
Correction
Incorrect attempt
Why it fails
The inner expression was changed after differentiating. Both outer factors must keep x² as their input.
Correction
Practice the same idea with a new inner function
Write the preserved secant input first, then multiply by the derivative of that input. Reveal the answer only after you have identified both pieces.
Check before solving
Identify the constant inner derivative.
Reveal the reference answer
Reference answer
Check before solving
Preserve x²+1 in both outer factors.
Reveal the reference answer
Reference answer
Try the worked examples in the calculator
Each link opens the matching calculator with the expression, variable and required conditions already filled in.
Enter sec(2x) directly. The calculator recognizes it as 1/cos(2x), keeps the cosine restriction visible, and applies the chain rule.
Open the calculator without a preset: DerivativesFrequently asked questions
Is sec⁻¹(x) the same as 1/sec(x)?+
The notation is ambiguous. In inverse-function notation sec⁻¹ can mean arcsec, while the reciprocal of sec(x) is cos(x). Write the intended function explicitly.
Why is the derivative undefined when cos(x)=0?+
Sec(x)=1/cos(x) is already undefined there, so its derivative cannot be defined at those points either.
Can I enter sec(x) directly in the calculator?+
Yes. The input is recognized as the equivalent reciprocal-cosine expression before the deterministic derivative rules are applied.
Conclusion
Differentiate secant from the outside inward: keep the complete input inside sec and tan, multiply by the inner derivative, and retain the original cosine restriction.
Compare usage plans