Optimal. Leaf size=79 \[ \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 \text {Ei}\left (\frac {b \log (f)}{x}\right ) \log ^3(f) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {2245, 2237,
2241} \begin {gather*} -\frac {1}{6} b^3 f^a \log ^3(f) \text {Ei}\left (\frac {b \log (f)}{x}\right )+\frac {1}{6} b^2 x \log ^2(f) f^{a+\frac {b}{x}}+\frac {1}{3} x^3 f^{a+\frac {b}{x}}+\frac {1}{6} b x^2 \log (f) f^{a+\frac {b}{x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2237
Rule 2241
Rule 2245
Rubi steps
\begin {align*} \int f^{a+\frac {b}{x}} x^2 \, dx &=\frac {1}{3} f^{a+\frac {b}{x}} x^3+\frac {1}{3} (b \log (f)) \int f^{a+\frac {b}{x}} x \, 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} \left (b^2 \log ^2(f)\right ) \int f^{a+\frac {b}{x}} \, 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} \left (b^3 \log ^3(f)\right ) \int \frac {f^{a+\frac {b}{x}}}{x} \, 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 \text {Ei}\left (\frac {b \log (f)}{x}\right ) \log ^3(f)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 53, normalized size = 0.67 \begin {gather*} \frac {1}{6} f^a \left (-b^3 \text {Ei}\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 ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 77, normalized size = 0.97
method | result | size |
risch | \(\frac {f^{a} f^{\frac {b}{x}} x^{3}}{3}+\frac {b \ln \left (f \right ) f^{a} f^{\frac {b}{x}} x^{2}}{6}+\frac {b^{2} \ln \left (f \right )^{2} f^{a} f^{\frac {b}{x}} x}{6}+\frac {b^{3} \ln \left (f \right )^{3} f^{a} \expIntegral \left (1, -\frac {b \ln \left (f \right )}{x}\right )}{6}\) | \(77\) |
meijerg | \(f^{a} \ln \left (f \right )^{3} b^{3} \left (-\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 {\expIntegral \left (1, -\frac {b \ln \left (f \right )}{x}\right )}{6}+\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}}{3 b^{3} \ln \left (f \right )^{3}}+\frac {x^{2}}{2 b^{2} \ln \left (f \right )^{2}}+\frac {x}{2 \ln \left (f \right ) b}\right )\) | \(174\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.32, size = 22, normalized size = 0.28 \begin {gather*} -b^{3} f^{a} \Gamma \left (-3, -\frac {b \log \left (f\right )}{x}\right ) \log \left (f\right )^{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.46, size = 56, normalized size = 0.71 \begin {gather*} -\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}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int f^{a + \frac {b}{x}} x^{2}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
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]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.60, size = 66, normalized size = 0.84 \begin {gather*} 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 ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________