Optimal. Leaf size=66 \[ \frac {2 \sqrt {\pi } \sqrt {b} f^a \sqrt {\log (f)} \text {erfi}\left (\sqrt {b} \sqrt {\log (f)} x^{n/2}\right )}{n}-\frac {2 x^{-n/2} f^{a+b x^n}}{n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {2215, 2211, 2204} \[ \frac {2 \sqrt {\pi } \sqrt {b} f^a \sqrt {\log (f)} \text {Erfi}\left (\sqrt {b} \sqrt {\log (f)} x^{n/2}\right )}{n}-\frac {2 x^{-n/2} f^{a+b x^n}}{n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2204
Rule 2211
Rule 2215
Rubi steps
\begin {align*} \int f^{a+b x^n} x^{-1-\frac {n}{2}} \, dx &=-\frac {2 f^{a+b x^n} x^{-n/2}}{n}+(2 b \log (f)) \int f^{a+b x^n} x^{\frac {1}{2} (-2+n)} \, dx\\ &=-\frac {2 f^{a+b x^n} x^{-n/2}}{n}+\frac {(4 b \log (f)) \operatorname {Subst}\left (\int f^{a+b x^2} \, dx,x,x^{1+\frac {1}{2} (-2+n)}\right )}{n}\\ &=-\frac {2 f^{a+b x^n} x^{-n/2}}{n}+\frac {2 \sqrt {b} f^a \sqrt {\pi } \text {erfi}\left (\sqrt {b} x^{n/2} \sqrt {\log (f)}\right ) \sqrt {\log (f)}}{n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 39, normalized size = 0.59 \[ -\frac {f^a x^{-n/2} \sqrt {-b \log (f) x^n} \Gamma \left (-\frac {1}{2},-b x^n \log (f)\right )}{n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 83, normalized size = 1.26 \[ -\frac {2 \, {\left (\sqrt {\pi } \sqrt {-b \log \relax (f)} f^{a} \operatorname {erf}\left (\frac {\sqrt {-b \log \relax (f)}}{x x^{-\frac {1}{2} \, n - 1}}\right ) + x x^{-\frac {1}{2} \, n - 1} e^{\left (\frac {a x^{2} x^{-n - 2} \log \relax (f) + b \log \relax (f)}{x^{2} x^{-n - 2}}\right )}\right )}}{n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int f^{b x^{n} + a} x^{-\frac {1}{2} \, n - 1}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.12, size = 59, normalized size = 0.89 \[ \frac {2 \sqrt {\pi }\, b \,f^{a} \erf \left (\sqrt {-b \ln \relax (f )}\, x^{\frac {n}{2}}\right ) \ln \relax (f )}{\sqrt {-b \ln \relax (f )}\, n}-\frac {2 f^{a} f^{b \,x^{n}} x^{-\frac {n}{2}}}{n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.98, size = 35, normalized size = 0.53 \[ -\frac {\sqrt {-b x^{n} \log \relax (f)} f^{a} \Gamma \left (-\frac {1}{2}, -b x^{n} \log \relax (f)\right )}{n x^{\frac {1}{2} \, n}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {f^{a+b\,x^n}}{x^{\frac {n}{2}+1}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________