Optimal. Leaf size=28 \[ -\frac{x^2}{2}-\frac{1}{2} \sqrt{x^2+1} x-\frac{1}{2} \sinh ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0091935, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.267, Rules used = {2106, 30, 195, 215} \[ -\frac{x^2}{2}-\frac{1}{2} \sqrt{x^2+1} x-\frac{1}{2} \sinh ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2106
Rule 30
Rule 195
Rule 215
Rubi steps
\begin{align*} \int \frac{1}{x-\sqrt{1+x^2}} \, dx &=-\int x \, dx-\int \sqrt{1+x^2} \, dx\\ &=-\frac{x^2}{2}-\frac{1}{2} x \sqrt{1+x^2}-\frac{1}{2} \int \frac{1}{\sqrt{1+x^2}} \, dx\\ &=-\frac{x^2}{2}-\frac{1}{2} x \sqrt{1+x^2}-\frac{1}{2} \sinh ^{-1}(x)\\ \end{align*}
Mathematica [A] time = 0.0111033, size = 38, normalized size = 1.36 \[ \frac{1}{2} \log \left (x-\sqrt{x^2+1}\right )-\frac{1}{4 \left (x-\sqrt{x^2+1}\right )^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 21, normalized size = 0.8 \begin{align*} -{\frac{{x}^{2}}{2}}-{\frac{{\it Arcsinh} \left ( x \right ) }{2}}-{\frac{x}{2}\sqrt{{x}^{2}+1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{x - \sqrt{x^{2} + 1}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.43845, size = 84, normalized size = 3. \begin{align*} -\frac{1}{2} \, x^{2} - \frac{1}{2} \, \sqrt{x^{2} + 1} x + \frac{1}{2} \, \log \left (-x + \sqrt{x^{2} + 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.356448, size = 58, normalized size = 2.07 \begin{align*} - \frac{x \operatorname{asinh}{\left (x \right )}}{2 x - 2 \sqrt{x^{2} + 1}} + \frac{x}{2 x - 2 \sqrt{x^{2} + 1}} + \frac{\sqrt{x^{2} + 1} \operatorname{asinh}{\left (x \right )}}{2 x - 2 \sqrt{x^{2} + 1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13211, size = 41, normalized size = 1.46 \begin{align*} -\frac{1}{2} \, x^{2} - \frac{1}{2} \, \sqrt{x^{2} + 1} x + \frac{1}{2} \, \log \left (-x + \sqrt{x^{2} + 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]