Optimal. Leaf size=25 \[ (e+x) \left (\frac {3 x}{2}+\frac {5 e^{2 x}+x}{x}+\log (x)\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 48, normalized size of antiderivative = 1.92, number of steps
used = 14, number of rules used = 8, integrand size = 55, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.146, Rules used = {12, 14, 2230,
2225, 2208, 2209, 77, 2332} \begin {gather*} \frac {3 x^2}{2}+\frac {1}{2} (4+3 e) x-x+5 e^{2 x}+\frac {5 e^{2 x+1}}{x}+x \log (x)+e \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 77
Rule 2208
Rule 2209
Rule 2225
Rule 2230
Rule 2332
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{2} \int \frac {4 x^2+6 x^3+e \left (2 x+3 x^2\right )+e^{2 x} \left (20 x^2+e (-10+20 x)\right )+2 x^2 \log (x)}{x^2} \, dx\\ &=\frac {1}{2} \int \left (\frac {10 e^{2 x} \left (-e+2 e x+2 x^2\right )}{x^2}+\frac {2 e+4 \left (1+\frac {3 e}{4}\right ) x+6 x^2+2 x \log (x)}{x}\right ) \, dx\\ &=\frac {1}{2} \int \frac {2 e+4 \left (1+\frac {3 e}{4}\right ) x+6 x^2+2 x \log (x)}{x} \, dx+5 \int \frac {e^{2 x} \left (-e+2 e x+2 x^2\right )}{x^2} \, dx\\ &=\frac {1}{2} \int \left (\frac {(e+2 x) (2+3 x)}{x}+2 \log (x)\right ) \, dx+5 \int \left (2 e^{2 x}-\frac {e^{1+2 x}}{x^2}+\frac {2 e^{1+2 x}}{x}\right ) \, dx\\ &=\frac {1}{2} \int \frac {(e+2 x) (2+3 x)}{x} \, dx-5 \int \frac {e^{1+2 x}}{x^2} \, dx+10 \int e^{2 x} \, dx+10 \int \frac {e^{1+2 x}}{x} \, dx+\int \log (x) \, dx\\ &=5 e^{2 x}+\frac {5 e^{1+2 x}}{x}-x+10 e \text {Ei}(2 x)+x \log (x)+\frac {1}{2} \int \left (4+3 e+\frac {2 e}{x}+6 x\right ) \, dx-10 \int \frac {e^{1+2 x}}{x} \, dx\\ &=5 e^{2 x}+\frac {5 e^{1+2 x}}{x}-x+\frac {1}{2} (4+3 e) x+\frac {3 x^2}{2}+e \log (x)+x \log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 42, normalized size = 1.68 \begin {gather*} 5 e^{2 x}+\frac {5 e^{1+2 x}}{x}+x+\frac {3 e x}{2}+\frac {3 x^2}{2}+e \log (x)+x \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 0.20, size = 58, normalized size = 2.32
method | result | size |
risch | \(x \ln \left (x \right )+\frac {2 x \,{\mathrm e} \ln \left (x \right )+3 x^{2} {\mathrm e}+10 \,{\mathrm e}^{2 x +1}+3 x^{3}+10 x \,{\mathrm e}^{2 x}+2 x^{2}}{2 x}\) | \(51\) |
default | \(\frac {3 x^{2}}{2}+\frac {3 x \,{\mathrm e}}{2}+x +{\mathrm e} \ln \left (x \right )+5 \,{\mathrm e}^{2 x}-5 \,{\mathrm e} \left (-\frac {{\mathrm e}^{2 x}}{x}-2 \expIntegral \left (1, -2 x \right )\right )-10 \,{\mathrm e} \expIntegral \left (1, -2 x \right )+x \ln \left (x \right )\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 0.29, size = 44, normalized size = 1.76 \begin {gather*} \frac {3}{2} \, x^{2} + \frac {3}{2} \, x e + 10 \, {\rm Ei}\left (2 \, x\right ) e - 10 \, e \Gamma \left (-1, -2 \, x\right ) + x \log \left (x\right ) + e \log \left (x\right ) + x + 5 \, e^{\left (2 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 45, normalized size = 1.80 \begin {gather*} \frac {3 \, x^{3} + 3 \, x^{2} e + 2 \, x^{2} + 10 \, {\left (x + e\right )} e^{\left (2 \, x\right )} + 2 \, {\left (x^{2} + x e\right )} \log \left (x\right )}{2 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.12, size = 42, normalized size = 1.68 \begin {gather*} \frac {3 x^{2}}{2} + x \log {\left (x \right )} + \frac {x \left (2 + 3 e\right )}{2} + e \log {\left (x \right )} + \frac {\left (5 x + 5 e\right ) e^{2 x}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.39, size = 52, normalized size = 2.08 \begin {gather*} \frac {3 \, x^{3} + 3 \, x^{2} e + 2 \, x^{2} \log \left (x\right ) + 2 \, x e \log \left (x\right ) + 2 \, x^{2} + 10 \, x e^{\left (2 \, x\right )} + 10 \, e^{\left (2 \, x + 1\right )}}{2 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.09, size = 38, normalized size = 1.52 \begin {gather*} x+5\,{\mathrm {e}}^{2\,x}+\frac {3\,x\,\mathrm {e}}{2}+\mathrm {e}\,\ln \left (x\right )+x\,\ln \left (x\right )+\frac {5\,{\mathrm {e}}^{2\,x+1}}{x}+\frac {3\,x^2}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________