Optimal. Leaf size=352 \[ -\frac {14 a^3 c^2 (g \cos (e+f x))^{5/2}}{45 f g \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}+\frac {14 a^3 c^2 g \sqrt {\cos (e+f x)} E\left (\left .\frac {1}{2} (e+f x)\right |2\right ) \sqrt {g \cos (e+f x)}}{15 f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}-\frac {2 a^2 c^2 \sqrt {a \sin (e+f x)+a} (g \cos (e+f x))^{5/2}}{15 f g \sqrt {c-c \sin (e+f x)}}-\frac {2 a c^2 (a \sin (e+f x)+a)^{3/2} (g \cos (e+f x))^{5/2}}{33 f g \sqrt {c-c \sin (e+f x)}}+\frac {14 c^2 (a \sin (e+f x)+a)^{5/2} (g \cos (e+f x))^{5/2}}{99 f g \sqrt {c-c \sin (e+f x)}}+\frac {2 c (a \sin (e+f x)+a)^{5/2} \sqrt {c-c \sin (e+f x)} (g \cos (e+f x))^{5/2}}{11 f g} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.76, antiderivative size = 352, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 4, integrand size = 42, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2851, 2842, 2640, 2639} \[ -\frac {14 a^3 c^2 (g \cos (e+f x))^{5/2}}{45 f g \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}-\frac {2 a^2 c^2 \sqrt {a \sin (e+f x)+a} (g \cos (e+f x))^{5/2}}{15 f g \sqrt {c-c \sin (e+f x)}}+\frac {14 a^3 c^2 g \sqrt {\cos (e+f x)} E\left (\left .\frac {1}{2} (e+f x)\right |2\right ) \sqrt {g \cos (e+f x)}}{15 f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}-\frac {2 a c^2 (a \sin (e+f x)+a)^{3/2} (g \cos (e+f x))^{5/2}}{33 f g \sqrt {c-c \sin (e+f x)}}+\frac {14 c^2 (a \sin (e+f x)+a)^{5/2} (g \cos (e+f x))^{5/2}}{99 f g \sqrt {c-c \sin (e+f x)}}+\frac {2 c (a \sin (e+f x)+a)^{5/2} \sqrt {c-c \sin (e+f x)} (g \cos (e+f x))^{5/2}}{11 f g} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2640
Rule 2842
Rule 2851
Rubi steps
\begin {align*} \int (g \cos (e+f x))^{3/2} (a+a \sin (e+f x))^{5/2} (c-c \sin (e+f x))^{3/2} \, dx &=\frac {2 c (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2} \sqrt {c-c \sin (e+f x)}}{11 f g}+\frac {1}{11} (7 c) \int (g \cos (e+f x))^{3/2} (a+a \sin (e+f x))^{5/2} \sqrt {c-c \sin (e+f x)} \, dx\\ &=\frac {14 c^2 (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2}}{99 f g \sqrt {c-c \sin (e+f x)}}+\frac {2 c (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2} \sqrt {c-c \sin (e+f x)}}{11 f g}+\frac {1}{33} \left (7 c^2\right ) \int \frac {(g \cos (e+f x))^{3/2} (a+a \sin (e+f x))^{5/2}}{\sqrt {c-c \sin (e+f x)}} \, dx\\ &=-\frac {2 a c^2 (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{3/2}}{33 f g \sqrt {c-c \sin (e+f x)}}+\frac {14 c^2 (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2}}{99 f g \sqrt {c-c \sin (e+f x)}}+\frac {2 c (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2} \sqrt {c-c \sin (e+f x)}}{11 f g}+\frac {1}{3} \left (a c^2\right ) \int \frac {(g \cos (e+f x))^{3/2} (a+a \sin (e+f x))^{3/2}}{\sqrt {c-c \sin (e+f x)}} \, dx\\ &=-\frac {2 a^2 c^2 (g \cos (e+f x))^{5/2} \sqrt {a+a \sin (e+f x)}}{15 f g \sqrt {c-c \sin (e+f x)}}-\frac {2 a c^2 (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{3/2}}{33 f g \sqrt {c-c \sin (e+f x)}}+\frac {14 c^2 (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2}}{99 f g \sqrt {c-c \sin (e+f x)}}+\frac {2 c (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2} \sqrt {c-c \sin (e+f x)}}{11 f g}+\frac {1}{15} \left (7 a^2 c^2\right ) \int \frac {(g \cos (e+f x))^{3/2} \sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx\\ &=-\frac {14 a^3 c^2 (g \cos (e+f x))^{5/2}}{45 f g \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}-\frac {2 a^2 c^2 (g \cos (e+f x))^{5/2} \sqrt {a+a \sin (e+f x)}}{15 f g \sqrt {c-c \sin (e+f x)}}-\frac {2 a c^2 (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{3/2}}{33 f g \sqrt {c-c \sin (e+f x)}}+\frac {14 c^2 (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2}}{99 f g \sqrt {c-c \sin (e+f x)}}+\frac {2 c (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2} \sqrt {c-c \sin (e+f x)}}{11 f g}+\frac {1}{15} \left (7 a^3 c^2\right ) \int \frac {(g \cos (e+f x))^{3/2}}{\sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \, dx\\ &=-\frac {14 a^3 c^2 (g \cos (e+f x))^{5/2}}{45 f g \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}-\frac {2 a^2 c^2 (g \cos (e+f x))^{5/2} \sqrt {a+a \sin (e+f x)}}{15 f g \sqrt {c-c \sin (e+f x)}}-\frac {2 a c^2 (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{3/2}}{33 f g \sqrt {c-c \sin (e+f x)}}+\frac {14 c^2 (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2}}{99 f g \sqrt {c-c \sin (e+f x)}}+\frac {2 c (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2} \sqrt {c-c \sin (e+f x)}}{11 f g}+\frac {\left (7 a^3 c^2 g \cos (e+f x)\right ) \int \sqrt {g \cos (e+f x)} \, dx}{15 \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=-\frac {14 a^3 c^2 (g \cos (e+f x))^{5/2}}{45 f g \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}-\frac {2 a^2 c^2 (g \cos (e+f x))^{5/2} \sqrt {a+a \sin (e+f x)}}{15 f g \sqrt {c-c \sin (e+f x)}}-\frac {2 a c^2 (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{3/2}}{33 f g \sqrt {c-c \sin (e+f x)}}+\frac {14 c^2 (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2}}{99 f g \sqrt {c-c \sin (e+f x)}}+\frac {2 c (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2} \sqrt {c-c \sin (e+f x)}}{11 f g}+\frac {\left (7 a^3 c^2 g \sqrt {\cos (e+f x)} \sqrt {g \cos (e+f x)}\right ) \int \sqrt {\cos (e+f x)} \, dx}{15 \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=-\frac {14 a^3 c^2 (g \cos (e+f x))^{5/2}}{45 f g \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}+\frac {14 a^3 c^2 g \sqrt {\cos (e+f x)} \sqrt {g \cos (e+f x)} E\left (\left .\frac {1}{2} (e+f x)\right |2\right )}{15 f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}-\frac {2 a^2 c^2 (g \cos (e+f x))^{5/2} \sqrt {a+a \sin (e+f x)}}{15 f g \sqrt {c-c \sin (e+f x)}}-\frac {2 a c^2 (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{3/2}}{33 f g \sqrt {c-c \sin (e+f x)}}+\frac {14 c^2 (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2}}{99 f g \sqrt {c-c \sin (e+f x)}}+\frac {2 c (g \cos (e+f x))^{5/2} (a+a \sin (e+f x))^{5/2} \sqrt {c-c \sin (e+f x)}}{11 f g}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.28, size = 189, normalized size = 0.54 \[ \frac {c (\sin (e+f x)-1) (a (\sin (e+f x)+1))^{5/2} \sqrt {c-c \sin (e+f x)} (g \cos (e+f x))^{3/2} \left (\sqrt {\cos (e+f x)} (-836 \sin (2 (e+f x))-110 \sin (4 (e+f x))+450 \cos (e+f x)+225 \cos (3 (e+f x))+45 \cos (5 (e+f x)))-3696 E\left (\left .\frac {1}{2} (e+f x)\right |2\right )\right )}{3960 f \cos ^{\frac {3}{2}}(e+f x) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^3 \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.51, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (a^{2} c g \cos \left (f x + e\right )^{3} \sin \left (f x + e\right ) + a^{2} c g \cos \left (f x + e\right )^{3}\right )} \sqrt {g \cos \left (f x + e\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}, 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 (g \cos \left (f x + e\right )\right )^{\frac {3}{2}} {\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {5}{2}} {\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.68, size = 382, normalized size = 1.09 \[ -\frac {2 \left (-c \left (\sin \left (f x +e \right )-1\right )\right )^{\frac {3}{2}} \left (45 \left (\cos ^{6}\left (f x +e \right )\right ) \sin \left (f x +e \right )+231 i \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \cos \left (f x +e \right ) \sin \left (f x +e \right ) \EllipticE \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, i\right )-231 i \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \cos \left (f x +e \right ) \sin \left (f x +e \right ) \EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, i\right )+55 \left (\cos ^{6}\left (f x +e \right )\right )+231 i \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right ) \EllipticE \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, i\right )-231 i \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right ) \EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, i\right )+22 \left (\cos ^{4}\left (f x +e \right )\right )+154 \left (\cos ^{2}\left (f x +e \right )\right )-231 \cos \left (f x +e \right )\right ) \left (g \cos \left (f x +e \right )\right )^{\frac {3}{2}} \left (a \left (1+\sin \left (f x +e \right )\right )\right )^{\frac {5}{2}}}{495 f \left (1+\sin \left (f x +e \right )\right ) \sin \left (f x +e \right ) \cos \left (f x +e \right )^{5}} \]
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 (g \cos \left (f x + e\right )\right )^{\frac {3}{2}} {\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {5}{2}} {\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}\,{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 {\left (g\,\cos \left (e+f\,x\right )\right )}^{3/2}\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{5/2}\,{\left (c-c\,\sin \left (e+f\,x\right )\right )}^{3/2} \,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]
________________________________________________________________________________________