Optimal. Leaf size=24 \[ 3 x-3 \left (e^{5-x}+\frac {\log (5)}{-4+x}\right )^2 \]
________________________________________________________________________________________
Rubi [A] time = 0.28, antiderivative size = 44, normalized size of antiderivative = 1.83, number of steps used = 6, number of rules used = 4, integrand size = 80, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {6688, 2194, 2197, 1850} \begin {gather*} 3 x-3 e^{10-2 x}-\frac {3 \log ^2(5)}{(4-x)^2}+\frac {6 e^{5-x} \log (5)}{4-x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1850
Rule 2194
Rule 2197
Rule 6688
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (6 e^{10-2 x}+\frac {6 e^{5-x} (-3+x) \log (5)}{(-4+x)^2}+\frac {3 \left (48 x-12 x^2+x^3-2 \left (32-\log ^2(5)\right )\right )}{(-4+x)^3}\right ) \, dx\\ &=3 \int \frac {48 x-12 x^2+x^3-2 \left (32-\log ^2(5)\right )}{(-4+x)^3} \, dx+6 \int e^{10-2 x} \, dx+(6 \log (5)) \int \frac {e^{5-x} (-3+x)}{(-4+x)^2} \, dx\\ &=-3 e^{10-2 x}+\frac {6 e^{5-x} \log (5)}{4-x}+3 \int \left (1+\frac {2 \log ^2(5)}{(-4+x)^3}\right ) \, dx\\ &=-3 e^{10-2 x}+3 x+\frac {6 e^{5-x} \log (5)}{4-x}-\frac {3 \log ^2(5)}{(4-x)^2}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.11, size = 40, normalized size = 1.67 \begin {gather*} -3 e^{10-2 x}+3 x-\frac {6 e^{5-x} \log (5)}{-4+x}-\frac {3 \log ^2(5)}{(-4+x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.54, size = 59, normalized size = 2.46 \begin {gather*} \frac {3 \, {\left (x^{3} - 2 \, {\left (x - 4\right )} e^{\left (-x + 5\right )} \log \relax (5) - 8 \, x^{2} - {\left (x^{2} - 8 \, x + 16\right )} e^{\left (-2 \, x + 10\right )} - \log \relax (5)^{2} + 16 \, x\right )}}{x^{2} - 8 \, x + 16} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.16, size = 79, normalized size = 3.29 \begin {gather*} \frac {3 \, {\left (x^{3} - x^{2} e^{\left (-2 \, x + 10\right )} - 2 \, x e^{\left (-x + 5\right )} \log \relax (5) - 8 \, x^{2} + 8 \, x e^{\left (-2 \, x + 10\right )} + 8 \, e^{\left (-x + 5\right )} \log \relax (5) - \log \relax (5)^{2} + 16 \, x - 16 \, e^{\left (-2 \, x + 10\right )}\right )}}{x^{2} - 8 \, x + 16} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.11, size = 44, normalized size = 1.83
method | result | size |
risch | \(3 x -\frac {3 \ln \relax (5)^{2}}{x^{2}-8 x +16}-3 \,{\mathrm e}^{-2 x +10}-\frac {6 \ln \relax (5) {\mathrm e}^{5-x}}{x -4}\) | \(44\) |
derivativedivides | \(-15+3 x -\frac {3 \ln \relax (5)^{2}}{\left (-x +4\right )^{2}}-3 \,{\mathrm e}^{-2 x +10}+\frac {6 \ln \relax (5) {\mathrm e}^{5-x}}{-x +4}\) | \(46\) |
default | \(-15+3 x -\frac {3 \ln \relax (5)^{2}}{\left (-x +4\right )^{2}}-3 \,{\mathrm e}^{-2 x +10}+\frac {6 \ln \relax (5) {\mathrm e}^{5-x}}{-x +4}\) | \(46\) |
norman | \(\frac {-144 x +3 x^{3}-48 \,{\mathrm e}^{-2 x +10}+24 x \,{\mathrm e}^{-2 x +10}-3 x^{2} {\mathrm e}^{-2 x +10}+24 \ln \relax (5) {\mathrm e}^{5-x}-6 \ln \relax (5) {\mathrm e}^{5-x} x +384-3 \ln \relax (5)^{2}}{\left (x -4\right )^{2}}\) | \(78\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} 3 \, x - \frac {3 \, \log \relax (5)^{2}}{x^{2} - 8 \, x + 16} - \frac {3 \, {\left (2 \, {\left (x^{2} e^{5} \log \relax (5) - 8 \, x e^{5} \log \relax (5) + 16 \, e^{5} \log \relax (5)\right )} e^{\left (-x\right )} + {\left (x^{3} e^{10} - 12 \, x^{2} e^{10} + 48 \, x e^{10}\right )} e^{\left (-2 \, x\right )}\right )}}{x^{3} - 12 \, x^{2} + 48 \, x - 64} - \frac {48 \, {\left (3 \, x - 10\right )}}{x^{2} - 8 \, x + 16} - \frac {144 \, {\left (x - 2\right )}}{x^{2} - 8 \, x + 16} + \frac {288 \, {\left (x - 3\right )}}{x^{2} - 8 \, x + 16} + \frac {384 \, e^{2} E_{3}\left (2 \, x - 8\right )}{{\left (x - 4\right )}^{2}} + \frac {96}{x^{2} - 8 \, x + 16} - 576 \, \int \frac {e^{\left (-2 \, x + 10\right )}}{x^{4} - 16 \, x^{3} + 96 \, x^{2} - 256 \, x + 256}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.31, size = 52, normalized size = 2.17 \begin {gather*} 3\,x-3\,{\mathrm {e}}^{10-2\,x}-\frac {3\,{\ln \relax (5)}^2-24\,{\mathrm {e}}^{5-x}\,\ln \relax (5)+6\,x\,{\mathrm {e}}^{5-x}\,\ln \relax (5)}{x^2-8\,x+16} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.27, size = 42, normalized size = 1.75 \begin {gather*} 3 x - \frac {3 \log {\relax (5 )}^{2}}{x^{2} - 8 x + 16} + \frac {\left (12 - 3 x\right ) e^{10 - 2 x} - 6 e^{5 - x} \log {\relax (5 )}}{x - 4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________