Optimal. Leaf size=131 \[ -\frac{\cos (2 c+2 d x) \left (a+\frac{1}{2} b \sin (2 c+2 d x)\right )^m \left (\frac{2 a+b \sin (2 c+2 d x)}{2 a+b}\right )^{-m} F_1\left (\frac{1}{2};\frac{1}{2},-m;\frac{3}{2};\frac{1}{2} (1-\sin (2 c+2 d x)),\frac{b (1-\sin (2 c+2 d x))}{2 a+b}\right )}{\sqrt{2} d \sqrt{\sin (2 c+2 d x)+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.112209, antiderivative size = 131, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222, Rules used = {2666, 2665, 139, 138} \[ -\frac{\cos (2 c+2 d x) \left (a+\frac{1}{2} b \sin (2 c+2 d x)\right )^m \left (\frac{2 a+b \sin (2 c+2 d x)}{2 a+b}\right )^{-m} F_1\left (\frac{1}{2};\frac{1}{2},-m;\frac{3}{2};\frac{1}{2} (1-\sin (2 c+2 d x)),\frac{b (1-\sin (2 c+2 d x))}{2 a+b}\right )}{\sqrt{2} d \sqrt{\sin (2 c+2 d x)+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2666
Rule 2665
Rule 139
Rule 138
Rubi steps
\begin{align*} \int (a+b \cos (c+d x) \sin (c+d x))^m \, dx &=\int \left (a+\frac{1}{2} b \sin (2 c+2 d x)\right )^m \, dx\\ &=\frac{\cos (2 c+2 d x) \operatorname{Subst}\left (\int \frac{\left (a+\frac{b x}{2}\right )^m}{\sqrt{1-x} \sqrt{1+x}} \, dx,x,\sin (2 c+2 d x)\right )}{2 d \sqrt{1-\sin (2 c+2 d x)} \sqrt{1+\sin (2 c+2 d x)}}\\ &=\frac{\left (\cos (2 c+2 d x) \left (a+\frac{1}{2} b \sin (2 c+2 d x)\right )^m \left (-\frac{a+\frac{1}{2} b \sin (2 c+2 d x)}{-a-\frac{b}{2}}\right )^{-m}\right ) \operatorname{Subst}\left (\int \frac{\left (-\frac{a}{-a-\frac{b}{2}}-\frac{b x}{2 \left (-a-\frac{b}{2}\right )}\right )^m}{\sqrt{1-x} \sqrt{1+x}} \, dx,x,\sin (2 c+2 d x)\right )}{2 d \sqrt{1-\sin (2 c+2 d x)} \sqrt{1+\sin (2 c+2 d x)}}\\ &=-\frac{F_1\left (\frac{1}{2};\frac{1}{2},-m;\frac{3}{2};\frac{1}{2} (1-\sin (2 c+2 d x)),\frac{b (1-\sin (2 c+2 d x))}{2 a+b}\right ) \cos (2 c+2 d x) \left (a+\frac{1}{2} b \sin (2 c+2 d x)\right )^m \left (\frac{2 a+b \sin (2 c+2 d x)}{2 a+b}\right )^{-m}}{\sqrt{2} d \sqrt{1+\sin (2 c+2 d x)}}\\ \end{align*}
Mathematica [A] time = 0.610215, size = 145, normalized size = 1.11 \[ \frac{\sec (2 (c+d x)) \sqrt{-\frac{b (\sin (2 (c+d x))-1)}{2 a+b}} \sqrt{\frac{b (\sin (2 (c+d x))+1)}{b-2 a}} \left (a+\frac{1}{2} b \sin (2 (c+d x))\right )^{m+1} F_1\left (m+1;\frac{1}{2},\frac{1}{2};m+2;\frac{2 a+b \sin (2 (c+d x))}{2 a-b},\frac{2 a+b \sin (2 (c+d x))}{2 a+b}\right )}{b d (m+1)} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.521, size = 0, normalized size = 0. \begin{align*} \int \left ( a+b\cos \left ( dx+c \right ) \sin \left ( dx+c \right ) \right ) ^{m}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a\right )}^{m}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (b \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a\right )}^{m}, 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 \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a\right )}^{m}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]