Concept: To differentiate a function u of x with respect to another function v of x, we differentiate both with respect to x and divide: dvdu=dv/dxdu/dx, provided dxdv=0. When u and v are inverse trigonometric functions, it often helps to simplify them first with a substitution (such as x=tanθ or x=cosθ) and the principal-value rules, e.g. tan−1(tanφ)=φ for −2π<φ<2π, and the principal ranges of the other inverse functions.
We also use 1+cos2θ=2cos2θ and 1−cos2θ=2sin2θ.
Step 1 — Name the two functions and choose the substitution.
We call the two functions u and v. The roots 1+x2 and 1−x2 both simplify if we put x2=cos2θ. The roots need x2≤1; we take 0<∣x∣<1, so 0<θ<4π.
θ=21cos−1(x2)
v=cos−1x
Step 2 — Simplify the two roots.
We use the double-angle forms; both cosθ and sinθ are positive for 0<θ<4π, so the square roots are positive.
1+x2=1+cos2θ=2cosθ1−x2=1−cos2θ=2sinθ
Step 3 — Simplify the fraction inside u.
The factor 2 cancels; dividing top and bottom by cosθ gives the formula for tan(A−B) with A=4π, since tan4π=1.
Note: The book's printed answer −21 fits the version with x in place of x2 under the roots: tan−11+x+1−x1+x−1−x=4π−21cos−1x, whose derivative with respect to cos−1x is −21. The question as printed (with x2) gives the value above.