Optimal. Leaf size=34 \[ -\frac {\sqrt {1-x^2}}{x^2}-\frac {1}{x^2}+\tanh ^{-1}\left (\sqrt {1-x^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {6742, 266, 47, 63, 206} \[ -\frac {\sqrt {1-x^2}}{x^2}-\frac {1}{x^2}+\tanh ^{-1}\left (\sqrt {1-x^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 47
Rule 63
Rule 206
Rule 266
Rule 6742
Rubi steps
\begin {align*} \int \frac {\left (\sqrt {1-x}+\sqrt {1+x}\right )^2}{x^3} \, dx &=\int \left (\frac {2}{x^3}+\frac {2 \sqrt {1-x^2}}{x^3}\right ) \, dx\\ &=-\frac {1}{x^2}+2 \int \frac {\sqrt {1-x^2}}{x^3} \, dx\\ &=-\frac {1}{x^2}+\operatorname {Subst}\left (\int \frac {\sqrt {1-x}}{x^2} \, dx,x,x^2\right )\\ &=-\frac {1}{x^2}-\frac {\sqrt {1-x^2}}{x^2}-\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-x} x} \, dx,x,x^2\right )\\ &=-\frac {1}{x^2}-\frac {\sqrt {1-x^2}}{x^2}+\operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {1-x^2}\right )\\ &=-\frac {1}{x^2}-\frac {\sqrt {1-x^2}}{x^2}+\tanh ^{-1}\left (\sqrt {1-x^2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 45, normalized size = 1.32 \[ -\frac {1}{x^2 \sqrt {1-x^2}}+\frac {1}{\sqrt {1-x^2}}-\frac {1}{x^2}+\tanh ^{-1}\left (\sqrt {1-x^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 44, normalized size = 1.29 \[ -\frac {x^{2} \log \left (\frac {\sqrt {x + 1} \sqrt {-x + 1} - 1}{x}\right ) + \sqrt {x + 1} \sqrt {-x + 1} + 1}{x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 58, normalized size = 1.71 \[ -\frac {1}{x^{2}}+\frac {\sqrt {x +1}\, \sqrt {-x +1}\, \left (x^{2} \arctanh \left (\frac {1}{\sqrt {-x^{2}+1}}\right )-\sqrt {-x^{2}+1}\right )}{\sqrt {-x^{2}+1}\, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.52, size = 54, normalized size = 1.59 \[ -\sqrt {-x^{2} + 1} - \frac {{\left (-x^{2} + 1\right )}^{\frac {3}{2}}}{x^{2}} - \frac {1}{x^{2}} + \log \left (\frac {2 \, \sqrt {-x^{2} + 1}}{{\left | x \right |}} + \frac {2}{{\left | x \right |}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.88, size = 189, normalized size = 5.56 \[ \ln \left (\frac {\sqrt {1-x}-1}{\sqrt {x+1}-1}\right )-\ln \left (\frac {{\left (\sqrt {1-x}-1\right )}^2}{{\left (\sqrt {x+1}-1\right )}^2}-1\right )+\frac {{\left (\sqrt {1-x}-1\right )}^2}{16\,{\left (\sqrt {x+1}-1\right )}^2}-\frac {\frac {{\left (\sqrt {1-x}-1\right )}^2}{8\,{\left (\sqrt {x+1}-1\right )}^2}+\frac {15\,{\left (\sqrt {1-x}-1\right )}^4}{16\,{\left (\sqrt {x+1}-1\right )}^4}-\frac {1}{16}}{\frac {{\left (\sqrt {1-x}-1\right )}^2}{{\left (\sqrt {x+1}-1\right )}^2}-\frac {2\,{\left (\sqrt {1-x}-1\right )}^4}{{\left (\sqrt {x+1}-1\right )}^4}+\frac {{\left (\sqrt {1-x}-1\right )}^6}{{\left (\sqrt {x+1}-1\right )}^6}}-\frac {1}{x^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (\sqrt {1 - x} + \sqrt {x + 1}\right )^{2}}{x^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________