Optimal. Leaf size=27 \[ -\frac {16 x^2}{3 (2-x)}+e^x \log \left (\frac {21}{4}-x\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.22, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 75, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {6688, 74, 2178, 2194, 2554, 12} \begin {gather*} e^x \log \left (\frac {21}{4}-x\right )-\frac {16 x^2}{3 (2-x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 74
Rule 2178
Rule 2194
Rule 2554
Rule 6688
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {16 (-4+x) x}{3 (-2+x)^2}+\frac {4 e^x}{-21+4 x}+e^x \log \left (\frac {21}{4}-x\right )\right ) \, dx\\ &=4 \int \frac {e^x}{-21+4 x} \, dx+\frac {16}{3} \int \frac {(-4+x) x}{(-2+x)^2} \, dx+\int e^x \log \left (\frac {21}{4}-x\right ) \, dx\\ &=-\frac {16 x^2}{3 (2-x)}+e^{21/4} \text {Ei}\left (\frac {1}{4} (-21+4 x)\right )+e^x \log \left (\frac {21}{4}-x\right )-\int \frac {4 e^x}{-21+4 x} \, dx\\ &=-\frac {16 x^2}{3 (2-x)}+e^{21/4} \text {Ei}\left (\frac {1}{4} (-21+4 x)\right )+e^x \log \left (\frac {21}{4}-x\right )-4 \int \frac {e^x}{-21+4 x} \, dx\\ &=-\frac {16 x^2}{3 (2-x)}+e^x \log \left (\frac {21}{4}-x\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 27, normalized size = 1.00 \begin {gather*} \frac {64}{3 (-2+x)}+\frac {16 x}{3}+e^x \log \left (\frac {21}{4}-x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.64, size = 30, normalized size = 1.11 \begin {gather*} \frac {3 \, {\left (x - 2\right )} e^{x} \log \left (-x + \frac {21}{4}\right ) + 16 \, x^{2} - 32 \, x + 64}{3 \, {\left (x - 2\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 38, normalized size = 1.41 \begin {gather*} \frac {3 \, x e^{x} \log \left (-x + \frac {21}{4}\right ) + 16 \, x^{2} - 6 \, e^{x} \log \left (-x + \frac {21}{4}\right ) - 32 \, x + 64}{3 \, {\left (x - 2\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 21, normalized size = 0.78
method | result | size |
default | \({\mathrm e}^{x} \ln \left (-x +\frac {21}{4}\right )+\frac {16 x}{3}+\frac {64}{3 \left (x -2\right )}\) | \(21\) |
risch | \({\mathrm e}^{x} \ln \left (-x +\frac {21}{4}\right )+\frac {\frac {16}{3} x^{2}-\frac {32}{3} x +\frac {64}{3}}{x -2}\) | \(26\) |
norman | \(\frac {{\mathrm e}^{x} \ln \left (-x +\frac {21}{4}\right ) x +\frac {16 x^{2}}{3}-2 \,{\mathrm e}^{x} \ln \left (-x +\frac {21}{4}\right )}{x -2}\) | \(33\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.49, size = 26, normalized size = 0.96 \begin {gather*} -2 \, e^{x} \log \relax (2) + e^{x} \log \left (-4 \, x + 21\right ) + \frac {16}{3} \, x + \frac {64}{3 \, {\left (x - 2\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.71, size = 22, normalized size = 0.81 \begin {gather*} \frac {16\,x}{3}+\frac {64}{3\,\left (x-2\right )}+{\mathrm {e}}^x\,\ln \left (\frac {21}{4}-x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.39, size = 20, normalized size = 0.74 \begin {gather*} \frac {16 x}{3} + e^{x} \log {\left (\frac {21}{4} - x \right )} + \frac {64}{3 x - 6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________