Optimal. Leaf size=29 \[ -\frac{\sqrt{x^2+2 x+2}}{x+1}+\frac{1}{x+1}+\sinh ^{-1}(x+1) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0385381, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {6742, 684, 619, 215} \[ -\frac{\sqrt{x^2+2 x+2}}{x+1}+\frac{1}{x+1}+\sinh ^{-1}(x+1) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6742
Rule 684
Rule 619
Rule 215
Rubi steps
\begin{align*} \int \frac{1}{1+\sqrt{2+2 x+x^2}} \, dx &=\int \left (-\frac{1}{(1+x)^2}+\frac{\sqrt{2+2 x+x^2}}{(1+x)^2}\right ) \, dx\\ &=\frac{1}{1+x}+\int \frac{\sqrt{2+2 x+x^2}}{(1+x)^2} \, dx\\ &=\frac{1}{1+x}-\frac{\sqrt{2+2 x+x^2}}{1+x}+\int \frac{1}{\sqrt{2+2 x+x^2}} \, dx\\ &=\frac{1}{1+x}-\frac{\sqrt{2+2 x+x^2}}{1+x}+\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{\sqrt{1+\frac{x^2}{4}}} \, dx,x,2+2 x\right )\\ &=\frac{1}{1+x}-\frac{\sqrt{2+2 x+x^2}}{1+x}+\sinh ^{-1}(1+x)\\ \end{align*}
Mathematica [A] time = 0.0202459, size = 30, normalized size = 1.03 \[ \frac{-\sqrt{x^2+2 x+2}+(x+1) \sinh ^{-1}(x+1)+1}{x+1} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 40, normalized size = 1.4 \begin{align*} -{\frac{1}{1+x} \left ( \left ( 1+x \right ) ^{2}+1 \right ) ^{{\frac{3}{2}}}}+ \left ( 1+x \right ) \sqrt{ \left ( 1+x \right ) ^{2}+1}+{\it Arcsinh} \left ( 1+x \right ) + \left ( 1+x \right ) ^{-1} \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*} \int \frac{1}{\sqrt{x^{2} + 2 \, x + 2} + 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.83724, size = 108, normalized size = 3.72 \begin{align*} -\frac{{\left (x + 1\right )} \log \left (-x + \sqrt{x^{2} + 2 \, x + 2} - 1\right ) + x + \sqrt{x^{2} + 2 \, x + 2}}{x + 1} \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{1}{\sqrt{x^{2} + 2 x + 2} + 1}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.08477, size = 81, normalized size = 2.79 \begin{align*} \frac{2}{{\left (x - \sqrt{x^{2} + 2 \, x + 2}\right )}^{2} + 2 \, x - 2 \, \sqrt{x^{2} + 2 \, x + 2}} + \frac{1}{x + 1} - \log \left (-x + \sqrt{x^{2} + 2 \, x + 2} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]