Integrand size = 58, antiderivative size = 24 \[ \int \frac {e (-24-8 x)+42 x^2+\left (-18 x^2+e (24+8 x)\right ) \log (x)+e (-6-2 x) \log ^2(x)}{4 e-4 e \log (x)+e \log ^2(x)} \, dx=x \left (-x+3 \left (-2-\frac {2 x^2}{e (-2+\log (x))}\right )\right ) \]
[Out]
Time = 0.18 (sec) , antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {6873, 12, 6874, 2343, 2346, 2209} \[ \int \frac {e (-24-8 x)+42 x^2+\left (-18 x^2+e (24+8 x)\right ) \log (x)+e (-6-2 x) \log ^2(x)}{4 e-4 e \log (x)+e \log ^2(x)} \, dx=\frac {6 x^3}{e (2-\log (x))}-(x+3)^2 \]
[In]
[Out]
Rule 12
Rule 2209
Rule 2343
Rule 2346
Rule 6873
Rule 6874
Rubi steps \begin{align*} \text {integral}& = \int \frac {e (-24-8 x)+42 x^2+\left (-18 x^2+e (24+8 x)\right ) \log (x)+e (-6-2 x) \log ^2(x)}{e (2-\log (x))^2} \, dx \\ & = \frac {\int \frac {e (-24-8 x)+42 x^2+\left (-18 x^2+e (24+8 x)\right ) \log (x)+e (-6-2 x) \log ^2(x)}{(2-\log (x))^2} \, dx}{e} \\ & = \frac {\int \left (-2 e (3+x)+\frac {6 x^2}{(-2+\log (x))^2}-\frac {18 x^2}{-2+\log (x)}\right ) \, dx}{e} \\ & = -(3+x)^2+\frac {6 \int \frac {x^2}{(-2+\log (x))^2} \, dx}{e}-\frac {18 \int \frac {x^2}{-2+\log (x)} \, dx}{e} \\ & = -(3+x)^2+\frac {6 x^3}{e (2-\log (x))}+\frac {18 \int \frac {x^2}{-2+\log (x)} \, dx}{e}-\frac {18 \text {Subst}\left (\int \frac {e^{3 x}}{-2+x} \, dx,x,\log (x)\right )}{e} \\ & = -(3+x)^2-18 e^5 \text {Ei}(-3 (2-\log (x)))+\frac {6 x^3}{e (2-\log (x))}+\frac {18 \text {Subst}\left (\int \frac {e^{3 x}}{-2+x} \, dx,x,\log (x)\right )}{e} \\ & = -(3+x)^2+\frac {6 x^3}{e (2-\log (x))} \\ \end{align*}
Time = 0.15 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.08 \[ \int \frac {e (-24-8 x)+42 x^2+\left (-18 x^2+e (24+8 x)\right ) \log (x)+e (-6-2 x) \log ^2(x)}{4 e-4 e \log (x)+e \log ^2(x)} \, dx=-\frac {2 \left (\frac {1}{2} e x (6+x)+\frac {3 x^3}{-2+\log (x)}\right )}{e} \]
[In]
[Out]
Time = 0.11 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.96
method | result | size |
risch | \(-x^{2}-6 x -\frac {6 x^{3} {\mathrm e}^{-1}}{\ln \left (x \right )-2}\) | \(23\) |
norman | \(\frac {12 x +2 x^{2}-6 x \ln \left (x \right )-x^{2} \ln \left (x \right )-6 x^{3} {\mathrm e}^{-1}}{\ln \left (x \right )-2}\) | \(38\) |
parallelrisch | \(\frac {\left (-x^{2} {\mathrm e} \ln \left (x \right )+2 x^{2} {\mathrm e}-6 x \,{\mathrm e} \ln \left (x \right )-6 x^{3}+12 x \,{\mathrm e}\right ) {\mathrm e}^{-1}}{\ln \left (x \right )-2}\) | \(46\) |
default | \(-2 \,{\mathrm e}^{-1} \left ({\mathrm e} \left (\frac {x^{2}}{2}-12 \,{\mathrm e}^{4} \operatorname {Ei}_{1}\left (-2 \ln \left (x \right )+4\right )-\frac {4 x^{2}}{\ln \left (x \right )-2}\right )+\frac {3 x^{3}}{\ln \left (x \right )-2}+12 \,{\mathrm e} \left (-\frac {x}{\ln \left (x \right )-2}-{\mathrm e}^{2} \operatorname {Ei}_{1}\left (-\ln \left (x \right )+2\right )\right )+4 \,{\mathrm e} \left (-\frac {x^{2}}{\ln \left (x \right )-2}-2 \,{\mathrm e}^{4} \operatorname {Ei}_{1}\left (-2 \ln \left (x \right )+4\right )\right )-12 \,{\mathrm e} \left (-3 \,{\mathrm e}^{2} \operatorname {Ei}_{1}\left (-\ln \left (x \right )+2\right )-\frac {2 x}{\ln \left (x \right )-2}\right )+3 \,{\mathrm e} \left (x -8 \,{\mathrm e}^{2} \operatorname {Ei}_{1}\left (-\ln \left (x \right )+2\right )-\frac {4 x}{\ln \left (x \right )-2}\right )-4 \,{\mathrm e} \left (-5 \,{\mathrm e}^{4} \operatorname {Ei}_{1}\left (-2 \ln \left (x \right )+4\right )-\frac {2 x^{2}}{\ln \left (x \right )-2}\right )\right )\) | \(186\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 43 vs. \(2 (19) = 38\).
Time = 0.24 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.79 \[ \int \frac {e (-24-8 x)+42 x^2+\left (-18 x^2+e (24+8 x)\right ) \log (x)+e (-6-2 x) \log ^2(x)}{4 e-4 e \log (x)+e \log ^2(x)} \, dx=-\frac {6 \, x^{3} + {\left (x^{2} + 6 \, x\right )} e \log \left (x\right ) - 2 \, {\left (x^{2} + 6 \, x\right )} e}{e \log \left (x\right ) - 2 \, e} \]
[In]
[Out]
Time = 0.06 (sec) , antiderivative size = 24, normalized size of antiderivative = 1.00 \[ \int \frac {e (-24-8 x)+42 x^2+\left (-18 x^2+e (24+8 x)\right ) \log (x)+e (-6-2 x) \log ^2(x)}{4 e-4 e \log (x)+e \log ^2(x)} \, dx=- \frac {6 x^{3}}{e \log {\left (x \right )} - 2 e} - x^{2} - 6 x \]
[In]
[Out]
\[ \int \frac {e (-24-8 x)+42 x^2+\left (-18 x^2+e (24+8 x)\right ) \log (x)+e (-6-2 x) \log ^2(x)}{4 e-4 e \log (x)+e \log ^2(x)} \, dx=\int { -\frac {2 \, {\left ({\left (x + 3\right )} e \log \left (x\right )^{2} - 21 \, x^{2} + 4 \, {\left (x + 3\right )} e + {\left (9 \, x^{2} - 4 \, {\left (x + 3\right )} e\right )} \log \left (x\right )\right )}}{e \log \left (x\right )^{2} - 4 \, e \log \left (x\right ) + 4 \, e} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 94 vs. \(2 (19) = 38\).
Time = 0.26 (sec) , antiderivative size = 94, normalized size of antiderivative = 3.92 \[ \int \frac {e (-24-8 x)+42 x^2+\left (-18 x^2+e (24+8 x)\right ) \log (x)+e (-6-2 x) \log ^2(x)}{4 e-4 e \log (x)+e \log ^2(x)} \, dx=-\frac {x^{2} e \log \left (x\right )}{e \log \left (x\right ) - 2 \, e} - \frac {6 \, x^{3}}{e \log \left (x\right ) - 2 \, e} + \frac {2 \, x^{2} e}{e \log \left (x\right ) - 2 \, e} - \frac {6 \, x e \log \left (x\right )}{e \log \left (x\right ) - 2 \, e} + \frac {12 \, x e}{e \log \left (x\right ) - 2 \, e} \]
[In]
[Out]
Time = 13.60 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.75 \[ \int \frac {e (-24-8 x)+42 x^2+\left (-18 x^2+e (24+8 x)\right ) \log (x)+e (-6-2 x) \log ^2(x)}{4 e-4 e \log (x)+e \log ^2(x)} \, dx=\frac {6\,x^4}{2\,x\,\mathrm {e}-x\,\mathrm {e}\,\ln \left (x\right )}-\frac {{\mathrm {e}}^{-1}\,\left (\mathrm {e}\,x^3+6\,\mathrm {e}\,x^2\right )}{x} \]
[In]
[Out]