Optimal. Leaf size=31 \[ \frac{4}{3} \log \left (2-\sqrt{x+2}\right )+\frac{2}{3} \log \left (\sqrt{x+2}+1\right ) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.043598, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154 \[ \frac{4}{3} \log \left (2-\sqrt{x+2}\right )+\frac{2}{3} \log \left (\sqrt{x+2}+1\right ) \]
Antiderivative was successfully verified.
[In] Int[(x - Sqrt[2 + x])^(-1),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 2.3903, size = 26, normalized size = 0.84 \[ \frac{4 \log{\left (- \sqrt{x + 2} + 2 \right )}}{3} + \frac{2 \log{\left (\sqrt{x + 2} + 1 \right )}}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(1/(x-(2+x)**(1/2)),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.00707898, size = 31, normalized size = 1. \[ \frac{4}{3} \log \left (2-\sqrt{x+2}\right )+\frac{2}{3} \log \left (\sqrt{x+2}+1\right ) \]
Antiderivative was successfully verified.
[In] Integrate[(x - Sqrt[2 + x])^(-1),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.02, size = 54, normalized size = 1.7 \[{\frac{\ln \left ( 1+x \right ) }{3}}+{\frac{2\,\ln \left ( x-2 \right ) }{3}}-{\frac{2}{3}\ln \left ( \sqrt{2+x}+2 \right ) }-{\frac{1}{3}\ln \left ( \sqrt{2+x}-1 \right ) }+{\frac{1}{3}\ln \left ( 1+\sqrt{2+x} \right ) }+{\frac{2}{3}\ln \left ( \sqrt{2+x}-2 \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(1/(x-(2+x)^(1/2)),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.718476, size = 28, normalized size = 0.9 \[ \frac{2}{3} \, \log \left (\sqrt{x + 2} + 1\right ) + \frac{4}{3} \, \log \left (\sqrt{x + 2} - 2\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x - sqrt(x + 2)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.262678, size = 28, normalized size = 0.9 \[ \frac{2}{3} \, \log \left (\sqrt{x + 2} + 1\right ) + \frac{4}{3} \, \log \left (\sqrt{x + 2} - 2\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x - sqrt(x + 2)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{1}{x - \sqrt{x + 2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x-(2+x)**(1/2)),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.278952, size = 30, normalized size = 0.97 \[ \frac{2}{3} \,{\rm ln}\left (\sqrt{x + 2} + 1\right ) + \frac{4}{3} \,{\rm ln}\left ({\left | \sqrt{x + 2} - 2 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x - sqrt(x + 2)),x, algorithm="giac")
[Out]