Differentiate
Establish the domain before differentiating. The square root needs , i.e. , and needs , i.e. , i.e. . So the function only exists on
Knowing this explains the factor that appears later and why it never changes sign.
Set up the product rule. With and ,
The hard half is , a two-layer composition.
Differentiate the inner square root. With , the chain rule gives
Apply the artanh derivative and simplify . Since and here exactly,
The square root disappears from this factor entirely — a genuine simplification, and the reason the answer stays readable. Note precisely on the domain found in step 1.
Assemble and then .
Check numerically inside the domain. At a central difference of the original function gives , and the formula gives ✓; at both give ✓. The derivative blows up at both ends of the domain, as the factors and predict.
Need to solve a different problem like this? Open the solver →