Optimal. Leaf size=157 \[ \frac{9}{32 a^8 x \left (a^4+x^4\right )}+\frac{1}{8 a^4 x \left (a^4+x^4\right )^2}-\frac{45 \log \left (a^2-\sqrt{2} a x+x^2\right )}{128 \sqrt{2} a^{13}}+\frac{45 \log \left (a^2+\sqrt{2} a x+x^2\right )}{128 \sqrt{2} a^{13}}-\frac{45}{32 a^{12} x}+\frac{45 \tan ^{-1}\left (1-\frac{\sqrt{2} x}{a}\right )}{64 \sqrt{2} a^{13}}-\frac{45 \tan ^{-1}\left (\frac{\sqrt{2} x}{a}+1\right )}{64 \sqrt{2} a^{13}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.100967, antiderivative size = 157, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 8, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.615, Rules used = {290, 325, 297, 1162, 617, 204, 1165, 628} \[ \frac{9}{32 a^8 x \left (a^4+x^4\right )}+\frac{1}{8 a^4 x \left (a^4+x^4\right )^2}-\frac{45 \log \left (a^2-\sqrt{2} a x+x^2\right )}{128 \sqrt{2} a^{13}}+\frac{45 \log \left (a^2+\sqrt{2} a x+x^2\right )}{128 \sqrt{2} a^{13}}-\frac{45}{32 a^{12} x}+\frac{45 \tan ^{-1}\left (1-\frac{\sqrt{2} x}{a}\right )}{64 \sqrt{2} a^{13}}-\frac{45 \tan ^{-1}\left (\frac{\sqrt{2} x}{a}+1\right )}{64 \sqrt{2} a^{13}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 290
Rule 325
Rule 297
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rubi steps
\begin{align*} \int \frac{1}{x^2 \left (a^4+x^4\right )^3} \, dx &=\frac{1}{8 a^4 x \left (a^4+x^4\right )^2}+\frac{9 \int \frac{1}{x^2 \left (a^4+x^4\right )^2} \, dx}{8 a^4}\\ &=\frac{1}{8 a^4 x \left (a^4+x^4\right )^2}+\frac{9}{32 a^8 x \left (a^4+x^4\right )}+\frac{45 \int \frac{1}{x^2 \left (a^4+x^4\right )} \, dx}{32 a^8}\\ &=-\frac{45}{32 a^{12} x}+\frac{1}{8 a^4 x \left (a^4+x^4\right )^2}+\frac{9}{32 a^8 x \left (a^4+x^4\right )}-\frac{45 \int \frac{x^2}{a^4+x^4} \, dx}{32 a^{12}}\\ &=-\frac{45}{32 a^{12} x}+\frac{1}{8 a^4 x \left (a^4+x^4\right )^2}+\frac{9}{32 a^8 x \left (a^4+x^4\right )}+\frac{45 \int \frac{a^2-x^2}{a^4+x^4} \, dx}{64 a^{12}}-\frac{45 \int \frac{a^2+x^2}{a^4+x^4} \, dx}{64 a^{12}}\\ &=-\frac{45}{32 a^{12} x}+\frac{1}{8 a^4 x \left (a^4+x^4\right )^2}+\frac{9}{32 a^8 x \left (a^4+x^4\right )}-\frac{45 \int \frac{\sqrt{2} a+2 x}{-a^2-\sqrt{2} a x-x^2} \, dx}{128 \sqrt{2} a^{13}}-\frac{45 \int \frac{\sqrt{2} a-2 x}{-a^2+\sqrt{2} a x-x^2} \, dx}{128 \sqrt{2} a^{13}}-\frac{45 \int \frac{1}{a^2-\sqrt{2} a x+x^2} \, dx}{128 a^{12}}-\frac{45 \int \frac{1}{a^2+\sqrt{2} a x+x^2} \, dx}{128 a^{12}}\\ &=-\frac{45}{32 a^{12} x}+\frac{1}{8 a^4 x \left (a^4+x^4\right )^2}+\frac{9}{32 a^8 x \left (a^4+x^4\right )}-\frac{45 \log \left (a^2-\sqrt{2} a x+x^2\right )}{128 \sqrt{2} a^{13}}+\frac{45 \log \left (a^2+\sqrt{2} a x+x^2\right )}{128 \sqrt{2} a^{13}}-\frac{45 \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} x}{a}\right )}{64 \sqrt{2} a^{13}}+\frac{45 \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} x}{a}\right )}{64 \sqrt{2} a^{13}}\\ &=-\frac{45}{32 a^{12} x}+\frac{1}{8 a^4 x \left (a^4+x^4\right )^2}+\frac{9}{32 a^8 x \left (a^4+x^4\right )}+\frac{45 \tan ^{-1}\left (1-\frac{\sqrt{2} x}{a}\right )}{64 \sqrt{2} a^{13}}-\frac{45 \tan ^{-1}\left (1+\frac{\sqrt{2} x}{a}\right )}{64 \sqrt{2} a^{13}}-\frac{45 \log \left (a^2-\sqrt{2} a x+x^2\right )}{128 \sqrt{2} a^{13}}+\frac{45 \log \left (a^2+\sqrt{2} a x+x^2\right )}{128 \sqrt{2} a^{13}}\\ \end{align*}
Mathematica [A] time = 0.105094, size = 134, normalized size = 0.85 \[ -\frac{\frac{32 a^5 x^3}{\left (a^4+x^4\right )^2}+\frac{104 a x^3}{a^4+x^4}+45 \sqrt{2} \log \left (a^2-\sqrt{2} a x+x^2\right )-45 \sqrt{2} \log \left (a^2+\sqrt{2} a x+x^2\right )+\frac{256 a}{x}-90 \sqrt{2} \tan ^{-1}\left (1-\frac{\sqrt{2} x}{a}\right )+90 \sqrt{2} \tan ^{-1}\left (\frac{\sqrt{2} x}{a}+1\right )}{256 a^{13}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.012, size = 152, normalized size = 1. \begin{align*} -{\frac{1}{{a}^{12}x}}-{\frac{13\,{x}^{7}}{32\,{a}^{12} \left ({a}^{4}+{x}^{4} \right ) ^{2}}}-{\frac{17\,{x}^{3}}{32\,{a}^{8} \left ({a}^{4}+{x}^{4} \right ) ^{2}}}-{\frac{45\,\sqrt{2}}{256\,{a}^{12}}\ln \left ({ \left ({x}^{2}-\sqrt [4]{{a}^{4}}x\sqrt{2}+\sqrt{{a}^{4}} \right ) \left ({x}^{2}+\sqrt [4]{{a}^{4}}x\sqrt{2}+\sqrt{{a}^{4}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{a}^{4}}}}}-{\frac{45\,\sqrt{2}}{128\,{a}^{12}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{a}^{4}}}}}+1 \right ){\frac{1}{\sqrt [4]{{a}^{4}}}}}-{\frac{45\,\sqrt{2}}{128\,{a}^{12}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{a}^{4}}}}}-1 \right ){\frac{1}{\sqrt [4]{{a}^{4}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.1156, size = 987, normalized size = 6.29 \begin{align*} -\frac{256 \, a^{8} + 648 \, a^{4} x^{4} + 360 \, x^{8} - 180 \, \sqrt{2}{\left (a^{20} x + 2 \, a^{16} x^{5} + a^{12} x^{9}\right )} \frac{1}{a^{52}}^{\frac{1}{4}} \arctan \left (-\sqrt{2} a^{12} \frac{1}{a^{52}}^{\frac{1}{4}} x + \sqrt{2} \sqrt{\sqrt{2} a^{40} \frac{1}{a^{52}}^{\frac{3}{4}} x + a^{28} \sqrt{\frac{1}{a^{52}}} + x^{2}} a^{12} \frac{1}{a^{52}}^{\frac{1}{4}} - 1\right ) - 180 \, \sqrt{2}{\left (a^{20} x + 2 \, a^{16} x^{5} + a^{12} x^{9}\right )} \frac{1}{a^{52}}^{\frac{1}{4}} \arctan \left (-\sqrt{2} a^{12} \frac{1}{a^{52}}^{\frac{1}{4}} x + \sqrt{2} \sqrt{-\sqrt{2} a^{40} \frac{1}{a^{52}}^{\frac{3}{4}} x + a^{28} \sqrt{\frac{1}{a^{52}}} + x^{2}} a^{12} \frac{1}{a^{52}}^{\frac{1}{4}} + 1\right ) - 45 \, \sqrt{2}{\left (a^{20} x + 2 \, a^{16} x^{5} + a^{12} x^{9}\right )} \frac{1}{a^{52}}^{\frac{1}{4}} \log \left (\sqrt{2} a^{40} \frac{1}{a^{52}}^{\frac{3}{4}} x + a^{28} \sqrt{\frac{1}{a^{52}}} + x^{2}\right ) + 45 \, \sqrt{2}{\left (a^{20} x + 2 \, a^{16} x^{5} + a^{12} x^{9}\right )} \frac{1}{a^{52}}^{\frac{1}{4}} \log \left (-\sqrt{2} a^{40} \frac{1}{a^{52}}^{\frac{3}{4}} x + a^{28} \sqrt{\frac{1}{a^{52}}} + x^{2}\right )}{256 \,{\left (a^{20} x + 2 \, a^{16} x^{5} + a^{12} x^{9}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 3.76579, size = 65, normalized size = 0.41 \begin{align*} - \frac{32 a^{8} + 81 a^{4} x^{4} + 45 x^{8}}{32 a^{20} x + 64 a^{16} x^{5} + 32 a^{12} x^{9}} + \frac{\operatorname{RootSum}{\left (268435456 t^{4} + 4100625, \left ( t \mapsto t \log{\left (- \frac{2097152 t^{3} a}{91125} + x \right )} \right )\right )}}{a^{13}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.06128, size = 203, normalized size = 1.29 \begin{align*} -\frac{45 \, \sqrt{2}{\left | a \right |} \arctan \left (\frac{\sqrt{2}{\left (\sqrt{2}{\left | a \right |} + 2 \, x\right )}}{2 \,{\left | a \right |}}\right )}{128 \, a^{14}} - \frac{45 \, \sqrt{2}{\left | a \right |} \arctan \left (-\frac{\sqrt{2}{\left (\sqrt{2}{\left | a \right |} - 2 \, x\right )}}{2 \,{\left | a \right |}}\right )}{128 \, a^{14}} + \frac{45 \, \sqrt{2}{\left | a \right |} \log \left (\sqrt{2} x{\left | a \right |} + x^{2} +{\left | a \right |}^{2}\right )}{256 \, a^{14}} - \frac{45 \, \sqrt{2}{\left | a \right |} \log \left (-\sqrt{2} x{\left | a \right |} + x^{2} +{\left | a \right |}^{2}\right )}{256 \, a^{14}} - \frac{17 \, a^{4} x^{3} + 13 \, x^{7}}{32 \,{\left (a^{4} + x^{4}\right )}^{2} a^{12}} - \frac{1}{a^{12} x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]