Optimal. Leaf size=35 \[ -\frac {1}{a^4 x}-\frac {\tan ^{-1}\left (\frac {x}{a}\right )}{2 a^5}+\frac {\tanh ^{-1}\left (\frac {x}{a}\right )}{2 a^5} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {331, 304, 209,
212} \begin {gather*} -\frac {\text {ArcTan}\left (\frac {x}{a}\right )}{2 a^5}+\frac {\tanh ^{-1}\left (\frac {x}{a}\right )}{2 a^5}-\frac {1}{a^4 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 212
Rule 304
Rule 331
Rubi steps
\begin {align*} \int \frac {1}{x^2 \left (a^4-x^4\right )} \, dx &=-\frac {1}{a^4 x}+\frac {\int \frac {x^2}{a^4-x^4} \, dx}{a^4}\\ &=-\frac {1}{a^4 x}+\frac {\int \frac {1}{a^2-x^2} \, dx}{2 a^4}-\frac {\int \frac {1}{a^2+x^2} \, dx}{2 a^4}\\ &=-\frac {1}{a^4 x}-\frac {\tan ^{-1}\left (\frac {x}{a}\right )}{2 a^5}+\frac {\tanh ^{-1}\left (\frac {x}{a}\right )}{2 a^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 46, normalized size = 1.31 \begin {gather*} -\frac {1}{a^4 x}-\frac {\tan ^{-1}\left (\frac {x}{a}\right )}{2 a^5}-\frac {\log (a-x)}{4 a^5}+\frac {\log (a+x)}{4 a^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 41, normalized size = 1.17
method | result | size |
default | \(-\frac {1}{a^{4} x}-\frac {\arctan \left (\frac {x}{a}\right )}{2 a^{5}}+\frac {\ln \left (a +x \right )}{4 a^{5}}-\frac {\ln \left (a -x \right )}{4 a^{5}}\) | \(41\) |
risch | \(-\frac {1}{a^{4} x}+\frac {\ln \left (a +x \right )}{4 a^{5}}-\frac {\ln \left (-a +x \right )}{4 a^{5}}+\frac {\left (\munderset {\textit {\_R} =\RootOf \left (a^{10} \textit {\_Z}^{2}+1\right )}{\sum }\textit {\_R} \ln \left (\left (5 \textit {\_R}^{4} a^{20}-4\right ) x +a^{16} \textit {\_R}^{3}\right )\right )}{4}\) | \(68\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.09, size = 40, normalized size = 1.14 \begin {gather*} -\frac {\arctan \left (\frac {x}{a}\right )}{2 \, a^{5}} + \frac {\log \left (a + x\right )}{4 \, a^{5}} - \frac {\log \left (-a + x\right )}{4 \, a^{5}} - \frac {1}{a^{4} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 36, normalized size = 1.03 \begin {gather*} -\frac {2 \, x \arctan \left (\frac {x}{a}\right ) - x \log \left (a + x\right ) + x \log \left (-a + x\right ) + 4 \, a}{4 \, a^{5} x} \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.08, size = 44, normalized size = 1.26 \begin {gather*} - \frac {1}{a^{4} x} - \frac {\frac {\log {\left (- a + x \right )}}{4} - \frac {\log {\left (a + x \right )}}{4} - \frac {i \log {\left (- i a + x \right )}}{4} + \frac {i \log {\left (i a + x \right )}}{4}}{a^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.82, size = 42, normalized size = 1.20 \begin {gather*} -\frac {\arctan \left (\frac {x}{a}\right )}{2 \, a^{5}} + \frac {\log \left ({\left | a + x \right |}\right )}{4 \, a^{5}} - \frac {\log \left ({\left | -a + x \right |}\right )}{4 \, a^{5}} - \frac {1}{a^{4} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.22, size = 31, normalized size = 0.89 \begin {gather*} \frac {\mathrm {atanh}\left (\frac {x}{a}\right )}{2\,a^5}-\frac {\mathrm {atan}\left (\frac {x}{a}\right )}{2\,a^5}-\frac {1}{a^4\,x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________