Optimal. Leaf size=79 \[ \frac {2 (1-x)}{3 x^2 \sqrt {1+x+x^2}}-\frac {7 \sqrt {1+x+x^2}}{6 x^2}+\frac {37 \sqrt {1+x+x^2}}{12 x}-\frac {3}{8} \tanh ^{-1}\left (\frac {2+x}{2 \sqrt {1+x+x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {754, 848, 820,
738, 212} \begin {gather*} \frac {2 (1-x)}{3 x^2 \sqrt {x^2+x+1}}+\frac {37 \sqrt {x^2+x+1}}{12 x}-\frac {7 \sqrt {x^2+x+1}}{6 x^2}-\frac {3}{8} \tanh ^{-1}\left (\frac {x+2}{2 \sqrt {x^2+x+1}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 738
Rule 754
Rule 820
Rule 848
Rubi steps
\begin {align*} \int \frac {1}{x^3 \left (1+x+x^2\right )^{3/2}} \, dx &=\frac {2 (1-x)}{3 x^2 \sqrt {1+x+x^2}}+\frac {2}{3} \int \frac {\frac {7}{2}-2 x}{x^3 \sqrt {1+x+x^2}} \, dx\\ &=\frac {2 (1-x)}{3 x^2 \sqrt {1+x+x^2}}-\frac {7 \sqrt {1+x+x^2}}{6 x^2}-\frac {1}{3} \int \frac {\frac {37}{4}+\frac {7 x}{2}}{x^2 \sqrt {1+x+x^2}} \, dx\\ &=\frac {2 (1-x)}{3 x^2 \sqrt {1+x+x^2}}-\frac {7 \sqrt {1+x+x^2}}{6 x^2}+\frac {37 \sqrt {1+x+x^2}}{12 x}+\frac {3}{8} \int \frac {1}{x \sqrt {1+x+x^2}} \, dx\\ &=\frac {2 (1-x)}{3 x^2 \sqrt {1+x+x^2}}-\frac {7 \sqrt {1+x+x^2}}{6 x^2}+\frac {37 \sqrt {1+x+x^2}}{12 x}-\frac {3}{4} \text {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {2+x}{\sqrt {1+x+x^2}}\right )\\ &=\frac {2 (1-x)}{3 x^2 \sqrt {1+x+x^2}}-\frac {7 \sqrt {1+x+x^2}}{6 x^2}+\frac {37 \sqrt {1+x+x^2}}{12 x}-\frac {3}{8} \tanh ^{-1}\left (\frac {2+x}{2 \sqrt {1+x+x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 52, normalized size = 0.66 \begin {gather*} \frac {-6+15 x+23 x^2+37 x^3}{12 x^2 \sqrt {1+x+x^2}}+\frac {3}{4} \tanh ^{-1}\left (x-\sqrt {1+x+x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {cought exception: maximum recursion depth exceeded} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.12, size = 69, normalized size = 0.87
method | result | size |
risch | \(\frac {37 x^{3}+23 x^{2}+15 x -6}{12 \sqrt {x^{2}+x +1}\, x^{2}}-\frac {3 \arctanh \left (\frac {2+x}{2 \sqrt {x^{2}+x +1}}\right )}{8}\) | \(46\) |
trager | \(\frac {37 x^{3}+23 x^{2}+15 x -6}{12 \sqrt {x^{2}+x +1}\, x^{2}}-\frac {3 \ln \left (\frac {2 \sqrt {x^{2}+x +1}+2+x}{x}\right )}{8}\) | \(50\) |
default | \(-\frac {1}{2 x^{2} \sqrt {x^{2}+x +1}}+\frac {5}{4 x \sqrt {x^{2}+x +1}}+\frac {3}{8 \sqrt {x^{2}+x +1}}+\frac {\frac {37}{24}+\frac {37 x}{12}}{\sqrt {x^{2}+x +1}}-\frac {3 \arctanh \left (\frac {2+x}{2 \sqrt {x^{2}+x +1}}\right )}{8}\) | \(69\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.35, size = 71, normalized size = 0.90 \begin {gather*} \frac {37 \, x}{12 \, \sqrt {x^{2} + x + 1}} + \frac {23}{12 \, \sqrt {x^{2} + x + 1}} + \frac {5}{4 \, \sqrt {x^{2} + x + 1} x} - \frac {1}{2 \, \sqrt {x^{2} + x + 1} x^{2}} - \frac {3}{8} \, \operatorname {arsinh}\left (\frac {\sqrt {3} x}{3 \, {\left | x \right |}} + \frac {2 \, \sqrt {3}}{3 \, {\left | x \right |}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.30, size = 107, normalized size = 1.35 \begin {gather*} \frac {74 \, x^{4} + 74 \, x^{3} + 74 \, x^{2} - 9 \, {\left (x^{4} + x^{3} + x^{2}\right )} \log \left (-x + \sqrt {x^{2} + x + 1} + 1\right ) + 9 \, {\left (x^{4} + x^{3} + x^{2}\right )} \log \left (-x + \sqrt {x^{2} + x + 1} - 1\right ) + 2 \, {\left (37 \, x^{3} + 23 \, x^{2} + 15 \, x - 6\right )} \sqrt {x^{2} + x + 1}}{24 \, {\left (x^{4} + x^{3} + x^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x^{3} \left (x^{2} + x + 1\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.01, size = 147, normalized size = 1.86 \begin {gather*} \frac {2 \left (\frac {2}{3} x+\frac 1{3}\right ) \sqrt {x^{2}+x+1}}{x^{2}+x+1}+2 \left (\frac {3}{16} \ln \left |\sqrt {x^{2}+x+1}-x-1\right |-\frac {3}{16} \ln \left |\sqrt {x^{2}+x+1}-x+1\right |+\frac {3 \left (\sqrt {x^{2}+x+1}-x\right )^{3}-8 \left (\sqrt {x^{2}+x+1}-x\right )^{2}-13 \left (\sqrt {x^{2}+x+1}-x\right )+16}{8 \left (\left (\sqrt {x^{2}+x+1}-x\right )^{2}-1\right )^{2}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{x^3\,{\left (x^2+x+1\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________