Optimal. Leaf size=124 \[ -\frac {3 a^3 \cot ^5(c+d x)}{5 d}-\frac {4 a^3 \cot ^3(c+d x)}{3 d}+\frac {7 a^3 \tanh ^{-1}(\cos (c+d x))}{16 d}-\frac {a^3 \cot (c+d x) \csc ^5(c+d x)}{6 d}-\frac {17 a^3 \cot (c+d x) \csc ^3(c+d x)}{24 d}+\frac {7 a^3 \cot (c+d x) \csc (c+d x)}{16 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.28, antiderivative size = 124, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 7, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.241, Rules used = {2873, 2607, 30, 2611, 3768, 3770, 14} \[ -\frac {3 a^3 \cot ^5(c+d x)}{5 d}-\frac {4 a^3 \cot ^3(c+d x)}{3 d}+\frac {7 a^3 \tanh ^{-1}(\cos (c+d x))}{16 d}-\frac {a^3 \cot (c+d x) \csc ^5(c+d x)}{6 d}-\frac {17 a^3 \cot (c+d x) \csc ^3(c+d x)}{24 d}+\frac {7 a^3 \cot (c+d x) \csc (c+d x)}{16 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 30
Rule 2607
Rule 2611
Rule 2873
Rule 3768
Rule 3770
Rubi steps
\begin {align*} \int \cot ^2(c+d x) \csc ^5(c+d x) (a+a \sin (c+d x))^3 \, dx &=\int \left (a^3 \cot ^2(c+d x) \csc ^2(c+d x)+3 a^3 \cot ^2(c+d x) \csc ^3(c+d x)+3 a^3 \cot ^2(c+d x) \csc ^4(c+d x)+a^3 \cot ^2(c+d x) \csc ^5(c+d x)\right ) \, dx\\ &=a^3 \int \cot ^2(c+d x) \csc ^2(c+d x) \, dx+a^3 \int \cot ^2(c+d x) \csc ^5(c+d x) \, dx+\left (3 a^3\right ) \int \cot ^2(c+d x) \csc ^3(c+d x) \, dx+\left (3 a^3\right ) \int \cot ^2(c+d x) \csc ^4(c+d x) \, dx\\ &=-\frac {3 a^3 \cot (c+d x) \csc ^3(c+d x)}{4 d}-\frac {a^3 \cot (c+d x) \csc ^5(c+d x)}{6 d}-\frac {1}{6} a^3 \int \csc ^5(c+d x) \, dx-\frac {1}{4} \left (3 a^3\right ) \int \csc ^3(c+d x) \, dx+\frac {a^3 \operatorname {Subst}\left (\int x^2 \, dx,x,-\cot (c+d x)\right )}{d}+\frac {\left (3 a^3\right ) \operatorname {Subst}\left (\int x^2 \left (1+x^2\right ) \, dx,x,-\cot (c+d x)\right )}{d}\\ &=-\frac {a^3 \cot ^3(c+d x)}{3 d}+\frac {3 a^3 \cot (c+d x) \csc (c+d x)}{8 d}-\frac {17 a^3 \cot (c+d x) \csc ^3(c+d x)}{24 d}-\frac {a^3 \cot (c+d x) \csc ^5(c+d x)}{6 d}-\frac {1}{8} a^3 \int \csc ^3(c+d x) \, dx-\frac {1}{8} \left (3 a^3\right ) \int \csc (c+d x) \, dx+\frac {\left (3 a^3\right ) \operatorname {Subst}\left (\int \left (x^2+x^4\right ) \, dx,x,-\cot (c+d x)\right )}{d}\\ &=\frac {3 a^3 \tanh ^{-1}(\cos (c+d x))}{8 d}-\frac {4 a^3 \cot ^3(c+d x)}{3 d}-\frac {3 a^3 \cot ^5(c+d x)}{5 d}+\frac {7 a^3 \cot (c+d x) \csc (c+d x)}{16 d}-\frac {17 a^3 \cot (c+d x) \csc ^3(c+d x)}{24 d}-\frac {a^3 \cot (c+d x) \csc ^5(c+d x)}{6 d}-\frac {1}{16} a^3 \int \csc (c+d x) \, dx\\ &=\frac {7 a^3 \tanh ^{-1}(\cos (c+d x))}{16 d}-\frac {4 a^3 \cot ^3(c+d x)}{3 d}-\frac {3 a^3 \cot ^5(c+d x)}{5 d}+\frac {7 a^3 \cot (c+d x) \csc (c+d x)}{16 d}-\frac {17 a^3 \cot (c+d x) \csc ^3(c+d x)}{24 d}-\frac {a^3 \cot (c+d x) \csc ^5(c+d x)}{6 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 3.59, size = 252, normalized size = 2.03 \[ -\frac {a^3 \sin (c+d x) (\sin (c+d x)+1)^3 \left (\csc ^6\left (\frac {1}{2} (c+d x)\right ) (5 \csc (c+d x)+18)+\csc ^4\left (\frac {1}{2} (c+d x)\right ) (90 \csc (c+d x)+34)-2 \csc ^2\left (\frac {1}{2} (c+d x)\right ) (105 \csc (c+d x)+176)+(159 \cos (c+d x)+44 \cos (2 (c+d x))+97) \sec ^6\left (\frac {1}{2} (c+d x)\right )-320 \sin ^6\left (\frac {1}{2} (c+d x)\right ) \csc ^7(c+d x)-1440 \sin ^4\left (\frac {1}{2} (c+d x)\right ) \csc ^5(c+d x)+840 \sin ^2\left (\frac {1}{2} (c+d x)\right ) \csc ^3(c+d x)-840 \csc (c+d x) \left (\log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )\right )\right )}{1920 d \left (\sin \left (\frac {1}{2} (c+d x)\right )+\cos \left (\frac {1}{2} (c+d x)\right )\right )^6} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.50, size = 227, normalized size = 1.83 \[ -\frac {210 \, a^{3} \cos \left (d x + c\right )^{5} - 80 \, a^{3} \cos \left (d x + c\right )^{3} - 210 \, a^{3} \cos \left (d x + c\right ) - 105 \, {\left (a^{3} \cos \left (d x + c\right )^{6} - 3 \, a^{3} \cos \left (d x + c\right )^{4} + 3 \, a^{3} \cos \left (d x + c\right )^{2} - a^{3}\right )} \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) + 105 \, {\left (a^{3} \cos \left (d x + c\right )^{6} - 3 \, a^{3} \cos \left (d x + c\right )^{4} + 3 \, a^{3} \cos \left (d x + c\right )^{2} - a^{3}\right )} \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) + 32 \, {\left (11 \, a^{3} \cos \left (d x + c\right )^{5} - 20 \, a^{3} \cos \left (d x + c\right )^{3}\right )} \sin \left (d x + c\right )}{480 \, {\left (d \cos \left (d x + c\right )^{6} - 3 \, d \cos \left (d x + c\right )^{4} + 3 \, d \cos \left (d x + c\right )^{2} - d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.28, size = 228, normalized size = 1.84 \[ \frac {5 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} + 36 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 105 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 140 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 15 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 840 \, a^{3} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right ) - 600 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \frac {2058 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} + 600 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 15 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 140 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 105 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 36 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 5 \, a^{3}}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6}}}{1920 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.35, size = 160, normalized size = 1.29 \[ -\frac {11 a^{3} \left (\cos ^{3}\left (d x +c \right )\right )}{15 d \sin \left (d x +c \right )^{3}}-\frac {7 a^{3} \left (\cos ^{3}\left (d x +c \right )\right )}{8 d \sin \left (d x +c \right )^{4}}-\frac {7 a^{3} \left (\cos ^{3}\left (d x +c \right )\right )}{16 d \sin \left (d x +c \right )^{2}}-\frac {7 a^{3} \cos \left (d x +c \right )}{16 d}-\frac {7 a^{3} \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )}{16 d}-\frac {3 a^{3} \left (\cos ^{3}\left (d x +c \right )\right )}{5 d \sin \left (d x +c \right )^{5}}-\frac {a^{3} \left (\cos ^{3}\left (d x +c \right )\right )}{6 d \sin \left (d x +c \right )^{6}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.35, size = 200, normalized size = 1.61 \[ -\frac {5 \, a^{3} {\left (\frac {2 \, {\left (3 \, \cos \left (d x + c\right )^{5} - 8 \, \cos \left (d x + c\right )^{3} - 3 \, \cos \left (d x + c\right )\right )}}{\cos \left (d x + c\right )^{6} - 3 \, \cos \left (d x + c\right )^{4} + 3 \, \cos \left (d x + c\right )^{2} - 1} - 3 \, \log \left (\cos \left (d x + c\right ) + 1\right ) + 3 \, \log \left (\cos \left (d x + c\right ) - 1\right )\right )} + 90 \, a^{3} {\left (\frac {2 \, {\left (\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )\right )}}{\cos \left (d x + c\right )^{4} - 2 \, \cos \left (d x + c\right )^{2} + 1} - \log \left (\cos \left (d x + c\right ) + 1\right ) + \log \left (\cos \left (d x + c\right ) - 1\right )\right )} + \frac {160 \, a^{3}}{\tan \left (d x + c\right )^{3}} + \frac {96 \, {\left (5 \, \tan \left (d x + c\right )^{2} + 3\right )} a^{3}}{\tan \left (d x + c\right )^{5}}}{480 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 9.67, size = 339, normalized size = 2.73 \[ -\frac {a^3\,\left (5\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}-5\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}-36\,\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}+36\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )-105\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}-140\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+15\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8+600\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7-600\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5-15\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+140\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+105\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+840\,\ln \left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\right )}{1920\,d\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6} \]
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]
________________________________________________________________________________________