Integrand size = 23, antiderivative size = 232 \[ \int \frac {e^{d+e x} x^3}{a+b x+c x^2} \, dx=-\frac {e^{d+e x}}{c e^2}-\frac {b e^{d+e x}}{c^2 e}+\frac {e^{d+e x} x}{c e}+\frac {\left (b^2-a c-\frac {b \left (b^2-3 a c\right )}{\sqrt {b^2-4 a c}}\right ) e^{d-\frac {\left (b-\sqrt {b^2-4 a c}\right ) e}{2 c}} \operatorname {ExpIntegralEi}\left (\frac {e \left (b-\sqrt {b^2-4 a c}+2 c x\right )}{2 c}\right )}{2 c^3}+\frac {\left (b^2-a c+\frac {b \left (b^2-3 a c\right )}{\sqrt {b^2-4 a c}}\right ) e^{d-\frac {\left (b+\sqrt {b^2-4 a c}\right ) e}{2 c}} \operatorname {ExpIntegralEi}\left (\frac {e \left (b+\sqrt {b^2-4 a c}+2 c x\right )}{2 c}\right )}{2 c^3} \]
[Out]
Time = 0.32 (sec) , antiderivative size = 232, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {2302, 2225, 2207, 2209} \[ \int \frac {e^{d+e x} x^3}{a+b x+c x^2} \, dx=\frac {\left (-\frac {b \left (b^2-3 a c\right )}{\sqrt {b^2-4 a c}}-a c+b^2\right ) e^{d-\frac {e \left (b-\sqrt {b^2-4 a c}\right )}{2 c}} \operatorname {ExpIntegralEi}\left (\frac {e \left (b+2 c x-\sqrt {b^2-4 a c}\right )}{2 c}\right )}{2 c^3}+\frac {\left (\frac {b \left (b^2-3 a c\right )}{\sqrt {b^2-4 a c}}-a c+b^2\right ) e^{d-\frac {e \left (\sqrt {b^2-4 a c}+b\right )}{2 c}} \operatorname {ExpIntegralEi}\left (\frac {e \left (b+2 c x+\sqrt {b^2-4 a c}\right )}{2 c}\right )}{2 c^3}-\frac {b e^{d+e x}}{c^2 e}-\frac {e^{d+e x}}{c e^2}+\frac {x e^{d+e x}}{c e} \]
[In]
[Out]
Rule 2207
Rule 2209
Rule 2225
Rule 2302
Rubi steps \begin{align*} \text {integral}& = \int \left (-\frac {b e^{d+e x}}{c^2}+\frac {e^{d+e x} x}{c}+\frac {e^{d+e x} \left (a b+\left (b^2-a c\right ) x\right )}{c^2 \left (a+b x+c x^2\right )}\right ) \, dx \\ & = \frac {\int \frac {e^{d+e x} \left (a b+\left (b^2-a c\right ) x\right )}{a+b x+c x^2} \, dx}{c^2}-\frac {b \int e^{d+e x} \, dx}{c^2}+\frac {\int e^{d+e x} x \, dx}{c} \\ & = -\frac {b e^{d+e x}}{c^2 e}+\frac {e^{d+e x} x}{c e}+\frac {\int \left (\frac {\left (b^2-a c+\frac {b \left (-b^2+3 a c\right )}{\sqrt {b^2-4 a c}}\right ) e^{d+e x}}{b-\sqrt {b^2-4 a c}+2 c x}+\frac {\left (b^2-a c-\frac {b \left (-b^2+3 a c\right )}{\sqrt {b^2-4 a c}}\right ) e^{d+e x}}{b+\sqrt {b^2-4 a c}+2 c x}\right ) \, dx}{c^2}-\frac {\int e^{d+e x} \, dx}{c e} \\ & = -\frac {e^{d+e x}}{c e^2}-\frac {b e^{d+e x}}{c^2 e}+\frac {e^{d+e x} x}{c e}+\frac {\left (b^2-a c-\frac {b \left (b^2-3 a c\right )}{\sqrt {b^2-4 a c}}\right ) \int \frac {e^{d+e x}}{b-\sqrt {b^2-4 a c}+2 c x} \, dx}{c^2}+\frac {\left (b^2-a c+\frac {b \left (b^2-3 a c\right )}{\sqrt {b^2-4 a c}}\right ) \int \frac {e^{d+e x}}{b+\sqrt {b^2-4 a c}+2 c x} \, dx}{c^2} \\ & = -\frac {e^{d+e x}}{c e^2}-\frac {b e^{d+e x}}{c^2 e}+\frac {e^{d+e x} x}{c e}+\frac {\left (b^2-a c-\frac {b \left (b^2-3 a c\right )}{\sqrt {b^2-4 a c}}\right ) e^{d-\frac {\left (b-\sqrt {b^2-4 a c}\right ) e}{2 c}} \text {Ei}\left (\frac {e \left (b-\sqrt {b^2-4 a c}+2 c x\right )}{2 c}\right )}{2 c^3}+\frac {\left (b^2-a c+\frac {b \left (b^2-3 a c\right )}{\sqrt {b^2-4 a c}}\right ) e^{d-\frac {\left (b+\sqrt {b^2-4 a c}\right ) e}{2 c}} \text {Ei}\left (\frac {e \left (b+\sqrt {b^2-4 a c}+2 c x\right )}{2 c}\right )}{2 c^3} \\ \end{align*}
Time = 0.46 (sec) , antiderivative size = 268, normalized size of antiderivative = 1.16 \[ \int \frac {e^{d+e x} x^3}{a+b x+c x^2} \, dx=\frac {e^{d-\frac {b e}{c}} \left (-2 c \sqrt {b^2-4 a c} e^{e \left (\frac {b}{c}+x\right )} (c+b e-c e x)+\left (-b^3+3 a b c+b^2 \sqrt {b^2-4 a c}-a c \sqrt {b^2-4 a c}\right ) e^2 e^{\frac {\left (b+\sqrt {b^2-4 a c}\right ) e}{2 c}} \operatorname {ExpIntegralEi}\left (\frac {e \left (b-\sqrt {b^2-4 a c}+2 c x\right )}{2 c}\right )+\left (b^3-3 a b c+b^2 \sqrt {b^2-4 a c}-a c \sqrt {b^2-4 a c}\right ) e^2 e^{\frac {\left (b-\sqrt {b^2-4 a c}\right ) e}{2 c}} \operatorname {ExpIntegralEi}\left (\frac {e \left (b+\sqrt {b^2-4 a c}+2 c x\right )}{2 c}\right )\right )}{2 c^3 \sqrt {b^2-4 a c} e^2} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(754\) vs. \(2(203)=406\).
Time = 0.56 (sec) , antiderivative size = 755, normalized size of antiderivative = 3.25
method | result | size |
risch | \(-\frac {3 e \,{\mathrm e}^{-\frac {b e -2 c d -\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}} \operatorname {Ei}_{1}\left (\frac {-b e +2 c d -2 c \left (e x +d \right )+\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}\right ) a b}{2 c^{2} \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}+\frac {e \,{\mathrm e}^{-\frac {b e -2 c d -\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}} \operatorname {Ei}_{1}\left (\frac {-b e +2 c d -2 c \left (e x +d \right )+\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}\right ) b^{3}}{2 c^{3} \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}+\frac {3 e \,{\mathrm e}^{-\frac {b e -2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}} \operatorname {Ei}_{1}\left (-\frac {b e -2 c d +2 c \left (e x +d \right )+\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}\right ) a b}{2 c^{2} \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}-\frac {e \,{\mathrm e}^{-\frac {b e -2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}} \operatorname {Ei}_{1}\left (-\frac {b e -2 c d +2 c \left (e x +d \right )+\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}\right ) b^{3}}{2 c^{3} \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}+\frac {{\mathrm e}^{-\frac {b e -2 c d -\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}} \operatorname {Ei}_{1}\left (\frac {-b e +2 c d -2 c \left (e x +d \right )+\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}\right ) a}{2 c^{2}}-\frac {{\mathrm e}^{-\frac {b e -2 c d -\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}} \operatorname {Ei}_{1}\left (\frac {-b e +2 c d -2 c \left (e x +d \right )+\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}\right ) b^{2}}{2 c^{3}}+\frac {{\mathrm e}^{-\frac {b e -2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}} \operatorname {Ei}_{1}\left (-\frac {b e -2 c d +2 c \left (e x +d \right )+\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}\right ) a}{2 c^{2}}-\frac {{\mathrm e}^{-\frac {b e -2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}} \operatorname {Ei}_{1}\left (-\frac {b e -2 c d +2 c \left (e x +d \right )+\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 c}\right ) b^{2}}{2 c^{3}}+\frac {{\mathrm e}^{e x +d} x}{c e}-\frac {b \,{\mathrm e}^{e x +d}}{c^{2} e}-\frac {{\mathrm e}^{e x +d}}{c \,e^{2}}\) | \(755\) |
derivativedivides | \(\text {Expression too large to display}\) | \(3532\) |
default | \(\text {Expression too large to display}\) | \(3532\) |
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 330, normalized size of antiderivative = 1.42 \[ \int \frac {e^{d+e x} x^3}{a+b x+c x^2} \, dx=\frac {{\left ({\left (b^{4} - 5 \, a b^{2} c + 4 \, a^{2} c^{2}\right )} e^{2} - {\left (b^{3} c - 3 \, a b c^{2}\right )} e \sqrt {\frac {{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}\right )} {\rm Ei}\left (\frac {2 \, c e x + b e - c \sqrt {\frac {{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}}{2 \, c}\right ) e^{\left (\frac {2 \, c d - b e + c \sqrt {\frac {{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}}{2 \, c}\right )} + {\left ({\left (b^{4} - 5 \, a b^{2} c + 4 \, a^{2} c^{2}\right )} e^{2} + {\left (b^{3} c - 3 \, a b c^{2}\right )} e \sqrt {\frac {{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}\right )} {\rm Ei}\left (\frac {2 \, c e x + b e + c \sqrt {\frac {{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}}{2 \, c}\right ) e^{\left (\frac {2 \, c d - b e - c \sqrt {\frac {{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}}{2 \, c}\right )} - 2 \, {\left (b^{2} c^{2} - 4 \, a c^{3} - {\left (b^{2} c^{2} - 4 \, a c^{3}\right )} e x + {\left (b^{3} c - 4 \, a b c^{2}\right )} e\right )} e^{\left (e x + d\right )}}{2 \, {\left (b^{2} c^{3} - 4 \, a c^{4}\right )} e^{2}} \]
[In]
[Out]
Timed out. \[ \int \frac {e^{d+e x} x^3}{a+b x+c x^2} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {e^{d+e x} x^3}{a+b x+c x^2} \, dx=\int { \frac {x^{3} e^{\left (e x + d\right )}}{c x^{2} + b x + a} \,d x } \]
[In]
[Out]
\[ \int \frac {e^{d+e x} x^3}{a+b x+c x^2} \, dx=\int { \frac {x^{3} e^{\left (e x + d\right )}}{c x^{2} + b x + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {e^{d+e x} x^3}{a+b x+c x^2} \, dx=\int \frac {x^3\,{\mathrm {e}}^{d+e\,x}}{c\,x^2+b\,x+a} \,d x \]
[In]
[Out]