Optimal. Leaf size=115 \[ \frac {e^{-a-\frac {b^2}{4 (1-c)}} \sqrt {\pi } \text {Erfi}\left (\frac {b-2 (1-c) x}{2 \sqrt {1-c}}\right )}{4 \sqrt {1-c}}+\frac {e^{a-\frac {b^2}{4 (1+c)}} \sqrt {\pi } \text {Erfi}\left (\frac {b+2 (1+c) x}{2 \sqrt {1+c}}\right )}{4 \sqrt {1+c}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 115, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {5623, 2266,
2235} \begin {gather*} \frac {\sqrt {\pi } e^{-a-\frac {b^2}{4 (1-c)}} \text {Erfi}\left (\frac {b-2 (1-c) x}{2 \sqrt {1-c}}\right )}{4 \sqrt {1-c}}+\frac {\sqrt {\pi } e^{a-\frac {b^2}{4 (c+1)}} \text {Erfi}\left (\frac {b+2 (c+1) x}{2 \sqrt {c+1}}\right )}{4 \sqrt {c+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2235
Rule 2266
Rule 5623
Rubi steps
\begin {align*} \int e^{x^2} \sinh \left (a+b x+c x^2\right ) \, dx &=\int \left (-\frac {1}{2} e^{-a-b x+(1-c) x^2}+\frac {1}{2} e^{a+b x+(1+c) x^2}\right ) \, dx\\ &=-\left (\frac {1}{2} \int e^{-a-b x+(1-c) x^2} \, dx\right )+\frac {1}{2} \int e^{a+b x+(1+c) x^2} \, dx\\ &=-\left (\frac {1}{2} e^{-a-\frac {b^2}{4 (1-c)}} \int e^{\frac {(-b+2 (1-c) x)^2}{4 (1-c)}} \, dx\right )+\frac {1}{2} e^{a-\frac {b^2}{4 (1+c)}} \int e^{\frac {(b+2 (1+c) x)^2}{4 (1+c)}} \, dx\\ &=\frac {e^{-a-\frac {b^2}{4 (1-c)}} \sqrt {\pi } \text {erfi}\left (\frac {b-2 (1-c) x}{2 \sqrt {1-c}}\right )}{4 \sqrt {1-c}}+\frac {e^{a-\frac {b^2}{4 (1+c)}} \sqrt {\pi } \text {erfi}\left (\frac {b+2 (1+c) x}{2 \sqrt {1+c}}\right )}{4 \sqrt {1+c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.29, size = 123, normalized size = 1.07 \begin {gather*} \frac {e^{-\frac {b^2}{4+4 c}} \sqrt {\pi } \left (-\sqrt {-1+c} (1+c) e^{\frac {b^2 c}{2 \left (-1+c^2\right )}} \text {Erf}\left (\frac {b+2 (-1+c) x}{2 \sqrt {-1+c}}\right ) (\cosh (a)-\sinh (a))+(-1+c) \sqrt {1+c} \text {Erfi}\left (\frac {b+2 (1+c) x}{2 \sqrt {1+c}}\right ) (\cosh (a)+\sinh (a))\right )}{4 \left (-1+c^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 6.53, size = 105, normalized size = 0.91
method | result | size |
risch | \(-\frac {\sqrt {\pi }\, {\mathrm e}^{-\frac {4 a c -b^{2}-4 a}{4 \left (c -1\right )}} \erf \left (\sqrt {c -1}\, x +\frac {b}{2 \sqrt {c -1}}\right )}{4 \sqrt {c -1}}-\frac {\sqrt {\pi }\, {\mathrm e}^{\frac {4 a c -b^{2}+4 a}{4+4 c}} \erf \left (-\sqrt {-c -1}\, x +\frac {b}{2 \sqrt {-c -1}}\right )}{4 \sqrt {-c -1}}\) | \(105\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 89, normalized size = 0.77 \begin {gather*} \frac {\sqrt {\pi } \operatorname {erf}\left (\sqrt {-c - 1} x - \frac {b}{2 \, \sqrt {-c - 1}}\right ) e^{\left (a - \frac {b^{2}}{4 \, {\left (c + 1\right )}}\right )}}{4 \, \sqrt {-c - 1}} - \frac {\sqrt {\pi } \operatorname {erf}\left (\sqrt {c - 1} x + \frac {b}{2 \, \sqrt {c - 1}}\right ) e^{\left (-a + \frac {b^{2}}{4 \, {\left (c - 1\right )}}\right )}}{4 \, \sqrt {c - 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 164, normalized size = 1.43 \begin {gather*} -\frac {\sqrt {\pi } {\left ({\left (c + 1\right )} \cosh \left (-\frac {b^{2} - 4 \, a c + 4 \, a}{4 \, {\left (c - 1\right )}}\right ) - {\left (c + 1\right )} \sinh \left (-\frac {b^{2} - 4 \, a c + 4 \, a}{4 \, {\left (c - 1\right )}}\right )\right )} \sqrt {c - 1} \operatorname {erf}\left (\frac {2 \, {\left (c - 1\right )} x + b}{2 \, \sqrt {c - 1}}\right ) + \sqrt {\pi } {\left ({\left (c - 1\right )} \cosh \left (-\frac {b^{2} - 4 \, a c - 4 \, a}{4 \, {\left (c + 1\right )}}\right ) + {\left (c - 1\right )} \sinh \left (-\frac {b^{2} - 4 \, a c - 4 \, a}{4 \, {\left (c + 1\right )}}\right )\right )} \sqrt {-c - 1} \operatorname {erf}\left (\frac {{\left (2 \, {\left (c + 1\right )} x + b\right )} \sqrt {-c - 1}}{2 \, {\left (c + 1\right )}}\right )}{4 \, {\left (c^{2} - 1\right )}} \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*} \int e^{x^{2}} \sinh {\left (a + b x + c x^{2} \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 101, normalized size = 0.88 \begin {gather*} -\frac {\sqrt {\pi } \operatorname {erf}\left (-\frac {1}{2} \, \sqrt {-c - 1} {\left (2 \, x + \frac {b}{c + 1}\right )}\right ) e^{\left (-\frac {b^{2} - 4 \, a c - 4 \, a}{4 \, {\left (c + 1\right )}}\right )}}{4 \, \sqrt {-c - 1}} + \frac {\sqrt {\pi } \operatorname {erf}\left (-\frac {1}{2} \, \sqrt {c - 1} {\left (2 \, x + \frac {b}{c - 1}\right )}\right ) e^{\left (\frac {b^{2} - 4 \, a c + 4 \, a}{4 \, {\left (c - 1\right )}}\right )}}{4 \, \sqrt {c - 1}} \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 \mathrm {sinh}\left (c\,x^2+b\,x+a\right )\,{\mathrm {e}}^{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________