Integrand size = 23, antiderivative size = 169 \[ \int \frac {e^{d+e x}}{x \left (a+b x+c x^2\right )} \, dx=\frac {e^d \operatorname {ExpIntegralEi}(e x)}{a}-\frac {\left (1+\frac {b}{\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 a}-\frac {\left (1-\frac {b}{\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 a} \]
[Out]
Time = 0.27 (sec) , antiderivative size = 169, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {2302, 2209} \[ \int \frac {e^{d+e x}}{x \left (a+b x+c x^2\right )} \, dx=-\frac {\left (\frac {b}{\sqrt {b^2-4 a c}}+1\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 a}-\frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\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 a}+\frac {e^d \operatorname {ExpIntegralEi}(e x)}{a} \]
[In]
[Out]
Rule 2209
Rule 2302
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {e^{d+e x}}{a x}+\frac {e^{d+e x} (-b-c x)}{a \left (a+b x+c x^2\right )}\right ) \, dx \\ & = \frac {\int \frac {e^{d+e x}}{x} \, dx}{a}+\frac {\int \frac {e^{d+e x} (-b-c x)}{a+b x+c x^2} \, dx}{a} \\ & = \frac {e^d \text {Ei}(e x)}{a}+\frac {\int \left (\frac {\left (-c-\frac {b c}{\sqrt {b^2-4 a c}}\right ) e^{d+e x}}{b-\sqrt {b^2-4 a c}+2 c x}+\frac {\left (-c+\frac {b c}{\sqrt {b^2-4 a c}}\right ) e^{d+e x}}{b+\sqrt {b^2-4 a c}+2 c x}\right ) \, dx}{a} \\ & = \frac {e^d \text {Ei}(e x)}{a}-\frac {\left (c \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right )\right ) \int \frac {e^{d+e x}}{b+\sqrt {b^2-4 a c}+2 c x} \, dx}{a}-\frac {\left (c \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right )\right ) \int \frac {e^{d+e x}}{b-\sqrt {b^2-4 a c}+2 c x} \, dx}{a} \\ & = \frac {e^d \text {Ei}(e x)}{a}-\frac {\left (1+\frac {b}{\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 a}-\frac {\left (1-\frac {b}{\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 a} \\ \end{align*}
Time = 0.37 (sec) , antiderivative size = 163, normalized size of antiderivative = 0.96 \[ \int \frac {e^{d+e x}}{x \left (a+b x+c x^2\right )} \, dx=\frac {e^d \left (2 \operatorname {ExpIntegralEi}(e x)+\frac {e^{-\frac {\left (b+\sqrt {b^2-4 a c}\right ) e}{2 c}} \left (-\left (\left (b+\sqrt {b^2-4 a c}\right ) e^{\frac {\sqrt {b^2-4 a c} e}{c}} \operatorname {ExpIntegralEi}\left (\frac {e \left (b-\sqrt {b^2-4 a c}+2 c x\right )}{2 c}\right )\right )+\left (b-\sqrt {b^2-4 a c}\right ) \operatorname {ExpIntegralEi}\left (\frac {e \left (b+\sqrt {b^2-4 a c}+2 c x\right )}{2 c}\right )\right )}{\sqrt {b^2-4 a c}}\right )}{2 a} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(362\) vs. \(2(142)=284\).
Time = 0.44 (sec) , antiderivative size = 363, normalized size of antiderivative = 2.15
method | result | size |
risch | \(-\frac {{\mathrm e}^{d} \operatorname {Ei}_{1}\left (-e x \right )}{a}+\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 e}{2 a \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 ) b e}{2 a \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 )}{2 a}+\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 )}{2 a}\) | \(363\) |
derivativedivides | \(-\frac {{\mathrm e}^{d} \operatorname {Ei}_{1}\left (-e x \right )}{a}+\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 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 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 ) \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}+{\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 ) \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 a \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}\) | \(369\) |
default | \(-\frac {{\mathrm e}^{d} \operatorname {Ei}_{1}\left (-e x \right )}{a}+\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 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 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 ) \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}+{\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 ) \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}{2 a \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}\) | \(369\) |
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 241, normalized size of antiderivative = 1.43 \[ \int \frac {e^{d+e x}}{x \left (a+b x+c x^2\right )} \, dx=\frac {2 \, {\left (b^{2} - 4 \, a c\right )} e {\rm Ei}\left (e x\right ) e^{d} - {\left (b c \sqrt {\frac {{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}} + {\left (b^{2} - 4 \, a c\right )} e\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 (b c \sqrt {\frac {{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}} - {\left (b^{2} - 4 \, a c\right )} e\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 (a b^{2} - 4 \, a^{2} c\right )} e} \]
[In]
[Out]
\[ \int \frac {e^{d+e x}}{x \left (a+b x+c x^2\right )} \, dx=e^{d} \int \frac {e^{e x}}{a x + b x^{2} + c x^{3}}\, dx \]
[In]
[Out]
\[ \int \frac {e^{d+e x}}{x \left (a+b x+c x^2\right )} \, dx=\int { \frac {e^{\left (e x + d\right )}}{{\left (c x^{2} + b x + a\right )} x} \,d x } \]
[In]
[Out]
\[ \int \frac {e^{d+e x}}{x \left (a+b x+c x^2\right )} \, dx=\int { \frac {e^{\left (e x + d\right )}}{{\left (c x^{2} + b x + a\right )} x} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {e^{d+e x}}{x \left (a+b x+c x^2\right )} \, dx=\int \frac {{\mathrm {e}}^{d+e\,x}}{x\,\left (c\,x^2+b\,x+a\right )} \,d x \]
[In]
[Out]