Integrand size = 35, antiderivative size = 24 \[ \int \frac {x+x^2+2 x^3+e^{15-3 x} \left (-1-3 x+x^2-3 x^3\right )}{x^2} \, dx=\log \left (e^{x+\left (e^{3 (5-x)}+x\right ) \left (\frac {1}{x}+x\right )} x\right ) \]
[Out]
Time = 0.07 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.12, number of steps used = 12, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.171, Rules used = {14, 2230, 2225, 2208, 2209, 2207} \[ \int \frac {x+x^2+2 x^3+e^{15-3 x} \left (-1-3 x+x^2-3 x^3\right )}{x^2} \, dx=x^2+e^{15-3 x} x+x+\frac {e^{15-3 x}}{x}+\log (x) \]
[In]
[Out]
Rule 14
Rule 2207
Rule 2208
Rule 2209
Rule 2225
Rule 2230
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {1+x+2 x^2}{x}-\frac {e^{15-3 x} \left (1+3 x-x^2+3 x^3\right )}{x^2}\right ) \, dx \\ & = \int \frac {1+x+2 x^2}{x} \, dx-\int \frac {e^{15-3 x} \left (1+3 x-x^2+3 x^3\right )}{x^2} \, dx \\ & = \int \left (1+\frac {1}{x}+2 x\right ) \, dx-\int \left (-e^{15-3 x}+\frac {e^{15-3 x}}{x^2}+\frac {3 e^{15-3 x}}{x}+3 e^{15-3 x} x\right ) \, dx \\ & = x+x^2+\log (x)-3 \int \frac {e^{15-3 x}}{x} \, dx-3 \int e^{15-3 x} x \, dx+\int e^{15-3 x} \, dx-\int \frac {e^{15-3 x}}{x^2} \, dx \\ & = -\frac {1}{3} e^{15-3 x}+\frac {e^{15-3 x}}{x}+x+e^{15-3 x} x+x^2-3 e^{15} \operatorname {ExpIntegralEi}(-3 x)+\log (x)+3 \int \frac {e^{15-3 x}}{x} \, dx-\int e^{15-3 x} \, dx \\ & = \frac {e^{15-3 x}}{x}+x+e^{15-3 x} x+x^2+\log (x) \\ \end{align*}
Time = 0.17 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.12 \[ \int \frac {x+x^2+2 x^3+e^{15-3 x} \left (-1-3 x+x^2-3 x^3\right )}{x^2} \, dx=\frac {e^{15-3 x}}{x}+x+e^{15-3 x} x+x^2+\log (x) \]
[In]
[Out]
Time = 0.17 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.96
method | result | size |
risch | \(\ln \left (x \right )+x^{2}+x +\frac {\left (x^{2}+1\right ) {\mathrm e}^{15-3 x}}{x}\) | \(23\) |
norman | \(\frac {x^{2}+x^{3}+{\mathrm e}^{15-3 x} x^{2}+{\mathrm e}^{15-3 x}}{x}+\ln \left (x \right )\) | \(31\) |
parallelrisch | \(\frac {{\mathrm e}^{15-3 x} x^{2}+x^{3}+x \ln \left (x \right )+x^{2}+{\mathrm e}^{15-3 x}}{x}\) | \(32\) |
parts | \(\ln \left (x \right )+x^{2}+x +\frac {{\mathrm e}^{15-3 x}}{x}+5 \,{\mathrm e}^{15-3 x}-\frac {{\mathrm e}^{15-3 x} \left (15-3 x \right )}{3}\) | \(39\) |
derivativedivides | \(\ln \left (-3 x \right )-55+11 x +\frac {\left (15-3 x \right )^{2}}{9}+\frac {{\mathrm e}^{15-3 x}}{x}+5 \,{\mathrm e}^{15-3 x}-\frac {{\mathrm e}^{15-3 x} \left (15-3 x \right )}{3}\) | \(50\) |
default | \(\ln \left (-3 x \right )-55+11 x +\frac {\left (15-3 x \right )^{2}}{9}+\frac {{\mathrm e}^{15-3 x}}{x}+5 \,{\mathrm e}^{15-3 x}-\frac {{\mathrm e}^{15-3 x} \left (15-3 x \right )}{3}\) | \(50\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.12 \[ \int \frac {x+x^2+2 x^3+e^{15-3 x} \left (-1-3 x+x^2-3 x^3\right )}{x^2} \, dx=\frac {x^{3} + x^{2} + {\left (x^{2} + 1\right )} e^{\left (-3 \, x + 15\right )} + x \log \left (x\right )}{x} \]
[In]
[Out]
Time = 0.07 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.83 \[ \int \frac {x+x^2+2 x^3+e^{15-3 x} \left (-1-3 x+x^2-3 x^3\right )}{x^2} \, dx=x^{2} + x + \log {\left (x \right )} + \frac {\left (x^{2} + 1\right ) e^{15 - 3 x}}{x} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 4 vs. order 3.
Time = 0.21 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.92 \[ \int \frac {x+x^2+2 x^3+e^{15-3 x} \left (-1-3 x+x^2-3 x^3\right )}{x^2} \, dx=x^{2} - 3 \, {\rm Ei}\left (-3 \, x\right ) e^{15} + \frac {1}{3} \, {\left (3 \, x e^{15} + e^{15}\right )} e^{\left (-3 \, x\right )} + 3 \, e^{15} \Gamma \left (-1, 3 \, x\right ) + x - \frac {1}{3} \, e^{\left (-3 \, x + 15\right )} + \log \left (x\right ) \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.29 \[ \int \frac {x+x^2+2 x^3+e^{15-3 x} \left (-1-3 x+x^2-3 x^3\right )}{x^2} \, dx=\frac {x^{3} + x^{2} e^{\left (-3 \, x + 15\right )} + x^{2} + x \log \left (x\right ) + e^{\left (-3 \, x + 15\right )}}{x} \]
[In]
[Out]
Time = 12.96 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.25 \[ \int \frac {x+x^2+2 x^3+e^{15-3 x} \left (-1-3 x+x^2-3 x^3\right )}{x^2} \, dx=\ln \left (x\right )+\frac {{\mathrm {e}}^{15-3\,x}+x^2\,{\mathrm {e}}^{15-3\,x}+x^2+x^3}{x} \]
[In]
[Out]