Optimal. Leaf size=150 \[ \frac{\log \left (a x^2-\sqrt{2} \sqrt{a} x+1\right )}{6 \sqrt{2} a^{3/2}}-\frac{\log \left (a x^2+\sqrt{2} \sqrt{a} x+1\right )}{6 \sqrt{2} a^{3/2}}+\frac{\tan ^{-1}\left (1-\sqrt{2} \sqrt{a} x\right )}{3 \sqrt{2} a^{3/2}}-\frac{\tan ^{-1}\left (\sqrt{2} \sqrt{a} x+1\right )}{3 \sqrt{2} a^{3/2}}+\frac{1}{3} x^3 \cot ^{-1}\left (a x^2\right )+\frac{2 x}{3 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0942241, antiderivative size = 150, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 8, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.8, Rules used = {5034, 321, 211, 1165, 628, 1162, 617, 204} \[ \frac{\log \left (a x^2-\sqrt{2} \sqrt{a} x+1\right )}{6 \sqrt{2} a^{3/2}}-\frac{\log \left (a x^2+\sqrt{2} \sqrt{a} x+1\right )}{6 \sqrt{2} a^{3/2}}+\frac{\tan ^{-1}\left (1-\sqrt{2} \sqrt{a} x\right )}{3 \sqrt{2} a^{3/2}}-\frac{\tan ^{-1}\left (\sqrt{2} \sqrt{a} x+1\right )}{3 \sqrt{2} a^{3/2}}+\frac{1}{3} x^3 \cot ^{-1}\left (a x^2\right )+\frac{2 x}{3 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5034
Rule 321
Rule 211
Rule 1165
Rule 628
Rule 1162
Rule 617
Rule 204
Rubi steps
\begin{align*} \int x^2 \cot ^{-1}\left (a x^2\right ) \, dx &=\frac{1}{3} x^3 \cot ^{-1}\left (a x^2\right )+\frac{1}{3} (2 a) \int \frac{x^4}{1+a^2 x^4} \, dx\\ &=\frac{2 x}{3 a}+\frac{1}{3} x^3 \cot ^{-1}\left (a x^2\right )-\frac{2 \int \frac{1}{1+a^2 x^4} \, dx}{3 a}\\ &=\frac{2 x}{3 a}+\frac{1}{3} x^3 \cot ^{-1}\left (a x^2\right )-\frac{\int \frac{1-a x^2}{1+a^2 x^4} \, dx}{3 a}-\frac{\int \frac{1+a x^2}{1+a^2 x^4} \, dx}{3 a}\\ &=\frac{2 x}{3 a}+\frac{1}{3} x^3 \cot ^{-1}\left (a x^2\right )-\frac{\int \frac{1}{\frac{1}{a}-\frac{\sqrt{2} x}{\sqrt{a}}+x^2} \, dx}{6 a^2}-\frac{\int \frac{1}{\frac{1}{a}+\frac{\sqrt{2} x}{\sqrt{a}}+x^2} \, dx}{6 a^2}+\frac{\int \frac{\frac{\sqrt{2}}{\sqrt{a}}+2 x}{-\frac{1}{a}-\frac{\sqrt{2} x}{\sqrt{a}}-x^2} \, dx}{6 \sqrt{2} a^{3/2}}+\frac{\int \frac{\frac{\sqrt{2}}{\sqrt{a}}-2 x}{-\frac{1}{a}+\frac{\sqrt{2} x}{\sqrt{a}}-x^2} \, dx}{6 \sqrt{2} a^{3/2}}\\ &=\frac{2 x}{3 a}+\frac{1}{3} x^3 \cot ^{-1}\left (a x^2\right )+\frac{\log \left (1-\sqrt{2} \sqrt{a} x+a x^2\right )}{6 \sqrt{2} a^{3/2}}-\frac{\log \left (1+\sqrt{2} \sqrt{a} x+a x^2\right )}{6 \sqrt{2} a^{3/2}}-\frac{\operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\sqrt{2} \sqrt{a} x\right )}{3 \sqrt{2} a^{3/2}}+\frac{\operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\sqrt{2} \sqrt{a} x\right )}{3 \sqrt{2} a^{3/2}}\\ &=\frac{2 x}{3 a}+\frac{1}{3} x^3 \cot ^{-1}\left (a x^2\right )+\frac{\tan ^{-1}\left (1-\sqrt{2} \sqrt{a} x\right )}{3 \sqrt{2} a^{3/2}}-\frac{\tan ^{-1}\left (1+\sqrt{2} \sqrt{a} x\right )}{3 \sqrt{2} a^{3/2}}+\frac{\log \left (1-\sqrt{2} \sqrt{a} x+a x^2\right )}{6 \sqrt{2} a^{3/2}}-\frac{\log \left (1+\sqrt{2} \sqrt{a} x+a x^2\right )}{6 \sqrt{2} a^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.0273759, size = 133, normalized size = 0.89 \[ \frac{4 a^{3/2} x^3 \cot ^{-1}\left (a x^2\right )+\sqrt{2} \log \left (a x^2-\sqrt{2} \sqrt{a} x+1\right )-\sqrt{2} \log \left (a x^2+\sqrt{2} \sqrt{a} x+1\right )+8 \sqrt{a} x+2 \sqrt{2} \tan ^{-1}\left (1-\sqrt{2} \sqrt{a} x\right )-2 \sqrt{2} \tan ^{-1}\left (\sqrt{2} \sqrt{a} x+1\right )}{12 a^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.043, size = 127, normalized size = 0.9 \begin{align*}{\frac{{x}^{3}{\rm arccot} \left (a{x}^{2}\right )}{3}}+{\frac{2\,x}{3\,a}}-{\frac{\sqrt{2}}{12\,a}\sqrt [4]{{a}^{-2}}\ln \left ({ \left ({x}^{2}+\sqrt [4]{{a}^{-2}}x\sqrt{2}+\sqrt{{a}^{-2}} \right ) \left ({x}^{2}-\sqrt [4]{{a}^{-2}}x\sqrt{2}+\sqrt{{a}^{-2}} \right ) ^{-1}} \right ) }-{\frac{\sqrt{2}}{6\,a}\sqrt [4]{{a}^{-2}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{a}^{-2}}}}}+1 \right ) }-{\frac{\sqrt{2}}{6\,a}\sqrt [4]{{a}^{-2}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{a}^{-2}}}}}-1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.50193, size = 342, normalized size = 2.28 \begin{align*} \frac{1}{3} \, x^{3} \operatorname{arccot}\left (a x^{2}\right ) - \frac{1}{12} \, a{\left (\frac{\frac{\sqrt{2} \log \left (\sqrt{a^{2}} x^{2} + \sqrt{2}{\left (a^{2}\right )}^{\frac{1}{4}} x + 1\right )}{{\left (a^{2}\right )}^{\frac{1}{4}}} - \frac{\sqrt{2} \log \left (\sqrt{a^{2}} x^{2} - \sqrt{2}{\left (a^{2}\right )}^{\frac{1}{4}} x + 1\right )}{{\left (a^{2}\right )}^{\frac{1}{4}}} + \frac{\sqrt{2} \log \left (\frac{2 \, \sqrt{a^{2}} x - \sqrt{2} \sqrt{-\sqrt{a^{2}}} + \sqrt{2}{\left (a^{2}\right )}^{\frac{1}{4}}}{2 \, \sqrt{a^{2}} x + \sqrt{2} \sqrt{-\sqrt{a^{2}}} + \sqrt{2}{\left (a^{2}\right )}^{\frac{1}{4}}}\right )}{\sqrt{-\sqrt{a^{2}}}} + \frac{\sqrt{2} \log \left (\frac{2 \, \sqrt{a^{2}} x - \sqrt{2} \sqrt{-\sqrt{a^{2}}} - \sqrt{2}{\left (a^{2}\right )}^{\frac{1}{4}}}{2 \, \sqrt{a^{2}} x + \sqrt{2} \sqrt{-\sqrt{a^{2}}} - \sqrt{2}{\left (a^{2}\right )}^{\frac{1}{4}}}\right )}{\sqrt{-\sqrt{a^{2}}}}}{a^{2}} - \frac{8 \, x}{a^{2}}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.30081, size = 713, normalized size = 4.75 \begin{align*} \frac{4 \, a x^{3} \arctan \left (\frac{1}{a x^{2}}\right ) + 4 \, \sqrt{2} a \frac{1}{a^{6}}^{\frac{1}{4}} \arctan \left (-\sqrt{2} a^{5} \frac{1}{a^{6}}^{\frac{3}{4}} x + \sqrt{2} \sqrt{\sqrt{2} a \frac{1}{a^{6}}^{\frac{1}{4}} x + a^{2} \sqrt{\frac{1}{a^{6}}} + x^{2}} a^{5} \frac{1}{a^{6}}^{\frac{3}{4}} - 1\right ) + 4 \, \sqrt{2} a \frac{1}{a^{6}}^{\frac{1}{4}} \arctan \left (-\sqrt{2} a^{5} \frac{1}{a^{6}}^{\frac{3}{4}} x + \sqrt{2} \sqrt{-\sqrt{2} a \frac{1}{a^{6}}^{\frac{1}{4}} x + a^{2} \sqrt{\frac{1}{a^{6}}} + x^{2}} a^{5} \frac{1}{a^{6}}^{\frac{3}{4}} + 1\right ) - \sqrt{2} a \frac{1}{a^{6}}^{\frac{1}{4}} \log \left (\sqrt{2} a \frac{1}{a^{6}}^{\frac{1}{4}} x + a^{2} \sqrt{\frac{1}{a^{6}}} + x^{2}\right ) + \sqrt{2} a \frac{1}{a^{6}}^{\frac{1}{4}} \log \left (-\sqrt{2} a \frac{1}{a^{6}}^{\frac{1}{4}} x + a^{2} \sqrt{\frac{1}{a^{6}}} + x^{2}\right ) + 8 \, x}{12 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 30.4211, size = 1081, normalized size = 7.21 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11955, size = 207, normalized size = 1.38 \begin{align*} \frac{1}{3} \, x^{3} \arctan \left (\frac{1}{a x^{2}}\right ) + \frac{1}{12} \, a{\left (\frac{8 \, x}{a^{2}} - \frac{2 \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (2 \, x + \frac{\sqrt{2}}{\sqrt{{\left | a \right |}}}\right )} \sqrt{{\left | a \right |}}\right )}{a^{2} \sqrt{{\left | a \right |}}} - \frac{2 \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (2 \, x - \frac{\sqrt{2}}{\sqrt{{\left | a \right |}}}\right )} \sqrt{{\left | a \right |}}\right )}{a^{2} \sqrt{{\left | a \right |}}} - \frac{\sqrt{2} \log \left (x^{2} + \frac{\sqrt{2} x}{\sqrt{{\left | a \right |}}} + \frac{1}{{\left | a \right |}}\right )}{a^{2} \sqrt{{\left | a \right |}}} + \frac{\sqrt{2} \log \left (x^{2} - \frac{\sqrt{2} x}{\sqrt{{\left | a \right |}}} + \frac{1}{{\left | a \right |}}\right )}{a^{2} \sqrt{{\left | a \right |}}}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]