3.127 \(\int \cot ^3(x) \, dx\)

Optimal. Leaf size=14 \[ -\frac {1}{2} \cot ^2(x)-\log (\sin (x)) \]

[Out]

-1/2*cot(x)^2-ln(sin(x))

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 14, 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 = {3473, 3475} \[ -\frac {1}{2} \cot ^2(x)-\log (\sin (x)) \]

Antiderivative was successfully verified.

[In]

Int[Cot[x]^3,x]

[Out]

-Cot[x]^2/2 - Log[Sin[x]]

Rule 3473

Int[((b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(b*(b*Tan[c + d*x])^(n - 1))/(d*(n - 1)), x] - Dis
t[b^2, Int[(b*Tan[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1]

Rule 3475

Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin {align*} \int \cot ^3(x) \, dx &=-\frac {1}{2} \cot ^2(x)-\int \cot (x) \, dx\\ &=-\frac {1}{2} \cot ^2(x)-\log (\sin (x))\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 14, normalized size = 1.00 \[ -\frac {1}{2} \csc ^2(x)-\log (\sin (x)) \]

Antiderivative was successfully verified.

[In]

Integrate[Cot[x]^3,x]

[Out]

-1/2*Csc[x]^2 - Log[Sin[x]]

________________________________________________________________________________________

fricas [B]  time = 0.44, size = 31, normalized size = 2.21 \[ -\frac {\log \left (\frac {\tan \relax (x)^{2}}{\tan \relax (x)^{2} + 1}\right ) \tan \relax (x)^{2} + \tan \relax (x)^{2} + 1}{2 \, \tan \relax (x)^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/tan(x)^3,x, algorithm="fricas")

[Out]

-1/2*(log(tan(x)^2/(tan(x)^2 + 1))*tan(x)^2 + tan(x)^2 + 1)/tan(x)^2

________________________________________________________________________________________

giac [B]  time = 1.19, size = 29, normalized size = 2.07 \[ \frac {\tan \relax (x)^{2} - 1}{2 \, \tan \relax (x)^{2}} + \frac {1}{2} \, \log \left (\tan \relax (x)^{2} + 1\right ) - \frac {1}{2} \, \log \left (\tan \relax (x)^{2}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/tan(x)^3,x, algorithm="giac")

[Out]

1/2*(tan(x)^2 - 1)/tan(x)^2 + 1/2*log(tan(x)^2 + 1) - 1/2*log(tan(x)^2)

________________________________________________________________________________________

maple [A]  time = 0.01, size = 22, normalized size = 1.57 \[ \frac {\ln \left (\tan ^{2}\relax (x )+1\right )}{2}-\ln \left (\tan \relax (x )\right )-\frac {1}{2 \tan \relax (x )^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/tan(x)^3,x)

[Out]

1/2*ln(tan(x)^2+1)-1/2/tan(x)^2-ln(tan(x))

________________________________________________________________________________________

maxima [A]  time = 0.41, size = 14, normalized size = 1.00 \[ -\frac {1}{2 \, \sin \relax (x)^{2}} - \frac {1}{2} \, \log \left (\sin \relax (x)^{2}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/tan(x)^3,x, algorithm="maxima")

[Out]

-1/2/sin(x)^2 - 1/2*log(sin(x)^2)

________________________________________________________________________________________

mupad [B]  time = 0.17, size = 21, normalized size = 1.50 \[ \frac {\ln \left ({\mathrm {tan}\relax (x)}^2+1\right )}{2}-\ln \left (\mathrm {tan}\relax (x)\right )-\frac {1}{2\,{\mathrm {tan}\relax (x)}^2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/tan(x)^3,x)

[Out]

log(tan(x)^2 + 1)/2 - log(tan(x)) - 1/(2*tan(x)^2)

________________________________________________________________________________________

sympy [A]  time = 0.09, size = 14, normalized size = 1.00 \[ - \log {\left (\sin {\relax (x )} \right )} - \frac {1}{2 \sin ^{2}{\relax (x )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/tan(x)**3,x)

[Out]

-log(sin(x)) - 1/(2*sin(x)**2)

________________________________________________________________________________________