Optimal. Leaf size=25 \[ -\frac{1}{9} \csc ^9(x)+\frac{2 \csc ^7(x)}{7}-\frac{\csc ^5(x)}{5} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0410418, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {4397, 2606, 270} \[ -\frac{1}{9} \csc ^9(x)+\frac{2 \csc ^7(x)}{7}-\frac{\csc ^5(x)}{5} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4397
Rule 2606
Rule 270
Rubi steps
\begin{align*} \int \frac{1}{(-\cos (x)+\sec (x))^5} \, dx &=\int \cot ^5(x) \csc ^5(x) \, dx\\ &=-\operatorname{Subst}\left (\int x^4 \left (-1+x^2\right )^2 \, dx,x,\csc (x)\right )\\ &=-\operatorname{Subst}\left (\int \left (x^4-2 x^6+x^8\right ) \, dx,x,\csc (x)\right )\\ &=-\frac{1}{5} \csc ^5(x)+\frac{2 \csc ^7(x)}{7}-\frac{\csc ^9(x)}{9}\\ \end{align*}
Mathematica [A] time = 0.0117831, size = 25, normalized size = 1. \[ -\frac{1}{9} \csc ^9(x)+\frac{2 \csc ^7(x)}{7}-\frac{\csc ^5(x)}{5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.043, size = 20, normalized size = 0.8 \begin{align*}{\frac{2}{7\, \left ( \sin \left ( x \right ) \right ) ^{7}}}-{\frac{1}{9\, \left ( \sin \left ( x \right ) \right ) ^{9}}}-{\frac{1}{5\, \left ( \sin \left ( x \right ) \right ) ^{5}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.0162, size = 163, normalized size = 6.52 \begin{align*} \frac{{\left (\frac{45 \, \sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}} + \frac{252 \, \sin \left (x\right )^{4}}{{\left (\cos \left (x\right ) + 1\right )}^{4}} - \frac{420 \, \sin \left (x\right )^{6}}{{\left (\cos \left (x\right ) + 1\right )}^{6}} - \frac{1890 \, \sin \left (x\right )^{8}}{{\left (\cos \left (x\right ) + 1\right )}^{8}} - 35\right )}{\left (\cos \left (x\right ) + 1\right )}^{9}}{161280 \, \sin \left (x\right )^{9}} - \frac{3 \, \sin \left (x\right )}{256 \,{\left (\cos \left (x\right ) + 1\right )}} - \frac{\sin \left (x\right )^{3}}{384 \,{\left (\cos \left (x\right ) + 1\right )}^{3}} + \frac{\sin \left (x\right )^{5}}{640 \,{\left (\cos \left (x\right ) + 1\right )}^{5}} + \frac{\sin \left (x\right )^{7}}{3584 \,{\left (\cos \left (x\right ) + 1\right )}^{7}} - \frac{\sin \left (x\right )^{9}}{4608 \,{\left (\cos \left (x\right ) + 1\right )}^{9}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.45715, size = 139, normalized size = 5.56 \begin{align*} -\frac{63 \, \cos \left (x\right )^{4} - 36 \, \cos \left (x\right )^{2} + 8}{315 \,{\left (\cos \left (x\right )^{8} - 4 \, \cos \left (x\right )^{6} + 6 \, \cos \left (x\right )^{4} - 4 \, \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(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15575, size = 27, normalized size = 1.08 \begin{align*} -\frac{63 \, \sin \left (x\right )^{4} - 90 \, \sin \left (x\right )^{2} + 35}{315 \, \sin \left (x\right )^{9}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]