Optimal. Leaf size=34 \[ -4+(1-x) x \log \left (\frac {x}{\left (5-e^{2 e^x-2 x}\right ) (-5+x)}\right ) \]
________________________________________________________________________________________
Rubi [B] time = 7.34, antiderivative size = 77, normalized size of antiderivative = 2.26, number of steps used = 27, number of rules used = 8, integrand size = 132, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.061, Rules used = {6742, 6688, 43, 2551, 2282, 6712, 31, 72} \begin {gather*} -\frac {1}{4} (1-2 x)^2 \log \left (-\frac {x}{-e^{2 e^x-2 x} (5-x)-5 x+25}\right )-\frac {1}{4} \log \left (5-e^{2 e^x-2 x}\right )-\frac {1}{4} \log (5-x)+\frac {\log (x)}{4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 43
Rule 72
Rule 2282
Rule 2551
Rule 6688
Rule 6712
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-\frac {2 e^{2 e^x} \left (-1+e^x\right ) (-1+x) x}{-e^{2 e^x}+5 e^{2 x}}+\frac {-5+5 x-5 \log \left (-\frac {x}{25+e^{2 e^x-2 x} (-5+x)-5 x}\right )+11 x \log \left (-\frac {x}{25+e^{2 e^x-2 x} (-5+x)-5 x}\right )-2 x^2 \log \left (-\frac {x}{25+e^{2 e^x-2 x} (-5+x)-5 x}\right )}{-5+x}\right ) \, dx\\ &=-\left (2 \int \frac {e^{2 e^x} \left (-1+e^x\right ) (-1+x) x}{-e^{2 e^x}+5 e^{2 x}} \, dx\right )+\int \frac {-5+5 x-5 \log \left (-\frac {x}{25+e^{2 e^x-2 x} (-5+x)-5 x}\right )+11 x \log \left (-\frac {x}{25+e^{2 e^x-2 x} (-5+x)-5 x}\right )-2 x^2 \log \left (-\frac {x}{25+e^{2 e^x-2 x} (-5+x)-5 x}\right )}{-5+x} \, dx\\ &=-\left (2 \int \left (-\frac {e^{2 e^x} \left (-1+e^x\right ) x}{-e^{2 e^x}+5 e^{2 x}}+\frac {e^{2 e^x} \left (-1+e^x\right ) x^2}{-e^{2 e^x}+5 e^{2 x}}\right ) \, dx\right )+\int \frac {-5 (-1+x)-\left (-5+11 x-2 x^2\right ) \log \left (-\frac {x}{25+e^{2 e^x-2 x} (-5+x)-5 x}\right )}{5-x} \, dx\\ &=2 \int \frac {e^{2 e^x} \left (-1+e^x\right ) x}{-e^{2 e^x}+5 e^{2 x}} \, dx-2 \int \frac {e^{2 e^x} \left (-1+e^x\right ) x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx+\int \left (\frac {5 (-1+x)}{-5+x}-(-1+2 x) \log \left (-\frac {x}{25+e^{2 e^x-2 x} (-5+x)-5 x}\right )\right ) \, dx\\ &=2 \int \left (-\frac {e^{2 e^x} x}{-e^{2 e^x}+5 e^{2 x}}+\frac {e^{2 e^x+x} x}{-e^{2 e^x}+5 e^{2 x}}\right ) \, dx-2 \int \left (-\frac {e^{2 e^x} x^2}{-e^{2 e^x}+5 e^{2 x}}+\frac {e^{2 e^x+x} x^2}{-e^{2 e^x}+5 e^{2 x}}\right ) \, dx+5 \int \frac {-1+x}{-5+x} \, dx-\int (-1+2 x) \log \left (-\frac {x}{25+e^{2 e^x-2 x} (-5+x)-5 x}\right ) \, dx\\ &=-\frac {1}{4} (1-2 x)^2 \log \left (-\frac {x}{25-e^{2 e^x-2 x} (5-x)-5 x}\right )+\frac {1}{4} \int \frac {(1-2 x)^2 \left (-25 e^{2 x}+2 e^{2 e^x+x} (-5+x) x+e^{2 e^x} \left (5+10 x-2 x^2\right )\right )}{\left (e^{2 e^x}-5 e^{2 x}\right ) (5-x) x} \, dx-2 \int \frac {e^{2 e^x} x}{-e^{2 e^x}+5 e^{2 x}} \, dx+2 \int \frac {e^{2 e^x+x} x}{-e^{2 e^x}+5 e^{2 x}} \, dx+2 \int \frac {e^{2 e^x} x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx-2 \int \frac {e^{2 e^x+x} x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx+5 \int \left (1+\frac {4}{-5+x}\right ) \, dx\\ &=5 x+20 \log (5-x)-\frac {1}{4} (1-2 x)^2 \log \left (-\frac {x}{25-e^{2 e^x-2 x} (5-x)-5 x}\right )+\frac {1}{4} \int \left (\frac {2 e^{2 e^x} \left (-1+e^x\right ) (-1+2 x)^2}{-e^{2 e^x}+5 e^{2 x}}-\frac {5 (-1+2 x)^2}{(-5+x) x}\right ) \, dx-2 \int \frac {e^{2 e^x} x}{-e^{2 e^x}+5 e^{2 x}} \, dx+2 \int \frac {e^{2 e^x+x} x}{-e^{2 e^x}+5 e^{2 x}} \, dx+2 \int \frac {e^{2 e^x} x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx-2 \int \frac {e^{2 e^x+x} x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx\\ &=5 x+20 \log (5-x)-\frac {1}{4} (1-2 x)^2 \log \left (-\frac {x}{25-e^{2 e^x-2 x} (5-x)-5 x}\right )+\frac {1}{2} \int \frac {e^{2 e^x} \left (-1+e^x\right ) (-1+2 x)^2}{-e^{2 e^x}+5 e^{2 x}} \, dx-\frac {5}{4} \int \frac {(-1+2 x)^2}{(-5+x) x} \, dx-2 \int \frac {e^{2 e^x} x}{-e^{2 e^x}+5 e^{2 x}} \, dx+2 \int \frac {e^{2 e^x+x} x}{-e^{2 e^x}+5 e^{2 x}} \, dx+2 \int \frac {e^{2 e^x} x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx-2 \int \frac {e^{2 e^x+x} x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx\\ &=5 x+20 \log (5-x)-\frac {1}{4} (1-2 x)^2 \log \left (-\frac {x}{25-e^{2 e^x-2 x} (5-x)-5 x}\right )+\frac {1}{2} \int \left (\frac {e^{2 e^x} \left (-1+e^x\right )}{-e^{2 e^x}+5 e^{2 x}}-\frac {4 e^{2 e^x} \left (-1+e^x\right ) x}{-e^{2 e^x}+5 e^{2 x}}+\frac {4 e^{2 e^x} \left (-1+e^x\right ) x^2}{-e^{2 e^x}+5 e^{2 x}}\right ) \, dx-\frac {5}{4} \int \left (4+\frac {81}{5 (-5+x)}-\frac {1}{5 x}\right ) \, dx-2 \int \frac {e^{2 e^x} x}{-e^{2 e^x}+5 e^{2 x}} \, dx+2 \int \frac {e^{2 e^x+x} x}{-e^{2 e^x}+5 e^{2 x}} \, dx+2 \int \frac {e^{2 e^x} x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx-2 \int \frac {e^{2 e^x+x} x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx\\ &=-\frac {1}{4} \log (5-x)+\frac {\log (x)}{4}-\frac {1}{4} (1-2 x)^2 \log \left (-\frac {x}{25-e^{2 e^x-2 x} (5-x)-5 x}\right )+\frac {1}{2} \int \frac {e^{2 e^x} \left (-1+e^x\right )}{-e^{2 e^x}+5 e^{2 x}} \, dx-2 \int \frac {e^{2 e^x} x}{-e^{2 e^x}+5 e^{2 x}} \, dx+2 \int \frac {e^{2 e^x+x} x}{-e^{2 e^x}+5 e^{2 x}} \, dx-2 \int \frac {e^{2 e^x} \left (-1+e^x\right ) x}{-e^{2 e^x}+5 e^{2 x}} \, dx+2 \int \frac {e^{2 e^x} x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx-2 \int \frac {e^{2 e^x+x} x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx+2 \int \frac {e^{2 e^x} \left (-1+e^x\right ) x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx\\ &=-\frac {1}{4} \log (5-x)+\frac {\log (x)}{4}-\frac {1}{4} (1-2 x)^2 \log \left (-\frac {x}{25-e^{2 e^x-2 x} (5-x)-5 x}\right )+\frac {1}{2} \operatorname {Subst}\left (\int \frac {e^{2 x} (-1+x)}{x \left (-e^{2 x}+5 x^2\right )} \, dx,x,e^x\right )-2 \int \frac {e^{2 e^x} x}{-e^{2 e^x}+5 e^{2 x}} \, dx+2 \int \frac {e^{2 e^x+x} x}{-e^{2 e^x}+5 e^{2 x}} \, dx+2 \int \frac {e^{2 e^x} x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx-2 \int \frac {e^{2 e^x+x} x^2}{-e^{2 e^x}+5 e^{2 x}} \, dx-2 \int \left (-\frac {e^{2 e^x} x}{-e^{2 e^x}+5 e^{2 x}}+\frac {e^{2 e^x+x} x}{-e^{2 e^x}+5 e^{2 x}}\right ) \, dx+2 \int \left (-\frac {e^{2 e^x} x^2}{-e^{2 e^x}+5 e^{2 x}}+\frac {e^{2 e^x+x} x^2}{-e^{2 e^x}+5 e^{2 x}}\right ) \, dx\\ &=-\frac {1}{4} \log (5-x)+\frac {\log (x)}{4}-\frac {1}{4} (1-2 x)^2 \log \left (-\frac {x}{25-e^{2 e^x-2 x} (5-x)-5 x}\right )+\frac {1}{4} \operatorname {Subst}\left (\int \frac {1}{5-x} \, dx,x,e^{2 e^x-2 x}\right )\\ &=-\frac {1}{4} \log \left (5-e^{2 e^x-2 x}\right )-\frac {1}{4} \log (5-x)+\frac {\log (x)}{4}-\frac {1}{4} (1-2 x)^2 \log \left (-\frac {x}{25-e^{2 e^x-2 x} (5-x)-5 x}\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.22, size = 32, normalized size = 0.94 \begin {gather*} -\left ((-1+x) x \log \left (-\frac {x}{25+e^{2 e^x-2 x} (-5+x)-5 x}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.62, size = 33, normalized size = 0.97 \begin {gather*} -{\left (x^{2} - x\right )} \log \left (-\frac {x}{{\left (x - 5\right )} e^{\left (-2 \, x + 2 \, e^{x}\right )} - 5 \, x + 25}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.60, size = 88, normalized size = 2.59 \begin {gather*} -x^{2} \log \left (\frac {x e^{x}}{5 \, x e^{x} - x e^{\left (-x + 2 \, e^{x}\right )} - 25 \, e^{x} + 5 \, e^{\left (-x + 2 \, e^{x}\right )}}\right ) + x \log \left (\frac {x e^{x}}{5 \, x e^{x} - x e^{\left (-x + 2 \, e^{x}\right )} - 25 \, e^{x} + 5 \, e^{\left (-x + 2 \, e^{x}\right )}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.36, size = 814, normalized size = 23.94
method | result | size |
risch | \(-x^{2} \ln \relax (x )+\left (x^{2}-x \right ) \ln \left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right )+x \ln \relax (x )+x^{2} \ln \left (x -5\right )-x \ln \left (x -5\right )+\frac {i \pi x \mathrm {csgn}\left (\frac {i x}{\left (x -5\right ) \left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right )}\right )^{3}}{2}-\frac {i \pi x \mathrm {csgn}\left (\frac {i}{\left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right ) \left (x -5\right )}\right )^{3}}{2}-\frac {i \pi \,x^{2} \mathrm {csgn}\left (\frac {i x}{\left (x -5\right ) \left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right )}\right )^{3}}{2}+i \pi \,x^{2} \mathrm {csgn}\left (\frac {i x}{\left (x -5\right ) \left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right )}\right )^{2}+\frac {i \pi \,x^{2} \mathrm {csgn}\left (\frac {i}{\left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right ) \left (x -5\right )}\right )^{3}}{2}-i \pi x \mathrm {csgn}\left (\frac {i x}{\left (x -5\right ) \left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right )}\right )^{2}-i \pi \,x^{2}-\frac {i \pi x \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (\frac {i}{\left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right ) \left (x -5\right )}\right ) \mathrm {csgn}\left (\frac {i x}{\left (x -5\right ) \left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right )}\right )}{2}+\frac {i \pi \,x^{2} \mathrm {csgn}\left (\frac {i}{x -5}\right ) \mathrm {csgn}\left (\frac {i}{{\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5}\right ) \mathrm {csgn}\left (\frac {i}{\left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right ) \left (x -5\right )}\right )}{2}-\frac {i \pi x \,\mathrm {csgn}\left (\frac {i}{x -5}\right ) \mathrm {csgn}\left (\frac {i}{{\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5}\right ) \mathrm {csgn}\left (\frac {i}{\left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right ) \left (x -5\right )}\right )}{2}+\frac {i \pi \,x^{2} \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (\frac {i}{\left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right ) \left (x -5\right )}\right ) \mathrm {csgn}\left (\frac {i x}{\left (x -5\right ) \left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right )}\right )}{2}+i x \pi -\frac {i \pi \,x^{2} \mathrm {csgn}\left (\frac {i}{\left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right ) \left (x -5\right )}\right ) \mathrm {csgn}\left (\frac {i x}{\left (x -5\right ) \left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right )}\right )^{2}}{2}+\frac {i \pi x \,\mathrm {csgn}\left (\frac {i}{x -5}\right ) \mathrm {csgn}\left (\frac {i}{\left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right ) \left (x -5\right )}\right )^{2}}{2}-\frac {i \pi \,x^{2} \mathrm {csgn}\left (\frac {i}{{\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5}\right ) \mathrm {csgn}\left (\frac {i}{\left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right ) \left (x -5\right )}\right )^{2}}{2}+\frac {i \pi x \,\mathrm {csgn}\left (\frac {i}{{\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5}\right ) \mathrm {csgn}\left (\frac {i}{\left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right ) \left (x -5\right )}\right )^{2}}{2}-\frac {i \pi \,x^{2} \mathrm {csgn}\left (\frac {i}{x -5}\right ) \mathrm {csgn}\left (\frac {i}{\left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right ) \left (x -5\right )}\right )^{2}}{2}+\frac {i \pi x \,\mathrm {csgn}\left (\frac {i}{\left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right ) \left (x -5\right )}\right ) \mathrm {csgn}\left (\frac {i x}{\left (x -5\right ) \left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right )}\right )^{2}}{2}-\frac {i \pi \,x^{2} \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (\frac {i x}{\left (x -5\right ) \left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right )}\right )^{2}}{2}+\frac {i \pi x \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (\frac {i x}{\left (x -5\right ) \left ({\mathrm e}^{2 \,{\mathrm e}^{x}-2 x}-5\right )}\right )^{2}}{2}\) | \(814\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 57, normalized size = 1.68 \begin {gather*} -2 \, x^{3} + 2 \, x^{2} + {\left (x^{2} - x\right )} \log \left (x - 5\right ) - {\left (x^{2} - x\right )} \log \relax (x) + {\left (x^{2} - x\right )} \log \left (5 \, e^{\left (2 \, x\right )} - e^{\left (2 \, e^{x}\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.49, size = 48, normalized size = 1.41 \begin {gather*} -\frac {\ln \left (-\frac {x}{{\mathrm {e}}^{-2\,x}\,{\mathrm {e}}^{2\,{\mathrm {e}}^x}\,\left (x-5\right )-5\,x+25}\right )\,\left (x^4-6\,x^3+5\,x^2\right )}{x\,\left (x-5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 2.09, size = 63, normalized size = 1.85 \begin {gather*} \left (- x^{2} + x + \frac {10}{3}\right ) \log {\left (- \frac {x}{- 5 x + \left (x - 5\right ) e^{- 2 x + 2 e^{x}} + 25} \right )} - \frac {10 \log {\relax (x )}}{3} + \frac {10 \log {\left (x - 5 \right )}}{3} + \frac {10 \log {\left (e^{- 2 x + 2 e^{x}} - 5 \right )}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________