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.013661, antiderivative size = 35, normalized size of antiderivative = 1., 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 = {325, 298, 203, 206} \[ -\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} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 325
Rule 298
Rule 203
Rule 206
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.0067181, size = 46, normalized size = 1.31 \[ -\frac{1}{a^4 x}-\frac{\log (a-x)}{4 a^5}+\frac{\log (a+x)}{4 a^5}-\frac{\tan ^{-1}\left (\frac{x}{a}\right )}{2 a^5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 41, normalized size = 1.2 \begin{align*} -{\frac{\ln \left ( -a+x \right ) }{4\,{a}^{5}}}-{\frac{1}{2\,{a}^{5}}\arctan \left ({\frac{x}{a}} \right ) }+{\frac{\ln \left ( a+x \right ) }{4\,{a}^{5}}}-{\frac{1}{{a}^{4}x}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.41269, size = 54, normalized size = 1.54 \begin{align*} -\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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.97679, size = 93, normalized size = 2.66 \begin{align*} -\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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 0.329665, size = 44, normalized size = 1.26 \begin{align*} - \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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.06125, size = 57, normalized size = 1.63 \begin{align*} -\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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]