Calculus · real student question

Find the derivative of ln(x + sqrt(x^2 - a^2)) with respect to x.

Question

Differentiate

y=ln ⁣(x+x2a2)y = \ln\!\left(x + \sqrt{x^2 - a^2}\right)

with respect to xx, treating aa as a constant.

Step-by-step solution

  1. Set up the logarithmic chain rule. With u=x+x2a2u = x + \sqrt{x^2 - a^2} we have y=lnuy = \ln u, so dydx=uu\dfrac{dy}{dx} = \dfrac{u'}{u}. The whole problem is now computing uu' and hoping it shares a factor with uu — which, for this particular combination, it does.

  2. Differentiate the square root. By the chain rule,

    ddxx2a2=2x2x2a2=xx2a2\frac{d}{dx}\sqrt{x^2 - a^2} = \frac{2x}{2\sqrt{x^2 - a^2}} = \frac{x}{\sqrt{x^2 - a^2}}

    so u=1+xx2a2u' = 1 + \dfrac{x}{\sqrt{x^2 - a^2}}.

  3. Combine the numerator over one denominator.

    u=x2a2+xx2a2u' = \frac{\sqrt{x^2 - a^2} + x}{\sqrt{x^2 - a^2}}

    The numerator is now literally uu — this is the structural coincidence that makes the answer so clean.

  4. Divide and cancel.

    dydx=uu=x+x2a2x2a21x+x2a2=1x2a2\frac{dy}{dx} = \frac{u'}{u} = \frac{x + \sqrt{x^2 - a^2}}{\sqrt{x^2 - a^2}} \cdot \frac{1}{x + \sqrt{x^2 - a^2}} = \frac{1}{\sqrt{x^2 - a^2}}

  5. Identify the function and its domain. Since arcosh(x/a)=ln ⁣(x+x2a2)lna\operatorname{arcosh}(x/a) = \ln\!\left(x + \sqrt{x^2 - a^2}\right) - \ln a, the expression is the inverse hyperbolic cosine up to an additive constant, which is why its derivative matches ddxarcosh(x/a)\frac{d}{dx}\operatorname{arcosh}(x/a). It is valid for x>ax > |a|, where the radicand is positive. Note the contrast with ln ⁣(x+x2+a2)\ln\!\left(x + \sqrt{x^2 + a^2}\right), whose derivative is 1/x2+a21/\sqrt{x^2 + a^2} (the arsinh case) and which is defined for all real xx.

  6. Numerical check. Take a=2a = 2, x=3x = 3. A central difference with step 10610^{-6} gives 0.44721360.4472136, and 1/94=1/5=0.44721361/\sqrt{9-4} = 1/\sqrt5 = 0.4472136. They agree to seven decimals.

Answer

ddxln ⁣(x+x2a2)=1x2a2\frac{d}{dx}\ln\!\left(x + \sqrt{x^2 - a^2}\right) = \frac{1}{\sqrt{x^2 - a^2}}

Need to solve a different problem like this? Open the solver →