Optimal. Leaf size=121 \[ -\frac {\sqrt {2} (1-\sin (e+f x))^2 \cos (e+f x) (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n} F_1\left (\frac {5}{2};\frac {1}{2},-n;\frac {7}{2};\frac {1}{2} (1-\sin (e+f x)),\frac {d (1-\sin (e+f x))}{c+d}\right )}{5 a^2 f \sqrt {\sin (e+f x)+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.24, antiderivative size = 121, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {2914, 2784, 139, 138} \[ -\frac {\sqrt {2} (1-\sin (e+f x))^2 \cos (e+f x) (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n} F_1\left (\frac {5}{2};\frac {1}{2},-n;\frac {7}{2};\frac {1}{2} (1-\sin (e+f x)),\frac {d (1-\sin (e+f x))}{c+d}\right )}{5 a^2 f \sqrt {\sin (e+f x)+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 138
Rule 139
Rule 2784
Rule 2914
Rubi steps
\begin {align*} \int \frac {\cos ^4(e+f x) (c+d \sin (e+f x))^n}{(a+a \sin (e+f x))^2} \, dx &=\frac {\int (a-a \sin (e+f x))^2 (c+d \sin (e+f x))^n \, dx}{a^4}\\ &=\frac {\cos (e+f x) \operatorname {Subst}\left (\int \frac {(1-x)^{3/2} (c+d x)^n}{\sqrt {1+x}} \, dx,x,\sin (e+f x)\right )}{a^2 f \sqrt {1-\sin (e+f x)} \sqrt {1+\sin (e+f x)}}\\ &=\frac {\left (\cos (e+f x) (c+d \sin (e+f x))^n \left (-\frac {c+d \sin (e+f x)}{-c-d}\right )^{-n}\right ) \operatorname {Subst}\left (\int \frac {(1-x)^{3/2} \left (-\frac {c}{-c-d}-\frac {d x}{-c-d}\right )^n}{\sqrt {1+x}} \, dx,x,\sin (e+f x)\right )}{a^2 f \sqrt {1-\sin (e+f x)} \sqrt {1+\sin (e+f x)}}\\ &=-\frac {\sqrt {2} F_1\left (\frac {5}{2};\frac {1}{2},-n;\frac {7}{2};\frac {1}{2} (1-\sin (e+f x)),\frac {d (1-\sin (e+f x))}{c+d}\right ) \cos (e+f x) (1-\sin (e+f x))^2 (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n}}{5 a^2 f \sqrt {1+\sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 17.61, size = 0, normalized size = 0.00 \[ \int \frac {\cos ^4(e+f x) (c+d \sin (e+f x))^n}{(a+a \sin (e+f x))^2} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.78, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-\frac {{\left (d \sin \left (f x + e\right ) + c\right )}^{n} \cos \left (f x + e\right )^{4}}{a^{2} \cos \left (f x + e\right )^{2} - 2 \, a^{2} \sin \left (f x + e\right ) - 2 \, a^{2}}, 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 {{\left (d \sin \left (f x + e\right ) + c\right )}^{n} \cos \left (f x + e\right )^{4}}{{\left (a \sin \left (f x + e\right ) + a\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 5.53, size = 0, normalized size = 0.00 \[ \int \frac {\left (\cos ^{4}\left (f x +e \right )\right ) \left (c +d \sin \left (f x +e \right )\right )^{n}}{\left (a +a \sin \left (f x +e \right )\right )^{2}}\, 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 \frac {{\left (d \sin \left (f x + e\right ) + c\right )}^{n} \cos \left (f x + e\right )^{4}}{{\left (a \sin \left (f x + e\right ) + a\right )}^{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.01 \[ \int \frac {{\cos \left (e+f\,x\right )}^4\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^n}{{\left (a+a\,\sin \left (e+f\,x\right )\right )}^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]
________________________________________________________________________________________