Optimal. Leaf size=34 \[ \frac {4}{5} x^2 \left (1+2 x-\log \left (x-x^2+\frac {e^x}{-x+\log (4)}\right )\right ) \]
________________________________________________________________________________________
Rubi [F] time = 5.85, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {4 x^4+24 x^5-24 x^6+\left (-8 x^3-48 x^4+48 x^5\right ) \log (4)+\left (4 x^2+24 x^3-24 x^4\right ) \log ^2(4)+e^x \left (-12 x^2-20 x^3+\left (8 x+20 x^2\right ) \log (4)\right )+\left (-8 x^4+8 x^5+\left (16 x^3-16 x^4\right ) \log (4)+\left (-8 x^2+8 x^3\right ) \log ^2(4)+e^x \left (8 x^2-8 x \log (4)\right )\right ) \log \left (\frac {e^x-x^2+x^3+\left (x-x^2\right ) \log (4)}{-x+\log (4)}\right )}{5 x^3-5 x^4+\left (-10 x^2+10 x^3\right ) \log (4)+\left (5 x-5 x^2\right ) \log ^2(4)+e^x (-5 x+5 \log (4))} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {4 x \left (e^x \left (5 x^2+x (3-5 \log (4))-2 \log (4)\right )+x \left (6 x^4-\log ^2(4)+x^2 \left (-1+12 \log (4)+6 \log ^2(4)\right )-6 x^3 (1+\log (16))+x \left (-6 \log ^2(4)+\log (16)\right )\right )-2 \left (e^x+(-1+x) x (x-\log (4))\right ) (x-\log (4)) \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )\right )}{5 \left (e^x+(-1+x) x (x-\log (4))\right ) (x-\log (4))} \, dx\\ &=\frac {4}{5} \int \frac {x \left (e^x \left (5 x^2+x (3-5 \log (4))-2 \log (4)\right )+x \left (6 x^4-\log ^2(4)+x^2 \left (-1+12 \log (4)+6 \log ^2(4)\right )-6 x^3 (1+\log (16))+x \left (-6 \log ^2(4)+\log (16)\right )\right )-2 \left (e^x+(-1+x) x (x-\log (4))\right ) (x-\log (4)) \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )\right )}{\left (e^x+(-1+x) x (x-\log (4))\right ) (x-\log (4))} \, dx\\ &=\frac {4}{5} \int \left (\frac {x^2 \left (x^4+\log ^2(4)-2 x^3 (2+\log (4))+x^2 \left (2+7 \log (4)+\log ^2(4)\right )-x \left (3 \log ^2(4)+\log (64)\right )\right )}{(x-\log (4)) \left (e^x+x^3+x \log (4)-x^2 (1+\log (4))\right )}+\frac {x \left (5 x^2+3 x \left (1-\frac {5 \log (4)}{3}\right )-2 \log (4)-2 x \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )+2 \log (4) \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )\right )}{x-\log (4)}\right ) \, dx\\ &=\frac {4}{5} \int \frac {x^2 \left (x^4+\log ^2(4)-2 x^3 (2+\log (4))+x^2 \left (2+7 \log (4)+\log ^2(4)\right )-x \left (3 \log ^2(4)+\log (64)\right )\right )}{(x-\log (4)) \left (e^x+x^3+x \log (4)-x^2 (1+\log (4))\right )} \, dx+\frac {4}{5} \int \frac {x \left (5 x^2+3 x \left (1-\frac {5 \log (4)}{3}\right )-2 \log (4)-2 x \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )+2 \log (4) \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )\right )}{x-\log (4)} \, dx\\ &=\frac {4}{5} \int \frac {x^2 \left (x^3+x^2 (-4-\log (4))+2 \log (4)+x (2+3 \log (4))-\log (64)\right )}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx+\frac {4}{5} \int \frac {x \left (5 x^2+x (3-5 \log (4))-2 \log (4)-2 (x-\log (4)) \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )\right )}{x-\log (4)} \, dx\\ &=\frac {4}{5} \int \frac {x^2 \left (x^3-\log (4)-x^2 (4+\log (4))+x (2+\log (64))\right )}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx+\frac {4}{5} \int \left (\frac {x \left (5 x^2+x (3-5 \log (4))-2 \log (4)\right )}{x-\log (4)}-2 x \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )\right ) \, dx\\ &=\frac {4}{5} \int \frac {x \left (5 x^2+x (3-5 \log (4))-2 \log (4)\right )}{x-\log (4)} \, dx+\frac {4}{5} \int \left (\frac {x^5}{e^x+x^3+x \log (4)-x^2 (1+\log (4))}+\frac {x^4 (-4-\log (4))}{e^x+x^3+x \log (4)-x^2 (1+\log (4))}+\frac {x^2 \log (4)}{-e^x-x^3-x \log (4)+x^2 (1+\log (4))}+\frac {x^3 (2+\log (64))}{e^x+x^3+x \log (4)-x^2 (1+\log (4))}\right ) \, dx-\frac {8}{5} \int x \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right ) \, dx\\ &=-\frac {4}{5} x^2 \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )+\frac {4}{5} \int \frac {x^2 \left (e^x (-1+x-\log (4))+(-1+2 x) (x-\log (4))^2\right )}{\left (e^x+(-1+x) x (x-\log (4))\right ) (x-\log (4))} \, dx+\frac {4}{5} \int \left (3 x+5 x^2+\log (4)+\frac {\log ^2(4)}{x-\log (4)}\right ) \, dx+\frac {4}{5} \int \frac {x^5}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx+\frac {1}{5} (4 \log (4)) \int \frac {x^2}{-e^x-x^3-x \log (4)+x^2 (1+\log (4))} \, dx-\frac {1}{5} (4 (4+\log (4))) \int \frac {x^4}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx+\frac {1}{5} (4 (2+\log (64))) \int \frac {x^3}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx\\ &=\frac {6 x^2}{5}+\frac {4 x^3}{3}+\frac {4}{5} x \log (4)-\frac {4}{5} x^2 \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )+\frac {4}{5} \log ^2(4) \log (x-\log (4))+\frac {4}{5} \int \frac {x^5}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx+\frac {4}{5} \int \left (\frac {x^2 (-1+x-\log (4))}{x-\log (4)}+\frac {x^2 \left (-x^3+\log (4)+x^2 (4+\log (4))-x (2+\log (64))\right )}{e^x+x^3+x \log (4)-x^2 (1+\log (4))}\right ) \, dx+\frac {1}{5} (4 \log (4)) \int \frac {x^2}{-e^x-x^3-x \log (4)+x^2 (1+\log (4))} \, dx-\frac {1}{5} (4 (4+\log (4))) \int \frac {x^4}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx+\frac {1}{5} (4 (2+\log (64))) \int \frac {x^3}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx\\ &=\frac {6 x^2}{5}+\frac {4 x^3}{3}+\frac {4}{5} x \log (4)-\frac {4}{5} x^2 \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )+\frac {4}{5} \log ^2(4) \log (x-\log (4))+\frac {4}{5} \int \frac {x^2 (-1+x-\log (4))}{x-\log (4)} \, dx+\frac {4}{5} \int \frac {x^5}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx+\frac {4}{5} \int \frac {x^2 \left (-x^3+\log (4)+x^2 (4+\log (4))-x (2+\log (64))\right )}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx+\frac {1}{5} (4 \log (4)) \int \frac {x^2}{-e^x-x^3-x \log (4)+x^2 (1+\log (4))} \, dx-\frac {1}{5} (4 (4+\log (4))) \int \frac {x^4}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx+\frac {1}{5} (4 (2+\log (64))) \int \frac {x^3}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx\\ &=\frac {6 x^2}{5}+\frac {4 x^3}{3}+\frac {4}{5} x \log (4)-\frac {4}{5} x^2 \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )+\frac {4}{5} \log ^2(4) \log (x-\log (4))+\frac {4}{5} \int \left (-x+x^2-\log (4)-\frac {\log ^2(4)}{x-\log (4)}\right ) \, dx+\frac {4}{5} \int \frac {x^5}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx+\frac {4}{5} \int \left (\frac {x^2 \log (4)}{e^x+x^3+x \log (4)-x^2 (1+\log (4))}+\frac {x^4 (4+\log (4))}{e^x+x^3+x \log (4)-x^2 (1+\log (4))}+\frac {x^5}{-e^x-x^3-x \log (4)+x^2 (1+\log (4))}+\frac {x^3 (-2-\log (64))}{e^x+x^3+x \log (4)-x^2 (1+\log (4))}\right ) \, dx+\frac {1}{5} (4 \log (4)) \int \frac {x^2}{-e^x-x^3-x \log (4)+x^2 (1+\log (4))} \, dx-\frac {1}{5} (4 (4+\log (4))) \int \frac {x^4}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx+\frac {1}{5} (4 (2+\log (64))) \int \frac {x^3}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx\\ &=\frac {4 x^2}{5}+\frac {8 x^3}{5}-\frac {4}{5} x^2 \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )+\frac {4}{5} \int \frac {x^5}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx+\frac {4}{5} \int \frac {x^5}{-e^x-x^3-x \log (4)+x^2 (1+\log (4))} \, dx+\frac {1}{5} (4 \log (4)) \int \frac {x^2}{e^x+x^3+x \log (4)-x^2 (1+\log (4))} \, dx+\frac {1}{5} (4 \log (4)) \int \frac {x^2}{-e^x-x^3-x \log (4)+x^2 (1+\log (4))} \, dx\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.19, size = 39, normalized size = 1.15 \begin {gather*} \frac {4}{5} \left (x^2+2 x^3-x^2 \log \left (x-x^2-\frac {e^x}{x-\log (4)}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.55, size = 49, normalized size = 1.44 \begin {gather*} \frac {8}{5} \, x^{3} - \frac {4}{5} \, x^{2} \log \left (-\frac {x^{3} - x^{2} - 2 \, {\left (x^{2} - x\right )} \log \relax (2) + e^{x}}{x - 2 \, \log \relax (2)}\right ) + \frac {4}{5} \, x^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.40, size = 54, normalized size = 1.59 \begin {gather*} \frac {8}{5} \, x^{3} - \frac {4}{5} \, x^{2} \log \left (-x^{3} + 2 \, x^{2} \log \relax (2) + x^{2} - 2 \, x \log \relax (2) - e^{x}\right ) + \frac {4}{5} \, x^{2} \log \left (x - 2 \, \log \relax (2)\right ) + \frac {4}{5} \, x^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.22, size = 379, normalized size = 11.15
method | result | size |
risch | \(-\frac {4 x^{2} \ln \left (\left (x^{2}-x \right ) \ln \relax (2)-\frac {x^{3}}{2}+\frac {x^{2}}{2}-\frac {{\mathrm e}^{x}}{2}\right )}{5}+\frac {4 x^{2} \ln \left (\ln \relax (2)-\frac {x}{2}\right )}{5}+\frac {8 x^{3}}{5}+\frac {4 i \pi \,x^{2} \mathrm {csgn}\left (\frac {i \left (-\left (x^{2}-x \right ) \ln \relax (2)+\frac {x^{3}}{2}-\frac {x^{2}}{2}+\frac {{\mathrm e}^{x}}{2}\right )}{\ln \relax (2)-\frac {x}{2}}\right )^{2}}{5}+\frac {2 i \pi \,x^{2} \mathrm {csgn}\left (\frac {i}{\ln \relax (2)-\frac {x}{2}}\right ) \mathrm {csgn}\left (i \left (-\left (x^{2}-x \right ) \ln \relax (2)+\frac {x^{3}}{2}-\frac {x^{2}}{2}+\frac {{\mathrm e}^{x}}{2}\right )\right ) \mathrm {csgn}\left (\frac {i \left (-\left (x^{2}-x \right ) \ln \relax (2)+\frac {x^{3}}{2}-\frac {x^{2}}{2}+\frac {{\mathrm e}^{x}}{2}\right )}{\ln \relax (2)-\frac {x}{2}}\right )}{5}-\frac {2 i \pi \,x^{2} \mathrm {csgn}\left (\frac {i}{\ln \relax (2)-\frac {x}{2}}\right ) \mathrm {csgn}\left (\frac {i \left (-\left (x^{2}-x \right ) \ln \relax (2)+\frac {x^{3}}{2}-\frac {x^{2}}{2}+\frac {{\mathrm e}^{x}}{2}\right )}{\ln \relax (2)-\frac {x}{2}}\right )^{2}}{5}+\frac {2 i \pi \,x^{2} \mathrm {csgn}\left (i \left (-\left (x^{2}-x \right ) \ln \relax (2)+\frac {x^{3}}{2}-\frac {x^{2}}{2}+\frac {{\mathrm e}^{x}}{2}\right )\right ) \mathrm {csgn}\left (\frac {i \left (-\left (x^{2}-x \right ) \ln \relax (2)+\frac {x^{3}}{2}-\frac {x^{2}}{2}+\frac {{\mathrm e}^{x}}{2}\right )}{\ln \relax (2)-\frac {x}{2}}\right )^{2}}{5}+\frac {2 i \pi \,x^{2} \mathrm {csgn}\left (\frac {i \left (-\left (x^{2}-x \right ) \ln \relax (2)+\frac {x^{3}}{2}-\frac {x^{2}}{2}+\frac {{\mathrm e}^{x}}{2}\right )}{\ln \relax (2)-\frac {x}{2}}\right )^{3}}{5}-\frac {4 i \pi \,x^{2}}{5}+\frac {4 x^{2}}{5}\) | \(379\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.50, size = 54, normalized size = 1.59 \begin {gather*} \frac {8}{5} \, x^{3} - \frac {4}{5} \, x^{2} \log \left (-x^{3} + x^{2} {\left (2 \, \log \relax (2) + 1\right )} - 2 \, x \log \relax (2) - e^{x}\right ) + \frac {4}{5} \, x^{2} \log \left (x - 2 \, \log \relax (2)\right ) + \frac {4}{5} \, x^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 7.03, size = 45, normalized size = 1.32 \begin {gather*} \frac {4\,x^2\,\left (2\,x-\ln \left (-\frac {{\mathrm {e}}^x-x^2+x^3+2\,\ln \relax (2)\,\left (x-x^2\right )}{x-2\,\ln \relax (2)}\right )+1\right )}{5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 1.28, size = 110, normalized size = 3.24 \begin {gather*} \frac {8 x^{3}}{5} + \frac {4 x^{2}}{5} + \left (- \frac {4 x^{2}}{5} + \frac {16 \log {\relax (2 )}^{2}}{15}\right ) \log {\left (\frac {x^{3} - x^{2} + \left (- 2 x^{2} + 2 x\right ) \log {\relax (2 )} + e^{x}}{- x + 2 \log {\relax (2 )}} \right )} + \frac {16 \log {\relax (2 )}^{2} \log {\left (x - 2 \log {\relax (2 )} \right )}}{15} - \frac {16 \log {\relax (2 )}^{2} \log {\left (x^{3} - 2 x^{2} \log {\relax (2 )} - x^{2} + 2 x \log {\relax (2 )} + e^{x} \right )}}{15} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________