Optimal. Leaf size=25 \[ x \text {csch}^{-1}\left (\frac {x}{a}\right )+a \tanh ^{-1}\left (\sqrt {1+\frac {a^2}{x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.833, Rules used = {5870, 6413, 272,
65, 214} \begin {gather*} a \tanh ^{-1}\left (\sqrt {\frac {a^2}{x^2}+1}\right )+x \text {csch}^{-1}\left (\frac {x}{a}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 214
Rule 272
Rule 5870
Rule 6413
Rubi steps
\begin {align*} \int \sinh ^{-1}\left (\frac {a}{x}\right ) \, dx &=\int \text {csch}^{-1}\left (\frac {x}{a}\right ) \, dx\\ &=x \text {csch}^{-1}\left (\frac {x}{a}\right )+a \int \frac {1}{\sqrt {1+\frac {a^2}{x^2}} x} \, dx\\ &=x \text {csch}^{-1}\left (\frac {x}{a}\right )-\frac {1}{2} a \text {Subst}\left (\int \frac {1}{x \sqrt {1+a^2 x}} \, dx,x,\frac {1}{x^2}\right )\\ &=x \text {csch}^{-1}\left (\frac {x}{a}\right )-\frac {\text {Subst}\left (\int \frac {1}{-\frac {1}{a^2}+\frac {x^2}{a^2}} \, dx,x,\sqrt {1+\frac {a^2}{x^2}}\right )}{a}\\ &=x \text {csch}^{-1}\left (\frac {x}{a}\right )+a \tanh ^{-1}\left (\sqrt {1+\frac {a^2}{x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(77\) vs. \(2(25)=50\).
time = 0.06, size = 77, normalized size = 3.08 \begin {gather*} x \sinh ^{-1}\left (\frac {a}{x}\right )+\frac {a \sqrt {a^2+x^2} \left (-\log \left (1-\frac {x}{\sqrt {a^2+x^2}}\right )+\log \left (1+\frac {x}{\sqrt {a^2+x^2}}\right )\right )}{2 \sqrt {1+\frac {a^2}{x^2}} x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.88, size = 31, normalized size = 1.24
method | result | size |
derivativedivides | \(-a \left (-\frac {x \arcsinh \left (\frac {a}{x}\right )}{a}-\arctanh \left (\frac {1}{\sqrt {1+\frac {a^{2}}{x^{2}}}}\right )\right )\) | \(31\) |
default | \(-a \left (-\frac {x \arcsinh \left (\frac {a}{x}\right )}{a}-\arctanh \left (\frac {1}{\sqrt {1+\frac {a^{2}}{x^{2}}}}\right )\right )\) | \(31\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 43, normalized size = 1.72 \begin {gather*} \frac {1}{2} \, a {\left (\log \left (\sqrt {\frac {a^{2}}{x^{2}} + 1} + 1\right ) - \log \left (\sqrt {\frac {a^{2}}{x^{2}} + 1} - 1\right )\right )} + x \operatorname {arsinh}\left (\frac {a}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 96 vs.
\(2 (23) = 46\).
time = 0.40, size = 96, normalized size = 3.84 \begin {gather*} -a \log \left (x \sqrt {\frac {a^{2} + x^{2}}{x^{2}}} - x\right ) + {\left (x - 1\right )} \log \left (\frac {x \sqrt {\frac {a^{2} + x^{2}}{x^{2}}} + a}{x}\right ) + \log \left (x \sqrt {\frac {a^{2} + x^{2}}{x^{2}}} + a - x\right ) - \log \left (x \sqrt {\frac {a^{2} + x^{2}}{x^{2}}} - a - x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \operatorname {asinh}{\left (\frac {a}{x} \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 49 vs.
\(2 (23) = 46\).
time = 0.40, size = 49, normalized size = 1.96 \begin {gather*} a \log \left ({\left | a \right |}\right ) \mathrm {sgn}\left (x\right ) + x \log \left (\sqrt {\frac {a^{2}}{x^{2}} + 1} + \frac {a}{x}\right ) - \frac {a \log \left (-x + \sqrt {a^{2} + x^{2}}\right )}{\mathrm {sgn}\left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.55, size = 25, normalized size = 1.00 \begin {gather*} x\,\mathrm {asinh}\left (\frac {a}{x}\right )+a\,\ln \left (x+\sqrt {a^2+x^2}\right )\,\mathrm {sign}\left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________