Optimal. Leaf size=20 \[ 1+x+\log \left (e^3+x+\frac {4-x^4}{x^3}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 16, normalized size of antiderivative = 0.80, number of steps used = 4, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {1593, 1834, 260} \begin {gather*} \log \left (e^3 x^3+4\right )+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 {-12+4 x+e^3 x^4}{x \left (4+e^3 x^3\right )} \, dx\\ &=\int \left (1-\frac {3}{x}+\frac {3 e^3 x^2}{4+e^3 x^3}\right ) \, dx\\ &=x-3 \log (x)+\left (3 e^3\right ) \int \frac {x^2}{4+e^3 x^3} \, dx\\ &=x-3 \log (x)+\log \left (4+e^3 x^3\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 16, normalized size = 0.80 \begin {gather*} x-3 \log (x)+\log \left (4+e^3 x^3\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.51, size = 15, normalized size = 0.75 \begin {gather*} x + \log \left (x^{3} e^{3} + 4\right ) - 3 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.30, size = 17, normalized size = 0.85 \begin {gather*} x + \log \left ({\left | x^{3} e^{3} + 4 \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.53, size = 16, normalized size = 0.80
method | result | size |
default | \(x -3 \ln \relax (x )+\ln \left (x^{3} {\mathrm e}^{3}+4\right )\) | \(16\) |
norman | \(x -3 \ln \relax (x )+\ln \left (x^{3} {\mathrm e}^{3}+4\right )\) | \(16\) |
risch | \(x -3 \ln \relax (x )+\ln \left (-x^{3} {\mathrm e}^{3}-4\right )\) | \(17\) |
meijerg | \(-3 \ln \relax (x )-3+2 \ln \relax (2)+\ln \left (1+\frac {x^{3} {\mathrm e}^{3}}{4}\right )+\frac {2^{\frac {2}{3}} {\mathrm e}^{-1} \left (\frac {3 x \,{\mathrm e} 2^{\frac {1}{3}}}{2}-\frac {x \,{\mathrm e} 2^{\frac {1}{3}} \left (\frac {2^{\frac {2}{3}} {\mathrm e}^{-1} \ln \left (1+\frac {2^{\frac {1}{3}} {\mathrm e} \left (x^{3}\right )^{\frac {1}{3}}}{2}\right )}{\left (x^{3}\right )^{\frac {1}{3}}}-\frac {2^{\frac {2}{3}} {\mathrm e}^{-1} \ln \left (1-\frac {2^{\frac {1}{3}} {\mathrm e} \left (x^{3}\right )^{\frac {1}{3}}}{2}+\frac {2^{\frac {2}{3}} {\mathrm e}^{2} \left (x^{3}\right )^{\frac {2}{3}}}{4}\right )}{2 \left (x^{3}\right )^{\frac {1}{3}}}+\frac {2^{\frac {2}{3}} \sqrt {3}\, {\mathrm e}^{-1} \arctan \left (\frac {2^{\frac {1}{3}} \sqrt {3}\, {\mathrm e} \left (x^{3}\right )^{\frac {1}{3}}}{4-2^{\frac {1}{3}} {\mathrm e} \left (x^{3}\right )^{\frac {1}{3}}}\right )}{\left (x^{3}\right )^{\frac {1}{3}}}\right )}{2}\right )}{3}+\frac {{\mathrm e}^{-1} 2^{\frac {2}{3}} \left (\frac {x \ln \left (1+\frac {2^{\frac {1}{3}} {\mathrm e} \left (x^{3}\right )^{\frac {1}{3}}}{2}\right )}{\left (x^{3}\right )^{\frac {1}{3}}}-\frac {x \ln \left (1-\frac {2^{\frac {1}{3}} {\mathrm e} \left (x^{3}\right )^{\frac {1}{3}}}{2}+\frac {2^{\frac {2}{3}} {\mathrm e}^{2} \left (x^{3}\right )^{\frac {2}{3}}}{4}\right )}{2 \left (x^{3}\right )^{\frac {1}{3}}}+\frac {\sqrt {3}\, x \arctan \left (\frac {2^{\frac {1}{3}} \sqrt {3}\, {\mathrm e} \left (x^{3}\right )^{\frac {1}{3}}}{4-2^{\frac {1}{3}} {\mathrm e} \left (x^{3}\right )^{\frac {1}{3}}}\right )}{\left (x^{3}\right )^{\frac {1}{3}}}\right )}{3}\) | \(264\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.63, size = 15, normalized size = 0.75 \begin {gather*} x + \log \left (x^{3} e^{3} + 4\right ) - 3 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.87, size = 15, normalized size = 0.75 \begin {gather*} x+\ln \left (x^3+4\,{\mathrm {e}}^{-3}\right )-3\,\ln \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.17, size = 15, normalized size = 0.75 \begin {gather*} x - 3 \log {\relax (x )} + \log {\left (x^{3} + \frac {4}{e^{3}} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________