Optimal. Leaf size=54 \[ -\frac {\sin ^{n+1}(c+d x) (a \sin (c+d x)+a)^{m+1} \, _2F_1(1,m+n+2;m+2;\sin (c+d x)+1)}{a d (m+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 61, normalized size of antiderivative = 1.13, number of steps used = 3, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2833, 66, 64} \[ \frac {(\sin (c+d x)+1)^{-m} \sin ^{n+1}(c+d x) (a \sin (c+d x)+a)^m \, _2F_1(-m,n+1;n+2;-\sin (c+d x))}{d (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 64
Rule 66
Rule 2833
Rubi steps
\begin {align*} \int \cos (c+d x) \sin ^n(c+d x) (a+a \sin (c+d x))^m \, dx &=\frac {\operatorname {Subst}\left (\int \left (\frac {x}{a}\right )^n (a+x)^m \, dx,x,a \sin (c+d x)\right )}{a d}\\ &=\frac {\left ((1+\sin (c+d x))^{-m} (a+a \sin (c+d x))^m\right ) \operatorname {Subst}\left (\int \left (\frac {x}{a}\right )^n \left (1+\frac {x}{a}\right )^m \, dx,x,a \sin (c+d x)\right )}{a d}\\ &=\frac {\, _2F_1(-m,1+n;2+n;-\sin (c+d x)) \sin ^{1+n}(c+d x) (1+\sin (c+d x))^{-m} (a+a \sin (c+d x))^m}{d (1+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 61, normalized size = 1.13 \[ \frac {(\sin (c+d x)+1)^{-m} \sin ^{n+1}(c+d x) (a \sin (c+d x)+a)^m \, _2F_1(-m,n+1;n+2;-\sin (c+d x))}{d (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.48, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (a \sin \left (d x + c\right ) + a\right )}^{m} \sin \left (d x + c\right )^{n} \cos \left (d x + c\right ), x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (a \sin \left (d x + c\right ) + a\right )}^{m} \sin \left (d x + c\right )^{n} \cos \left (d x + c\right )\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 5.19, size = 0, normalized size = 0.00 \[ \int \cos \left (d x +c \right ) \left (\sin ^{n}\left (d x +c \right )\right ) \left (a +a \sin \left (d x +c \right )\right )^{m}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (a \sin \left (d x + c\right ) + a\right )}^{m} \sin \left (d x + c\right )^{n} \cos \left (d x + c\right )\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \cos \left (c+d\,x\right )\,{\sin \left (c+d\,x\right )}^n\,{\left (a+a\,\sin \left (c+d\,x\right )\right )}^m \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a \left (\sin {\left (c + d x \right )} + 1\right )\right )^{m} \sin ^{n}{\left (c + d x \right )} \cos {\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________