Optimal. Leaf size=184 \[ \frac {i \text {Li}_3\left (-\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^3(f)}-\frac {i \text {Li}_3\left (\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^3(f)}-\frac {i x \text {Li}_2\left (-\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^2(f)}+\frac {i x \text {Li}_2\left (\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^2(f)}+\frac {x^2 \tan ^{-1}\left (\frac {\sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log (f)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 184, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 8, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {2249, 205, 2245, 12, 5143, 2531, 2282, 6589} \[ -\frac {i x \text {PolyLog}\left (2,-\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^2(f)}+\frac {i x \text {PolyLog}\left (2,\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^2(f)}+\frac {i \text {PolyLog}\left (3,-\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^3(f)}-\frac {i \text {PolyLog}\left (3,\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^3(f)}+\frac {x^2 \tan ^{-1}\left (\frac {\sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log (f)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 205
Rule 2245
Rule 2249
Rule 2282
Rule 2531
Rule 5143
Rule 6589
Rubi steps
\begin {align*} \int \frac {f^x x^2}{a+b f^{2 x}} \, dx &=\frac {x^2 \tan ^{-1}\left (\frac {\sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log (f)}-2 \int \frac {x \tan ^{-1}\left (\frac {\sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log (f)} \, dx\\ &=\frac {x^2 \tan ^{-1}\left (\frac {\sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log (f)}-\frac {2 \int x \tan ^{-1}\left (\frac {\sqrt {b} f^x}{\sqrt {a}}\right ) \, dx}{\sqrt {a} \sqrt {b} \log (f)}\\ &=\frac {x^2 \tan ^{-1}\left (\frac {\sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log (f)}-\frac {i \int x \log \left (1-\frac {i \sqrt {b} f^x}{\sqrt {a}}\right ) \, dx}{\sqrt {a} \sqrt {b} \log (f)}+\frac {i \int x \log \left (1+\frac {i \sqrt {b} f^x}{\sqrt {a}}\right ) \, dx}{\sqrt {a} \sqrt {b} \log (f)}\\ &=\frac {x^2 \tan ^{-1}\left (\frac {\sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log (f)}-\frac {i x \text {Li}_2\left (-\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^2(f)}+\frac {i x \text {Li}_2\left (\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^2(f)}+\frac {i \int \text {Li}_2\left (-\frac {i \sqrt {b} f^x}{\sqrt {a}}\right ) \, dx}{\sqrt {a} \sqrt {b} \log ^2(f)}-\frac {i \int \text {Li}_2\left (\frac {i \sqrt {b} f^x}{\sqrt {a}}\right ) \, dx}{\sqrt {a} \sqrt {b} \log ^2(f)}\\ &=\frac {x^2 \tan ^{-1}\left (\frac {\sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log (f)}-\frac {i x \text {Li}_2\left (-\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^2(f)}+\frac {i x \text {Li}_2\left (\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^2(f)}+\frac {i \operatorname {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {i \sqrt {b} x}{\sqrt {a}}\right )}{x} \, dx,x,f^x\right )}{\sqrt {a} \sqrt {b} \log ^3(f)}-\frac {i \operatorname {Subst}\left (\int \frac {\text {Li}_2\left (\frac {i \sqrt {b} x}{\sqrt {a}}\right )}{x} \, dx,x,f^x\right )}{\sqrt {a} \sqrt {b} \log ^3(f)}\\ &=\frac {x^2 \tan ^{-1}\left (\frac {\sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log (f)}-\frac {i x \text {Li}_2\left (-\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^2(f)}+\frac {i x \text {Li}_2\left (\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^2(f)}+\frac {i \text {Li}_3\left (-\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^3(f)}-\frac {i \text {Li}_3\left (\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \log ^3(f)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 168, normalized size = 0.91 \[ \frac {i \left (2 \text {Li}_3\left (-\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )-2 \text {Li}_3\left (\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )-2 x \log (f) \text {Li}_2\left (-\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )+2 x \log (f) \text {Li}_2\left (\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )+x^2 \log ^2(f) \log \left (1-\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )-x^2 \log ^2(f) \log \left (1+\frac {i \sqrt {b} f^x}{\sqrt {a}}\right )\right )}{2 \sqrt {a} \sqrt {b} \log ^3(f)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [C] time = 0.42, size = 176, normalized size = 0.96 \[ -\frac {x^{2} \sqrt {-\frac {b}{a}} \log \left (f^{x} \sqrt {-\frac {b}{a}} + 1\right ) \log \relax (f)^{2} - x^{2} \sqrt {-\frac {b}{a}} \log \left (-f^{x} \sqrt {-\frac {b}{a}} + 1\right ) \log \relax (f)^{2} - 2 \, x \sqrt {-\frac {b}{a}} {\rm Li}_2\left (f^{x} \sqrt {-\frac {b}{a}}\right ) \log \relax (f) + 2 \, x \sqrt {-\frac {b}{a}} {\rm Li}_2\left (-f^{x} \sqrt {-\frac {b}{a}}\right ) \log \relax (f) + 2 \, \sqrt {-\frac {b}{a}} {\rm polylog}\left (3, f^{x} \sqrt {-\frac {b}{a}}\right ) - 2 \, \sqrt {-\frac {b}{a}} {\rm polylog}\left (3, -f^{x} \sqrt {-\frac {b}{a}}\right )}{2 \, b \log \relax (f)^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {f^{x} x^{2}}{b f^{2 \, x} + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.05, size = 0, normalized size = 0.00 \[ \int \frac {x^{2} f^{x}}{b \,f^{2 x}+a}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {f^{x} x^{2}}{b f^{2 \, x} + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {f^x\,x^2}{a+b\,f^{2\,x}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {f^{x} x^{2}}{a + b f^{2 x}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________