Optimal. Leaf size=22 \[ -3+2 x+\log \left (\log \left (4-x-e x^2-\log (x)\right )\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.34, antiderivative size = 21, normalized size of antiderivative = 0.95, number of steps used = 3, number of rules used = 2, integrand size = 83, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.024, Rules used = {6742, 6684} \begin {gather*} \log \left (\log \left (-e x^2-x-\log (x)+4\right )\right )+2 x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6684
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (2+\frac {1+x+2 e x^2}{x \left (-4+x+e x^2+\log (x)\right ) \log \left (4-x-e x^2-\log (x)\right )}\right ) \, dx\\ &=2 x+\int \frac {1+x+2 e x^2}{x \left (-4+x+e x^2+\log (x)\right ) \log \left (4-x-e x^2-\log (x)\right )} \, dx\\ &=2 x+\log \left (\log \left (4-x-e x^2-\log (x)\right )\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.28, size = 21, normalized size = 0.95 \begin {gather*} 2 x+\log \left (\log \left (4-x-e x^2-\log (x)\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.83, size = 22, normalized size = 1.00 \begin {gather*} 2 \, x + \log \left (\log \left (-x^{2} e - x - \log \relax (x) + 4\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.20, size = 22, normalized size = 1.00 \begin {gather*} 2 \, x + \log \left (\log \left (-x^{2} e - x - \log \relax (x) + 4\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 23, normalized size = 1.05
method | result | size |
risch | \(2 x +\ln \left (\ln \left (-\ln \relax (x )-x^{2} {\mathrm e}-x +4\right )\right )\) | \(23\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.46, size = 22, normalized size = 1.00 \begin {gather*} 2 \, x + \log \left (\log \left (-x^{2} e - x - \log \relax (x) + 4\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.03, size = 22, normalized size = 1.00 \begin {gather*} 2\,x+\ln \left (\ln \left (4-\ln \relax (x)-x^2\,\mathrm {e}-x\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.51, size = 19, normalized size = 0.86 \begin {gather*} 2 x + \log {\left (\log {\left (- e x^{2} - x - \log {\relax (x )} + 4 \right )} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________