Optimal. Leaf size=37 \[ \frac {1}{4} \log \left (1-2 x^2\right )-\frac {1}{2} \tanh ^{-1}\left (\frac {x}{\sqrt {1-x^2}}\right )-\frac {1}{2} \sin ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.353, Rules used = {6742, 260, 402, 216, 377, 207} \[ \frac {1}{4} \log \left (1-2 x^2\right )-\frac {1}{2} \tanh ^{-1}\left (\frac {x}{\sqrt {1-x^2}}\right )-\frac {1}{2} \sin ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 207
Rule 216
Rule 260
Rule 377
Rule 402
Rule 6742
Rubi steps
\begin {align*} \int \frac {1}{x-\sqrt {1-x^2}} \, dx &=\int \left (\frac {x}{-1+2 x^2}+\frac {\sqrt {1-x^2}}{-1+2 x^2}\right ) \, dx\\ &=\int \frac {x}{-1+2 x^2} \, dx+\int \frac {\sqrt {1-x^2}}{-1+2 x^2} \, dx\\ &=\frac {1}{4} \log \left (1-2 x^2\right )-\frac {1}{2} \int \frac {1}{\sqrt {1-x^2}} \, dx+\frac {1}{2} \int \frac {1}{\sqrt {1-x^2} \left (-1+2 x^2\right )} \, dx\\ &=-\frac {1}{2} \sin ^{-1}(x)+\frac {1}{4} \log \left (1-2 x^2\right )+\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\frac {x}{\sqrt {1-x^2}}\right )\\ &=-\frac {1}{2} \sin ^{-1}(x)-\frac {1}{2} \tanh ^{-1}\left (\frac {x}{\sqrt {1-x^2}}\right )+\frac {1}{4} \log \left (1-2 x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 37, normalized size = 1.00 \[ \frac {1}{4} \log \left (1-2 x^2\right )-\frac {1}{2} \tanh ^{-1}\left (\frac {x}{\sqrt {1-x^2}}\right )-\frac {1}{2} \sin ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.44, size = 84, normalized size = 2.27 \[ \arctan \left (\frac {\sqrt {-x^{2} + 1} - 1}{x}\right ) + \frac {1}{4} \, \log \left (2 \, x^{2} - 1\right ) + \frac {1}{4} \, \log \left (-\frac {x^{2} + \sqrt {-x^{2} + 1} {\left (x + 1\right )} - x - 1}{x^{2}}\right ) - \frac {1}{4} \, \log \left (-\frac {x^{2} - \sqrt {-x^{2} + 1} {\left (x - 1\right )} + x - 1}{x^{2}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.44, size = 140, normalized size = 3.78 \[ -\frac {1}{4} \, \pi \mathrm {sgn}\relax (x) - \frac {1}{2} \, \arctan \left (-\frac {x {\left (\frac {{\left (\sqrt {-x^{2} + 1} - 1\right )}^{2}}{x^{2}} - 1\right )}}{2 \, {\left (\sqrt {-x^{2} + 1} - 1\right )}}\right ) + \frac {1}{4} \, \log \left ({\left | x + \frac {1}{2} \, \sqrt {2} \right |}\right ) + \frac {1}{4} \, \log \left ({\left | x - \frac {1}{2} \, \sqrt {2} \right |}\right ) - \frac {1}{4} \, \log \left ({\left | -\frac {x}{\sqrt {-x^{2} + 1} - 1} + \frac {\sqrt {-x^{2} + 1} - 1}{x} + 2 \right |}\right ) + \frac {1}{4} \, \log \left ({\left | -\frac {x}{\sqrt {-x^{2} + 1} - 1} + \frac {\sqrt {-x^{2} + 1} - 1}{x} - 2 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.05, size = 175, normalized size = 4.73 \[ -\frac {\arctanh \left (\frac {\left (1-\left (x -\frac {\sqrt {2}}{2}\right ) \sqrt {2}\right ) \sqrt {2}}{\sqrt {-4 \left (x -\frac {\sqrt {2}}{2}\right )^{2}-4 \left (x -\frac {\sqrt {2}}{2}\right ) \sqrt {2}+2}}\right )}{4}+\frac {\arctanh \left (\frac {\left (\left (x +\frac {\sqrt {2}}{2}\right ) \sqrt {2}+1\right ) \sqrt {2}}{\sqrt {-4 \left (x +\frac {\sqrt {2}}{2}\right )^{2}+4 \left (x +\frac {\sqrt {2}}{2}\right ) \sqrt {2}+2}}\right )}{4}-\frac {\arcsin \relax (x )}{2}+\frac {\ln \left (2 x^{2}-1\right )}{4}-\frac {\sqrt {2}\, \sqrt {-4 \left (x +\frac {\sqrt {2}}{2}\right )^{2}+4 \left (x +\frac {\sqrt {2}}{2}\right ) \sqrt {2}+2}}{8}+\frac {\sqrt {2}\, \sqrt {-4 \left (x -\frac {\sqrt {2}}{2}\right )^{2}-4 \left (x -\frac {\sqrt {2}}{2}\right ) \sqrt {2}+2}}{8} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{x - \sqrt {-x^{2} + 1}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.14, size = 105, normalized size = 2.84 \[ \frac {\ln \left (x-\frac {\sqrt {2}}{2}\right )}{4}+\frac {\ln \left (x+\frac {\sqrt {2}}{2}\right )}{4}-\frac {\ln \left (\frac {\sqrt {2}\,\left (\frac {\sqrt {2}\,x}{2}-1\right )\,1{}\mathrm {i}-\sqrt {1-x^2}\,1{}\mathrm {i}}{x-\frac {\sqrt {2}}{2}}\right )}{4}+\frac {\ln \left (\frac {\sqrt {2}\,\left (\frac {\sqrt {2}\,x}{2}+1\right )\,1{}\mathrm {i}+\sqrt {1-x^2}\,1{}\mathrm {i}}{x+\frac {\sqrt {2}}{2}}\right )}{4}-\frac {\mathrm {asin}\relax (x)}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.17, size = 17, normalized size = 0.46 \[ \frac {\log {\left (x - \sqrt {1 - x^{2}} \right )}}{2} - \frac {\operatorname {asin}{\relax (x )}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________