3.120 \(\int f^{a+\frac {b}{x}} \, dx\)

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

[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 = {2206, 2210} \[ x f^{a+\frac {b}{x}}-b f^a \log (f) \text {Ei}\left (\frac {b \log (f)}{x}\right ) \]

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 2206

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 2210

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 \[ x f^{a+\frac {b}{x}}-b f^a \log (f) \text {Ei}\left (\frac {b \log (f)}{x}\right ) \]

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]

________________________________________________________________________________________

fricas [A]  time = 0.42, size = 30, normalized size = 1.07 \[ -b f^{a} {\rm Ei}\left (\frac {b \log \relax (f)}{x}\right ) \log \relax (f) + f^{\frac {a x + b}{x}} x \]

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

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int f^{a + \frac {b}{x}}\,{d x} \]

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)

________________________________________________________________________________________

maple [A]  time = 0.08, size = 31, normalized size = 1.11 \[ b \,f^{a} \Ei \left (1, -\frac {b \ln \relax (f )}{x}\right ) \ln \relax (f )+x \,f^{a} f^{\frac {b}{x}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 1.58, size = 18, normalized size = 0.64 \[ -b f^{a} \Gamma \left (-1, -\frac {b \log \relax (f)}{x}\right ) \log \relax (f) \]

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)

________________________________________________________________________________________

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

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))

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int f^{a + \frac {b}{x}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________