3.630 \(\int e^{a+b x+c x^2} (b+2 c x) \sqrt {a+b x+c x^2} \, dx\)

Optimal. Leaf size=52 \[ e^{a+b x+c x^2} \sqrt {a+b x+c x^2}-\frac {1}{2} \sqrt {\pi } \text {erfi}\left (\sqrt {a+b x+c x^2}\right ) \]

[Out]

-1/2*erfi((c*x^2+b*x+a)^(1/2))*Pi^(1/2)+exp(c*x^2+b*x+a)*(c*x^2+b*x+a)^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.23, antiderivative size = 52, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {6707, 2176, 2180, 2204} \[ e^{a+b x+c x^2} \sqrt {a+b x+c x^2}-\frac {1}{2} \sqrt {\pi } \text {Erfi}\left (\sqrt {a+b x+c x^2}\right ) \]

Antiderivative was successfully verified.

[In]

Int[E^(a + b*x + c*x^2)*(b + 2*c*x)*Sqrt[a + b*x + c*x^2],x]

[Out]

E^(a + b*x + c*x^2)*Sqrt[a + b*x + c*x^2] - (Sqrt[Pi]*Erfi[Sqrt[a + b*x + c*x^2]])/2

Rule 2176

Int[((b_.)*(F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[((c + d*x)^m
*(b*F^(g*(e + f*x)))^n)/(f*g*n*Log[F]), x] - Dist[(d*m)/(f*g*n*Log[F]), Int[(c + d*x)^(m - 1)*(b*F^(g*(e + f*x
)))^n, x], x] /; FreeQ[{F, b, c, d, e, f, g, n}, x] && GtQ[m, 0] && IntegerQ[2*m] &&  !$UseGamma === True

Rule 2180

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/Sqrt[(c_.) + (d_.)*(x_)], x_Symbol] :> Dist[2/d, Subst[Int[F^(g*(e - (c*
f)/d) + (f*g*x^2)/d), x], x, Sqrt[c + d*x]], x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !$UseGamma === True

Rule 2204

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[(F^a*Sqrt[Pi]*Erfi[(c + d*x)*Rt[b*Log[F], 2
]])/(2*d*Rt[b*Log[F], 2]), x] /; FreeQ[{F, a, b, c, d}, x] && PosQ[b]

Rule 6707

Int[(F_)^(v_)*(u_)*(w_)^(m_.), x_Symbol] :> With[{q = DerivativeDivides[v, u, x]}, Dist[q, Subst[Int[x^m*F^x,
x], x, v], x] /;  !FalseQ[q]] /; FreeQ[{F, m}, x] && EqQ[w, v]

Rubi steps

\begin {align*} \int e^{a+b x+c x^2} (b+2 c x) \sqrt {a+b x+c x^2} \, dx &=\operatorname {Subst}\left (\int e^x \sqrt {x} \, dx,x,a+b x+c x^2\right )\\ &=e^{a+b x+c x^2} \sqrt {a+b x+c x^2}-\frac {1}{2} \operatorname {Subst}\left (\int \frac {e^x}{\sqrt {x}} \, dx,x,a+b x+c x^2\right )\\ &=e^{a+b x+c x^2} \sqrt {a+b x+c x^2}-\operatorname {Subst}\left (\int e^{x^2} \, dx,x,\sqrt {a+b x+c x^2}\right )\\ &=e^{a+b x+c x^2} \sqrt {a+b x+c x^2}-\frac {1}{2} \sqrt {\pi } \text {erfi}\left (\sqrt {a+b x+c x^2}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 46, normalized size = 0.88 \[ \frac {\sqrt {a+x (b+c x)} \Gamma \left (\frac {3}{2},-a-x (b+c x)\right )}{\sqrt {-a-x (b+c x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[E^(a + b*x + c*x^2)*(b + 2*c*x)*Sqrt[a + b*x + c*x^2],x]

[Out]

(Sqrt[a + x*(b + c*x)]*Gamma[3/2, -a - x*(b + c*x)])/Sqrt[-a - x*(b + c*x)]

________________________________________________________________________________________

fricas [F]  time = 0.40, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\sqrt {c x^{2} + b x + a} {\left (2 \, c x + b\right )} e^{\left (c x^{2} + b x + a\right )}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(c*x^2+b*x+a)*(2*c*x+b)*(c*x^2+b*x+a)^(1/2),x, algorithm="fricas")

[Out]

integral(sqrt(c*x^2 + b*x + a)*(2*c*x + b)*e^(c*x^2 + b*x + a), x)

________________________________________________________________________________________

giac [A]  time = 0.31, size = 47, normalized size = 0.90 \[ -\frac {1}{2} \, \sqrt {\pi } i \operatorname {erf}\left (-\sqrt {c x^{2} + b x + a} i\right ) + \sqrt {c x^{2} + b x + a} e^{\left (c x^{2} + b x + a\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(c*x^2+b*x+a)*(2*c*x+b)*(c*x^2+b*x+a)^(1/2),x, algorithm="giac")

[Out]

-1/2*sqrt(pi)*i*erf(-sqrt(c*x^2 + b*x + a)*i) + sqrt(c*x^2 + b*x + a)*e^(c*x^2 + b*x + a)

________________________________________________________________________________________

maple [A]  time = 0.04, size = 44, normalized size = 0.85 \[ -\frac {\sqrt {\pi }\, \erfi \left (\sqrt {c \,x^{2}+b x +a}\right )}{2}+\sqrt {c \,x^{2}+b x +a}\, {\mathrm e}^{c \,x^{2}+b x +a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(c*x^2+b*x+a)*(2*c*x+b)*(c*x^2+b*x+a)^(1/2),x)

[Out]

-1/2*erfi((c*x^2+b*x+a)^(1/2))*Pi^(1/2)+(c*x^2+b*x+a)^(1/2)*exp(c*x^2+b*x+a)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {c x^{2} + b x + a} {\left (2 \, c x + b\right )} e^{\left (c x^{2} + b x + a\right )}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(c*x^2+b*x+a)*(2*c*x+b)*(c*x^2+b*x+a)^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(c*x^2 + b*x + a)*(2*c*x + b)*e^(c*x^2 + b*x + a), x)

________________________________________________________________________________________

mupad [B]  time = 3.51, size = 76, normalized size = 1.46 \[ \frac {\sqrt {\pi }\,\mathrm {erfc}\left (\sqrt {-c\,x^2-b\,x-a}\right )\,\sqrt {c\,x^2+b\,x+a}}{2\,\sqrt {-c\,x^2-b\,x-a}}+{\mathrm {e}}^{b\,x}\,{\mathrm {e}}^a\,{\mathrm {e}}^{c\,x^2}\,\sqrt {c\,x^2+b\,x+a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(a + b*x + c*x^2)*(b + 2*c*x)*(a + b*x + c*x^2)^(1/2),x)

[Out]

(pi^(1/2)*erfc((- a - b*x - c*x^2)^(1/2))*(a + b*x + c*x^2)^(1/2))/(2*(- a - b*x - c*x^2)^(1/2)) + exp(b*x)*ex
p(a)*exp(c*x^2)*(a + b*x + c*x^2)^(1/2)

________________________________________________________________________________________

sympy [A]  time = 5.80, size = 78, normalized size = 1.50 \[ \frac {\left (\sqrt {- a - b x - c x^{2}} e^{a + b x + c x^{2}} + \frac {\sqrt {\pi } \operatorname {erfc}{\left (\sqrt {- a - b x - c x^{2}} \right )}}{2}\right ) \sqrt {a + b x + c x^{2}}}{\sqrt {- a - b x - c x^{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(c*x**2+b*x+a)*(2*c*x+b)*(c*x**2+b*x+a)**(1/2),x)

[Out]

(sqrt(-a - b*x - c*x**2)*exp(a + b*x + c*x**2) + sqrt(pi)*erfc(sqrt(-a - b*x - c*x**2))/2)*sqrt(a + b*x + c*x*
*2)/sqrt(-a - b*x - c*x**2)

________________________________________________________________________________________