Optimal. Leaf size=51 \[ -\frac{1}{2} \sqrt{2 x-x^2}+\frac{1}{2} \tanh ^{-1}\left (\sqrt{2 x-x^2}\right )-\frac{x}{2}-\frac{1}{2} \log (1-x) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.181128, antiderivative size = 51, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.217 \[ -\frac{1}{2} \sqrt{2 x-x^2}+\frac{1}{2} \tanh ^{-1}\left (\sqrt{2 x-x^2}\right )-\frac{x}{2}-\frac{1}{2} \log (1-x) \]
Antiderivative was successfully verified.
[In] Int[(x + Sqrt[2*x - x^2])/(2 - 2*x),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{x + \sqrt{- x^{2} + 2 x}}{- 2 x + 2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((x+(-x**2+2*x)**(1/2))/(2-2*x),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0208031, size = 41, normalized size = 0.8 \[ \frac{1}{2} \left (-x-\sqrt{-(x-2) x}-2 \log (1-x)+\log \left (\sqrt{-(x-2) x}+1\right )\right ) \]
Antiderivative was successfully verified.
[In] Integrate[(x + Sqrt[2*x - x^2])/(2 - 2*x),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.005, size = 38, normalized size = 0.8 \[ -{\frac{x}{2}}-{\frac{\ln \left ( -1+x \right ) }{2}}-{\frac{1}{2}\sqrt{- \left ( -1+x \right ) ^{2}+1}}+{\frac{1}{2}{\it Artanh} \left ({\frac{1}{\sqrt{- \left ( -1+x \right ) ^{2}+1}}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((x+(-x^2+2*x)^(1/2))/(2-2*x),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.771004, size = 73, normalized size = 1.43 \[ -\frac{1}{2} \, x - \frac{1}{2} \, \sqrt{-x^{2} + 2 \, x} - \frac{1}{2} \, \log \left (x - 1\right ) + \frac{1}{2} \, \log \left (\frac{2 \, \sqrt{-x^{2} + 2 \, x}}{{\left | x - 1 \right |}} + \frac{2}{{\left | x - 1 \right |}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(-1/2*(x + sqrt(-x^2 + 2*x))/(x - 1),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.272148, size = 89, normalized size = 1.75 \[ -\frac{1}{2} \, x - \frac{1}{2} \, \sqrt{-x^{2} + 2 \, x} - \frac{1}{2} \, \log \left (x - 1\right ) + \frac{1}{2} \, \log \left (\frac{x + \sqrt{-x^{2} + 2 \, x}}{x}\right ) - \frac{1}{2} \, \log \left (-\frac{x - \sqrt{-x^{2} + 2 \, x}}{x}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(-1/2*(x + sqrt(-x^2 + 2*x))/(x - 1),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ - \frac{\int \frac{x}{x - 1}\, dx + \int \frac{\sqrt{- x^{2} + 2 x}}{x - 1}\, dx}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x+(-x**2+2*x)**(1/2))/(2-2*x),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.267155, size = 68, normalized size = 1.33 \[ -\frac{1}{2} \, x - \frac{1}{2} \, \sqrt{-x^{2} + 2 \, x} - \frac{1}{2} \,{\rm ln}\left (-\frac{2 \,{\left (\sqrt{-x^{2} + 2 \, x} - 1\right )}}{{\left | -2 \, x + 2 \right |}}\right ) - \frac{1}{2} \,{\rm ln}\left ({\left | x - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(-1/2*(x + sqrt(-x^2 + 2*x))/(x - 1),x, algorithm="giac")
[Out]