Optimal. Leaf size=23 \[ x-\frac {2 (5-x)}{\left (1-e^5\right ) (4+x)} \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 18, normalized size of antiderivative = 0.78, number of steps used = 5, number of rules used = 4, integrand size = 47, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.085, Rules used = {1984, 27, 12, 683} \begin {gather*} x-\frac {18}{\left (1-e^5\right ) (x+4)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 27
Rule 683
Rule 1984
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-2 \left (17-8 e^5\right )-8 \left (1-e^5\right ) x-\left (1-e^5\right ) x^2}{-16 \left (1-e^5\right )-8 \left (1-e^5\right ) x+\left (-1+e^5\right ) x^2} \, dx\\ &=\int \frac {-2 \left (17-8 e^5\right )-8 \left (1-e^5\right ) x-\left (1-e^5\right ) x^2}{\left (-1+e^5\right ) (4+x)^2} \, dx\\ &=\frac {\int \frac {-2 \left (17-8 e^5\right )-8 \left (1-e^5\right ) x-\left (1-e^5\right ) x^2}{(4+x)^2} \, dx}{-1+e^5}\\ &=\frac {\int \left (-1+e^5-\frac {18}{(4+x)^2}\right ) \, dx}{-1+e^5}\\ &=x-\frac {18}{\left (1-e^5\right ) (4+x)}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 28, normalized size = 1.22 \begin {gather*} -\frac {-\frac {18}{4+x}+\left (1-e^5\right ) (4+x)}{-1+e^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.59, size = 34, normalized size = 1.48 \begin {gather*} -\frac {x^{2} - {\left (x^{2} + 4 \, x\right )} e^{5} + 4 \, x - 18}{{\left (x + 4\right )} e^{5} - x - 4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 29, normalized size = 1.26 \begin {gather*} \frac {x e^{5} - x}{e^{5} - 1} + \frac {18}{{\left (x + 4\right )} {\left (e^{5} - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.10, size = 20, normalized size = 0.87
method | result | size |
risch | \(x +\frac {18}{x \,{\mathrm e}^{5}+4 \,{\mathrm e}^{5}-x -4}\) | \(20\) |
default | \(\frac {x \,{\mathrm e}^{5}-x +\frac {18}{4+x}}{{\mathrm e}^{5}-1}\) | \(23\) |
norman | \(\frac {x^{2}-\frac {2 \left (8 \,{\mathrm e}^{5}-17\right )}{{\mathrm e}^{5}-1}}{4+x}\) | \(25\) |
gosper | \(\frac {x^{2} {\mathrm e}^{5}-x^{2}-16 \,{\mathrm e}^{5}+34}{x \,{\mathrm e}^{5}+4 \,{\mathrm e}^{5}-x -4}\) | \(34\) |
meijerg | \(-\frac {17 x}{8 \left ({\mathrm e}^{5}-1\right ) \left (1+\frac {x}{4}\right )}+\frac {x \left (\frac {3 x}{4}+6\right )}{3+\frac {3 x}{4}}-8 \ln \left (1+\frac {x}{4}\right )+\frac {\left (8 \,{\mathrm e}^{5}-8\right ) \left (-\frac {x}{4 \left (1+\frac {x}{4}\right )}+\ln \left (1+\frac {x}{4}\right )\right )}{{\mathrm e}^{5}-1}+\frac {{\mathrm e}^{5} x}{\left ({\mathrm e}^{5}-1\right ) \left (1+\frac {x}{4}\right )}\) | \(88\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.40, size = 18, normalized size = 0.78 \begin {gather*} x + \frac {18}{x {\left (e^{5} - 1\right )} + 4 \, e^{5} - 4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.09, size = 15, normalized size = 0.65 \begin {gather*} x+\frac {18}{\left ({\mathrm {e}}^5-1\right )\,\left (x+4\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.19, size = 15, normalized size = 0.65 \begin {gather*} x + \frac {18}{x \left (-1 + e^{5}\right ) - 4 + 4 e^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________