3.1.76 \(\int x \cot ^{-1}(a x^2) \, dx\) [76]

Optimal. Leaf size=31 \[ \frac {1}{2} x^2 \cot ^{-1}\left (a x^2\right )+\frac {\log \left (1+a^2 x^4\right )}{4 a} \]

[Out]

1/2*x^2*arccot(a*x^2)+1/4*ln(a^2*x^4+1)/a

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {4947, 266} \begin {gather*} \frac {\log \left (a^2 x^4+1\right )}{4 a}+\frac {1}{2} x^2 \cot ^{-1}\left (a x^2\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x*ArcCot[a*x^2],x]

[Out]

(x^2*ArcCot[a*x^2])/2 + Log[1 + a^2*x^4]/(4*a)

Rule 266

Int[(x_)^(m_.)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Simp[Log[RemoveContent[a + b*x^n, x]]/(b*n), x] /; FreeQ
[{a, b, m, n}, x] && EqQ[m, n - 1]

Rule 4947

Int[((a_.) + ArcCot[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)*((a + b*ArcCot[c*x^
n])^p/(m + 1)), x] + Dist[b*c*n*(p/(m + 1)), Int[x^(m + n)*((a + b*ArcCot[c*x^n])^(p - 1)/(1 + c^2*x^(2*n))),
x], x] /; FreeQ[{a, b, c, m, n}, x] && IGtQ[p, 0] && (EqQ[p, 1] || (EqQ[n, 1] && IntegerQ[m])) && NeQ[m, -1]

Rubi steps

\begin {align*} \int x \cot ^{-1}\left (a x^2\right ) \, dx &=\frac {1}{2} x^2 \cot ^{-1}\left (a x^2\right )+a \int \frac {x^3}{1+a^2 x^4} \, dx\\ &=\frac {1}{2} x^2 \cot ^{-1}\left (a x^2\right )+\frac {\log \left (1+a^2 x^4\right )}{4 a}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 31, normalized size = 1.00 \begin {gather*} \frac {1}{2} x^2 \cot ^{-1}\left (a x^2\right )+\frac {\log \left (1+a^2 x^4\right )}{4 a} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x*ArcCot[a*x^2],x]

[Out]

(x^2*ArcCot[a*x^2])/2 + Log[1 + a^2*x^4]/(4*a)

________________________________________________________________________________________

Maple [A]
time = 0.04, size = 30, normalized size = 0.97

method result size
derivativedivides \(\frac {\mathrm {arccot}\left (a \,x^{2}\right ) a \,x^{2}+\frac {\ln \left (a^{2} x^{4}+1\right )}{2}}{2 a}\) \(30\)
default \(\frac {\mathrm {arccot}\left (a \,x^{2}\right ) a \,x^{2}+\frac {\ln \left (a^{2} x^{4}+1\right )}{2}}{2 a}\) \(30\)
risch \(\frac {i x^{2} \ln \left (i a \,x^{2}+1\right )}{4}-\frac {i x^{2} \ln \left (-i a \,x^{2}+1\right )}{4}+\frac {\pi \,x^{2}}{4}+\frac {\ln \left (-a^{2} x^{4}-1\right )}{4 a}\) \(56\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*arccot(a*x^2),x,method=_RETURNVERBOSE)

[Out]

1/2/a*(arccot(a*x^2)*a*x^2+1/2*ln(a^2*x^4+1))

________________________________________________________________________________________

Maxima [A]
time = 0.26, size = 28, normalized size = 0.90 \begin {gather*} \frac {2 \, a x^{2} \operatorname {arccot}\left (a x^{2}\right ) + \log \left (a^{2} x^{4} + 1\right )}{4 \, a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*arccot(a*x^2),x, algorithm="maxima")

[Out]

1/4*(2*a*x^2*arccot(a*x^2) + log(a^2*x^4 + 1))/a

________________________________________________________________________________________

Fricas [A]
time = 4.42, size = 28, normalized size = 0.90 \begin {gather*} \frac {2 \, a x^{2} \operatorname {arccot}\left (a x^{2}\right ) + \log \left (a^{2} x^{4} + 1\right )}{4 \, a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*arccot(a*x^2),x, algorithm="fricas")

[Out]

1/4*(2*a*x^2*arccot(a*x^2) + log(a^2*x^4 + 1))/a

________________________________________________________________________________________

Sympy [A]
time = 0.19, size = 31, normalized size = 1.00 \begin {gather*} \begin {cases} \frac {x^{2} \operatorname {acot}{\left (a x^{2} \right )}}{2} + \frac {\log {\left (a^{2} x^{4} + 1 \right )}}{4 a} & \text {for}\: a \neq 0 \\\frac {\pi x^{2}}{4} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*acot(a*x**2),x)

[Out]

Piecewise((x**2*acot(a*x**2)/2 + log(a**2*x**4 + 1)/(4*a), Ne(a, 0)), (pi*x**2/4, True))

________________________________________________________________________________________

Giac [A]
time = 0.42, size = 47, normalized size = 1.52 \begin {gather*} \frac {1}{4} \, {\left (\frac {2 \, x^{2} \arctan \left (\frac {1}{a x^{2}}\right )}{a} + \frac {\log \left (\frac {1}{a^{2} x^{4}} + 1\right )}{a^{2}} - \frac {\log \left (\frac {1}{a^{2} x^{4}}\right )}{a^{2}}\right )} a \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*arccot(a*x^2),x, algorithm="giac")

[Out]

1/4*(2*x^2*arctan(1/(a*x^2))/a + log(1/(a^2*x^4) + 1)/a^2 - log(1/(a^2*x^4))/a^2)*a

________________________________________________________________________________________

Mupad [B]
time = 0.60, size = 27, normalized size = 0.87 \begin {gather*} \frac {x^2\,\mathrm {acot}\left (a\,x^2\right )}{2}+\frac {\ln \left (a^2\,x^4+1\right )}{4\,a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*acot(a*x^2),x)

[Out]

(x^2*acot(a*x^2))/2 + log(a^2*x^4 + 1)/(4*a)

________________________________________________________________________________________