Optimal. Leaf size=31 \[ -3+\frac {2}{x^2}-2 x-\log \left (\frac {e^{-x} x}{4+\frac {1}{3 x}}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 19, normalized size of antiderivative = 0.61, number of steps used = 3, number of rules used = 2, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {1593, 1620} \begin {gather*} \frac {2}{x^2}-x-2 \log (x)+\log (12 x+1) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 1620
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-4-48 x-2 x^2-13 x^3-12 x^4}{x^3 (1+12 x)} \, dx\\ &=\int \left (-1-\frac {4}{x^3}-\frac {2}{x}+\frac {12}{1+12 x}\right ) \, dx\\ &=\frac {2}{x^2}-x-2 \log (x)+\log (1+12 x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 19, normalized size = 0.61 \begin {gather*} \frac {2}{x^2}-x-2 \log (x)+\log (1+12 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.58, size = 28, normalized size = 0.90 \begin {gather*} -\frac {x^{3} - x^{2} \log \left (12 \, x + 1\right ) + 2 \, x^{2} \log \relax (x) - 2}{x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.31, size = 21, normalized size = 0.68 \begin {gather*} -x + \frac {2}{x^{2}} + \log \left ({\left | 12 \, x + 1 \right |}\right ) - 2 \, \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.42, size = 20, normalized size = 0.65
method | result | size |
default | \(-x +\frac {2}{x^{2}}-2 \ln \relax (x )+\ln \left (12 x +1\right )\) | \(20\) |
risch | \(-x +\frac {2}{x^{2}}-2 \ln \relax (x )+\ln \left (12 x +1\right )\) | \(20\) |
norman | \(\frac {-x^{3}+2}{x^{2}}-2 \ln \relax (x )+\ln \left (12 x +1\right )\) | \(23\) |
meijerg | \(-x +\ln \left (12 x +1\right )-2 \ln \relax (x )-4 \ln \relax (2)-2 \ln \relax (3)+\frac {2}{x^{2}}\) | \(28\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.48, size = 19, normalized size = 0.61 \begin {gather*} -x + \frac {2}{x^{2}} + \log \left (12 \, x + 1\right ) - 2 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.72, size = 17, normalized size = 0.55 \begin {gather*} \ln \left (x+\frac {1}{12}\right )-x-2\,\ln \relax (x)+\frac {2}{x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.11, size = 17, normalized size = 0.55 \begin {gather*} - x - 2 \log {\relax (x )} + \log {\left (x + \frac {1}{12} \right )} + \frac {2}{x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________