Optimal. Leaf size=100 \[ -\frac {\cot ^5(c+d x)}{5 a d}-\frac {\cot ^3(c+d x)}{3 a d}-\frac {\tanh ^{-1}(\cos (c+d x))}{8 a d}+\frac {\cot (c+d x) \csc ^3(c+d x)}{4 a d}-\frac {\cot (c+d x) \csc (c+d x)}{8 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.17, antiderivative size = 100, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.207, Rules used = {2839, 2607, 14, 2611, 3768, 3770} \[ -\frac {\cot ^5(c+d x)}{5 a d}-\frac {\cot ^3(c+d x)}{3 a d}-\frac {\tanh ^{-1}(\cos (c+d x))}{8 a d}+\frac {\cot (c+d x) \csc ^3(c+d x)}{4 a d}-\frac {\cot (c+d x) \csc (c+d x)}{8 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2607
Rule 2611
Rule 2839
Rule 3768
Rule 3770
Rubi steps
\begin {align*} \int \frac {\cot ^4(c+d x) \csc ^2(c+d x)}{a+a \sin (c+d x)} \, dx &=-\frac {\int \cot ^2(c+d x) \csc ^3(c+d x) \, dx}{a}+\frac {\int \cot ^2(c+d x) \csc ^4(c+d x) \, dx}{a}\\ &=\frac {\cot (c+d x) \csc ^3(c+d x)}{4 a d}+\frac {\int \csc ^3(c+d x) \, dx}{4 a}+\frac {\operatorname {Subst}\left (\int x^2 \left (1+x^2\right ) \, dx,x,-\cot (c+d x)\right )}{a d}\\ &=-\frac {\cot (c+d x) \csc (c+d x)}{8 a d}+\frac {\cot (c+d x) \csc ^3(c+d x)}{4 a d}+\frac {\int \csc (c+d x) \, dx}{8 a}+\frac {\operatorname {Subst}\left (\int \left (x^2+x^4\right ) \, dx,x,-\cot (c+d x)\right )}{a d}\\ &=-\frac {\tanh ^{-1}(\cos (c+d x))}{8 a d}-\frac {\cot ^3(c+d x)}{3 a d}-\frac {\cot ^5(c+d x)}{5 a d}-\frac {\cot (c+d x) \csc (c+d x)}{8 a d}+\frac {\cot (c+d x) \csc ^3(c+d x)}{4 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.59, size = 189, normalized size = 1.89 \[ -\frac {\csc ^5(c+d x) \left (-180 \sin (2 (c+d x))-30 \sin (4 (c+d x))+320 \cos (c+d x)+80 \cos (3 (c+d x))-16 \cos (5 (c+d x))-150 \sin (c+d x) \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )+75 \sin (3 (c+d x)) \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )-15 \sin (5 (c+d x)) \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )+150 \sin (c+d x) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )-75 \sin (3 (c+d x)) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )+15 \sin (5 (c+d x)) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )\right )}{1920 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 161, normalized size = 1.61 \[ \frac {32 \, \cos \left (d x + c\right )^{5} - 80 \, \cos \left (d x + c\right )^{3} - 15 \, {\left (\cos \left (d x + c\right )^{4} - 2 \, \cos \left (d x + c\right )^{2} + 1\right )} \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) \sin \left (d x + c\right ) + 15 \, {\left (\cos \left (d x + c\right )^{4} - 2 \, \cos \left (d x + c\right )^{2} + 1\right )} \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) \sin \left (d x + c\right ) + 30 \, {\left (\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{240 \, {\left (a d \cos \left (d x + c\right )^{4} - 2 \, a d \cos \left (d x + c\right )^{2} + a d\right )} \sin \left (d x + c\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.20, size = 157, normalized size = 1.57 \[ \frac {\frac {120 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a} + \frac {6 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 15 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 10 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 60 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{5}} - \frac {274 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 60 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 10 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 15 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 6}{a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5}}}{960 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.46, size = 170, normalized size = 1.70 \[ \frac {\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )}{160 a d}-\frac {\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )}{64 a d}+\frac {\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )}{96 a d}-\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{16 a d}+\frac {1}{16 a d \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}+\frac {\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a d}-\frac {1}{160 a d \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}+\frac {1}{64 a d \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}-\frac {1}{96 a d \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.32, size = 195, normalized size = 1.95 \[ -\frac {\frac {\frac {60 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {10 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {15 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {6 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}}}{a} - \frac {120 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a} - \frac {{\left (\frac {15 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {10 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {60 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - 6\right )} {\left (\cos \left (d x + c\right ) + 1\right )}^{5}}{a \sin \left (d x + c\right )^{5}}}{960 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 8.75, size = 151, normalized size = 1.51 \[ \frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{96\,a\,d}-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{64\,a\,d}+\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{160\,a\,d}+\frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{8\,a\,d}-\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{16\,a\,d}+\frac {{\mathrm {cot}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{3}+\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2}-\frac {1}{5}\right )}{32\,a\,d} \]
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]
________________________________________________________________________________________