Optimal. Leaf size=298 \[ -\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (4 a \left (a^2-3 b^2\right )-3 b \left (a^2+7 b^2\right ) \sin (c+d x)\right )}{315 b^3 d}+\frac {32 a \left (a^4-4 a^2 b^2+3 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^4 d \sqrt {a+b \sin (c+d x)}}-\frac {8 \left (4 a^4-15 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^4 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {2 \cos ^3(c+d x) (a+b \sin (c+d x))^{3/2}}{9 b d}-\frac {4 a \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)}}{21 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.57, antiderivative size = 298, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 8, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.348, Rules used = {2695, 2862, 2865, 2752, 2663, 2661, 2655, 2653} \[ -\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (4 a \left (a^2-3 b^2\right )-3 b \left (a^2+7 b^2\right ) \sin (c+d x)\right )}{315 b^3 d}+\frac {32 a \left (-4 a^2 b^2+a^4+3 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^4 d \sqrt {a+b \sin (c+d x)}}-\frac {8 \left (-15 a^2 b^2+4 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^4 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {2 \cos ^3(c+d x) (a+b \sin (c+d x))^{3/2}}{9 b d}-\frac {4 a \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)}}{21 b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 2655
Rule 2661
Rule 2663
Rule 2695
Rule 2752
Rule 2862
Rule 2865
Rubi steps
\begin {align*} \int \cos ^4(c+d x) \sqrt {a+b \sin (c+d x)} \, dx &=\frac {2 \cos ^3(c+d x) (a+b \sin (c+d x))^{3/2}}{9 b d}+\frac {2 \int \cos ^2(c+d x) (b+a \sin (c+d x)) \sqrt {a+b \sin (c+d x)} \, dx}{3 b}\\ &=-\frac {4 a \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)}}{21 b d}+\frac {2 \cos ^3(c+d x) (a+b \sin (c+d x))^{3/2}}{9 b d}+\frac {4 \int \frac {\cos ^2(c+d x) \left (4 a b+\frac {1}{2} \left (a^2+7 b^2\right ) \sin (c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx}{21 b}\\ &=-\frac {4 a \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)}}{21 b d}+\frac {2 \cos ^3(c+d x) (a+b \sin (c+d x))^{3/2}}{9 b d}-\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (4 a \left (a^2-3 b^2\right )-3 b \left (a^2+7 b^2\right ) \sin (c+d x)\right )}{315 b^3 d}+\frac {16 \int \frac {-\frac {1}{4} a b \left (a^2-33 b^2\right )-\frac {1}{4} \left (4 a^4-15 a^2 b^2-21 b^4\right ) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx}{315 b^3}\\ &=-\frac {4 a \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)}}{21 b d}+\frac {2 \cos ^3(c+d x) (a+b \sin (c+d x))^{3/2}}{9 b d}-\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (4 a \left (a^2-3 b^2\right )-3 b \left (a^2+7 b^2\right ) \sin (c+d x)\right )}{315 b^3 d}+\frac {\left (16 a \left (a^4-4 a^2 b^2+3 b^4\right )\right ) \int \frac {1}{\sqrt {a+b \sin (c+d x)}} \, dx}{315 b^4}+\frac {\left (4 \left (-4 a^4+15 a^2 b^2+21 b^4\right )\right ) \int \sqrt {a+b \sin (c+d x)} \, dx}{315 b^4}\\ &=-\frac {4 a \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)}}{21 b d}+\frac {2 \cos ^3(c+d x) (a+b \sin (c+d x))^{3/2}}{9 b d}-\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (4 a \left (a^2-3 b^2\right )-3 b \left (a^2+7 b^2\right ) \sin (c+d x)\right )}{315 b^3 d}+\frac {\left (4 \left (-4 a^4+15 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^4 \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {\left (16 a \left (a^4-4 a^2 b^2+3 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^4 \sqrt {a+b \sin (c+d x)}}\\ &=-\frac {4 a \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)}}{21 b d}+\frac {2 \cos ^3(c+d x) (a+b \sin (c+d x))^{3/2}}{9 b d}-\frac {8 \left (4 a^4-15 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^4 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {32 a \left (a^4-4 a^2 b^2+3 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^4 d \sqrt {a+b \sin (c+d x)}}-\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (4 a \left (a^2-3 b^2\right )-3 b \left (a^2+7 b^2\right ) \sin (c+d x)\right )}{315 b^3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.91, size = 233, normalized size = 0.78 \[ \frac {32 \sqrt {\frac {a+b \sin (c+d x)}{a+b}} \left (a b^2 \left (a^2-33 b^2\right ) F\left (\frac {1}{4} (-2 c-2 d x+\pi )|\frac {2 b}{a+b}\right )+\left (4 a^4-15 a^2 b^2-21 b^4\right ) \left ((a+b) E\left (\frac {1}{4} (-2 c-2 d x+\pi )|\frac {2 b}{a+b}\right )-a F\left (\frac {1}{4} (-2 c-2 d x+\pi )|\frac {2 b}{a+b}\right )\right )\right )+2 b \cos (c+d x) (a+b \sin (c+d x)) \left (-32 a^3+b \left (24 a^2+203 b^2\right ) \sin (c+d x)+10 a b^2 \cos (2 (c+d x))+106 a b^2+35 b^3 \sin (3 (c+d x))\right )}{1260 b^4 d \sqrt {a+b \sin (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.04, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\sqrt {b \sin \left (d x + c\right ) + a} \cos \left (d x + c\right )^{4}, 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 \sqrt {b \sin \left (d x + c\right ) + a} \cos \left (d x + c\right )^{4}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.69, size = 1189, normalized size = 3.99 \[ \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 \sqrt {b \sin \left (d x + c\right ) + a} \cos \left (d x + c\right )^{4}\,{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 {\cos \left (c+d\,x\right )}^4\,\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] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a + b \sin {\left (c + d x \right )}} \cos ^{4}{\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________