Optimal. Leaf size=20 \[ -\frac{(a+b \cot (x))^{n+1}}{b (n+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0412348, antiderivative size = 20, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {3506, 32} \[ -\frac{(a+b \cot (x))^{n+1}}{b (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3506
Rule 32
Rubi steps
\begin{align*} \int (a+b \cot (x))^n \csc ^2(x) \, dx &=-\frac{\operatorname{Subst}\left (\int (a+x)^n \, dx,x,b \cot (x)\right )}{b}\\ &=-\frac{(a+b \cot (x))^{1+n}}{b (1+n)}\\ \end{align*}
Mathematica [A] time = 0.183713, size = 19, normalized size = 0.95 \[ -\frac{(a+b \cot (x))^{n+1}}{b n+b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.023, size = 21, normalized size = 1.1 \begin{align*} -{\frac{ \left ( a+b\cot \left ( x \right ) \right ) ^{1+n}}{b \left ( 1+n \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.41513, size = 103, normalized size = 5.15 \begin{align*} -\frac{{\left (b \cos \left (x\right ) + a \sin \left (x\right )\right )} \left (\frac{b \cos \left (x\right ) + a \sin \left (x\right )}{\sin \left (x\right )}\right )^{n}}{{\left (b n + b\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 [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \cot \left (x\right ) + a\right )}^{n} \csc \left (x\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]