Optimal. Leaf size=106 \[ -\frac {2^{n-3} \cot ^3(c+d x) \left (\frac {1}{\sec (c+d x)+1}\right )^{n-3} (a \sec (c+d x)+a)^n F_1\left (-\frac {3}{2};n-4,1;-\frac {1}{2};-\frac {a-a \sec (c+d x)}{\sec (c+d x) a+a},\frac {a-a \sec (c+d x)}{\sec (c+d x) a+a}\right )}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 106, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, Rules used = {3889} \[ -\frac {2^{n-3} \cot ^3(c+d x) \left (\frac {1}{\sec (c+d x)+1}\right )^{n-3} (a \sec (c+d x)+a)^n F_1\left (-\frac {3}{2};n-4,1;-\frac {1}{2};-\frac {a-a \sec (c+d x)}{\sec (c+d x) a+a},\frac {a-a \sec (c+d x)}{\sec (c+d x) a+a}\right )}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3889
Rubi steps
\begin {align*} \int \cot ^4(c+d x) (a+a \sec (c+d x))^n \, dx &=-\frac {2^{-3+n} F_1\left (-\frac {3}{2};-4+n,1;-\frac {1}{2};-\frac {a-a \sec (c+d x)}{a+a \sec (c+d x)},\frac {a-a \sec (c+d x)}{a+a \sec (c+d x)}\right ) \cot ^3(c+d x) \left (\frac {1}{1+\sec (c+d x)}\right )^{-3+n} (a+a \sec (c+d x))^n}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 1.70, size = 0, normalized size = 0.00 \[ \int \cot ^4(c+d x) (a+a \sec (c+d x))^n \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.50, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (a \sec \left (d x + c\right ) + a\right )}^{n} \cot \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 {\left (a \sec \left (d x + c\right ) + a\right )}^{n} \cot \left (d x + c\right )^{4}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.13, size = 0, normalized size = 0.00 \[ \int \left (\cot ^{4}\left (d x +c \right )\right ) \left (a +a \sec \left (d x +c \right )\right )^{n}\, 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 {\left (a \sec \left (d x + c\right ) + a\right )}^{n} \cot \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.01 \[ \int {\mathrm {cot}\left (c+d\,x\right )}^4\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^n \,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]
________________________________________________________________________________________