3.1.6 \(\int \cot ^{-1}(a x) \, dx\) [6]

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

[Out]

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

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

Int[ArcCot[a*x],x]

[Out]

x*ArcCot[a*x] + Log[1 + a^2*x^2]/(2*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 4931

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

Rubi steps

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

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

Integrate[ArcCot[a*x],x]

[Out]

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

________________________________________________________________________________________

Maple [A]
time = 0.03, size = 25, normalized size = 1.04

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(acot(a*x),x)

[Out]

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

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 45 vs. \(2 (22) = 44\).
time = 0.40, size = 45, normalized size = 1.88 \begin {gather*} \frac {1}{2} \, a {\left (\frac {2 \, x \arctan \left (\frac {1}{a x}\right )}{a} + \frac {\log \left (\frac {1}{a^{2} x^{2}} + 1\right )}{a^{2}} - \frac {\log \left (\frac {1}{a^{2} x^{2}}\right )}{a^{2}}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(acot(a*x),x)

[Out]

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

________________________________________________________________________________________