MathorynMathematical Formula Database

Calculus

Derivative of Tangent

The derivative of tan⁡x\tan x is sec⁡2x\sec^2 x, which follows from the quotient rule applied to sin⁡x/cos⁡x\sin x/\cos x. It is used for slopes of tangent graphs, in related-rates problems with angles and to integrate sec⁡2x\sec^2x.

ddxtan⁡x=sec⁡2x=1cos⁡2x\frac{d}{dx}\tan x=\sec^2x=\frac{1}{\cos^2x}
LaTeX\frac{d}{dx}\tan x=\sec^2x=\frac{1}{\cos^2x}

Variables

xx
angle in radians, cos x ≠ 0
sec⁡x\sec x
secant, 1cos⁡x\frac{1}{\cos x}

Example

Find the slope of y=tan⁡xy=\tan x at x=π4x=\frac{\pi}{4}.

  1. cos⁡π4=22\cos\frac{\pi}{4}=\frac{\sqrt2}{2}, so cos⁡2=12\cos^2=\frac12.
  2. y′=11/2y'=\frac{1}{1/2}.

Answer: The slope is 22.

Related formulas