Optimal. Leaf size=54 \[ -\frac {2 a^4 x}{5}+\frac {2 a^2 x^3}{15}-\frac {2 x^5}{25}+\frac {2}{5} a^5 \tan ^{-1}\left (\frac {x}{a}\right )+\frac {1}{5} x^5 \log \left (a^2+x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2505, 308, 209}
\begin {gather*} \frac {2}{5} a^5 \text {ArcTan}\left (\frac {x}{a}\right )-\frac {2 a^4 x}{5}+\frac {2 a^2 x^3}{15}+\frac {1}{5} x^5 \log \left (a^2+x^2\right )-\frac {2 x^5}{25} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 308
Rule 2505
Rubi steps
\begin {align*} \int x^4 \log \left (a^2+x^2\right ) \, dx &=\frac {1}{5} x^5 \log \left (a^2+x^2\right )-\frac {2}{5} \int \frac {x^6}{a^2+x^2} \, dx\\ &=\frac {1}{5} x^5 \log \left (a^2+x^2\right )-\frac {2}{5} \int \left (a^4-a^2 x^2+x^4-\frac {a^6}{a^2+x^2}\right ) \, dx\\ &=-\frac {2 a^4 x}{5}+\frac {2 a^2 x^3}{15}-\frac {2 x^5}{25}+\frac {1}{5} x^5 \log \left (a^2+x^2\right )+\frac {1}{5} \left (2 a^6\right ) \int \frac {1}{a^2+x^2} \, dx\\ &=-\frac {2 a^4 x}{5}+\frac {2 a^2 x^3}{15}-\frac {2 x^5}{25}+\frac {2}{5} a^5 \tan ^{-1}\left (\frac {x}{a}\right )+\frac {1}{5} x^5 \log \left (a^2+x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 54, normalized size = 1.00 \begin {gather*} -\frac {2 a^4 x}{5}+\frac {2 a^2 x^3}{15}-\frac {2 x^5}{25}+\frac {2}{5} a^5 \tan ^{-1}\left (\frac {x}{a}\right )+\frac {1}{5} x^5 \log \left (a^2+x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 45, normalized size = 0.83
method | result | size |
default | \(-\frac {2 a^{4} x}{5}+\frac {2 a^{2} x^{3}}{15}-\frac {2 x^{5}}{25}+\frac {2 a^{5} \arctan \left (\frac {x}{a}\right )}{5}+\frac {x^{5} \ln \left (a^{2}+x^{2}\right )}{5}\) | \(45\) |
risch | \(-\frac {2 a^{4} x}{5}+\frac {2 a^{2} x^{3}}{15}-\frac {2 x^{5}}{25}+\frac {2 a^{5} \arctan \left (\frac {x}{a}\right )}{5}+\frac {x^{5} \ln \left (a^{2}+x^{2}\right )}{5}\) | \(45\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 7.41, size = 44, normalized size = 0.81 \begin {gather*} \frac {2}{5} \, a^{5} \arctan \left (\frac {x}{a}\right ) + \frac {1}{5} \, x^{5} \log \left (a^{2} + x^{2}\right ) - \frac {2}{5} \, a^{4} x + \frac {2}{15} \, a^{2} x^{3} - \frac {2}{25} \, x^{5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.64, size = 44, normalized size = 0.81 \begin {gather*} \frac {2}{5} \, a^{5} \arctan \left (\frac {x}{a}\right ) + \frac {1}{5} \, x^{5} \log \left (a^{2} + x^{2}\right ) - \frac {2}{5} \, a^{4} x + \frac {2}{15} \, a^{2} x^{3} - \frac {2}{25} \, x^{5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 0.09, size = 63, normalized size = 1.17 \begin {gather*} - 2 a^{5} \left (\frac {i \log {\left (- i a + x \right )}}{10} - \frac {i \log {\left (i a + x \right )}}{10}\right ) - \frac {2 a^{4} x}{5} + \frac {2 a^{2} x^{3}}{15} + \frac {x^{5} \log {\left (a^{2} + x^{2} \right )}}{5} - \frac {2 x^{5}}{25} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.65, size = 44, normalized size = 0.81 \begin {gather*} \frac {2}{5} \, a^{5} \arctan \left (\frac {x}{a}\right ) + \frac {1}{5} \, x^{5} \log \left (a^{2} + x^{2}\right ) - \frac {2}{5} \, a^{4} x + \frac {2}{15} \, a^{2} x^{3} - \frac {2}{25} \, x^{5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.13, size = 73, normalized size = 1.35 \begin {gather*} \frac {x^5\,\ln \left (a^2+x^2\right )}{5}-\frac {2\,a^4\,x}{5}-\frac {\ln \left (x-\sqrt {-a^2}\right )\,{\left (-a^2\right )}^{5/2}}{5}+\frac {\ln \left (x+\sqrt {-a^2}\right )\,{\left (-a^2\right )}^{5/2}}{5}-\frac {2\,x^5}{25}+\frac {2\,a^2\,x^3}{15} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________