Inverse trigonometric functions

Derivative of arctan(x): Formula, Proof, and Examples

Arctan is the inverse function of tangent on its principal interval. It is not the reciprocal 1/tan(x); inverse-function notation and reciprocal notation describe different operations.

Direct answer

ddx[arctan⁡x]=11+x2\frac{\mathrm{d}}{\mathrm{d}x}\left[\arctan x\right] = \frac{1}{1 + x^{2}}

Valid for every real x; angles are measured in radians.

Proof from tan(y) = x

Set y = arctan(x), so tan(y) = x. Differentiate implicitly with respect to x.

Because d/dy tan(y) = sec²(y), the chain rule gives sec²(y) · dy/dx = 1.

Use sec²(y) = 1 + tan²(y) and tan(y) = x. Therefore dy/dx = 1/(1+x²).

1
tan⁡y=x\tan y = x
2
sec²(y) · dy/dx = 1
3
dydx=11+x2\frac{\mathrm{d}y}{\mathrm{d}x} = \frac{1}{1 + x^{2}}

Why the inverse needs a chosen interval

Tangent repeats its values after a shift of π, so it cannot have an inverse on the whole real line. Restricting its angle to the open interval (−π/2, π/2) makes it continuous, strictly increasing and onto all real numbers. Arctan returns the unique angle in that interval. This choice explains why arctan accepts every real input even though tangent itself has excluded angles. A derivative calculation must respect that inverse relationship rather than replace the function by a reciprocal.

In the implicit proof, the derivative of tan(y) with respect to x is sec²(y)y′. The factor y′ appears because the angle y changes with x. On the principal interval, cos(y) is never zero, so sec²(y) is positive and division by it is legitimate. Substituting tan(y)=x then produces 1/(1+x²). The denominator is at least one, so the slope is positive and at most one; it decreases toward zero as the input moves far from the origin. These observations provide useful checks on a proposed answer.

Worked example: slope of arctan(3x−1) at x=1

Find the slope before constructing a tangent line. The input 3x−1 is the inner function, while arctan is the outer function. Differentiate the inner function separately so that its constant factor is not lost. The square in the denominator belongs to the whole inner expression; replacing it by 9x²−1 would discard the cross term and change the answer.

At x=1 the inner input equals two. A slope of 3/5 is a rate of change, not the value of the original angle. The tangent line therefore needs the point (1, arctan(2)) as well as that slope. A finite-difference estimate near one can help detect a typing error, but it is only a numerical diagnostic; the chain-rule derivation establishes the formula.

  1. Separate the two functions.

    u=3x−1,u′=3u=3x-1,\quad u\prime=3
  2. Apply the chain rule to the complete inner input.

    f′(x)=31+(3x−1)2f\prime(x)=\frac{3}{1+(3x-1)^2}
  3. Evaluate only after differentiating.

    f′(1)=31+22=35f\prime(1)=\frac{3}{1+2^2}=\frac35
  4. Use the original function value for the point.

    y−arctan⁡(2)=35(x−1)y-\arctan(2)=\frac35(x-1)

Worked example: a reciprocal input and its missing point

For h(x)=arctan(1/x), the original expression excludes zero. The inner derivative is negative, so a positive final slope would signal an error. Multiplying the numerator and denominator by x² simplifies the result, but that algebra is valid only where x is nonzero. A simplified expression can look defined at a point where the original function never was.

At x=2 the slope is −1/5. At x=0 there is no derivative of this original function: approaching zero from the positive side gives an angle tending to π/2, while approaching from the negative side gives −π/2. Assigning a value to the simplified derivative formula at zero cannot repair that jump. Always report the exclusion with the answer, and keep the two intervals of the original domain separate.

  1. Differentiate the reciprocal input.

    h′(x)=−1/x21+1/x2h\prime(x)=\frac{-1/x^2}{1+1/x^2}
  2. Simplify while preserving the domain.

    h′(x)=−11+x2,x≠0h\prime(x)=-\frac{1}{1+x^2},\quad x\ne0
  3. Evaluate at a permitted point.

    h′(2)=−15h\prime(2)=-\frac15

Radian units, notation and a practical check

The usual formula assumes that angles are measured in radians. If you deliberately define an angle in degrees, multiply the arctan output by 180/π; its derivative gains the same factor. This is a change of function, not a different derivative rule. In calculator input, use arctan(3*x-1) to make the grouping explicit, and keep the requested variable visible. The notation tan⁻¹(x) can mean inverse tangent in a textbook, but 1/tan(x) is cotangent and has a different derivative. Compare the parsed preview with the original problem before submitting. If the result is unsupported, preserve the input and examine notation or the documented method rather than assuming the mathematical derivative does not exist.

Worked examples

ddx[arctan⁡(2 x)]\frac{\mathrm{d}}{\mathrm{d}x}\left[\arctan\left(2\,x\right)\right]
21+4 x2\frac{2}{1 + 4\,x^{2}}

The inner derivative contributes the factor 2.

ddx[arctan⁡(x2)]\frac{\mathrm{d}}{\mathrm{d}x}\left[\arctan\left(x^{2}\right)\right]
2 x1+x4\frac{2\,x}{1 + x^{4}}

Square the entire inner expression in the denominator.

ddx[arctan⁡(1x)]\frac{\mathrm{d}}{\mathrm{d}x}\left[\arctan\left(\frac{1}{x}\right)\right]
−1x2+1\frac{-1}{x^{2} + 1}

Apply the chain rule on intervals where x ≠ 0.

Common mistakes

  • • Replacing arctan(x) by 1/tan(x). The former is an inverse function; the latter is a reciprocal.
  • • Forgetting to square the complete inner input in 1+[g(x)]².
  • • Using degree-mode derivative constants. Standard calculus derivative formulas assume radians.

Try the worked examples in the calculator

Each link opens the matching calculator with the expression, variable and required conditions already filled in.

Open the calculator without a preset: Derivatives

References