Optimal. Leaf size=20 \[ x-2 \left (5+e^x-2 x-\log (4)-\log (x)\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 13, normalized size of antiderivative = 0.65, number of steps used = 5, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {14, 2194, 43} \begin {gather*} 5 x-2 e^x+2 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 43
Rule 2194
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-2 e^x+\frac {2+5 x}{x}\right ) \, dx\\ &=-\left (2 \int e^x \, dx\right )+\int \frac {2+5 x}{x} \, dx\\ &=-2 e^x+\int \left (5+\frac {2}{x}\right ) \, dx\\ &=-2 e^x+5 x+2 \log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 13, normalized size = 0.65 \begin {gather*} -2 e^x+5 x+2 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.74, size = 12, normalized size = 0.60 \begin {gather*} 5 \, x - 2 \, e^{x} + 2 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 12, normalized size = 0.60 \begin {gather*} 5 \, x - 2 \, e^{x} + 2 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 13, normalized size = 0.65
method | result | size |
default | \(5 x +2 \ln \relax (x )-2 \,{\mathrm e}^{x}\) | \(13\) |
norman | \(5 x +2 \ln \relax (x )-2 \,{\mathrm e}^{x}\) | \(13\) |
risch | \(5 x +2 \ln \relax (x )-2 \,{\mathrm e}^{x}\) | \(13\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.44, size = 12, normalized size = 0.60 \begin {gather*} 5 \, x - 2 \, e^{x} + 2 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.07, size = 12, normalized size = 0.60 \begin {gather*} 5\,x-2\,{\mathrm {e}}^x+2\,\ln \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 12, normalized size = 0.60 \begin {gather*} 5 x - 2 e^{x} + 2 \log {\relax (x )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________