Optimal. Leaf size=45 \[ -\sqrt {2} \log \left (\sqrt {x^2-1}-\sqrt {2} \sqrt {x^2+\sqrt {x^2-1} x}+x\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 18, normalized size of antiderivative = 0.40, number of steps used = 2, number of rules used = 2, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {2130, 215} \begin {gather*} \sqrt {2} \sinh ^{-1}\left (\sqrt {x^2-1}+x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 215
Rule 2130
Rubi steps
\begin {align*} \int \frac {\sqrt {x^2+x \sqrt {-1+x^2}}}{x \sqrt {-1+x^2}} \, dx &=\sqrt {2} \operatorname {Subst}\left (\int \frac {1}{\sqrt {1+x^2}} \, dx,x,x+\sqrt {-1+x^2}\right )\\ &=\sqrt {2} \sinh ^{-1}\left (x+\sqrt {-1+x^2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 70, normalized size = 1.56 \begin {gather*} \frac {\sqrt {2} \sqrt {x \left (\sqrt {x^2-1}+x\right )} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {x}}{\sqrt {\sqrt {x^2-1}+x}}\right )}{\sqrt {x} \sqrt {\sqrt {x^2-1}+x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 1.43, size = 45, normalized size = 1.00 \begin {gather*} -\sqrt {2} \log \left (\sqrt {x^2-1}-\sqrt {2} \sqrt {x^2+\sqrt {x^2-1} x}+x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.73, size = 57, normalized size = 1.27 \begin {gather*} \frac {1}{2} \, \sqrt {2} \log \left (-4 \, x^{2} - 2 \, \sqrt {x^{2} + \sqrt {x^{2} - 1} x} {\left (\sqrt {2} x + \sqrt {2} \sqrt {x^{2} - 1}\right )} - 4 \, \sqrt {x^{2} - 1} x + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x^{2} + \sqrt {x^{2} - 1} x}}{\sqrt {x^{2} - 1} x}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.32, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x^{2}+x \sqrt {x^{2}-1}}}{x \sqrt {x^{2}-1}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x^{2} + \sqrt {x^{2} - 1} x}}{\sqrt {x^{2} - 1} x}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\sqrt {x\,\sqrt {x^2-1}+x^2}}{x\,\sqrt {x^2-1}} \,d x \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 \frac {\sqrt {x \left (x + \sqrt {x^{2} - 1}\right )}}{x \sqrt {\left (x - 1\right ) \left (x + 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________