3.176 \(\int f^{a+b x^n} x^2 \, dx\)

Optimal. Leaf size=39 \[ -\frac{x^3 f^a \left (-b \log (f) x^n\right )^{-3/n} \text{Gamma}\left (\frac{3}{n},-b \log (f) x^n\right )}{n} \]

[Out]

-((f^a*x^3*Gamma[3/n, -(b*x^n*Log[f])])/(n*(-(b*x^n*Log[f]))^(3/n)))

________________________________________________________________________________________

Rubi [A]  time = 0.0252264, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077, Rules used = {2218} \[ -\frac{x^3 f^a \left (-b \log (f) x^n\right )^{-3/n} \text{Gamma}\left (\frac{3}{n},-b \log (f) x^n\right )}{n} \]

Antiderivative was successfully verified.

[In]

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

[Out]

-((f^a*x^3*Gamma[3/n, -(b*x^n*Log[f])])/(n*(-(b*x^n*Log[f]))^(3/n)))

Rule 2218

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

Rubi steps

\begin{align*} \int f^{a+b x^n} x^2 \, dx &=-\frac{f^a x^3 \Gamma \left (\frac{3}{n},-b x^n \log (f)\right ) \left (-b x^n \log (f)\right )^{-3/n}}{n}\\ \end{align*}

Mathematica [A]  time = 0.005968, size = 39, normalized size = 1. \[ -\frac{x^3 f^a \left (-b \log (f) x^n\right )^{-3/n} \text{Gamma}\left (\frac{3}{n},-b \log (f) x^n\right )}{n} \]

Antiderivative was successfully verified.

[In]

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

[Out]

-((f^a*x^3*Gamma[3/n, -(b*x^n*Log[f])])/(n*(-(b*x^n*Log[f]))^(3/n)))

________________________________________________________________________________________

Maple [F]  time = 0.044, size = 0, normalized size = 0. \begin{align*} \int{f}^{a+b{x}^{n}}{x}^{2}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [A]  time = 1.24579, size = 55, normalized size = 1.41 \begin{align*} -\frac{f^{a} x^{3} \Gamma \left (\frac{3}{n}, -b x^{n} \log \left (f\right )\right )}{\left (-b x^{n} \log \left (f\right )\right )^{\frac{3}{n}} n} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-f^a*x^3*gamma(3/n, -b*x^n*log(f))/((-b*x^n*log(f))^(3/n)*n)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (f^{b x^{n} + a} x^{2}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integral(f^(b*x^n + a)*x^2, x)

________________________________________________________________________________________

Sympy [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Exception raised: TypeError

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int f^{b x^{n} + a} x^{2}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(f^(b*x^n + a)*x^2, x)