Optimal. Leaf size=25 \[ \frac{4}{5} (\csc (x)+1)^{5/2}-\frac{2}{7} (\csc (x)+1)^{7/2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0810866, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {4372, 1570, 1469, 627, 43} \[ \frac{4}{5} (\csc (x)+1)^{5/2}-\frac{2}{7} (\csc (x)+1)^{7/2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4372
Rule 1570
Rule 1469
Rule 627
Rule 43
Rubi steps
\begin{align*} \int \cot ^3(x) \csc (x) \sqrt{1+\csc (x)} \, dx &=\operatorname{Subst}\left (\int \frac{\sqrt{1+\frac{1}{x}} \left (1-x^2\right )}{x^4} \, dx,x,\sin (x)\right )\\ &=\operatorname{Subst}\left (\int \frac{\left (-1+\frac{1}{x^2}\right ) \sqrt{1+\frac{1}{x}}}{x^2} \, dx,x,\sin (x)\right )\\ &=-\operatorname{Subst}\left (\int \sqrt{1+x} \left (-1+x^2\right ) \, dx,x,\csc (x)\right )\\ &=-\operatorname{Subst}\left (\int (-1+x) (1+x)^{3/2} \, dx,x,\csc (x)\right )\\ &=-\operatorname{Subst}\left (\int \left (-2 (1+x)^{3/2}+(1+x)^{5/2}\right ) \, dx,x,\csc (x)\right )\\ &=\frac{4}{5} (1+\csc (x))^{5/2}-\frac{2}{7} (1+\csc (x))^{7/2}\\ \end{align*}
Mathematica [A] time = 0.0388715, size = 18, normalized size = 0.72 \[ -\frac{2}{35} (\csc (x)+1)^{5/2} (5 \csc (x)-9) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.084, size = 38, normalized size = 1.5 \begin{align*} -{\frac{18\, \left ( \cos \left ( x \right ) \right ) ^{2}\sin \left ( x \right ) +26\, \left ( \cos \left ( x \right ) \right ) ^{2}-16\,\sin \left ( x \right ) -16}{35\, \left ( \sin \left ( x \right ) \right ) ^{3}}\sqrt{{\frac{1+\sin \left ( x \right ) }{\sin \left ( x \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.96642, size = 28, normalized size = 1.12 \begin{align*} -\frac{2}{7} \,{\left (\frac{1}{\sin \left (x\right )} + 1\right )}^{\frac{7}{2}} + \frac{4}{5} \,{\left (\frac{1}{\sin \left (x\right )} + 1\right )}^{\frac{5}{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.07529, size = 135, normalized size = 5.4 \begin{align*} \frac{2 \,{\left (13 \, \cos \left (x\right )^{2} +{\left (9 \, \cos \left (x\right )^{2} - 8\right )} \sin \left (x\right ) - 8\right )} \sqrt{\frac{\sin \left (x\right ) + 1}{\sin \left (x\right )}}}{35 \,{\left (\cos \left (x\right )^{2} - 1\right )} \sin \left (x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{\csc{\left (x \right )} + 1} \cot ^{3}{\left (x \right )} \csc{\left (x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.09556, size = 173, normalized size = 6.92 \begin{align*} \frac{2 \,{\left (35 \,{\left (\sqrt{\sin \left (x\right )^{2} + \sin \left (x\right )} - \sin \left (x\right )\right )}^{6} - 35 \,{\left (\sqrt{\sin \left (x\right )^{2} + \sin \left (x\right )} - \sin \left (x\right )\right )}^{5} - 35 \,{\left (\sqrt{\sin \left (x\right )^{2} + \sin \left (x\right )} - \sin \left (x\right )\right )}^{4} + 105 \,{\left (\sqrt{\sin \left (x\right )^{2} + \sin \left (x\right )} - \sin \left (x\right )\right )}^{3} - 91 \,{\left (\sqrt{\sin \left (x\right )^{2} + \sin \left (x\right )} - \sin \left (x\right )\right )}^{2} + 35 \, \sqrt{\sin \left (x\right )^{2} + \sin \left (x\right )} - 35 \, \sin \left (x\right ) - 5\right )} \mathrm{sgn}\left (\sin \left (x\right )\right )}{35 \,{\left (\sqrt{\sin \left (x\right )^{2} + \sin \left (x\right )} - \sin \left (x\right )\right )}^{7}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]