3.2.20 \(\int f^{a+\frac {b}{x}} \, dx\) [120]

Optimal. Leaf size=28 \[ f^{a+\frac {b}{x}} x-b f^a \text {Ei}\left (\frac {b \log (f)}{x}\right ) \log (f) \]

[Out]

f^(a+b/x)*x-b*f^a*Ei(b*ln(f)/x)*ln(f)

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2237, 2241} \begin {gather*} x f^{a+\frac {b}{x}}-b f^a \log (f) \text {Ei}\left (\frac {b \log (f)}{x}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[f^(a + b/x),x]

[Out]

f^(a + b/x)*x - b*f^a*ExpIntegralEi[(b*Log[f])/x]*Log[f]

Rule 2237

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_)), x_Symbol] :> Simp[(c + d*x)*(F^(a + b*(c + d*x)^n)/d), x]
- Dist[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]

Rule 2241

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] /; FreeQ[{F, a, b, c, d, e, f, n}, x] && EqQ[d*e - c*f, 0]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 28, normalized size = 1.00 \begin {gather*} f^{a+\frac {b}{x}} x-b f^a \text {Ei}\left (\frac {b \log (f)}{x}\right ) \log (f) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[f^(a + b/x),x]

[Out]

f^(a + b/x)*x - b*f^a*ExpIntegralEi[(b*Log[f])/x]*Log[f]

________________________________________________________________________________________

Maple [A]
time = 0.06, size = 31, normalized size = 1.11

method result size
risch \(b \ln \left (f \right ) f^{a} \expIntegral \left (1, -\frac {b \ln \left (f \right )}{x}\right )+f^{a} f^{\frac {b}{x}} x\) \(31\)
meijerg \(f^{a} b \ln \left (f \right ) \left (-\frac {x \left (2+\frac {2 b \ln \left (f \right )}{x}\right )}{2 b \ln \left (f \right )}+\frac {x \,{\mathrm e}^{\frac {b \ln \left (f \right )}{x}}}{b \ln \left (f \right )}+\ln \left (-\frac {b \ln \left (f \right )}{x}\right )+\expIntegral \left (1, -\frac {b \ln \left (f \right )}{x}\right )+1+\ln \left (x \right )-\ln \left (-b \right )-\ln \left (\ln \left (f \right )\right )+\frac {x}{\ln \left (f \right ) b}\right )\) \(88\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(f^(a+b/x),x,method=_RETURNVERBOSE)

[Out]

b*ln(f)*f^a*Ei(1,-b*ln(f)/x)+f^a*f^(b/x)*x

________________________________________________________________________________________

Maxima [A]
time = 0.32, size = 18, normalized size = 0.64 \begin {gather*} -b f^{a} \Gamma \left (-1, -\frac {b \log \left (f\right )}{x}\right ) \log \left (f\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(f^(a+b/x),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.39, size = 30, normalized size = 1.07 \begin {gather*} -b f^{a} {\rm Ei}\left (\frac {b \log \left (f\right )}{x}\right ) \log \left (f\right ) + f^{\frac {a x + b}{x}} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(f^(a+b/x),x, algorithm="fricas")

[Out]

-b*f^a*Ei(b*log(f)/x)*log(f) + f^((a*x + b)/x)*x

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int f^{a + \frac {b}{x}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(f**(a+b/x),x)

[Out]

Integral(f**(a + b/x), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(f^(a+b/x),x, algorithm="giac")

[Out]

integrate(f^(a + b/x), x)

________________________________________________________________________________________

Mupad [B]
time = 3.60, size = 27, normalized size = 0.96 \begin {gather*} f^a\,\left (f^{b/x}\,x+b\,\ln \left (f\right )\,\mathrm {expint}\left (-\frac {b\,\ln \left (f\right )}{x}\right )\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(f^(a + b/x),x)

[Out]

f^a*(f^(b/x)*x + b*log(f)*expint(-(b*log(f))/x))

________________________________________________________________________________________