3.287 \(\int \frac{1}{1+\sqrt{2+2 x+x^2}} \, dx\)

Optimal. Leaf size=29 \[ -\frac{\sqrt{x^2+2 x+2}}{x+1}+\frac{1}{x+1}+\sinh ^{-1}(x+1) \]

[Out]

(1 + x)^(-1) - Sqrt[2 + 2*x + x^2]/(1 + x) + ArcSinh[1 + x]

________________________________________________________________________________________

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]

Int[(1 + Sqrt[2 + 2*x + x^2])^(-1),x]

[Out]

(1 + x)^(-1) - Sqrt[2 + 2*x + x^2]/(1 + x) + ArcSinh[1 + x]

Rule 6742

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rule 684

Int[((d_) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[((d + e*x)^(m + 1)*(
a + b*x + c*x^2)^p)/(e*(m + 1)), x] - Dist[(b*p)/(d*e*(m + 1)), Int[(d + e*x)^(m + 2)*(a + b*x + c*x^2)^(p - 1
), x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && EqQ[2*c*d - b*e, 0] && NeQ[m + 2*p + 3, 0] &&
 GtQ[p, 0] && LtQ[m, -1] &&  !(IntegerQ[m/2] && LtQ[m + 2*p + 3, 0]) && IntegerQ[2*p]

Rule 619

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Dist[1/(2*c*((-4*c)/(b^2 - 4*a*c))^p), Subst[Int[Si
mp[1 - x^2/(b^2 - 4*a*c), x]^p, x], x, b + 2*c*x], x] /; FreeQ[{a, b, c, p}, x] && GtQ[4*a - b^2/c, 0]

Rule 215

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSinh[(Rt[b, 2]*x)/Sqrt[a]]/Rt[b, 2], x] /; FreeQ[{a, b},
 x] && GtQ[a, 0] && PosQ[b]

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]

Integrate[(1 + Sqrt[2 + 2*x + x^2])^(-1),x]

[Out]

(1 - Sqrt[2 + 2*x + x^2] + (1 + x)*ArcSinh[1 + x])/(1 + x)

________________________________________________________________________________________

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]

int(1/(1+(x^2+2*x+2)^(1/2)),x)

[Out]

-1/(1+x)*((1+x)^2+1)^(3/2)+(1+x)*((1+x)^2+1)^(1/2)+arcsinh(1+x)+1/(1+x)

________________________________________________________________________________________

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]

integrate(1/(1+(x^2+2*x+2)^(1/2)),x, algorithm="maxima")

[Out]

integrate(1/(sqrt(x^2 + 2*x + 2) + 1), x)

________________________________________________________________________________________

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]

integrate(1/(1+(x^2+2*x+2)^(1/2)),x, algorithm="fricas")

[Out]

-((x + 1)*log(-x + sqrt(x^2 + 2*x + 2) - 1) + x + sqrt(x^2 + 2*x + 2))/(x + 1)

________________________________________________________________________________________

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]

integrate(1/(1+(x**2+2*x+2)**(1/2)),x)

[Out]

Integral(1/(sqrt(x**2 + 2*x + 2) + 1), x)

________________________________________________________________________________________

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]

integrate(1/(1+(x^2+2*x+2)^(1/2)),x, algorithm="giac")

[Out]

2/((x - sqrt(x^2 + 2*x + 2))^2 + 2*x - 2*sqrt(x^2 + 2*x + 2)) + 1/(x + 1) - log(-x + sqrt(x^2 + 2*x + 2) - 1)