Optimal. Leaf size=118 \[ \frac {e^{a+\frac {b \sqrt {-c}}{\sqrt {d}}} \text {Ei}\left (-\frac {b \left (\sqrt {-c}-\sqrt {d} x\right )}{\sqrt {d}}\right )}{2 \sqrt {-c} \sqrt {d}}-\frac {e^{a-\frac {b \sqrt {-c}}{\sqrt {d}}} \text {Ei}\left (\frac {b \left (\sqrt {-c}+\sqrt {d} x\right )}{\sqrt {d}}\right )}{2 \sqrt {-c} \sqrt {d}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 118, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {2301, 2209}
\begin {gather*} \frac {e^{a+\frac {b \sqrt {-c}}{\sqrt {d}}} \text {Ei}\left (-\frac {b \left (\sqrt {-c}-\sqrt {d} x\right )}{\sqrt {d}}\right )}{2 \sqrt {-c} \sqrt {d}}-\frac {e^{a-\frac {b \sqrt {-c}}{\sqrt {d}}} \text {Ei}\left (\frac {b \left (\sqrt {d} x+\sqrt {-c}\right )}{\sqrt {d}}\right )}{2 \sqrt {-c} \sqrt {d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2209
Rule 2301
Rubi steps
\begin {align*} \int \frac {e^{a+b x}}{c+d x^2} \, dx &=\int \left (\frac {\sqrt {-c} e^{a+b x}}{2 c \left (\sqrt {-c}-\sqrt {d} x\right )}+\frac {\sqrt {-c} e^{a+b x}}{2 c \left (\sqrt {-c}+\sqrt {d} x\right )}\right ) \, dx\\ &=-\frac {\int \frac {e^{a+b x}}{\sqrt {-c}-\sqrt {d} x} \, dx}{2 \sqrt {-c}}-\frac {\int \frac {e^{a+b x}}{\sqrt {-c}+\sqrt {d} x} \, dx}{2 \sqrt {-c}}\\ &=\frac {e^{a+\frac {b \sqrt {-c}}{\sqrt {d}}} \text {Ei}\left (-\frac {b \left (\sqrt {-c}-\sqrt {d} x\right )}{\sqrt {d}}\right )}{2 \sqrt {-c} \sqrt {d}}-\frac {e^{a-\frac {b \sqrt {-c}}{\sqrt {d}}} \text {Ei}\left (\frac {b \left (\sqrt {-c}+\sqrt {d} x\right )}{\sqrt {d}}\right )}{2 \sqrt {-c} \sqrt {d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.07, size = 94, normalized size = 0.80 \begin {gather*} -\frac {i e^{a-\frac {i b \sqrt {c}}{\sqrt {d}}} \left (e^{\frac {2 i b \sqrt {c}}{\sqrt {d}}} \text {Ei}\left (b \left (-\frac {i \sqrt {c}}{\sqrt {d}}+x\right )\right )-\text {Ei}\left (b \left (\frac {i \sqrt {c}}{\sqrt {d}}+x\right )\right )\right )}{2 \sqrt {c} \sqrt {d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 102, normalized size = 0.86
method | result | size |
derivativedivides | \(-\frac {{\mathrm e}^{\frac {b \sqrt {-c d}+a d}{d}} \expIntegral \left (1, \frac {b \sqrt {-c d}+a d -\left (b x +a \right ) d}{d}\right )-{\mathrm e}^{-\frac {b \sqrt {-c d}-a d}{d}} \expIntegral \left (1, -\frac {b \sqrt {-c d}-a d +\left (b x +a \right ) d}{d}\right )}{2 \sqrt {-c d}}\) | \(102\) |
default | \(-\frac {{\mathrm e}^{\frac {b \sqrt {-c d}+a d}{d}} \expIntegral \left (1, \frac {b \sqrt {-c d}+a d -\left (b x +a \right ) d}{d}\right )-{\mathrm e}^{-\frac {b \sqrt {-c d}-a d}{d}} \expIntegral \left (1, -\frac {b \sqrt {-c d}-a d +\left (b x +a \right ) d}{d}\right )}{2 \sqrt {-c d}}\) | \(102\) |
risch | \(\frac {{\mathrm e}^{\frac {-b \sqrt {-c d}+a d}{d}} \expIntegral \left (1, -\frac {b \sqrt {-c d}-a d +\left (b x +a \right ) d}{d}\right )}{2 \sqrt {-c d}}-\frac {{\mathrm e}^{\frac {b \sqrt {-c d}+a d}{d}} \expIntegral \left (1, \frac {b \sqrt {-c d}+a d -\left (b x +a \right ) d}{d}\right )}{2 \sqrt {-c d}}\) | \(106\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 98, normalized size = 0.83 \begin {gather*} -\frac {\sqrt {-\frac {b^{2} c}{d}} {\rm Ei}\left (b x - \sqrt {-\frac {b^{2} c}{d}}\right ) e^{\left (a + \sqrt {-\frac {b^{2} c}{d}}\right )} - \sqrt {-\frac {b^{2} c}{d}} {\rm Ei}\left (b x + \sqrt {-\frac {b^{2} c}{d}}\right ) e^{\left (a - \sqrt {-\frac {b^{2} c}{d}}\right )}}{2 \, b c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} e^{a} \int \frac {e^{b x}}{c + d x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {e}}^{a+b\,x}}{d\,x^2+c} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________