3.197 \(\int f^{c (a+b x)^2} x \, dx\)

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

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.06, antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {2226, 2204, 2209} \[ \frac {f^{c (a+b x)^2}}{2 b^2 c \log (f)}-\frac {\sqrt {\pi } a \text {Erfi}\left (\sqrt {c} \sqrt {\log (f)} (a+b x)\right )}{2 b^2 \sqrt {c} \sqrt {\log (f)}} \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

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 2209

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_))*((e_.) + (f_.)*(x_))^(m_.), x_Symbol] :> Simp[((e + f*x)^n*
F^(a + b*(c + d*x)^n))/(b*f*n*(c + d*x)^n*Log[F]), x] /; FreeQ[{F, a, b, c, d, e, f, n}, x] && EqQ[m, n - 1] &
& EqQ[d*e - c*f, 0]

Rule 2226

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_))*(u_), x_Symbol] :> Int[ExpandLinearProduct[F^(a + b*(c + d*
x)^n), u, c, d, x], x] /; FreeQ[{F, a, b, c, d, n}, x] && PolynomialQ[u, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 63, normalized size = 0.93 \[ \frac {f^{c (a+b x)^2}-\sqrt {\pi } a \sqrt {c} \sqrt {\log (f)} \text {erfi}\left (\sqrt {c} \sqrt {\log (f)} (a+b x)\right )}{2 b^2 c \log (f)} \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.45, size = 72, normalized size = 1.06 \[ \frac {\sqrt {\pi } \sqrt {-b^{2} c \log \relax (f)} a \operatorname {erf}\left (\frac {\sqrt {-b^{2} c \log \relax (f)} {\left (b x + a\right )}}{b}\right ) + b f^{b^{2} c x^{2} + 2 \, a b c x + a^{2} c}}{2 \, b^{3} c \log \relax (f)} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2*(sqrt(pi)*sqrt(-b^2*c*log(f))*a*erf(sqrt(-b^2*c*log(f))*(b*x + a)/b) + b*f^(b^2*c*x^2 + 2*a*b*c*x + a^2*c)
)/(b^3*c*log(f))

________________________________________________________________________________________

giac [A]  time = 0.25, size = 77, normalized size = 1.13 \[ \frac {\frac {\sqrt {\pi } a \operatorname {erf}\left (-\sqrt {-c \log \relax (f)} b {\left (x + \frac {a}{b}\right )}\right )}{\sqrt {-c \log \relax (f)} b} + \frac {e^{\left (b^{2} c x^{2} \log \relax (f) + 2 \, a b c x \log \relax (f) + a^{2} c \log \relax (f)\right )}}{b c \log \relax (f)}}{2 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.05, size = 80, normalized size = 1.18 \[ \frac {\sqrt {\pi }\, a \erf \left (\frac {a c \ln \relax (f )}{\sqrt {-c \ln \relax (f )}}-\sqrt {-c \ln \relax (f )}\, b x \right )}{2 \sqrt {-c \ln \relax (f )}\, b^{2}}+\frac {f^{a^{2} c} f^{b^{2} c \,x^{2}} f^{2 a b c x}}{2 b^{2} c \ln \relax (f )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(f^(c*(b*x+a)^2)*x,x)

[Out]

1/2/b^2/c/ln(f)*f^(b^2*c*x^2)*f^(2*a*b*c*x)*f^(a^2*c)+1/2*a/b^2*Pi^(1/2)/(-c*ln(f))^(1/2)*erf(1/(-c*ln(f))^(1/
2)*a*c*ln(f)-(-c*ln(f))^(1/2)*b*x)

________________________________________________________________________________________

maxima [B]  time = 1.27, size = 131, normalized size = 1.93 \[ -\frac {\frac {\sqrt {\pi } {\left (b^{2} c x + a b c\right )} a c {\left (\operatorname {erf}\left (\sqrt {-\frac {{\left (b^{2} c x + a b c\right )}^{2} \log \relax (f)}{b^{2} c}}\right ) - 1\right )} \log \relax (f)^{2}}{\left (c \log \relax (f)\right )^{\frac {3}{2}} b^{2} \sqrt {-\frac {{\left (b^{2} c x + a b c\right )}^{2} \log \relax (f)}{b^{2} c}}} - \frac {c f^{\frac {{\left (b^{2} c x + a b c\right )}^{2}}{b^{2} c}} \log \relax (f)}{\left (c \log \relax (f)\right )^{\frac {3}{2}} b}}{2 \, \sqrt {c \log \relax (f)} b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/2*(sqrt(pi)*(b^2*c*x + a*b*c)*a*c*(erf(sqrt(-(b^2*c*x + a*b*c)^2*log(f)/(b^2*c))) - 1)*log(f)^2/((c*log(f))
^(3/2)*b^2*sqrt(-(b^2*c*x + a*b*c)^2*log(f)/(b^2*c))) - c*f^((b^2*c*x + a*b*c)^2/(b^2*c))*log(f)/((c*log(f))^(
3/2)*b))/(sqrt(c*log(f))*b)

________________________________________________________________________________________

mupad [B]  time = 3.48, size = 66, normalized size = 0.97 \[ \frac {f^{b^2\,c\,x^2}\,f^{a^2\,c}\,f^{2\,a\,b\,c\,x}}{2\,b^2\,c\,\ln \relax (f)}-\frac {a\,\sqrt {\pi }\,\mathrm {erfi}\left (\sqrt {c\,\ln \relax (f)}\,\left (a+b\,x\right )\right )}{2\,b^2\,\sqrt {c\,\ln \relax (f)}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(f^(c*(a + b*x)^2)*x,x)

[Out]

(f^(b^2*c*x^2)*f^(a^2*c)*f^(2*a*b*c*x))/(2*b^2*c*log(f)) - (a*pi^(1/2)*erfi((c*log(f))^(1/2)*(a + b*x)))/(2*b^
2*(c*log(f))^(1/2))

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int f^{c \left (a + b x\right )^{2}} x\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(f**(c*(b*x+a)**2)*x,x)

[Out]

Integral(f**(c*(a + b*x)**2)*x, x)

________________________________________________________________________________________