\(\int x^2 \Gamma (0,a x) \, dx\) [2]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [A] (verified)
Fricas [F(-2)]
Sympy [A] (verification not implemented)
Maxima [F]
Giac [F]
Mupad [B] (verification not implemented)
Reduce [F]

Optimal result

Integrand size = 9, antiderivative size = 25 \[ \int x^2 \Gamma (0,a x) \, dx=\frac {1}{3} x^3 \Gamma (0,a x)-\frac {\Gamma (3,a x)}{3 a^3} \] Output:

1/3*x^3*Ei(1,a*x)-2/3*exp(-a*x)*(1+a*x+1/2*a^2*x^2)/a^3
 

Mathematica [A] (verified)

Time = 0.00 (sec) , antiderivative size = 25, normalized size of antiderivative = 1.00 \[ \int x^2 \Gamma (0,a x) \, dx=\frac {1}{3} x^3 \Gamma (0,a x)-\frac {\Gamma (3,a x)}{3 a^3} \] Input:

Integrate[x^2*Gamma[0, a*x],x]
 

Output:

(x^3*Gamma[0, a*x])/3 - Gamma[3, a*x]/(3*a^3)
 

Rubi [A] (verified)

Time = 0.18 (sec) , antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {7116}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int x^2 \Gamma (0,a x) \, dx\)

\(\Big \downarrow \) 7116

\(\displaystyle \frac {1}{3} x^3 \Gamma (0,a x)-\frac {\Gamma (3,a x)}{3 a^3}\)

Input:

Int[x^2*Gamma[0, a*x],x]
 

Output:

(x^3*Gamma[0, a*x])/3 - Gamma[3, a*x]/(3*a^3)
 

Defintions of rubi rules used

rule 7116
Int[Gamma[n_, (b_.)*(x_)]*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[(d*x)^(m + 
1)*(Gamma[n, b*x]/(d*(m + 1))), x] - Simp[(d*x)^m*(Gamma[m + n + 1, b*x]/(b 
*(m + 1)*(b*x)^m)), x] /; FreeQ[{b, d, m, n}, x] && NeQ[m, -1]
 
Maple [A] (verified)

Time = 0.72 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.84

method result size
parts \(\frac {x^{3} \operatorname {expIntegral}_{1}\left (x a \right )}{3}-\frac {x^{2} a^{2} {\mathrm e}^{-x a}+2 x a \,{\mathrm e}^{-x a}+2 \,{\mathrm e}^{-x a}}{3 a^{3}}\) \(46\)
derivativedivides \(\frac {\frac {x^{3} a^{3} \operatorname {expIntegral}_{1}\left (x a \right )}{3}-\frac {x^{2} a^{2} {\mathrm e}^{-x a}}{3}-\frac {2 x a \,{\mathrm e}^{-x a}}{3}-\frac {2 \,{\mathrm e}^{-x a}}{3}}{a^{3}}\) \(48\)
default \(\frac {\frac {x^{3} a^{3} \operatorname {expIntegral}_{1}\left (x a \right )}{3}-\frac {x^{2} a^{2} {\mathrm e}^{-x a}}{3}-\frac {2 x a \,{\mathrm e}^{-x a}}{3}-\frac {2 \,{\mathrm e}^{-x a}}{3}}{a^{3}}\) \(48\)
parallelrisch \(\frac {x^{3} a^{3} \operatorname {expIntegral}_{1}\left (x a \right )-x^{2} a^{2} {\mathrm e}^{-x a}-2 x a \,{\mathrm e}^{-x a}-2 \,{\mathrm e}^{-x a}}{3 a^{3}}\) \(48\)
meijerg \(\frac {-\frac {\left (-\frac {1}{3}+\gamma +\ln \left (x \right )+\ln \left (a \right )\right ) x^{3} a^{3}}{3}-\frac {x^{3} a^{3}}{9}+\frac {2}{3}-\frac {\left (4 a^{2} x^{2}+8 x a +8\right ) {\mathrm e}^{-x a}}{12}-\frac {a^{3} x^{3} \left (-\gamma -\ln \left (x a \right )-\operatorname {expIntegral}_{1}\left (x a \right )\right )}{3}}{a^{3}}\) \(76\)

Input:

int(x^2*Ei(1,x*a),x,method=_RETURNVERBOSE)
 

Output:

1/3*x^3*Ei(1,x*a)-1/3/a^3*(x^2*a^2*exp(-x*a)+2*x*a*exp(-x*a)+2*exp(-x*a))
 

Fricas [F(-2)]

Exception generated. \[ \int x^2 \Gamma (0,a x) \, dx=\text {Exception raised: TypeError} \] Input:

integrate(x^2*exp_integral_e(1,a*x),x, algorithm="fricas")
 

Output:

Exception raised: TypeError >> An error occurred when FriCAS evaluated ((x 
)^(((2)::EXPR INT)))*(exp_integral_e(((1)::EXPR INT),(a)*(x))):   There ar 
e no library operations named exp_integral_e       Use HyperDoc Browse or 
issue
 

Sympy [A] (verification not implemented)

Time = 0.31 (sec) , antiderivative size = 54, normalized size of antiderivative = 2.16 \[ \int x^2 \Gamma (0,a x) \, dx=\begin {cases} \frac {x^{3} \operatorname {E}_{1}\left (a x\right )}{3} - \frac {x^{2} e^{- a x}}{3 a} - \frac {2 x e^{- a x}}{3 a^{2}} - \frac {2 e^{- a x}}{3 a^{3}} & \text {for}\: a \neq 0 \\\frac {x^{3} \operatorname {E}_{1}\left (0\right )}{3} & \text {otherwise} \end {cases} \] Input:

integrate(x**2*expint(1,a*x),x)
 

Output:

Piecewise((x**3*expint(1, a*x)/3 - x**2*exp(-a*x)/(3*a) - 2*x*exp(-a*x)/(3 
*a**2) - 2*exp(-a*x)/(3*a**3), Ne(a, 0)), (x**3*expint(1, 0)/3, True))
 

Maxima [F]

\[ \int x^2 \Gamma (0,a x) \, dx=\int { x^{2} E_{1}\left (a x\right ) \,d x } \] Input:

integrate(x^2*exp_integral_e(1,a*x),x, algorithm="maxima")
 

Output:

integrate(x^2*exp_integral_e(1, a*x), x)
 

Giac [F]

\[ \int x^2 \Gamma (0,a x) \, dx=\int { x^{2} E_{1}\left (a x\right ) \,d x } \] Input:

integrate(x^2*exp_integral_e(1,a*x),x, algorithm="giac")
 

Output:

integrate(x^2*exp_integral_e(1, a*x), x)
 

Mupad [B] (verification not implemented)

Time = 0.04 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.76 \[ \int x^2 \Gamma (0,a x) \, dx=\frac {x^3\,\mathrm {expint}\left (a\,x\right )}{3}-\frac {x^3\,{\mathrm {e}}^{-a\,x}\,\left (\frac {1}{a\,x}+\frac {2}{a^2\,x^2}+\frac {2}{a^3\,x^3}\right )}{3} \] Input:

int(x^2*expint(a*x),x)
 

Output:

(x^3*expint(a*x))/3 - (x^3*exp(-a*x)*(1/(a*x) + 2/(a^2*x^2) + 2/(a^3*x^3)) 
)/3
 

Reduce [F]

\[ \int x^2 \Gamma (0,a x) \, dx=\int \mathit {ei} \left (1, a x \right ) x^{2}d x \] Input:

int(x^2*Ei(1,a*x),x)
 

Output:

int(ei(1,a*x)*x**2,x)