1. Home
  2. Blog
  3. Derivative of arctan x

Where the derivative of arctan x comes from

The derivative of arctanx is 11+x2, for every real x. It comes from writing y=arctanx as tany=x, differentiating both sides, and reading one right triangle to put the answer back in terms of x; the same three steps give 11−x2 for arcsinx, so you can rebuild either formula on a test.

What arctan x means

arctanx is the angle whose tangent is x, chosen strictly between −π2 and π2:

y=arctanxmeanstany=x.

That restriction is what makes the inverse a function, and the matching restriction for arcsin decides a sign further down. arctanx is also written tan−1x; it is the same function.

The derivative, from tan y = x

  1. Rewrite. tany=x.
  2. Differentiate both sides with respect to x. The left side needs the chain rule, because y depends on x: sec2ydydx=1.
  3. Solve. dydx=1sec2y=cos2y.
  4. Put the answer back in terms of x. Step 3 is about the angle y, and the question was about x. This is the step the triangle is for.

The triangle

Draw a right triangle with an angle y whose tangent is x: opposite side x, adjacent side 1. Pythagoras gives the hypotenuse, 1+x2. Read the cosine off the triangle:

cosy=11+x2,

so cos2y=11+x2. Put that into step 3:

ddxarctanx=11+x2.
y 1 x √(1 + x²) tan y = x y √(1 − x²) x 1 sin y = x
Each triangle is built from the equation it stands for: label two sides so that tany=x (left) or siny=x (right), then find the third with Pythagoras and read off cosy.

A drawn triangle only shows x>0, an angle in the first quadrant. The identity sec2y=1+tan2y covers every x at once and agrees: sec2y=1+x2. Use whichever you can rebuild faster. And a quick sanity check: 1+x2 is never below 1, so the derivative is always positive, which fits a graph that only ever rises.

Worked example: rebuild arctan(x/5) from scratch

The reason to know where the formula comes from is that the method works on functions you have not memorised. Take f(x)=arctanx5 and run the same steps.

  1. Rewrite. tany=x5.
  2. Differentiate. sec2ydydx=15, so dydx=cos2y5.
  3. Triangle. Opposite side x, adjacent side 5, hypotenuse 25+x2. So cos2y=2525+x2.
  4. Substitute. f′(x)=15·2525+x2=525+x2.

Check it with the chain rule and the formula just derived:

11+(x5)2·15=2525+x2·15=525+x2.

The two routes agree. On a test, the second is faster once you trust the formula; the first is how you get the formula back when you do not.

The same three steps for arcsin

y=arcsinx means siny=x with −π2≤y≤π2.

  1. Rewrite. siny=x.
  2. Differentiate. cosydydx=1, so dydx=1cosy.
  3. Triangle (the right-hand one above). Opposite side x, hypotenuse 1, so the adjacent side is 1−x2, and cosy=1−x2. For −1<x<1, ddxarcsinx=11−x2.

Why the positive square root? Because y lies in [−π2,π2], where the cosine is never negative. The restriction that made arcsin a function is the same one that fixes the sign. At x=±1 that cosine is 0, which is why the formula stops short of the endpoints.

The common mistake: reading tan−1x as a reciprocal. Here the −1 means the inverse function, arctanx, and the derivative is 11+x2. Read the −1 as an exponent and you are differentiating 1tanx=cotx instead, a different function whose derivative is −csc2x. The derivative of arctanx has no trigonometric function left in it at all, so a csc or a cot in your answer is the sign that the −1 was misread. The same goes for sin−1x, which means arcsinx.

Check your understanding

No calculator. Easiest first; questions 3, 6 and 7 ask for a reason as well as an answer.

  1. Find the slope of y=arctanx at x=3.
  2. Where is the graph of y=arctanx steepest, and what is its slope there?
  3. Without differentiating, explain why the slope of y=arctanx must approach 0 as x→∞. Then confirm it from the formula.
  4. Differentiate g(x)=arctan(ex).
  5. For which values of x is the derivative of arcsinx equal to 2?
  6. arccosx takes its values in [0,π]. Rebuild its derivative with the same three steps, starting from cosy=x, and explain your choice of sign for the square root.
  7. Find the error: a student writes "Since tany=x, dydx=1sec2y, so the derivative of arctanx is 1sec2x."
  8. Calculus II: find a function whose derivative is 14+x2. The worked example is a good place to start.
Show the answers
  1. 14, since 11+(3)2=11+3.
  2. At x=0, with slope 1. The denominator 1+x2 is smallest at x=0, so the derivative 11+x2 is largest there.
  3. The graph of arctanx is the graph of tanx on (−π2,π2) reflected in the line y=x, which swaps rise and run. Near its vertical asymptote x=π2 the graph of tanx gets steeper without bound, so its mirror image gets flatter and flatter as it levels off towards y=π2. (The asymptote alone would not settle it: a curve can approach a horizontal line while wiggling.) The formula agrees: 1+x2 grows without bound, so 11+x2→0.
  4. g′(x)=ex1+e2x. The chain rule with u=ex gives u′1+u2, and u2=e2x.
  5. x=±32. Setting 11−x2=2 gives 1−x2=12, so 1−x2=14 and x2=34; both values lie inside (−1,1).
  6. ddxarccosx=−11−x2 for −1<x<1. Differentiating cosy=x gives −sinydydx=1, so dydx=−1siny. The triangle (adjacent x, hypotenuse 1) gives siny=1−x2, with the positive root because y lies in [0,π], where the sine is never negative.
  7. The student replaced y by x at the end, but y is the angle arctanx, not x. sec2y has to be rewritten in terms of x: sec2y=1+tan2y=1+x2, which gives 11+x2. The student's version cannot be right: at x=π2, where secx is undefined, it gives no slope at all, yet arctanx has a positive slope at every x.
  8. 12arctanx2, plus any constant. Check by the chain rule: 12·11+x2/4·12=14+x2.

Practise it

The free CEGEP Calculus I Derivatives of Transcendental Functions worksheet has a sheet of inverse trigonometric derivatives, alongside exponentials, logarithms and logarithmic differentiation. The method in this post is implicit differentiation, which has its own sheet in the Differentiation Rules worksheet.

Want one-on-one help with this? I offer CEGEP Science calculus and linear algebra tutoring in Montreal, in person or online. Sessions start with a short written diagnostic, and a written recap goes to whoever books after every session.

Free worksheets on this topic

Ready to improve your grades?

WhatsApp is the way to reach me — tell me the course you're taking and what you're stuck on, and we'll sort out a first session from there.

Message Me on WhatsApp

or send a message

I reply within a day, usually sooner. Your details are used only to answer you — see the Privacy Policy.

Private math & science tutoring in Montreal, QC — Westmount · Outremont · Town of Mount Royal · Hampstead · Côte-Saint-Luc · NDG · Nuns' Island · West Island — and online across Quebec.

Chat with Marius