Optimal. Leaf size=43 \[ \frac {4 \sqrt {1+x}}{\sqrt {1-x}}-\sin ^{-1}(x)-\tanh ^{-1}\left (\sqrt {1-x} \sqrt {1+x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.350, Rules used = {100, 21, 132,
41, 222, 94, 212} \begin {gather*} -\text {ArcSin}(x)+\frac {4 \sqrt {x+1}}{\sqrt {1-x}}-\tanh ^{-1}\left (\sqrt {1-x} \sqrt {x+1}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 41
Rule 94
Rule 100
Rule 132
Rule 212
Rule 222
Rubi steps
\begin {align*} \int \frac {(1+x)^{3/2}}{(1-x)^{3/2} x} \, dx &=\frac {4 \sqrt {1+x}}{\sqrt {1-x}}-2 \int \frac {-\frac {1}{2}+\frac {x}{2}}{\sqrt {1-x} x \sqrt {1+x}} \, dx\\ &=\frac {4 \sqrt {1+x}}{\sqrt {1-x}}+\int \frac {\sqrt {1-x}}{x \sqrt {1+x}} \, dx\\ &=\frac {4 \sqrt {1+x}}{\sqrt {1-x}}-\int \frac {1}{\sqrt {1-x} \sqrt {1+x}} \, dx+\int \frac {1}{\sqrt {1-x} x \sqrt {1+x}} \, dx\\ &=\frac {4 \sqrt {1+x}}{\sqrt {1-x}}-\int \frac {1}{\sqrt {1-x^2}} \, dx-\text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {1-x} \sqrt {1+x}\right )\\ &=\frac {4 \sqrt {1+x}}{\sqrt {1-x}}-\sin ^{-1}(x)-\tanh ^{-1}\left (\sqrt {1-x} \sqrt {1+x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.13, size = 61, normalized size = 1.42 \begin {gather*} -\frac {4 \sqrt {1-x^2}}{-1+x}-2 \tan ^{-1}\left (\frac {\sqrt {1+x}}{\sqrt {1-x}}\right )+2 i \tan ^{-1}\left (x+i \sqrt {1-x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.60, size = 70, normalized size = 1.63
method | result | size |
default | \(\frac {\left (-\arcsin \left (x \right ) x -\arctanh \left (\frac {1}{\sqrt {-x^{2}+1}}\right ) x +\arcsin \left (x \right )+\arctanh \left (\frac {1}{\sqrt {-x^{2}+1}}\right )-4 \sqrt {-x^{2}+1}\right ) \sqrt {1-x}\, \sqrt {1+x}}{\left (-1+x \right ) \sqrt {-x^{2}+1}}\) | \(70\) |
risch | \(\frac {4 \sqrt {1+x}\, \sqrt {\left (1-x \right ) \left (1+x \right )}}{\sqrt {-\left (1+x \right ) \left (-1+x \right )}\, \sqrt {1-x}}-\frac {\left (\arcsin \left (x \right )+\arctanh \left (\frac {1}{\sqrt {-x^{2}+1}}\right )\right ) \sqrt {\left (1-x \right ) \left (1+x \right )}}{\sqrt {1-x}\, \sqrt {1+x}}\) | \(75\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 53, normalized size = 1.23 \begin {gather*} \frac {4 \, x}{\sqrt {-x^{2} + 1}} + \frac {4}{\sqrt {-x^{2} + 1}} - \arcsin \left (x\right ) - \log \left (\frac {2 \, \sqrt {-x^{2} + 1}}{{\left | x \right |}} + \frac {2}{{\left | x \right |}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 74 vs.
\(2 (35) = 70\).
time = 0.35, size = 74, normalized size = 1.72 \begin {gather*} \frac {2 \, {\left (x - 1\right )} \arctan \left (\frac {\sqrt {x + 1} \sqrt {-x + 1} - 1}{x}\right ) + {\left (x - 1\right )} \log \left (\frac {\sqrt {x + 1} \sqrt {-x + 1} - 1}{x}\right ) + 4 \, x - 4 \, \sqrt {x + 1} \sqrt {-x + 1} - 4}{x - 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (x + 1\right )^{\frac {3}{2}}}{x \left (1 - x\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: NotImplementedError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\left (x+1\right )}^{3/2}}{x\,{\left (1-x\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________