Differentiating Inverse Tangent

A2 · P3 · 9 min

The inverse tangent, tan⁡−1x\tan^{-1}x, is the only inverse trigonometric function whose derivative is on the P3 syllabus. Its derivative, 11+x2\dfrac{1}{1 + x^2}, is a surprise: a function defined by angles has a derivative with no trigonometry in it at all. That fact is what makes it important. Reading it backwards gives the integral ∫1x2+a2 dx=1atan⁡−1xa\displaystyle\int\frac{1}{x^2 + a^2}\,dx = \frac{1}{a}\tan^{-1}\frac{x}{a}, which appears in integration and differential equations questions. In differentiation, it turns up in composites, in products such as xtan⁡−1xx\tan^{-1}x, and in stationary-point questions.

What tan⁻¹ x means

tan⁡x\tan x is not one-to-one, because it repeats every π\pi. To define an inverse, restrict tan⁡\tan to the interval −π2<x<π2-\tfrac{\pi}{2} < x < \tfrac{\pi}{2}, where it takes every real value exactly once.

Definition

y=tan⁡−1xy = \tan^{-1} x is the angle in the interval −π2<y<π2-\tfrac{\pi}{2} < y < \tfrac{\pi}{2} whose tangent is xx. So tan⁡−1x=y  ⟺  tan⁡y=x\tan^{-1} x = y \iff \tan y = x with −π2<y<π2-\tfrac{\pi}{2} < y < \tfrac{\pi}{2}.

Its domain is all real xx and its range is −π2<y<π2-\tfrac{\pi}{2} < y < \tfrac{\pi}{2}.

The graph is the reflection of the central branch of y=tan⁡xy = \tan x in the line y=xy = x. The vertical asymptotes x=±π2x = \pm\tfrac{\pi}{2} of tan⁡x\tan x become horizontal asymptotes y=±π2y = \pm\tfrac{\pi}{2}.

y = atan(x) y = pi/2 y = -pi/2

y=tan⁡−1xy = \tan^{-1}x (solid) rises through the origin with gradient 11 and flattens towards the asymptotes y=±π2y = \pm\tfrac{\pi}{2} (dashed).

From the graph you can predict the derivative: always positive, largest (equal to 11) at x=0x = 0, decreasing towards zero as ∣x∣|x| grows, and symmetric because the curve has rotational symmetry about the origin. 11+x2\dfrac{1}{1 + x^2} has exactly those features.

Watch out

tan⁡−1x\tan^{-1} x is the inverse function, not the reciprocal. tan⁡−1x≠1tan⁡x\tan^{-1} x \ne \dfrac{1}{\tan x}. The reciprocal is cot⁡x\cot x. Some books write arctan⁡x\arctan x for the inverse to avoid this confusion; Cambridge uses tan⁡−1x\tan^{-1} x.

Deriving the derivative

Derivative of the inverse tangent

Let y=tan⁡−1xy = \tan^{-1}x. Then x=tan⁡yx = \tan y.

Differentiate with respect to yy:

dxdy=sec⁡2y=1+tan⁡2y=1+x2\frac{dx}{dy} = \sec^2 y = 1 + \tan^2 y = 1 + x^2

using the identity sec⁡2y=1+tan⁡2y\sec^2 y = 1 + \tan^2 y and then tan⁡y=x\tan y = x. Hence

dydx=1dx/dy=11+x2\frac{dy}{dx} = \frac{1}{dx/dy} = \frac{1}{1 + x^2}

The crucial step is replacing sec⁡2y\sec^2 y with 1+x21 + x^2. Leaving the answer as 1sec⁡2y\dfrac{1}{\sec^2 y} is correct but is in terms of yy, not xx; the identity converts it.

The same proof can be done with implicit differentiation: differentiate tan⁡y=x\tan y = x with respect to xx to get sec⁡2ydydx=1\sec^2 y\dfrac{dy}{dx} = 1, and the rest is the same.

Derivative of tan⁻¹ x
ddxtan⁡−1x=11+x2ddxtan⁡−1f(x)=f′(x)1+(f(x))2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2} \qquad\qquad \frac{d}{dx}\tan^{-1}f(x) = \frac{f'(x)}{1 + \big(f(x)\big)^2}

A useful special case:

ddxtan⁡−1xa=1/a1+x2/a2=aa2+x2\frac{d}{dx}\tan^{-1}\frac{x}{a} = \frac{1/a}{1 + x^2/a^2} = \frac{a}{a^2 + x^2}

That special case is the reason the integral of 1a2+x2\dfrac{1}{a^2 + x^2} is 1atan⁡−1xa\dfrac{1}{a}\tan^{-1}\dfrac{x}{a}: see standard integrals.

Tip

The derivatives of sin⁡−1x\sin^{-1}x and cos⁡−1x\cos^{-1}x are not required by the 9709 syllabus. If you meet them elsewhere, the same method works: y=sin⁡−1x⇒x=sin⁡y⇒dxdy=cos⁡y=1−x2y = \sin^{-1}x \Rightarrow x = \sin y \Rightarrow \dfrac{dx}{dy} = \cos y = \sqrt{1 - x^2}, so dydx=11−x2\dfrac{dy}{dx} = \dfrac{1}{\sqrt{1 - x^2}}.

Composites, products and quotients

Everything you know about combining derivatives applies.

FunctionRuleDerivative
tan⁡−13x\tan^{-1} 3xchain31+9x2\dfrac{3}{1 + 9x^2}
tan⁡−1(x2)\tan^{-1}(x^2)chain2x1+x4\dfrac{2x}{1 + x^4}
tan⁡−1x\tan^{-1}\sqrt{x}chain12x(1+x)\dfrac{1}{2\sqrt{x}(1 + x)}
(tan⁡−1x)2(\tan^{-1} x)^2chain (outer square)2tan⁡−1x1+x2\dfrac{2\tan^{-1}x}{1 + x^2}
xtan⁡−1xx\tan^{-1}xproducttan⁡−1x+x1+x2\tan^{-1} x + \dfrac{x}{1 + x^2}
tan⁡−1y\tan^{-1}y with yy a function of xximplicit11+y2dydx\dfrac{1}{1 + y^2}\dfrac{dy}{dx}

Watch the square in the denominator: for tan⁡−13x\tan^{-1} 3x it is 1+(3x)2=1+9x21 + (3x)^2 = 1 + 9x^2, not 1+3x21 + 3x^2.

The product xtan⁡−1xx\tan^{-1}x matters for another reason: its derivative contains tan⁡−1x\tan^{-1}x, which is why the syllabus lists xtan⁡−1xx\tan^{-1}x as a standard integration by parts example.

Exact values you need

xx0013\dfrac{1}{\sqrt{3}}113\sqrt{3}−1-1
tan⁡−1x\tan^{-1} x00π6\dfrac{\pi}{6}π4\dfrac{\pi}{4}π3\dfrac{\pi}{3}−π4-\dfrac{\pi}{4}

These come straight from the standard triangles. Note tan⁡−1(−x)=−tan⁡−1x\tan^{-1}(-x) = -\tan^{-1}x.

Worked examples

Composites

Differentiate (a) tan⁡−13x\tan^{-1} 3x (b) tan⁡−1x2\tan^{-1}\dfrac{x}{2} (c) tan⁡−1(x2)\tan^{-1}(x^2) (d) (tan⁡−1x)2(\tan^{-1} x)^2.

Solution

(a) 11+(3x)2×3=31+9x2\dfrac{1}{1 + (3x)^2}\times 3 = \dfrac{3}{1 + 9x^2}.

(b) 11+x2/4×12=12+x2/2\dfrac{1}{1 + x^2/4}\times\dfrac{1}{2} = \dfrac{1}{2 + x^2/2}. Multiply top and bottom by 22: 24+x2\dfrac{2}{4 + x^2}. This matches aa2+x2\dfrac{a}{a^2 + x^2} with a=2a = 2.

(c) 11+(x2)2×2x=2x1+x4\dfrac{1}{1 + (x^2)^2}\times 2x = \dfrac{2x}{1 + x^4}.

(d) Outer function is a square: 2tan⁡−1x×11+x2=2tan⁡−1x1+x22\tan^{-1}x \times \dfrac{1}{1 + x^2} = \dfrac{2\tan^{-1}x}{1 + x^2}.

Product with the inverse tangent

Find the exact gradient of y=xtan⁡−1xy = x\tan^{-1}x at the point where x=1x = 1.

Solution

u=xu = x, u′=1u' = 1;  v=tan⁡−1x\ v = \tan^{-1}x, v′=11+x2v' = \dfrac{1}{1 + x^2}.

dydx=x⋅11+x2+tan⁡−1x\frac{dy}{dx} = x\cdot\frac{1}{1 + x^2} + \tan^{-1}x

At x=1x = 1: 12+tan⁡−11=12+π4\dfrac{1}{2} + \tan^{-1}1 = \dfrac{1}{2} + \dfrac{\pi}{4}.

A tangent

Find the equation of the tangent to y=tan⁡−1(2x−1)y = \tan^{-1}(2x - 1) at the point where x=1x = 1.

Solution

At x=1x = 1: y=tan⁡−11=π4y = \tan^{-1}1 = \tfrac{\pi}{4}.

dydx=21+(2x−1)2\dfrac{dy}{dx} = \dfrac{2}{1 + (2x - 1)^2}; at x=1x = 1: 21+1=1\dfrac{2}{1 + 1} = 1.

Tangent: y−π4=x−1y - \tfrac{\pi}{4} = x - 1, i.e. y=x−1+π4y = x - 1 + \tfrac{\pi}{4}.

A stationary point

Find the exact coordinates of the stationary point of y=2tan⁡−1x−ln⁡(1+x2)y = 2\tan^{-1}x - \ln(1 + x^2) and determine its nature.

Solutiondydx=21+x2−2x1+x2=2(1−x)1+x2\frac{dy}{dx} = \frac{2}{1 + x^2} - \frac{2x}{1 + x^2} = \frac{2(1 - x)}{1 + x^2}

Zero when x=1x = 1. Then y=2⋅π4−ln⁡2=π2−ln⁡2y = 2\cdot\tfrac{\pi}{4} - \ln 2 = \tfrac{\pi}{2} - \ln 2.

The denominator is positive, so the sign of dydx\dfrac{dy}{dx} is the sign of 1−x1 - x: positive for x<1x < 1, negative for x>1x > 1. The point (1, π2−ln⁡2)\left(1,\ \tfrac{\pi}{2} - \ln 2\right) is a maximum.

Showing a function is always decreasing

Show that f(x)=tan⁡−1x−xf(x) = \tan^{-1}x - x is a decreasing function, and deduce that tan⁡−1x<x\tan^{-1}x < x for all x>0x > 0.

Solutionf′(x)=11+x2−1=1−(1+x2)1+x2=−x21+x2f'(x) = \frac{1}{1 + x^2} - 1 = \frac{1 - (1 + x^2)}{1 + x^2} = -\frac{x^2}{1 + x^2}

This is negative for all x≠0x \ne 0 and zero only at the single point x=0x = 0, so ff is decreasing.

f(0)=0f(0) = 0, and ff decreases, so for x>0x > 0: f(x)<f(0)=0f(x) < f(0) = 0, which means tan⁡−1x−x<0\tan^{-1}x - x < 0, i.e. tan⁡−1x<x\tan^{-1}x < x.

Exam-hard: a surprising derivative

Show that ddxtan⁡−1(1+x1−x)=11+x2\dfrac{d}{dx}\tan^{-1}\left(\dfrac{1 + x}{1 - x}\right) = \dfrac{1}{1 + x^2} for x≠1x \ne 1, and explain this result using the identity for tan⁡(A+B)\tan(A + B).

Solution

Let f(x)=1+x1−xf(x) = \dfrac{1 + x}{1 - x}. By the quotient rule,

f′(x)=(1−x)(1)−(1+x)(−1)(1−x)2=2(1−x)2f'(x) = \frac{(1 - x)(1) - (1 + x)(-1)}{(1 - x)^2} = \frac{2}{(1 - x)^2}

Also

1+f(x)2=(1−x)2+(1+x)2(1−x)2=2+2x2(1−x)21 + f(x)^2 = \frac{(1 - x)^2 + (1 + x)^2}{(1 - x)^2} = \frac{2 + 2x^2}{(1 - x)^2}

So

ddxtan⁡−1f(x)=f′(x)1+f(x)2=2(1−x)2⋅(1−x)22(1+x2)=11+x2\frac{d}{dx}\tan^{-1}f(x) = \frac{f'(x)}{1 + f(x)^2} = \frac{2}{(1-x)^2}\cdot\frac{(1 - x)^2}{2(1 + x^2)} = \frac{1}{1 + x^2}

Explanation: let θ=tan⁡−1x\theta = \tan^{-1}x. Then tan⁡(π4+θ)=1+tan⁡θ1−tan⁡θ=1+x1−x\tan\left(\tfrac{\pi}{4} + \theta\right) = \dfrac{1 + \tan\theta}{1 - \tan\theta} = \dfrac{1 + x}{1 - x}. So for x<1x < 1, tan⁡−11+x1−x=π4+tan⁡−1x\tan^{-1}\dfrac{1 + x}{1 - x} = \tfrac{\pi}{4} + \tan^{-1}x, which differs from tan⁡−1x\tan^{-1}x by a constant and so has the same derivative.

Common mistakes
  • Forgetting to square the inside. ddxtan⁡−13x=31+9x2\dfrac{d}{dx}\tan^{-1}3x = \dfrac{3}{1 + 9x^2}, not 31+3x2\dfrac{3}{1 + 3x^2}.
  • Forgetting the inner derivative on top. ddxtan⁡−1(x2)=2x1+x4\dfrac{d}{dx}\tan^{-1}(x^2) = \dfrac{2x}{1 + x^4}, not 11+x4\dfrac{1}{1 + x^4}.
  • Treating tan⁡−1\tan^{-1} as a reciprocal, giving −cosec⁡2x-\operatorname{cosec}^2 x (the derivative of cot⁡x\cot x).
  • Leaving the proof in terms of yy. In "show that ddxtan⁡−1x=11+x2\dfrac{d}{dx}\tan^{-1}x = \dfrac{1}{1+x^2}", you must use sec⁡2y=1+tan⁡2y=1+x2\sec^2 y = 1 + \tan^2 y = 1 + x^2 explicitly.
  • Degrees. tan⁡−11=π4\tan^{-1}1 = \tfrac{\pi}{4}, not 4545, in any calculus answer.
Exam tip
  • The derivative of tan⁡−1x\tan^{-1}x is in the list of formulae, but the composite forms are not. Expect to use the chain rule every time.
  • Exact answers involving tan⁡−1\tan^{-1} should use the standard values: tan⁡−11=π4\tan^{-1}1 = \tfrac{\pi}{4}, tan⁡−13=π3\tan^{-1}\sqrt{3} = \tfrac{\pi}{3}.
  • When dydx\dfrac{dy}{dx} has a positive denominator like 1+x21 + x^2, say so, then determine the sign of dydx\dfrac{dy}{dx} from the numerator alone. That is the cleanest route to the nature of a stationary point or to proving a function is increasing.
  • Expect tan⁡−1\tan^{-1} to resurface in the integration and differential equations parts of the paper: ∫11+x2 dx=tan⁡−1x+c\displaystyle\int\frac{1}{1 + x^2}\,dx = \tan^{-1}x + c.
Summary
  • tan⁡−1x\tan^{-1}x is the angle in (−π2,π2)\left(-\tfrac{\pi}{2}, \tfrac{\pi}{2}\right) with tangent xx; it is not cot⁡x\cot x.
  • ddxtan⁡−1x=11+x2\dfrac{d}{dx}\tan^{-1}x = \dfrac{1}{1 + x^2}, proved via x=tan⁡yx = \tan y and sec⁡2y=1+tan⁡2y\sec^2 y = 1 + \tan^2 y.
  • Chain rule: ddxtan⁡−1f(x)=f′(x)1+f(x)2\dfrac{d}{dx}\tan^{-1}f(x) = \dfrac{f'(x)}{1 + f(x)^2}; square the whole inside.
  • ddxtan⁡−1xa=aa2+x2\dfrac{d}{dx}\tan^{-1}\dfrac{x}{a} = \dfrac{a}{a^2 + x^2}, the source of ∫dxx2+a2\displaystyle\int\frac{dx}{x^2 + a^2}.
  • Exact values: tan⁡−11=π4\tan^{-1}1 = \tfrac{\pi}{4}, tan⁡−13=π3\tan^{-1}\sqrt{3} = \tfrac{\pi}{3}, tan⁡−113=π6\tan^{-1}\tfrac{1}{\sqrt{3}} = \tfrac{\pi}{6}.
  • sin⁡−1\sin^{-1} and cos⁡−1\cos^{-1} derivatives are not required.

Practice

Question
  1. Differentiate tan⁡−15x\tan^{-1}5x.
  2. Differentiate tan⁡−1x3\tan^{-1}\dfrac{x}{\sqrt{3}}, giving your answer in the form ab+x2\dfrac{a}{b + x^2}.
  3. Differentiate tan⁡−1x\tan^{-1}\sqrt{x}.
  4. Differentiate x2tan⁡−1xx^2\tan^{-1}x.
  5. Show that ddxtan⁡−1(1x)=−11+x2\dfrac{d}{dx}\tan^{-1}\left(\dfrac{1}{x}\right) = -\dfrac{1}{1 + x^2} for x≠0x \neq 0. What does this tell you about tan⁡−1x+tan⁡−11x\tan^{-1}x + \tan^{-1}\dfrac{1}{x} for x>0x > 0?
  6. Find the equation of the tangent to y=tan⁡−1xy = \tan^{-1}x at the point where x=3x = \sqrt{3}.
  7. Find the exact coordinates of the stationary points of y=x−2tan⁡−1xy = x - 2\tan^{-1}x and determine their nature.
  8. Find the equation of the tangent to y=tan⁡−1(e2x)y = \tan^{-1}(e^{2x}) at the point where it crosses the yy-axis.
  9. Show that y=tan⁡−1x−x1+x2y = \tan^{-1}x - \dfrac{x}{1 + x^2} is an increasing function, and identify the nature of its stationary point.
Answers
  1. 51+25x2\dfrac{5}{1 + 25x^2}.

  2. 1/31+x2/3=33+x2\dfrac{1/\sqrt{3}}{1 + x^2/3} = \dfrac{\sqrt{3}}{3 + x^2}.

  3. 11+x⋅12x=12x(1+x)\dfrac{1}{1 + x}\cdot\dfrac{1}{2\sqrt{x}} = \dfrac{1}{2\sqrt{x}(1 + x)}.

  4. 2xtan⁡−1x+x21+x22x\tan^{-1}x + \dfrac{x^2}{1 + x^2}.

  5. 11+1/x2⋅(−1x2)=−1x2+1\dfrac{1}{1 + 1/x^2}\cdot\left(-\dfrac{1}{x^2}\right) = -\dfrac{1}{x^2 + 1}. So tan⁡−1x+tan⁡−11x\tan^{-1}x + \tan^{-1}\dfrac{1}{x} has derivative 00 and is constant for x>0x > 0. At x=1x = 1 it equals π4+π4=π2\tfrac{\pi}{4} + \tfrac{\pi}{4} = \tfrac{\pi}{2}, so it is π2\tfrac{\pi}{2} for all x>0x > 0 (complementary angles in a right-angled triangle).

  6. y=π3y = \tfrac{\pi}{3}, gradient 11+3=14\dfrac{1}{1 + 3} = \dfrac{1}{4}. Tangent: y−π3=14(x−3)y - \tfrac{\pi}{3} = \tfrac{1}{4}(x - \sqrt{3}).

  7. dydx=1−21+x2=x2−11+x2=0⇒x=±1\dfrac{dy}{dx} = 1 - \dfrac{2}{1 + x^2} = \dfrac{x^2 - 1}{1 + x^2} = 0 \Rightarrow x = \pm 1. At x=1x = 1: y=1−π2y = 1 - \tfrac{\pi}{2}; at x=−1x = -1: y=−1+π2y = -1 + \tfrac{\pi}{2}. d2ydx2=4x(1+x2)2\dfrac{d^2y}{dx^2} = \dfrac{4x}{(1 + x^2)^2}: positive at x=1x = 1 (minimum at (1,1−π2)\left(1, 1 - \tfrac{\pi}{2}\right)), negative at x=−1x = -1 (maximum at (−1,π2−1)\left(-1, \tfrac{\pi}{2} - 1\right)).

  8. At x=0x = 0: y=tan⁡−11=π4y = \tan^{-1}1 = \tfrac{\pi}{4}. dydx=2e2x1+e4x\dfrac{dy}{dx} = \dfrac{2e^{2x}}{1 + e^{4x}}, which is 22=1\dfrac{2}{2} = 1 at x=0x = 0. Tangent: y=x+π4y = x + \tfrac{\pi}{4}.

  9. dydx=11+x2−(1+x2)−x⋅2x(1+x2)2=(1+x2)−(1−x2)(1+x2)2=2x2(1+x2)2\dfrac{dy}{dx} = \dfrac{1}{1 + x^2} - \dfrac{(1 + x^2) - x\cdot 2x}{(1 + x^2)^2} = \dfrac{(1 + x^2) - (1 - x^2)}{(1 + x^2)^2} = \dfrac{2x^2}{(1 + x^2)^2}. This is ≥0\ge 0 for all xx and zero only at x=0x = 0, so yy is increasing. At x=0x = 0 the gradient is positive on both sides, so the stationary point (0,0)(0, 0) is a point of inflexion.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action