Optimal. Leaf size=41 \[ \frac {\sqrt {-1+x}}{2 x^2}+\frac {3 \sqrt {-1+x}}{4 x}+\frac {3}{4} \tan ^{-1}\left (\sqrt {-1+x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {44, 65, 209}
\begin {gather*} \frac {3}{4} \text {ArcTan}\left (\sqrt {x-1}\right )+\frac {\sqrt {x-1}}{2 x^2}+\frac {3 \sqrt {x-1}}{4 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 44
Rule 65
Rule 209
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {-1+x} x^3} \, dx &=\frac {\sqrt {-1+x}}{2 x^2}+\frac {3}{4} \int \frac {1}{\sqrt {-1+x} x^2} \, dx\\ &=\frac {\sqrt {-1+x}}{2 x^2}+\frac {3 \sqrt {-1+x}}{4 x}+\frac {3}{8} \int \frac {1}{\sqrt {-1+x} x} \, dx\\ &=\frac {\sqrt {-1+x}}{2 x^2}+\frac {3 \sqrt {-1+x}}{4 x}+\frac {3}{4} \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {-1+x}\right )\\ &=\frac {\sqrt {-1+x}}{2 x^2}+\frac {3 \sqrt {-1+x}}{4 x}+\frac {3}{4} \tan ^{-1}\left (\sqrt {-1+x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 31, normalized size = 0.76 \begin {gather*} \frac {1}{4} \left (\frac {\sqrt {-1+x} (2+3 x)}{x^2}+3 \tan ^{-1}\left (\sqrt {-1+x}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.11, size = 30, normalized size = 0.73
method | result | size |
derivativedivides | \(\frac {3 \arctan \left (\sqrt {-1+x}\right )}{4}+\frac {\sqrt {-1+x}}{2 x^{2}}+\frac {3 \sqrt {-1+x}}{4 x}\) | \(30\) |
default | \(\frac {3 \arctan \left (\sqrt {-1+x}\right )}{4}+\frac {\sqrt {-1+x}}{2 x^{2}}+\frac {3 \sqrt {-1+x}}{4 x}\) | \(30\) |
risch | \(\frac {3 x^{2}-x -2}{4 x^{2} \sqrt {-1+x}}+\frac {3 \arctan \left (\sqrt {-1+x}\right )}{4}\) | \(30\) |
trager | \(\frac {\left (2+3 x \right ) \sqrt {-1+x}}{4 x^{2}}+\frac {3 \RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (\frac {2 \RootOf \left (\textit {\_Z}^{2}+1\right ) \sqrt {-1+x}+x -2}{x}\right )}{8}\) | \(46\) |
meijerg | \(\frac {\sqrt {-\mathrm {signum}\left (-1+x \right )}\, \left (-\frac {\sqrt {\pi }}{2 x^{2}}-\frac {\sqrt {\pi }}{2 x}+\frac {3 \left (\frac {7}{6}-2 \ln \left (2\right )+\ln \left (x \right )+i \pi \right ) \sqrt {\pi }}{8}+\frac {\sqrt {\pi }\, \left (-7 x^{2}+8 x +8\right )}{16 x^{2}}-\frac {\sqrt {\pi }\, \left (12 x +8\right ) \sqrt {1-x}}{16 x^{2}}-\frac {3 \sqrt {\pi }\, \ln \left (\frac {1}{2}+\frac {\sqrt {1-x}}{2}\right )}{4}\right )}{\sqrt {\pi }\, \sqrt {\mathrm {signum}\left (-1+x \right )}}\) | \(108\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.31, size = 38, normalized size = 0.93 \begin {gather*} \frac {3 \, {\left (x - 1\right )}^{\frac {3}{2}} + 5 \, \sqrt {x - 1}}{4 \, {\left ({\left (x - 1\right )}^{2} + 2 \, x - 1\right )}} + \frac {3}{4} \, \arctan \left (\sqrt {x - 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.70, size = 28, normalized size = 0.68 \begin {gather*} \frac {3 \, x^{2} \arctan \left (\sqrt {x - 1}\right ) + {\left (3 \, x + 2\right )} \sqrt {x - 1}}{4 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 1.95, size = 131, normalized size = 3.20 \begin {gather*} \begin {cases} \frac {3 i \operatorname {acosh}{\left (\frac {1}{\sqrt {x}} \right )}}{4} - \frac {3 i}{4 \sqrt {x} \sqrt {-1 + \frac {1}{x}}} + \frac {i}{4 x^{\frac {3}{2}} \sqrt {-1 + \frac {1}{x}}} + \frac {i}{2 x^{\frac {5}{2}} \sqrt {-1 + \frac {1}{x}}} & \text {for}\: \frac {1}{\left |{x}\right |} > 1 \\- \frac {3 \operatorname {asin}{\left (\frac {1}{\sqrt {x}} \right )}}{4} + \frac {3}{4 \sqrt {x} \sqrt {1 - \frac {1}{x}}} - \frac {1}{4 x^{\frac {3}{2}} \sqrt {1 - \frac {1}{x}}} - \frac {1}{2 x^{\frac {5}{2}} \sqrt {1 - \frac {1}{x}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.92, size = 29, normalized size = 0.71 \begin {gather*} \frac {3 \, {\left (x - 1\right )}^{\frac {3}{2}} + 5 \, \sqrt {x - 1}}{4 \, x^{2}} + \frac {3}{4} \, \arctan \left (\sqrt {x - 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 29, normalized size = 0.71 \begin {gather*} \frac {3\,\mathrm {atan}\left (\sqrt {x-1}\right )}{4}+\frac {3\,\sqrt {x-1}}{4\,x}+\frac {\sqrt {x-1}}{2\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________