Solution:
Key idea: By the chain rule, dxdcot−1u=−1+u21⋅dxdu, valid for every real u. Here u=1−x1+x, so we need the quotient rule for dxdu and then simplify 1+u2.
Step 1 — Differentiate the inner function.
We take x=1, so that u is defined, and use the quotient rule. The numerator 1+x has derivative 1 and the denominator 1−x has derivative −1.
dxdu=(1−x)2(1−x)⋅1−(1+x)(−1)=(1−x)21−x+1+x=(1−x)22
Step 2 — Simplify 1+u2.
We add the fractions over the common denominator (1−x)2. Expanding gives (1−x)2+(1+x)2=2+2x2.
1+u2=(1−x)2(1−x)2+(1+x)2=(1−x)22(1+x2)
Step 3 — Apply the chain rule.
We multiply −1+u21 by dxdu. The factors (1−x)2 and 2 cancel.
dxdy=−2(1+x2)(1−x)2⋅(1−x)22=−1+x21
Therefore, dxdy=−1+x21.