Optimal. Leaf size=27 \[ \sinh ^{-1}(x)-\frac {\tanh ^{-1}\left (\frac {x}{\sqrt {2} \sqrt {x^2+1}}\right )}{\sqrt {2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {402, 215, 377, 206} \[ \sinh ^{-1}(x)-\frac {\tanh ^{-1}\left (\frac {x}{\sqrt {2} \sqrt {x^2+1}}\right )}{\sqrt {2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 215
Rule 377
Rule 402
Rubi steps
\begin {align*} \int \frac {\sqrt {1+x^2}}{2+x^2} \, dx &=\int \frac {1}{\sqrt {1+x^2}} \, dx-\int \frac {1}{\sqrt {1+x^2} \left (2+x^2\right )} \, dx\\ &=\sinh ^{-1}(x)-\operatorname {Subst}\left (\int \frac {1}{2-x^2} \, dx,x,\frac {x}{\sqrt {1+x^2}}\right )\\ &=\sinh ^{-1}(x)-\frac {\tanh ^{-1}\left (\frac {x}{\sqrt {2} \sqrt {1+x^2}}\right )}{\sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 27, normalized size = 1.00 \[ \sinh ^{-1}(x)-\frac {\tanh ^{-1}\left (\frac {x}{\sqrt {2} \sqrt {x^2+1}}\right )}{\sqrt {2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [B] time = 0.09, size = 57, normalized size = 2.11 \[ -\log \left (\sqrt {x^2+1}-x\right )-\frac {\tanh ^{-1}\left (\frac {x^2}{\sqrt {2}}-\frac {\sqrt {x^2+1} x}{\sqrt {2}}+\sqrt {2}\right )}{\sqrt {2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.57, size = 67, normalized size = 2.48 \[ \frac {1}{4} \, \sqrt {2} \log \left (\frac {9 \, x^{2} - 2 \, \sqrt {2} {\left (3 \, x^{2} + 2\right )} - 2 \, \sqrt {x^{2} + 1} {\left (3 \, \sqrt {2} x - 4 \, x\right )} + 6}{x^{2} + 2}\right ) - \log \left (-x + \sqrt {x^{2} + 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.63, size = 64, normalized size = 2.37 \[ \frac {1}{4} \, \sqrt {2} \log \left (\frac {{\left (x - \sqrt {x^{2} + 1}\right )}^{2} - 2 \, \sqrt {2} + 3}{{\left (x - \sqrt {x^{2} + 1}\right )}^{2} + 2 \, \sqrt {2} + 3}\right ) - \log \left (-x + \sqrt {x^{2} + 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.28, size = 23, normalized size = 0.85
method | result | size |
default | \(\arcsinh \relax (x )-\frac {\arctanh \left (\frac {x \sqrt {2}}{2 \sqrt {x^{2}+1}}\right ) \sqrt {2}}{2}\) | \(23\) |
trager | \(-\ln \left (x -\sqrt {x^{2}+1}\right )+\frac {\RootOf \left (\textit {\_Z}^{2}-2\right ) \ln \left (-\frac {3 \RootOf \left (\textit {\_Z}^{2}-2\right ) x^{2}-4 x \sqrt {x^{2}+1}+2 \RootOf \left (\textit {\_Z}^{2}-2\right )}{x^{2}+2}\right )}{4}\) | \(64\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\sqrt {x^{2} + 1} x}{x^{2} + 2} + \int \frac {\sqrt {x^{2} + 1} x^{4}}{x^{6} + 5 \, x^{4} + 8 \, x^{2} + 4}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.17, size = 77, normalized size = 2.85 \[ \mathrm {asinh}\relax (x)+\frac {\sqrt {2}\,\left (\ln \left (x-\sqrt {2}\,1{}\mathrm {i}\right )-\ln \left (1+\sqrt {2}\,x\,1{}\mathrm {i}+\sqrt {x^2+1}\,1{}\mathrm {i}\right )\right )}{4}-\frac {\sqrt {2}\,\left (\ln \left (x+\sqrt {2}\,1{}\mathrm {i}\right )-\ln \left (1-\sqrt {2}\,x\,1{}\mathrm {i}+\sqrt {x^2+1}\,1{}\mathrm {i}\right )\right )}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {x^{2} + 1}}{x^{2} + 2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________