3.4.55 \(\int \cot ^3(x) \csc (x) \, dx\) [355]

Optimal. Leaf size=11 \[ \csc (x)-\frac {\csc ^3(x)}{3} \]

[Out]

csc(x)-1/3*csc(x)^3

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2686} \begin {gather*} \csc (x)-\frac {\csc ^3(x)}{3} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Cot[x]^3*Csc[x],x]

[Out]

Csc[x] - Csc[x]^3/3

Rule 2686

Int[((a_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((b_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[a/f, Subst[
Int[(a*x)^(m - 1)*(-1 + x^2)^((n - 1)/2), x], x, Sec[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n -
1)/2] &&  !(IntegerQ[m/2] && LtQ[0, m, n + 1])

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 11, normalized size = 1.00 \begin {gather*} \csc (x)-\frac {\csc ^3(x)}{3} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Cot[x]^3*Csc[x],x]

[Out]

Csc[x] - Csc[x]^3/3

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(31\) vs. \(2(9)=18\).
time = 0.07, size = 32, normalized size = 2.91

method result size
default \(-\frac {\cos ^{4}\left (x \right )}{3 \sin \left (x \right )^{3}}+\frac {\cos ^{4}\left (x \right )}{3 \sin \left (x \right )}+\frac {\left (2+\cos ^{2}\left (x \right )\right ) \sin \left (x \right )}{3}\) \(32\)
risch \(\frac {2 i \left (3 \,{\mathrm e}^{5 i x}-2 \,{\mathrm e}^{3 i x}+3 \,{\mathrm e}^{i x}\right )}{3 \left ({\mathrm e}^{2 i x}-1\right )^{3}}\) \(35\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(x)^3*csc(x),x,method=_RETURNVERBOSE)

[Out]

-1/3/sin(x)^3*cos(x)^4+1/3/sin(x)*cos(x)^4+1/3*(2+cos(x)^2)*sin(x)

________________________________________________________________________________________

Maxima [A]
time = 2.28, size = 14, normalized size = 1.27 \begin {gather*} \frac {3 \, \sin \left (x\right )^{2} - 1}{3 \, \sin \left (x\right )^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(x)^3*csc(x),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 22 vs. \(2 (9) = 18\).
time = 1.00, size = 22, normalized size = 2.00 \begin {gather*} \frac {3 \, \cos \left (x\right )^{2} - 2}{3 \, {\left (\cos \left (x\right )^{2} - 1\right )} \sin \left (x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(x)^3*csc(x),x, algorithm="fricas")

[Out]

1/3*(3*cos(x)^2 - 2)/((cos(x)^2 - 1)*sin(x))

________________________________________________________________________________________

Sympy [A]
time = 0.03, size = 15, normalized size = 1.36 \begin {gather*} - \frac {1 - 3 \sin ^{2}{\left (x \right )}}{3 \sin ^{3}{\left (x \right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(x)**3*csc(x),x)

[Out]

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

________________________________________________________________________________________

Giac [A]
time = 0.66, size = 14, normalized size = 1.27 \begin {gather*} \frac {3 \, \sin \left (x\right )^{2} - 1}{3 \, \sin \left (x\right )^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(x)^3*csc(x),x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 0.32, size = 11, normalized size = 1.00 \begin {gather*} \frac {{\sin \left (x\right )}^2-\frac {1}{3}}{{\sin \left (x\right )}^3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(x)^3/sin(x),x)

[Out]

(sin(x)^2 - 1/3)/sin(x)^3

________________________________________________________________________________________