Optimal. Leaf size=283 \[ \frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (a \left (32 a^2-33 b^2\right )-3 b \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{315 b^4 d}-\frac {8 a \left (32 a^4-65 a^2 b^2+33 b^4\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} F\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{315 b^5 d \sqrt {a+b \sin (c+d x)}}+\frac {8 \left (32 a^4-57 a^2 b^2+21 b^4\right ) \sqrt {a+b \sin (c+d x)} E\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{315 b^5 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.45, antiderivative size = 283, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.207, Rules used = {2865, 2752, 2663, 2661, 2655, 2653} \[ \frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (a \left (32 a^2-33 b^2\right )-3 b \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{315 b^4 d}-\frac {8 a \left (-65 a^2 b^2+32 a^4+33 b^4\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} F\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{315 b^5 d \sqrt {a+b \sin (c+d x)}}+\frac {8 \left (-57 a^2 b^2+32 a^4+21 b^4\right ) \sqrt {a+b \sin (c+d x)} E\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{315 b^5 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 2655
Rule 2661
Rule 2663
Rule 2752
Rule 2865
Rubi steps
\begin {align*} \int \frac {\cos ^4(c+d x) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx &=-\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d}+\frac {4 \int \frac {\cos ^2(c+d x) \left (-\frac {a b}{2}-\frac {1}{2} \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx}{21 b^2}\\ &=-\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (a \left (32 a^2-33 b^2\right )-3 b \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{315 b^4 d}+\frac {16 \int \frac {a b \left (2 a^2-3 b^2\right )+\frac {1}{4} \left (32 a^4-57 a^2 b^2+21 b^4\right ) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx}{315 b^4}\\ &=-\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (a \left (32 a^2-33 b^2\right )-3 b \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{315 b^4 d}+\frac {\left (4 \left (32 a^4-57 a^2 b^2+21 b^4\right )\right ) \int \sqrt {a+b \sin (c+d x)} \, dx}{315 b^5}-\frac {\left (4 a \left (32 a^4-65 a^2 b^2+33 b^4\right )\right ) \int \frac {1}{\sqrt {a+b \sin (c+d x)}} \, dx}{315 b^5}\\ &=-\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (a \left (32 a^2-33 b^2\right )-3 b \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{315 b^4 d}+\frac {\left (4 \left (32 a^4-57 a^2 b^2+21 b^4\right ) \sqrt {a+b \sin (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}} \, dx}{315 b^5 \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {\left (4 a \left (32 a^4-65 a^2 b^2+33 b^4\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}}} \, dx}{315 b^5 \sqrt {a+b \sin (c+d x)}}\\ &=-\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d}+\frac {8 \left (32 a^4-57 a^2 b^2+21 b^4\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{315 b^5 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {8 a \left (32 a^4-65 a^2 b^2+33 b^4\right ) F\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{315 b^5 d \sqrt {a+b \sin (c+d x)}}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (a \left (32 a^2-33 b^2\right )-3 b \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{315 b^4 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 3.14, size = 275, normalized size = 0.97 \[ \frac {32 a \left (32 a^4-65 a^2 b^2+33 b^4\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} F\left (\frac {1}{4} (-2 c-2 d x+\pi )|\frac {2 b}{a+b}\right )-b \cos (c+d x) \left (-512 a^4-128 a^3 b \sin (c+d x)+880 a^2 b^2-8 \left (4 a^2 b^2-21 b^4\right ) \cos (2 (c+d x))+202 a b^3 \sin (c+d x)+10 a b^3 \sin (3 (c+d x))+35 b^4 \cos (4 (c+d x))-203 b^4\right )-32 \left (32 a^5+32 a^4 b-57 a^3 b^2-57 a^2 b^3+21 a b^4+21 b^5\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} E\left (\frac {1}{4} (-2 c-2 d x+\pi )|\frac {2 b}{a+b}\right )}{1260 b^5 d \sqrt {a+b \sin (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.91, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\cos \left (d x + c\right )^{4} \sin \left (d x + c\right )}{\sqrt {b \sin \left (d x + c\right ) + a}}, 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 \frac {\cos \left (d x + c\right )^{4} \sin \left (d x + c\right )}{\sqrt {b \sin \left (d x + c\right ) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.62, size = 1190, normalized size = 4.20 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cos \left (d x + c\right )^{4} \sin \left (d x + c\right )}{\sqrt {b \sin \left (d x + c\right ) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\cos \left (c+d\,x\right )}^4\,\sin \left (c+d\,x\right )}{\sqrt {a+b\,\sin \left (c+d\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________