Optimal. Leaf size=65 \[ -\frac {e^{-a} \sqrt {\pi } \text {Erfi}\left (\sqrt {1-c} x\right )}{4 \sqrt {1-c}}+\frac {e^a \sqrt {\pi } \text {Erfi}\left (\sqrt {1+c} x\right )}{4 \sqrt {1+c}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 65, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {5623, 2235}
\begin {gather*} \frac {\sqrt {\pi } e^a \text {Erfi}\left (\sqrt {c+1} x\right )}{4 \sqrt {c+1}}-\frac {\sqrt {\pi } e^{-a} \text {Erfi}\left (\sqrt {1-c} x\right )}{4 \sqrt {1-c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2235
Rule 5623
Rubi steps
\begin {align*} \int e^{x^2} \sinh \left (a+c x^2\right ) \, dx &=\int \left (-\frac {1}{2} e^{-a+(1-c) x^2}+\frac {1}{2} e^{a+(1+c) x^2}\right ) \, dx\\ &=-\left (\frac {1}{2} \int e^{-a+(1-c) x^2} \, dx\right )+\frac {1}{2} \int e^{a+(1+c) x^2} \, dx\\ &=-\frac {e^{-a} \sqrt {\pi } \text {erfi}\left (\sqrt {1-c} x\right )}{4 \sqrt {1-c}}+\frac {e^a \sqrt {\pi } \text {erfi}\left (\sqrt {1+c} x\right )}{4 \sqrt {1+c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 72, normalized size = 1.11 \begin {gather*} \frac {\sqrt {\pi } \left (-\sqrt {-1+c} (1+c) \text {Erf}\left (\sqrt {-1+c} x\right ) (\cosh (a)-\sinh (a))+(-1+c) \sqrt {1+c} \text {Erfi}\left (\sqrt {1+c} x\right ) (\cosh (a)+\sinh (a))\right )}{4 \left (-1+c^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 6.68, size = 48, normalized size = 0.74
method | result | size |
risch | \(-\frac {\sqrt {\pi }\, {\mathrm e}^{-a} \erf \left (\sqrt {c -1}\, x \right )}{4 \sqrt {c -1}}+\frac {\sqrt {\pi }\, {\mathrm e}^{a} \erf \left (\sqrt {-c -1}\, x \right )}{4 \sqrt {-c -1}}\) | \(48\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 47, normalized size = 0.72 \begin {gather*} -\frac {\sqrt {\pi } \operatorname {erf}\left (\sqrt {c - 1} x\right ) e^{\left (-a\right )}}{4 \, \sqrt {c - 1}} + \frac {\sqrt {\pi } \operatorname {erf}\left (\sqrt {-c - 1} x\right ) e^{a}}{4 \, \sqrt {-c - 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 75, normalized size = 1.15 \begin {gather*} -\frac {\sqrt {\pi } {\left ({\left (c + 1\right )} \cosh \left (a\right ) - {\left (c + 1\right )} \sinh \left (a\right )\right )} \sqrt {c - 1} \operatorname {erf}\left (\sqrt {c - 1} x\right ) + \sqrt {\pi } {\left ({\left (c - 1\right )} \cosh \left (a\right ) + {\left (c - 1\right )} \sinh \left (a\right )\right )} \sqrt {-c - 1} \operatorname {erf}\left (\sqrt {-c - 1} x\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 + c x^{2} \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 49, normalized size = 0.75 \begin {gather*} \frac {\sqrt {\pi } \operatorname {erf}\left (-\sqrt {c - 1} x\right ) e^{\left (-a\right )}}{4 \, \sqrt {c - 1}} - \frac {\sqrt {\pi } \operatorname {erf}\left (-\sqrt {-c - 1} x\right ) e^{a}}{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.02 \begin {gather*} \int {\mathrm {e}}^{x^2}\,\mathrm {sinh}\left (c\,x^2+a\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________