3.4.80 \(\int \frac {e^{\tanh ^{-1}(x)}}{\sqrt {1+x}} \, dx\) [380]

Optimal. Leaf size=11 \[ -2 \sqrt {1-x} \]

[Out]

-2*(1-x)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {6264, 32} \begin {gather*} -2 \sqrt {1-x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[E^ArcTanh[x]/Sqrt[1 + x],x]

[Out]

-2*Sqrt[1 - x]

Rule 32

Int[((a_.) + (b_.)*(x_))^(m_), x_Symbol] :> Simp[(a + b*x)^(m + 1)/(b*(m + 1)), x] /; FreeQ[{a, b, m}, x] && N
eQ[m, -1]

Rule 6264

Int[E^(ArcTanh[(a_.)*(x_)]*(n_.))*(u_.)*((c_) + (d_.)*(x_))^(p_.), x_Symbol] :> Dist[c^p, Int[u*(1 + d*(x/c))^
p*((1 + a*x)^(n/2)/(1 - a*x)^(n/2)), x], x] /; FreeQ[{a, c, d, n, p}, x] && EqQ[a^2*c^2 - d^2, 0] && (IntegerQ
[p] || GtQ[c, 0])

Rubi steps

\begin {align*} \int \frac {e^{\tanh ^{-1}(x)}}{\sqrt {1+x}} \, dx &=\int \frac {1}{\sqrt {1-x}} \, dx\\ &=-2 \sqrt {1-x}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 11, normalized size = 1.00 \begin {gather*} -2 \sqrt {1-x} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[E^ArcTanh[x]/Sqrt[1 + x],x]

[Out]

-2*Sqrt[1 - x]

________________________________________________________________________________________

Maple [A]
time = 0.78, size = 17, normalized size = 1.55

method result size
default \(-\frac {2 \sqrt {-x^{2}+1}}{\sqrt {1+x}}\) \(17\)
gosper \(\frac {2 \left (x -1\right ) \sqrt {1+x}}{\sqrt {-x^{2}+1}}\) \(20\)
risch \(\frac {2 \sqrt {\frac {-x^{2}+1}{1+x}}\, \sqrt {1+x}\, \left (x -1\right )}{\sqrt {-x^{2}+1}\, \sqrt {1-x}}\) \(42\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1+x)^(1/2)/(-x^2+1)^(1/2),x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

Maxima [C] Result contains higher order function than in optimal. Order 3 vs. order 2.
time = 0.26, size = 12, normalized size = 1.09 \begin {gather*} \frac {2 \, {\left (x - 1\right )}}{\sqrt {-x + 1}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [C] Result contains higher order function than in optimal. Order 3 vs. order 2.
time = 0.34, size = 16, normalized size = 1.45 \begin {gather*} -\frac {2 \, \sqrt {-x^{2} + 1}}{\sqrt {x + 1}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x + 1}}{\sqrt {- \left (x - 1\right ) \left (x + 1\right )}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Giac [A]
time = 0.41, size = 15, normalized size = 1.36 \begin {gather*} 2 \, \sqrt {2} - 2 \, \sqrt {-x + 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*sqrt(2) - 2*sqrt(-x + 1)

________________________________________________________________________________________

Mupad [B]
time = 0.93, size = 16, normalized size = 1.45 \begin {gather*} -\frac {2\,\sqrt {1-x^2}}{\sqrt {x+1}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________