Optimal. Leaf size=43 \[ \frac {\sqrt {x^2-1}}{x}+\frac {\sqrt {x^2-1} \log (x)}{x}-\tanh ^{-1}\left (\frac {x}{\sqrt {x^2-1}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {2335, 277, 217, 206} \[ \frac {\sqrt {x^2-1}}{x}+\frac {\sqrt {x^2-1} \log (x)}{x}-\tanh ^{-1}\left (\frac {x}{\sqrt {x^2-1}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 217
Rule 277
Rule 2335
Rubi steps
\begin {align*} \int \frac {\log (x)}{x^2 \sqrt {-1+x^2}} \, dx &=\frac {\sqrt {-1+x^2} \log (x)}{x}-\int \frac {\sqrt {-1+x^2}}{x^2} \, dx\\ &=\frac {\sqrt {-1+x^2}}{x}+\frac {\sqrt {-1+x^2} \log (x)}{x}-\int \frac {1}{\sqrt {-1+x^2}} \, dx\\ &=\frac {\sqrt {-1+x^2}}{x}+\frac {\sqrt {-1+x^2} \log (x)}{x}-\operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x}{\sqrt {-1+x^2}}\right )\\ &=\frac {\sqrt {-1+x^2}}{x}-\tanh ^{-1}\left (\frac {x}{\sqrt {-1+x^2}}\right )+\frac {\sqrt {-1+x^2} \log (x)}{x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 43, normalized size = 1.00 \[ \frac {\sqrt {x^2-1}}{x}+\frac {\sqrt {x^2-1} \log (x)}{x}-\log \left (\sqrt {x^2-1}+x\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 32, normalized size = 0.74 \[ \frac {x \log \left (-x + \sqrt {x^{2} - 1}\right ) + \sqrt {x^{2} - 1} {\left (\log \relax (x) + 1\right )} + x}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.16, size = 62, normalized size = 1.44 \[ \frac {2 \, \log \relax (x)}{{\left (x - \sqrt {x^{2} - 1}\right )}^{2} + 1} + \frac {2}{{\left (x - \sqrt {x^{2} - 1}\right )}^{2} + 1} + \frac {1}{2} \, \log \left ({\left (x - \sqrt {x^{2} - 1}\right )}^{2}\right ) - \log \left ({\left | x \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.14, size = 89, normalized size = 2.07 \[ -\frac {\sqrt {-\mathrm {signum}\left (x^{2}-1\right )}\, \arcsin \relax (x )}{\sqrt {\mathrm {signum}\left (x^{2}-1\right )}}+\frac {-\frac {\sqrt {-\mathrm {signum}\left (x^{2}-1\right )}\, \sqrt {-x^{2}+1}\, \ln \relax (x )}{\sqrt {\mathrm {signum}\left (x^{2}-1\right )}}-\frac {\sqrt {-\mathrm {signum}\left (x^{2}-1\right )}\, \sqrt {-x^{2}+1}}{\sqrt {\mathrm {signum}\left (x^{2}-1\right )}}}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.96, size = 41, normalized size = 0.95 \[ \frac {\sqrt {x^{2} - 1} \log \relax (x)}{x} + \frac {\sqrt {x^{2} - 1}}{x} - \log \left (2 \, x + 2 \, \sqrt {x^{2} - 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {\ln \relax (x)}{x^2\,\sqrt {x^2-1}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [C] time = 159.34, size = 37, normalized size = 0.86 \[ \left (\begin {cases} \frac {\sqrt {x^{2} - 1}}{x} & \text {for}\: x > -1 \wedge x < 1 \end {cases}\right ) \log {\relax (x )} - \begin {cases} \text {NaN} & \text {for}\: x < -1 \\\operatorname {acosh}{\relax (x )} - i \pi - \frac {\sqrt {x^{2} - 1}}{x} & \text {for}\: x < 1 \\\text {NaN} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________