Skip to content
ihateDesmos

Derivative of sec²x

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The derivative of sec²x
ddx(sec(x)2)=2sec(x)2tan(x)

The derivative of sec²x is 2 sec²x tan x. It is also the second derivative of tan x, since the derivative of tan x is sec²x.

−1.0−0.50.51.0−10100
Open in calculator
y=sec(x)2
in blue and its derivative
y=2sec(x)2tan(x)
in red. Defined for x ≠ π/2 + nπ.

How to find the derivative of sec²x

Method: chain rule.

  1. 1
    Write the function as (sec x)², with u = sec x.
  2. 2
    The power rule on the outside gives 2u = 2 sec x.
  3. 3
    The derivative of the inside is sec x tan x.
  4. 4
    Multiply them: 2 sec x · sec x tan x = 2 sec²x tan x.

What it means on the graph

sec²x has a minimum of 1 at x = 0, where the derivative is 0. Since it is the slope of the tangent curve, this derivative measures how fast that slope changes: it is the concavity of tan x.

In the window shown, the derivative is zero at x = 0. 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.

Values of sec²x and its derivative
xsec²x2 sec²x tan xSlope, measured
−13.42552−10.6699−10.6699
−1/21.29845−1.41869−1.41869
0100
1/21.298451.418691.41869
13.4255210.669910.6699

Related derivatives

The same result with the chain or product rule. Each of these is checked numerically too.

Related derivatives
FunctionDerivative
sec(2x)2
4sec(2x)2tan(2x)

Common mistakes

  • Writing 2 sec x tan x, by losing one of the factors of sec x.
  • Writing tan x, which is the integral of sec²x, not the derivative.

Frequently asked questions

What is the derivative of sec²x?
The derivative of sec²x is 2 sec²x tan x, for x ≠ π/2 + nπ.

Keep going

Differentiate any function

Type your own function into the derivative calculator and see every rule applied, step by step.

Open the derivative calculator