Optimal. Leaf size=56 \[ -\frac {4 a}{9 x}+\frac {4}{9} a^{3/2} \tanh ^{-1}\left (\sqrt {a} x\right )+\frac {2 \log \left (1-a x^2\right )}{9 x^3}-\frac {\text {PolyLog}\left (2,a x^2\right )}{3 x^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {6726, 2505,
331, 212} \begin {gather*} \frac {4}{9} a^{3/2} \tanh ^{-1}\left (\sqrt {a} x\right )-\frac {\text {Li}_2\left (a x^2\right )}{3 x^3}+\frac {2 \log \left (1-a x^2\right )}{9 x^3}-\frac {4 a}{9 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 331
Rule 2505
Rule 6726
Rubi steps
\begin {align*} \int \frac {\text {Li}_2\left (a x^2\right )}{x^4} \, dx &=-\frac {\text {Li}_2\left (a x^2\right )}{3 x^3}-\frac {2}{3} \int \frac {\log \left (1-a x^2\right )}{x^4} \, dx\\ &=\frac {2 \log \left (1-a x^2\right )}{9 x^3}-\frac {\text {Li}_2\left (a x^2\right )}{3 x^3}+\frac {1}{9} (4 a) \int \frac {1}{x^2 \left (1-a x^2\right )} \, dx\\ &=-\frac {4 a}{9 x}+\frac {2 \log \left (1-a x^2\right )}{9 x^3}-\frac {\text {Li}_2\left (a x^2\right )}{3 x^3}+\frac {1}{9} \left (4 a^2\right ) \int \frac {1}{1-a x^2} \, dx\\ &=-\frac {4 a}{9 x}+\frac {4}{9} a^{3/2} \tanh ^{-1}\left (\sqrt {a} x\right )+\frac {2 \log \left (1-a x^2\right )}{9 x^3}-\frac {\text {Li}_2\left (a x^2\right )}{3 x^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 0.01, size = 47, normalized size = 0.84 \begin {gather*} -\frac {4 a x^2 \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};a x^2\right )-2 \log \left (1-a x^2\right )+3 \text {PolyLog}\left (2,a x^2\right )}{9 x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 47, normalized size = 0.84
method | result | size |
default | \(-\frac {\polylog \left (2, a \,x^{2}\right )}{3 x^{3}}+\frac {2 \ln \left (-a \,x^{2}+1\right )}{9 x^{3}}+\frac {4 a \left (\arctanh \left (x \sqrt {a}\right ) \sqrt {a}-\frac {1}{x}\right )}{9}\) | \(47\) |
meijerg | \(-\frac {a^{2} \left (-\frac {8}{9 x \sqrt {-a}}-\frac {4 x a \left (\ln \left (1-\sqrt {a \,x^{2}}\right )-\ln \left (1+\sqrt {a \,x^{2}}\right )\right )}{9 \sqrt {-a}\, \sqrt {a \,x^{2}}}+\frac {4 \ln \left (-a \,x^{2}+1\right )}{9 x^{3} \sqrt {-a}\, a}-\frac {2 \polylog \left (2, a \,x^{2}\right )}{3 x^{3} \sqrt {-a}\, a}\right )}{2 \sqrt {-a}}\) | \(105\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.47, size = 57, normalized size = 1.02 \begin {gather*} -\frac {2}{9} \, a^{\frac {3}{2}} \log \left (\frac {a x - \sqrt {a}}{a x + \sqrt {a}}\right ) - \frac {4 \, a x^{2} + 3 \, {\rm Li}_2\left (a x^{2}\right ) - 2 \, \log \left (-a x^{2} + 1\right )}{9 \, x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.54, size = 114, normalized size = 2.04 \begin {gather*} \left [\frac {2 \, a^{\frac {3}{2}} x^{3} \log \left (\frac {a x^{2} + 2 \, \sqrt {a} x + 1}{a x^{2} - 1}\right ) - 4 \, a x^{2} - 3 \, {\rm Li}_2\left (a x^{2}\right ) + 2 \, \log \left (-a x^{2} + 1\right )}{9 \, x^{3}}, -\frac {4 \, \sqrt {-a} a x^{3} \arctan \left (\sqrt {-a} x\right ) + 4 \, a x^{2} + 3 \, {\rm Li}_2\left (a x^{2}\right ) - 2 \, \log \left (-a x^{2} + 1\right )}{9 \, x^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 275 vs.
\(2 (49) = 98\).
time = 43.38, size = 275, normalized size = 4.91 \begin {gather*} \begin {cases} - \frac {\pi ^{2}}{18 x^{3}} & \text {for}\: a = \frac {1}{x^{2}} \\0 & \text {for}\: a = 0 \\- \frac {4 a^{2} x^{5} \sqrt {\frac {1}{a}} \log {\left (x - \sqrt {\frac {1}{a}} \right )}}{9 x^{5} - \frac {9 x^{3}}{a}} - \frac {2 a^{2} x^{5} \sqrt {\frac {1}{a}} \operatorname {Li}_{1}\left (a x^{2}\right )}{9 x^{5} - \frac {9 x^{3}}{a}} - \frac {4 a x^{4}}{9 x^{5} - \frac {9 x^{3}}{a}} + \frac {4 a x^{3} \sqrt {\frac {1}{a}} \log {\left (x - \sqrt {\frac {1}{a}} \right )}}{9 x^{5} - \frac {9 x^{3}}{a}} + \frac {2 a x^{3} \sqrt {\frac {1}{a}} \operatorname {Li}_{1}\left (a x^{2}\right )}{9 x^{5} - \frac {9 x^{3}}{a}} - \frac {2 x^{2} \operatorname {Li}_{1}\left (a x^{2}\right )}{9 x^{5} - \frac {9 x^{3}}{a}} - \frac {3 x^{2} \operatorname {Li}_{2}\left (a x^{2}\right )}{9 x^{5} - \frac {9 x^{3}}{a}} + \frac {4 x^{2}}{9 x^{5} - \frac {9 x^{3}}{a}} + \frac {2 \operatorname {Li}_{1}\left (a x^{2}\right )}{9 a x^{5} - 9 x^{3}} + \frac {3 \operatorname {Li}_{2}\left (a x^{2}\right )}{9 a x^{5} - 9 x^{3}} & \text {otherwise} \end {cases} \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 = 0.33, size = 47, normalized size = 0.84 \begin {gather*} \frac {2\,\ln \left (1-a\,x^2\right )}{9\,x^3}-\frac {4\,a}{9\,x}-\frac {\mathrm {polylog}\left (2,a\,x^2\right )}{3\,x^3}-\frac {a^{3/2}\,\mathrm {atan}\left (\sqrt {a}\,x\,1{}\mathrm {i}\right )\,4{}\mathrm {i}}{9} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________