Integrand size = 13, antiderivative size = 79 \[ \int f^{a+\frac {b}{x}} x^2 \, dx=\frac {1}{3} f^{a+\frac {b}{x}} x^3+\frac {1}{6} b f^{a+\frac {b}{x}} x^2 \log (f)+\frac {1}{6} b^2 f^{a+\frac {b}{x}} x \log ^2(f)-\frac {1}{6} b^3 f^a \operatorname {ExpIntegralEi}\left (\frac {b \log (f)}{x}\right ) \log ^3(f) \] Output:
1/3*f^(a+b/x)*x^3+1/6*b*f^(a+b/x)*x^2*ln(f)+1/6*b^2*f^(a+b/x)*x*ln(f)^2-1/ 6*b^3*f^a*Ei(b*ln(f)/x)*ln(f)^3
Time = 0.03 (sec) , antiderivative size = 53, normalized size of antiderivative = 0.67 \[ \int f^{a+\frac {b}{x}} x^2 \, dx=\frac {1}{6} f^a \left (-b^3 \operatorname {ExpIntegralEi}\left (\frac {b \log (f)}{x}\right ) \log ^3(f)+f^{b/x} x \left (2 x^2+b x \log (f)+b^2 \log ^2(f)\right )\right ) \] Input:
Integrate[f^(a + b/x)*x^2,x]
Output:
(f^a*(-(b^3*ExpIntegralEi[(b*Log[f])/x]*Log[f]^3) + f^(b/x)*x*(2*x^2 + b*x *Log[f] + b^2*Log[f]^2)))/6
Time = 0.44 (sec) , antiderivative size = 76, normalized size of antiderivative = 0.96, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {2643, 2643, 2635, 2639}
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 f^{a+\frac {b}{x}} \, dx\) |
\(\Big \downarrow \) 2643 |
\(\displaystyle \frac {1}{3} b \log (f) \int f^{a+\frac {b}{x}} xdx+\frac {1}{3} x^3 f^{a+\frac {b}{x}}\) |
\(\Big \downarrow \) 2643 |
\(\displaystyle \frac {1}{3} b \log (f) \left (\frac {1}{2} b \log (f) \int f^{a+\frac {b}{x}}dx+\frac {1}{2} x^2 f^{a+\frac {b}{x}}\right )+\frac {1}{3} x^3 f^{a+\frac {b}{x}}\) |
\(\Big \downarrow \) 2635 |
\(\displaystyle \frac {1}{3} b \log (f) \left (\frac {1}{2} b \log (f) \left (b \log (f) \int \frac {f^{a+\frac {b}{x}}}{x}dx+x f^{a+\frac {b}{x}}\right )+\frac {1}{2} x^2 f^{a+\frac {b}{x}}\right )+\frac {1}{3} x^3 f^{a+\frac {b}{x}}\) |
\(\Big \downarrow \) 2639 |
\(\displaystyle \frac {1}{3} b \log (f) \left (\frac {1}{2} b \log (f) \left (x f^{a+\frac {b}{x}}-b f^a \log (f) \operatorname {ExpIntegralEi}\left (\frac {b \log (f)}{x}\right )\right )+\frac {1}{2} x^2 f^{a+\frac {b}{x}}\right )+\frac {1}{3} x^3 f^{a+\frac {b}{x}}\) |
Input:
Int[f^(a + b/x)*x^2,x]
Output:
(f^(a + b/x)*x^3)/3 + (b*Log[f]*((f^(a + b/x)*x^2)/2 + (b*Log[f]*(f^(a + b /x)*x - b*f^a*ExpIntegralEi[(b*Log[f])/x]*Log[f]))/2))/3
Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_)), x_Symbol] :> Simp[(c + d*x)*(F^(a + b*(c + d*x)^n)/d), x] - Simp[b*n*Log[F] Int[(c + d*x)^n*F^(a + b*(c + d*x)^n), x], x] /; FreeQ[{F, a, b, c, d}, x] && IntegerQ[2/n] && ILtQ[n, 0]
Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_))/((e_.) + (f_.)*(x_)), x_ Symbol] :> Simp[F^a*(ExpIntegralEi[b*(c + d*x)^n*Log[F]]/(f*n)), x] /; Free Q[{F, a, b, c, d, e, f, n}, x] && EqQ[d*e - c*f, 0]
Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_))*((c_.) + (d_.)*(x_))^(m_ .), x_Symbol] :> Simp[(c + d*x)^(m + 1)*(F^(a + b*(c + d*x)^n)/(d*(m + 1))) , x] - Simp[b*n*(Log[F]/(m + 1)) Int[(c + d*x)^(m + n)*F^(a + b*(c + d*x) ^n), x], x] /; FreeQ[{F, a, b, c, d}, x] && IntegerQ[2*((m + 1)/n)] && LtQ[ -4, (m + 1)/n, 5] && IntegerQ[n] && ((GtQ[n, 0] && LtQ[m, -1]) || (GtQ[-n, 0] && LeQ[-n, m + 1]))
Time = 0.08 (sec) , antiderivative size = 77, normalized size of antiderivative = 0.97
method | result | size |
risch | \(\frac {f^{a} \operatorname {expIntegral}_{1}\left (-\frac {b \ln \left (f \right )}{x}\right ) b^{3} \ln \left (f \right )^{3}}{6}+\frac {f^{a} f^{\frac {b}{x}} x \,b^{2} \ln \left (f \right )^{2}}{6}+\frac {f^{a} f^{\frac {b}{x}} x^{2} b \ln \left (f \right )}{6}+\frac {f^{a} f^{\frac {b}{x}} x^{3}}{3}\) | \(77\) |
meijerg | \(f^{a} \ln \left (f \right )^{3} b^{3} \left (\frac {x^{3}}{3 b^{3} \ln \left (f \right )^{3}}+\frac {x^{2}}{2 b^{2} \ln \left (f \right )^{2}}+\frac {x}{2 b \ln \left (f \right )}+\frac {11}{36}+\frac {\ln \left (x \right )}{6}-\frac {\ln \left (-b \right )}{6}-\frac {\ln \left (\ln \left (f \right )\right )}{6}-\frac {x^{3} \left (\frac {22 b^{3} \ln \left (f \right )^{3}}{x^{3}}+\frac {36 b^{2} \ln \left (f \right )^{2}}{x^{2}}+\frac {36 b \ln \left (f \right )}{x}+24\right )}{72 b^{3} \ln \left (f \right )^{3}}+\frac {x^{3} \left (\frac {4 b^{2} \ln \left (f \right )^{2}}{x^{2}}+\frac {4 b \ln \left (f \right )}{x}+8\right ) {\mathrm e}^{\frac {b \ln \left (f \right )}{x}}}{24 b^{3} \ln \left (f \right )^{3}}+\frac {\ln \left (-\frac {b \ln \left (f \right )}{x}\right )}{6}+\frac {\operatorname {expIntegral}_{1}\left (-\frac {b \ln \left (f \right )}{x}\right )}{6}\right )\) | \(174\) |
Input:
int(f^(a+b/x)*x^2,x,method=_RETURNVERBOSE)
Output:
1/6*f^a*Ei(1,-b*ln(f)/x)*b^3*ln(f)^3+1/6*f^a*f^(b/x)*x*b^2*ln(f)^2+1/6*f^a *f^(b/x)*x^2*b*ln(f)+1/3*f^a*f^(b/x)*x^3
Time = 0.08 (sec) , antiderivative size = 56, normalized size of antiderivative = 0.71 \[ \int f^{a+\frac {b}{x}} x^2 \, dx=-\frac {1}{6} \, b^{3} f^{a} {\rm Ei}\left (\frac {b \log \left (f\right )}{x}\right ) \log \left (f\right )^{3} + \frac {1}{6} \, {\left (b^{2} x \log \left (f\right )^{2} + b x^{2} \log \left (f\right ) + 2 \, x^{3}\right )} f^{\frac {a x + b}{x}} \] Input:
integrate(f^(a+b/x)*x^2,x, algorithm="fricas")
Output:
-1/6*b^3*f^a*Ei(b*log(f)/x)*log(f)^3 + 1/6*(b^2*x*log(f)^2 + b*x^2*log(f) + 2*x^3)*f^((a*x + b)/x)
\[ \int f^{a+\frac {b}{x}} x^2 \, dx=\int f^{a + \frac {b}{x}} x^{2}\, dx \] Input:
integrate(f**(a+b/x)*x**2,x)
Output:
Integral(f**(a + b/x)*x**2, x)
Time = 0.08 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.28 \[ \int f^{a+\frac {b}{x}} x^2 \, dx=-b^{3} f^{a} \Gamma \left (-3, -\frac {b \log \left (f\right )}{x}\right ) \log \left (f\right )^{3} \] Input:
integrate(f^(a+b/x)*x^2,x, algorithm="maxima")
Output:
-b^3*f^a*gamma(-3, -b*log(f)/x)*log(f)^3
\[ \int f^{a+\frac {b}{x}} x^2 \, dx=\int { f^{a + \frac {b}{x}} x^{2} \,d x } \] Input:
integrate(f^(a+b/x)*x^2,x, algorithm="giac")
Output:
integrate(f^(a + b/x)*x^2, x)
Time = 0.11 (sec) , antiderivative size = 66, normalized size of antiderivative = 0.84 \[ \int f^{a+\frac {b}{x}} x^2 \, dx=b^3\,f^a\,{\ln \left (f\right )}^3\,\left (f^{b/x}\,\left (\frac {x^2}{6\,b^2\,{\ln \left (f\right )}^2}+\frac {x^3}{3\,b^3\,{\ln \left (f\right )}^3}+\frac {x}{6\,b\,\ln \left (f\right )}\right )+\frac {\mathrm {expint}\left (-\frac {b\,\ln \left (f\right )}{x}\right )}{6}\right ) \] Input:
int(f^(a + b/x)*x^2,x)
Output:
b^3*f^a*log(f)^3*(f^(b/x)*(x^2/(6*b^2*log(f)^2) + x^3/(3*b^3*log(f)^3) + x /(6*b*log(f))) + expint(-(b*log(f))/x)/6)
Time = 0.17 (sec) , antiderivative size = 65, normalized size of antiderivative = 0.82 \[ \int f^{a+\frac {b}{x}} x^2 \, dx=\frac {f^{a} \left (-\mathit {ei} \left (\frac {\mathrm {log}\left (f \right ) b}{x}\right ) \mathrm {log}\left (f \right )^{3} b^{3}+f^{\frac {b}{x}} \mathrm {log}\left (f \right )^{2} b^{2} x +f^{\frac {b}{x}} \mathrm {log}\left (f \right ) b \,x^{2}+2 f^{\frac {b}{x}} x^{3}\right )}{6} \] Input:
int(f^(a+b/x)*x^2,x)
Output:
(f**a*( - ei((log(f)*b)/x)*log(f)**3*b**3 + f**(b/x)*log(f)**2*b**2*x + f* *(b/x)*log(f)*b*x**2 + 2*f**(b/x)*x**3))/6