Optimal. Leaf size=33 \[ \frac {\sqrt {1-x^2}}{x^2}+\frac {1}{x^2}-\tanh ^{-1}\left (\sqrt {1-x^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.22, antiderivative size = 33, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 42, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {6688, 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 6688
Rule 6742
Rubi steps
\begin {align*} \int \frac {\left (-\sqrt {1-x}-\sqrt {1+x}\right ) \left (\sqrt {1-x}+\sqrt {1+x}\right )}{x^3} \, dx &=-\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 = 46, normalized size = 1.39 \[ \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.45, size = 43, normalized size = 1.30 \[ \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 = 57, normalized size = 1.73 \[ \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 = 2.02, size = 51, normalized size = 1.55 \[ \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.78, size = 186, normalized size = 5.64 \[ \ln \left (\frac {{\left (\sqrt {1-x}-1\right )}^2}{{\left (\sqrt {x+1}-1\right )}^2}-1\right )-\ln \left (\frac {\sqrt {1-x}-1}{\sqrt {x+1}-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 {2}{x^{3}}\, dx - \int \frac {2 \sqrt {1 - x} \sqrt {x + 1}}{x^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________