Optimal. Leaf size=27 \[ \sinh ^{-1}(x)-\frac{\tanh ^{-1}\left (\frac{x}{\sqrt{2} \sqrt{x^2+1}}\right )}{\sqrt{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0110565, antiderivative size = 27, normalized size of antiderivative = 1., 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 402
Rule 215
Rule 377
Rule 206
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.0126224, size = 27, normalized size = 1. \[ \sinh ^{-1}(x)-\frac{\tanh ^{-1}\left (\frac{x}{\sqrt{2} \sqrt{x^2+1}}\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.01, size = 23, normalized size = 0.9 \begin{align*}{\it Arcsinh} \left ( x \right ) -{\frac{\sqrt{2}}{2}{\it Artanh} \left ({\frac{x\sqrt{2}}{2}{\frac{1}{\sqrt{{x}^{2}+1}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \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} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.7168, size = 173, normalized size = 6.41 \begin{align*} \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 ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{x^{2} + 1}}{x^{2} + 2}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.07295, size = 86, normalized size = 3.19 \begin{align*} \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 ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]