Optimal. Leaf size=66 \[ -\frac{\sqrt{\pi } b e^{a+\frac{b^2}{4 c}} \text{Erf}\left (\frac{b-2 c x}{2 \sqrt{c}}\right )}{4 c^{3/2}}-\frac{e^{a+b x-c x^2}}{2 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0323039, antiderivative size = 66, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {2240, 2234, 2205} \[ -\frac{\sqrt{\pi } b e^{a+\frac{b^2}{4 c}} \text{Erf}\left (\frac{b-2 c x}{2 \sqrt{c}}\right )}{4 c^{3/2}}-\frac{e^{a+b x-c x^2}}{2 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2240
Rule 2234
Rule 2205
Rubi steps
\begin{align*} \int e^{a+b x-c x^2} x \, dx &=-\frac{e^{a+b x-c x^2}}{2 c}+\frac{b \int e^{a+b x-c x^2} \, dx}{2 c}\\ &=-\frac{e^{a+b x-c x^2}}{2 c}+\frac{\left (b e^{a+\frac{b^2}{4 c}}\right ) \int e^{-\frac{(b-2 c x)^2}{4 c}} \, dx}{2 c}\\ &=-\frac{e^{a+b x-c x^2}}{2 c}-\frac{b e^{a+\frac{b^2}{4 c}} \sqrt{\pi } \text{erf}\left (\frac{b-2 c x}{2 \sqrt{c}}\right )}{4 c^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.0464995, size = 68, normalized size = 1.03 \[ \frac{\sqrt{\pi } b e^{a+\frac{b^2}{4 c}} \text{Erf}\left (\frac{2 c x-b}{2 \sqrt{c}}\right )}{4 c^{3/2}}-\frac{e^{a+b x-c x^2}}{2 c} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 53, normalized size = 0.8 \begin{align*} -{\frac{{{\rm e}^{-c{x}^{2}+bx+a}}}{2\,c}}-{\frac{b\sqrt{\pi }}{4}{{\rm e}^{a+{\frac{{b}^{2}}{4\,c}}}}{\it Erf} \left ( -\sqrt{c}x+{\frac{b}{2}{\frac{1}{\sqrt{c}}}} \right ){c}^{-{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.12839, size = 132, normalized size = 2. \begin{align*} \frac{{\left (\frac{\sqrt{\pi }{\left (2 \, c x - b\right )} b{\left (\operatorname{erf}\left (\frac{1}{2} \, \sqrt{\frac{{\left (2 \, c x - b\right )}^{2}}{c}}\right ) - 1\right )}}{\sqrt{\frac{{\left (2 \, c x - b\right )}^{2}}{c}} \left (-c\right )^{\frac{3}{2}}} - \frac{2 \, c e^{\left (-\frac{{\left (2 \, c x - b\right )}^{2}}{4 \, c}\right )}}{\left (-c\right )^{\frac{3}{2}}}\right )} e^{\left (a + \frac{b^{2}}{4 \, c}\right )}}{4 \, \sqrt{-c}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.5284, size = 149, normalized size = 2.26 \begin{align*} \frac{\sqrt{\pi } b \sqrt{c} \operatorname{erf}\left (\frac{2 \, c x - b}{2 \, \sqrt{c}}\right ) e^{\left (\frac{b^{2} + 4 \, a c}{4 \, c}\right )} - 2 \, c e^{\left (-c x^{2} + b x + a\right )}}{4 \, c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} e^{a} \int x e^{b x} e^{- c x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.3829, size = 78, normalized size = 1.18 \begin{align*} -\frac{\frac{\sqrt{\pi } b \operatorname{erf}\left (-\frac{1}{2} \, \sqrt{c}{\left (2 \, x - \frac{b}{c}\right )}\right ) e^{\left (\frac{b^{2} + 4 \, a c}{4 \, c}\right )}}{\sqrt{c}} + 2 \, e^{\left (-c x^{2} + b x + a\right )}}{4 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]