Optimal. Leaf size=26 \[ \left (-3+5 e^x\right ) x \left (-2-\frac {3 x}{4}-\frac {x}{5+x}+\log (x)\right ) \]
________________________________________________________________________________________
Rubi [B] time = 1.74, antiderivative size = 71, normalized size of antiderivative = 2.73, number of steps used = 62, number of rules used = 17, integrand size = 84, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.202, Rules used = {27, 12, 6742, 43, 2314, 31, 2351, 2317, 2391, 2295, 6688, 2177, 2178, 2199, 2194, 2176, 2554} \begin {gather*} -\frac {15}{4} e^x x^2+\frac {9 x^2}{4}-15 e^x x+9 x+25 e^x-\frac {125 e^x}{x+5}+\frac {75}{x+5}-3 x \log (x)-5 e^x \log (x)+5 e^x (x+1) \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 27
Rule 31
Rule 43
Rule 2176
Rule 2177
Rule 2178
Rule 2194
Rule 2199
Rule 2295
Rule 2314
Rule 2317
Rule 2351
Rule 2391
Rule 2554
Rule 6688
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {300+690 x+204 x^2+18 x^3+e^x \left (-500-2150 x-1215 x^2-240 x^3-15 x^4\right )+\left (-300-120 x-12 x^2+e^x \left (500+700 x+220 x^2+20 x^3\right )\right ) \log (x)}{4 (5+x)^2} \, dx\\ &=\frac {1}{4} \int \frac {300+690 x+204 x^2+18 x^3+e^x \left (-500-2150 x-1215 x^2-240 x^3-15 x^4\right )+\left (-300-120 x-12 x^2+e^x \left (500+700 x+220 x^2+20 x^3\right )\right ) \log (x)}{(5+x)^2} \, dx\\ &=\frac {1}{4} \int \left (\frac {300}{(5+x)^2}+\frac {690 x}{(5+x)^2}+\frac {204 x^2}{(5+x)^2}+\frac {18 x^3}{(5+x)^2}-\frac {300 \log (x)}{(5+x)^2}-\frac {120 x \log (x)}{(5+x)^2}-\frac {12 x^2 \log (x)}{(5+x)^2}-\frac {5 e^x \left (100+430 x+243 x^2+48 x^3+3 x^4-100 \log (x)-140 x \log (x)-44 x^2 \log (x)-4 x^3 \log (x)\right )}{(5+x)^2}\right ) \, dx\\ &=-\frac {75}{5+x}-\frac {5}{4} \int \frac {e^x \left (100+430 x+243 x^2+48 x^3+3 x^4-100 \log (x)-140 x \log (x)-44 x^2 \log (x)-4 x^3 \log (x)\right )}{(5+x)^2} \, dx-3 \int \frac {x^2 \log (x)}{(5+x)^2} \, dx+\frac {9}{2} \int \frac {x^3}{(5+x)^2} \, dx-30 \int \frac {x \log (x)}{(5+x)^2} \, dx+51 \int \frac {x^2}{(5+x)^2} \, dx-75 \int \frac {\log (x)}{(5+x)^2} \, dx+\frac {345}{2} \int \frac {x}{(5+x)^2} \, dx\\ &=-\frac {75}{5+x}-\frac {15 x \log (x)}{5+x}-\frac {5}{4} \int \frac {e^x \left (100+430 x+243 x^2+48 x^3+3 x^4-4 (1+x) (5+x)^2 \log (x)\right )}{(5+x)^2} \, dx-3 \int \left (\log (x)+\frac {25 \log (x)}{(5+x)^2}-\frac {10 \log (x)}{5+x}\right ) \, dx+\frac {9}{2} \int \left (-10+x-\frac {125}{(5+x)^2}+\frac {75}{5+x}\right ) \, dx+15 \int \frac {1}{5+x} \, dx-30 \int \left (-\frac {5 \log (x)}{(5+x)^2}+\frac {\log (x)}{5+x}\right ) \, dx+51 \int \left (1+\frac {25}{(5+x)^2}-\frac {10}{5+x}\right ) \, dx+\frac {345}{2} \int \left (-\frac {5}{(5+x)^2}+\frac {1}{5+x}\right ) \, dx\\ &=6 x+\frac {9 x^2}{4}+\frac {75}{5+x}-\frac {15 x \log (x)}{5+x}+15 \log (5+x)-\frac {5}{4} \int \left (\frac {100 e^x}{(5+x)^2}+\frac {430 e^x x}{(5+x)^2}+\frac {243 e^x x^2}{(5+x)^2}+\frac {48 e^x x^3}{(5+x)^2}+\frac {3 e^x x^4}{(5+x)^2}-4 e^x (1+x) \log (x)\right ) \, dx-3 \int \log (x) \, dx-75 \int \frac {\log (x)}{(5+x)^2} \, dx+150 \int \frac {\log (x)}{(5+x)^2} \, dx\\ &=9 x+\frac {9 x^2}{4}+\frac {75}{5+x}-3 x \log (x)+15 \log (5+x)-\frac {15}{4} \int \frac {e^x x^4}{(5+x)^2} \, dx+5 \int e^x (1+x) \log (x) \, dx+15 \int \frac {1}{5+x} \, dx-30 \int \frac {1}{5+x} \, dx-60 \int \frac {e^x x^3}{(5+x)^2} \, dx-125 \int \frac {e^x}{(5+x)^2} \, dx-\frac {1215}{4} \int \frac {e^x x^2}{(5+x)^2} \, dx-\frac {1075}{2} \int \frac {e^x x}{(5+x)^2} \, dx\\ &=9 x+\frac {9 x^2}{4}+\frac {75}{5+x}+\frac {125 e^x}{5+x}-5 e^x \log (x)-3 x \log (x)+5 e^x (1+x) \log (x)-\frac {15}{4} \int \left (75 e^x-10 e^x x+e^x x^2+\frac {625 e^x}{(5+x)^2}-\frac {500 e^x}{5+x}\right ) \, dx-5 \int e^x \, dx-60 \int \left (-10 e^x+e^x x-\frac {125 e^x}{(5+x)^2}+\frac {75 e^x}{5+x}\right ) \, dx-125 \int \frac {e^x}{5+x} \, dx-\frac {1215}{4} \int \left (e^x+\frac {25 e^x}{(5+x)^2}-\frac {10 e^x}{5+x}\right ) \, dx-\frac {1075}{2} \int \left (-\frac {5 e^x}{(5+x)^2}+\frac {e^x}{5+x}\right ) \, dx\\ &=-5 e^x+9 x+\frac {9 x^2}{4}+\frac {75}{5+x}+\frac {125 e^x}{5+x}-\frac {125 \text {Ei}(5+x)}{e^5}-5 e^x \log (x)-3 x \log (x)+5 e^x (1+x) \log (x)-\frac {15}{4} \int e^x x^2 \, dx+\frac {75}{2} \int e^x x \, dx-60 \int e^x x \, dx-\frac {1125 \int e^x \, dx}{4}-\frac {1215 \int e^x \, dx}{4}-\frac {1075}{2} \int \frac {e^x}{5+x} \, dx+600 \int e^x \, dx+1875 \int \frac {e^x}{5+x} \, dx-\frac {9375}{4} \int \frac {e^x}{(5+x)^2} \, dx+\frac {5375}{2} \int \frac {e^x}{(5+x)^2} \, dx+\frac {6075}{2} \int \frac {e^x}{5+x} \, dx-4500 \int \frac {e^x}{5+x} \, dx+7500 \int \frac {e^x}{(5+x)^2} \, dx-\frac {30375}{4} \int \frac {e^x}{(5+x)^2} \, dx\\ &=10 e^x+9 x-\frac {45 e^x x}{2}+\frac {9 x^2}{4}-\frac {15 e^x x^2}{4}+\frac {75}{5+x}-\frac {125 e^x}{5+x}-\frac {250 \text {Ei}(5+x)}{e^5}-5 e^x \log (x)-3 x \log (x)+5 e^x (1+x) \log (x)+\frac {15}{2} \int e^x x \, dx-\frac {75 \int e^x \, dx}{2}+60 \int e^x \, dx-\frac {9375}{4} \int \frac {e^x}{5+x} \, dx+\frac {5375}{2} \int \frac {e^x}{5+x} \, dx+7500 \int \frac {e^x}{5+x} \, dx-\frac {30375}{4} \int \frac {e^x}{5+x} \, dx\\ &=\frac {65 e^x}{2}+9 x-15 e^x x+\frac {9 x^2}{4}-\frac {15 e^x x^2}{4}+\frac {75}{5+x}-\frac {125 e^x}{5+x}-5 e^x \log (x)-3 x \log (x)+5 e^x (1+x) \log (x)-\frac {15 \int e^x \, dx}{2}\\ &=25 e^x+9 x-15 e^x x+\frac {9 x^2}{4}-\frac {15 e^x x^2}{4}+\frac {75}{5+x}-\frac {125 e^x}{5+x}-5 e^x \log (x)-3 x \log (x)+5 e^x (1+x) \log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [B] time = 0.78, size = 53, normalized size = 2.04 \begin {gather*} \frac {1}{4} \left (36 x+9 x^2+\frac {300}{5+x}+e^x \left (100-60 x-15 x^2-\frac {500}{5+x}\right )+4 \left (-3+5 e^x\right ) x \log (x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.74, size = 64, normalized size = 2.46 \begin {gather*} \frac {9 \, x^{3} + 81 \, x^{2} - 5 \, {\left (3 \, x^{3} + 27 \, x^{2} + 40 \, x\right )} e^{x} - 4 \, {\left (3 \, x^{2} - 5 \, {\left (x^{2} + 5 \, x\right )} e^{x} + 15 \, x\right )} \log \relax (x) + 180 \, x + 300}{4 \, {\left (x + 5\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.18, size = 69, normalized size = 2.65 \begin {gather*} -\frac {15 \, x^{3} e^{x} - 20 \, x^{2} e^{x} \log \relax (x) - 9 \, x^{3} + 135 \, x^{2} e^{x} + 12 \, x^{2} \log \relax (x) - 100 \, x e^{x} \log \relax (x) - 81 \, x^{2} + 200 \, x e^{x} + 60 \, x \log \relax (x) - 180 \, x - 300}{4 \, {\left (x + 5\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.12, size = 55, normalized size = 2.12
method | result | size |
risch | \(\left (5 \,{\mathrm e}^{x} x -3 x \right ) \ln \relax (x )-\frac {15 \,{\mathrm e}^{x} x^{3}-9 x^{3}+135 \,{\mathrm e}^{x} x^{2}-81 x^{2}+200 \,{\mathrm e}^{x} x -180 x -300}{4 \left (5+x \right )}\) | \(55\) |
default | \(\frac {-135 \,{\mathrm e}^{x} x^{2}-200 \,{\mathrm e}^{x} x -15 \,{\mathrm e}^{x} x^{3}+20 x^{2} {\mathrm e}^{x} \ln \relax (x )+100 x \,{\mathrm e}^{x} \ln \relax (x )}{20+4 x}+\frac {9 x^{2}}{4}+9 x +\frac {75}{5+x}-3 x \ln \relax (x )\) | \(65\) |
norman | \(\frac {\frac {81 x^{2}}{4}+\frac {9 x^{3}}{4}-15 x \ln \relax (x )-3 x^{2} \ln \relax (x )-50 \,{\mathrm e}^{x} x -\frac {135 \,{\mathrm e}^{x} x^{2}}{4}-\frac {15 \,{\mathrm e}^{x} x^{3}}{4}+25 x \,{\mathrm e}^{x} \ln \relax (x )+5 x^{2} {\mathrm e}^{x} \ln \relax (x )-150}{5+x}\) | \(66\) |
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*} 5 \, x e^{x} \log \relax (x) + \frac {9}{4} \, x^{2} - 3 \, x \log \relax (x) + 9 \, x + \frac {125 \, e^{\left (-5\right )} E_{2}\left (-x - 5\right )}{x + 5} + \frac {75}{x + 5} - \frac {1}{4} \, \int \frac {5 \, {\left (3 \, x^{4} + 48 \, x^{3} + 247 \, x^{2} + 470 \, x + 100\right )} e^{x}}{x^{2} + 10 \, x + 25}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.34, size = 52, normalized size = 2.00 \begin {gather*} 9\,x-\ln \relax (x)\,\left (3\,x-5\,x\,{\mathrm {e}}^x\right )+\frac {75}{x+5}+\frac {9\,x^2}{4}-\frac {{\mathrm {e}}^x\,\left (\frac {15\,x^3}{4}+\frac {135\,x^2}{4}+50\,x\right )}{x+5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.46, size = 58, normalized size = 2.23 \begin {gather*} \frac {9 x^{2}}{4} - 3 x \log {\relax (x )} + 9 x + \frac {\left (- 15 x^{3} + 20 x^{2} \log {\relax (x )} - 135 x^{2} + 100 x \log {\relax (x )} - 200 x\right ) e^{x}}{4 x + 20} + \frac {75}{x + 5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________