Optimal. Leaf size=101 \[ \frac {\cos ^3(c+d x)}{3 a d}+\frac {\cos (c+d x)}{a d}-\frac {\sin (c+d x) \cos ^3(c+d x)}{4 a d}-\frac {3 \sin (c+d x) \cos (c+d x)}{8 a d}-\frac {\tanh ^{-1}(\cos (c+d x))}{a d}-\frac {3 x}{8 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 101, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 6, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2839, 2592, 302, 206, 2635, 8} \[ \frac {\cos ^3(c+d x)}{3 a d}+\frac {\cos (c+d x)}{a d}-\frac {\sin (c+d x) \cos ^3(c+d x)}{4 a d}-\frac {3 \sin (c+d x) \cos (c+d x)}{8 a d}-\frac {\tanh ^{-1}(\cos (c+d x))}{a d}-\frac {3 x}{8 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 206
Rule 302
Rule 2592
Rule 2635
Rule 2839
Rubi steps
\begin {align*} \int \frac {\cos ^5(c+d x) \cot (c+d x)}{a+a \sin (c+d x)} \, dx &=-\frac {\int \cos ^4(c+d x) \, dx}{a}+\frac {\int \cos ^3(c+d x) \cot (c+d x) \, dx}{a}\\ &=-\frac {\cos ^3(c+d x) \sin (c+d x)}{4 a d}-\frac {3 \int \cos ^2(c+d x) \, dx}{4 a}-\frac {\operatorname {Subst}\left (\int \frac {x^4}{1-x^2} \, dx,x,\cos (c+d x)\right )}{a d}\\ &=-\frac {3 \cos (c+d x) \sin (c+d x)}{8 a d}-\frac {\cos ^3(c+d x) \sin (c+d x)}{4 a d}-\frac {3 \int 1 \, dx}{8 a}-\frac {\operatorname {Subst}\left (\int \left (-1-x^2+\frac {1}{1-x^2}\right ) \, dx,x,\cos (c+d x)\right )}{a d}\\ &=-\frac {3 x}{8 a}+\frac {\cos (c+d x)}{a d}+\frac {\cos ^3(c+d x)}{3 a d}-\frac {3 \cos (c+d x) \sin (c+d x)}{8 a d}-\frac {\cos ^3(c+d x) \sin (c+d x)}{4 a d}-\frac {\operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cos (c+d x)\right )}{a d}\\ &=-\frac {3 x}{8 a}-\frac {\tanh ^{-1}(\cos (c+d x))}{a d}+\frac {\cos (c+d x)}{a d}+\frac {\cos ^3(c+d x)}{3 a d}-\frac {3 \cos (c+d x) \sin (c+d x)}{8 a d}-\frac {\cos ^3(c+d x) \sin (c+d x)}{4 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.37, size = 86, normalized size = 0.85 \[ \frac {120 \cos (c+d x)+8 \cos (3 (c+d x))-3 \left (8 \sin (2 (c+d x))+\sin (4 (c+d x))+4 \left (-8 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )+8 \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )+3 c+3 d x\right )\right )}{96 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.69, size = 84, normalized size = 0.83 \[ \frac {8 \, \cos \left (d x + c\right )^{3} - 9 \, d x - 3 \, {\left (2 \, \cos \left (d x + c\right )^{3} + 3 \, \cos \left (d x + c\right )\right )} \sin \left (d x + c\right ) + 24 \, \cos \left (d x + c\right ) - 12 \, \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) + 12 \, \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right )}{24 \, a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 143, normalized size = 1.42 \[ -\frac {\frac {9 \, {\left (d x + c\right )}}{a} - \frac {24 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a} - \frac {2 \, {\left (15 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 48 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} - 9 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 96 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 9 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 80 \, \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 ) + 32\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{4} a}}{24 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.41, size = 296, normalized size = 2.93 \[ \frac {5 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}+\frac {4 \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}-\frac {3 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}+\frac {8 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}+\frac {3 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}+\frac {20 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 a d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}-\frac {5 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 a d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}+\frac {8}{3 a d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}-\frac {3 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a d}+\frac {\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.54, size = 280, normalized size = 2.77 \[ -\frac {\frac {\frac {15 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {80 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {9 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} - \frac {96 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + \frac {9 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {48 \, \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} - \frac {15 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} - 32}{a + \frac {4 \, a \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {6 \, a \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + \frac {4 \, a \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} + \frac {a \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}}} + \frac {9 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a} - \frac {12 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a}}{12 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 10.43, size = 225, normalized size = 2.23 \[ \frac {3\,\mathrm {atan}\left (\frac {9}{16\,\left (\frac {9\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{16}+\frac {3}{2}\right )}-\frac {3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2\,\left (\frac {9\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{16}+\frac {3}{2}\right )}\right )}{4\,a\,d}+\frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a\,d}+\frac {\frac {5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7}{4}+4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6-\frac {3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{4}+8\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+\frac {3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{4}+\frac {20\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{3}-\frac {5\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{4}+\frac {8}{3}}{d\,\left (a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8+4\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+6\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+4\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+a\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\cos ^{6}{\left (c + d x \right )} \csc {\left (c + d x \right )}}{\sin {\left (c + d x \right )} + 1}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________