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.215426, antiderivative size = 33, normalized size of antiderivative = 1., 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 6688
Rule 6742
Rule 266
Rule 47
Rule 63
Rule 206
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.0395861, 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]
________________________________________________________________________________________
Maple [A] time = 0.001, size = 57, normalized size = 1.7 \begin{align*}{x}^{-2}-{\frac{1}{{x}^{2}}\sqrt{1-x}\sqrt{1+x} \left ({\it Artanh} \left ({\frac{1}{\sqrt{-{x}^{2}+1}}} \right ){x}^{2}-\sqrt{-{x}^{2}+1} \right ){\frac{1}{\sqrt{-{x}^{2}+1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.67616, size = 69, normalized size = 2.09 \begin{align*} \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 ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.979822, size = 108, normalized size = 3.27 \begin{align*} \frac{x^{2} \log \left (\frac{\sqrt{x + 1} \sqrt{-x + 1} - 1}{x}\right ) + \sqrt{x + 1} \sqrt{-x + 1} + 1}{x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \int \frac{2}{x^{3}}\, dx - \int \frac{2 \sqrt{1 - x} \sqrt{x + 1}}{x^{3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]