Optimal. Leaf size=15 \[ -\frac {11}{4}+4 x+\log \left (1+\frac {2}{x^3}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 14, normalized size of antiderivative = 0.93, number of steps used = 4, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {1593, 1834, 260} \begin {gather*} \log \left (x^3+2\right )+4 x-3 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 260
Rule 1593
Rule 1834
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-6+8 x+4 x^4}{x \left (2+x^3\right )} \, dx\\ &=\int \left (4-\frac {3}{x}+\frac {3 x^2}{2+x^3}\right ) \, dx\\ &=4 x-3 \log (x)+3 \int \frac {x^2}{2+x^3} \, dx\\ &=4 x-3 \log (x)+\log \left (2+x^3\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 14, normalized size = 0.93 \begin {gather*} 4 x-3 \log (x)+\log \left (2+x^3\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.06, size = 14, normalized size = 0.93 \begin {gather*} 4 \, x + \log \left (x^{3} + 2\right ) - 3 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 16, normalized size = 1.07 \begin {gather*} 4 \, x + \log \left ({\left | x^{3} + 2 \right |}\right ) - 3 \, \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.09, size = 15, normalized size = 1.00
method | result | size |
default | \(4 x +\ln \left (x^{3}+2\right )-3 \ln \relax (x )\) | \(15\) |
norman | \(4 x +\ln \left (x^{3}+2\right )-3 \ln \relax (x )\) | \(15\) |
risch | \(4 x +\ln \left (x^{3}+2\right )-3 \ln \relax (x )\) | \(15\) |
meijerg | \(\ln \left (1+\frac {x^{3}}{2}\right )-3 \ln \relax (x )+\ln \relax (2)+\frac {4 \,2^{\frac {1}{3}} \left (\frac {3 x 2^{\frac {2}{3}}}{2}-\frac {x 2^{\frac {2}{3}} \left (\frac {2^{\frac {1}{3}} \ln \left (1+\frac {2^{\frac {2}{3}} \left (x^{3}\right )^{\frac {1}{3}}}{2}\right )}{\left (x^{3}\right )^{\frac {1}{3}}}-\frac {2^{\frac {1}{3}} \ln \left (1-\frac {2^{\frac {2}{3}} \left (x^{3}\right )^{\frac {1}{3}}}{2}+\frac {2^{\frac {1}{3}} \left (x^{3}\right )^{\frac {2}{3}}}{2}\right )}{2 \left (x^{3}\right )^{\frac {1}{3}}}+\frac {2^{\frac {1}{3}} \sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, 2^{\frac {2}{3}} \left (x^{3}\right )^{\frac {1}{3}}}{4-2^{\frac {2}{3}} \left (x^{3}\right )^{\frac {1}{3}}}\right )}{\left (x^{3}\right )^{\frac {1}{3}}}\right )}{2}\right )}{3}+\frac {4 \,2^{\frac {1}{3}} \left (\frac {x \ln \left (1+\frac {2^{\frac {2}{3}} \left (x^{3}\right )^{\frac {1}{3}}}{2}\right )}{\left (x^{3}\right )^{\frac {1}{3}}}-\frac {x \ln \left (1-\frac {2^{\frac {2}{3}} \left (x^{3}\right )^{\frac {1}{3}}}{2}+\frac {2^{\frac {1}{3}} \left (x^{3}\right )^{\frac {2}{3}}}{2}\right )}{2 \left (x^{3}\right )^{\frac {1}{3}}}+\frac {x \sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, 2^{\frac {2}{3}} \left (x^{3}\right )^{\frac {1}{3}}}{4-2^{\frac {2}{3}} \left (x^{3}\right )^{\frac {1}{3}}}\right )}{\left (x^{3}\right )^{\frac {1}{3}}}\right )}{3}\) | \(225\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.55, size = 14, normalized size = 0.93 \begin {gather*} 4 \, x + \log \left (x^{3} + 2\right ) - 3 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 14, normalized size = 0.93 \begin {gather*} 4\,x+\ln \left (x^3+2\right )-3\,\ln \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 14, normalized size = 0.93 \begin {gather*} 4 x - 3 \log {\relax (x )} + \log {\left (x^{3} + 2 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________