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

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

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.0075916, antiderivative size = 14, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 4, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, 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.0029982, size = 14, normalized size = 1. \[ -\frac{1}{2} \csc ^2(x)-\log (\sin (x)) \]

Antiderivative was successfully verified.

[In]

Integrate[Cot[x]^3,x]

[Out]

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

________________________________________________________________________________________

Maple [A]  time = 0.006, size = 22, normalized size = 1.6 \begin{align*}{\frac{\ln \left ( \left ( \tan \left ( x \right ) \right ) ^{2}+1 \right ) }{2}}-{\frac{1}{2\, \left ( \tan \left ( x \right ) \right ) ^{2}}}-\ln \left ( \tan \left ( x \right ) \right ) \end{align*}

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.929571, size = 19, normalized size = 1.36 \begin{align*} -\frac{1}{2 \, \sin \left (x\right )^{2}} - \frac{1}{2} \, \log \left (\sin \left (x\right )^{2}\right ) \end{align*}

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)

________________________________________________________________________________________

Fricas [B]  time = 1.66543, size = 95, normalized size = 6.79 \begin{align*} -\frac{\log \left (\frac{\tan \left (x\right )^{2}}{\tan \left (x\right )^{2} + 1}\right ) \tan \left (x\right )^{2} + \tan \left (x\right )^{2} + 1}{2 \, \tan \left (x\right )^{2}} \end{align*}

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

________________________________________________________________________________________

Sympy [A]  time = 0.090889, size = 14, normalized size = 1. \begin{align*} - \log{\left (\sin{\left (x \right )} \right )} - \frac{1}{2 \sin ^{2}{\left (x \right )}} \end{align*}

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)

________________________________________________________________________________________

Giac [B]  time = 1.12662, size = 39, normalized size = 2.79 \begin{align*} \frac{\tan \left (x\right )^{2} - 1}{2 \, \tan \left (x\right )^{2}} + \frac{1}{2} \, \log \left (\tan \left (x\right )^{2} + 1\right ) - \frac{1}{2} \, \log \left (\tan \left (x\right )^{2}\right ) \end{align*}

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)