Optimal. Leaf size=22 \[ -\tanh ^{-1}\left (\frac{1-x}{2 \sqrt{x^2+x+1}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0092097, antiderivative size = 22, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {724, 206} \[ -\tanh ^{-1}\left (\frac{1-x}{2 \sqrt{x^2+x+1}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 724
Rule 206
Rubi steps
\begin{align*} \int \frac{1}{(1+x) \sqrt{1+x+x^2}} \, dx &=-\left (2 \operatorname{Subst}\left (\int \frac{1}{4-x^2} \, dx,x,\frac{1-x}{\sqrt{1+x+x^2}}\right )\right )\\ &=-\tanh ^{-1}\left (\frac{1-x}{2 \sqrt{1+x+x^2}}\right )\\ \end{align*}
Mathematica [A] time = 0.0031113, size = 22, normalized size = 1. \[ -\tanh ^{-1}\left (\frac{1-x}{2 \sqrt{x^2+x+1}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 22, normalized size = 1. \begin{align*} -{\it Artanh} \left ({\frac{1-x}{2}{\frac{1}{\sqrt{ \left ( 1+x \right ) ^{2}-x}}}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.68206, size = 34, normalized size = 1.55 \begin{align*} \operatorname{arsinh}\left (\frac{\sqrt{3} x}{3 \,{\left | x + 1 \right |}} - \frac{\sqrt{3}}{3 \,{\left | x + 1 \right |}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.02714, size = 86, normalized size = 3.91 \begin{align*} -\log \left (-x + \sqrt{x^{2} + x + 1}\right ) + \log \left (-x + \sqrt{x^{2} + x + 1} - 2\right ) \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{1}{\left (x + 1\right ) \sqrt{x^{2} + x + 1}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09693, size = 43, normalized size = 1.95 \begin{align*} -\log \left ({\left | -x + \sqrt{x^{2} + x + 1} \right |}\right ) + \log \left ({\left | -x + \sqrt{x^{2} + x + 1} - 2 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]