Optimal. Leaf size=32 \[ -\frac{\sin ^{-n-1}(a+b x) \cos ^{n+1}(a+b x)}{b (n+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0400978, antiderivative size = 32, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.048, Rules used = {2563} \[ -\frac{\sin ^{-n-1}(a+b x) \cos ^{n+1}(a+b x)}{b (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2563
Rubi steps
\begin{align*} \int \cos ^n(a+b x) \sin ^{-2-n}(a+b x) \, dx &=-\frac{\cos ^{1+n}(a+b x) \sin ^{-1-n}(a+b x)}{b (1+n)}\\ \end{align*}
Mathematica [A] time = 0.081499, size = 32, normalized size = 1. \[ -\frac{\sin ^{-n-1}(a+b x) \cos ^{n+1}(a+b x)}{b (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.139, size = 0, normalized size = 0. \begin{align*} \int \left ( \cos \left ( bx+a \right ) \right ) ^{n} \left ( \sin \left ( bx+a \right ) \right ) ^{-2-n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.48542, size = 169, normalized size = 5.28 \begin{align*} \frac{2 \,{\left (\frac{\sin \left (b x + a\right )^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} - 1\right )}{\left (\cos \left (b x + a\right ) + 1\right )} e^{\left (n \log \left (\frac{\sin \left (b x + a\right )}{\cos \left (b x + a\right ) + 1} + 1\right ) - n \log \left (\frac{\sin \left (b x + a\right )}{\cos \left (b x + a\right ) + 1}\right ) + n \log \left (-\frac{\sin \left (b x + a\right )}{\cos \left (b x + a\right ) + 1} + 1\right )\right )}}{{\left (2^{n + 2} n + 2^{n + 2}\right )} b \sin \left (b x + a\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.30636, size = 101, normalized size = 3.16 \begin{align*} -\frac{\cos \left (b x + a\right )^{n} \sin \left (b x + a\right )^{-n - 2} \cos \left (b x + a\right ) \sin \left (b x + a\right )}{b n + b} \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 \cos \left (b x + a\right )^{n} \sin \left (b x + a\right )^{-n - 2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]