Optimal. Leaf size=131 \[ -\frac {7 \cos ^5(c+d x)}{30 a^3 d}-\frac {\cos ^7(c+d x)}{6 d \left (a^3 \sin (c+d x)+a^3\right )}-\frac {7 \sin (c+d x) \cos ^3(c+d x)}{24 a^3 d}-\frac {7 \sin (c+d x) \cos (c+d x)}{16 a^3 d}-\frac {7 x}{16 a^3}-\frac {\cos ^9(c+d x)}{3 d (a \sin (c+d x)+a)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.17, antiderivative size = 131, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {2859, 2679, 2682, 2635, 8} \[ -\frac {7 \cos ^5(c+d x)}{30 a^3 d}-\frac {\cos ^7(c+d x)}{6 d \left (a^3 \sin (c+d x)+a^3\right )}-\frac {7 \sin (c+d x) \cos ^3(c+d x)}{24 a^3 d}-\frac {7 \sin (c+d x) \cos (c+d x)}{16 a^3 d}-\frac {7 x}{16 a^3}-\frac {\cos ^9(c+d x)}{3 d (a \sin (c+d x)+a)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2635
Rule 2679
Rule 2682
Rule 2859
Rubi steps
\begin {align*} \int \frac {\cos ^8(c+d x) \sin (c+d x)}{(a+a \sin (c+d x))^3} \, dx &=-\frac {\cos ^9(c+d x)}{3 d (a+a \sin (c+d x))^3}-\frac {\int \frac {\cos ^8(c+d x)}{(a+a \sin (c+d x))^2} \, dx}{a}\\ &=-\frac {\cos ^9(c+d x)}{3 d (a+a \sin (c+d x))^3}-\frac {\cos ^7(c+d x)}{6 d \left (a^3+a^3 \sin (c+d x)\right )}-\frac {7 \int \frac {\cos ^6(c+d x)}{a+a \sin (c+d x)} \, dx}{6 a^2}\\ &=-\frac {7 \cos ^5(c+d x)}{30 a^3 d}-\frac {\cos ^9(c+d x)}{3 d (a+a \sin (c+d x))^3}-\frac {\cos ^7(c+d x)}{6 d \left (a^3+a^3 \sin (c+d x)\right )}-\frac {7 \int \cos ^4(c+d x) \, dx}{6 a^3}\\ &=-\frac {7 \cos ^5(c+d x)}{30 a^3 d}-\frac {7 \cos ^3(c+d x) \sin (c+d x)}{24 a^3 d}-\frac {\cos ^9(c+d x)}{3 d (a+a \sin (c+d x))^3}-\frac {\cos ^7(c+d x)}{6 d \left (a^3+a^3 \sin (c+d x)\right )}-\frac {7 \int \cos ^2(c+d x) \, dx}{8 a^3}\\ &=-\frac {7 \cos ^5(c+d x)}{30 a^3 d}-\frac {7 \cos (c+d x) \sin (c+d x)}{16 a^3 d}-\frac {7 \cos ^3(c+d x) \sin (c+d x)}{24 a^3 d}-\frac {\cos ^9(c+d x)}{3 d (a+a \sin (c+d x))^3}-\frac {\cos ^7(c+d x)}{6 d \left (a^3+a^3 \sin (c+d x)\right )}-\frac {7 \int 1 \, dx}{16 a^3}\\ &=-\frac {7 x}{16 a^3}-\frac {7 \cos ^5(c+d x)}{30 a^3 d}-\frac {7 \cos (c+d x) \sin (c+d x)}{16 a^3 d}-\frac {7 \cos ^3(c+d x) \sin (c+d x)}{24 a^3 d}-\frac {\cos ^9(c+d x)}{3 d (a+a \sin (c+d x))^3}-\frac {\cos ^7(c+d x)}{6 d \left (a^3+a^3 \sin (c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 1.99, size = 366, normalized size = 2.79 \[ \frac {-840 d x \sin \left (\frac {c}{2}\right )+600 \sin \left (\frac {c}{2}+d x\right )-600 \sin \left (\frac {3 c}{2}+d x\right )+15 \sin \left (\frac {3 c}{2}+2 d x\right )+15 \sin \left (\frac {5 c}{2}+2 d x\right )+140 \sin \left (\frac {5 c}{2}+3 d x\right )-140 \sin \left (\frac {7 c}{2}+3 d x\right )+105 \sin \left (\frac {7 c}{2}+4 d x\right )+105 \sin \left (\frac {9 c}{2}+4 d x\right )-36 \sin \left (\frac {9 c}{2}+5 d x\right )+36 \sin \left (\frac {11 c}{2}+5 d x\right )-5 \sin \left (\frac {11 c}{2}+6 d x\right )-5 \sin \left (\frac {13 c}{2}+6 d x\right )-21 \cos \left (\frac {c}{2}\right ) (40 d x+1)-600 \cos \left (\frac {c}{2}+d x\right )-600 \cos \left (\frac {3 c}{2}+d x\right )+15 \cos \left (\frac {3 c}{2}+2 d x\right )-15 \cos \left (\frac {5 c}{2}+2 d x\right )-140 \cos \left (\frac {5 c}{2}+3 d x\right )-140 \cos \left (\frac {7 c}{2}+3 d x\right )+105 \cos \left (\frac {7 c}{2}+4 d x\right )-105 \cos \left (\frac {9 c}{2}+4 d x\right )+36 \cos \left (\frac {9 c}{2}+5 d x\right )+36 \cos \left (\frac {11 c}{2}+5 d x\right )-5 \cos \left (\frac {11 c}{2}+6 d x\right )+5 \cos \left (\frac {13 c}{2}+6 d x\right )+21 \sin \left (\frac {c}{2}\right )}{1920 a^3 d \left (\sin \left (\frac {c}{2}\right )+\cos \left (\frac {c}{2}\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.47, size = 70, normalized size = 0.53 \[ \frac {144 \, \cos \left (d x + c\right )^{5} - 320 \, \cos \left (d x + c\right )^{3} - 105 \, d x - 5 \, {\left (8 \, \cos \left (d x + c\right )^{5} - 50 \, \cos \left (d x + c\right )^{3} + 21 \, \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{240 \, a^{3} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.24, size = 179, normalized size = 1.37 \[ -\frac {\frac {105 \, {\left (d x + c\right )}}{a^{3}} + \frac {2 \, {\left (105 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{11} + 240 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{10} - 365 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 2160 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{8} - 1110 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 1760 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} + 1110 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 480 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 365 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 816 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 105 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 176\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{6} a^{3}}}{240 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.39, size = 415, normalized size = 3.17 \[ -\frac {7 \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a^{3} d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}-\frac {2 \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d \,a^{3} \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}+\frac {73 \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{24 a^{3} d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}-\frac {18 \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a^{3} d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}+\frac {37 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a^{3} d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}-\frac {44 \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 a^{3} d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}-\frac {37 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a^{3} d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}-\frac {4 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a^{3} d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}-\frac {73 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{24 a^{3} d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}-\frac {34 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5 a^{3} d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}+\frac {7 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 a^{3} d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}-\frac {22}{15 a^{3} d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}-\frac {7 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a^{3} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.47, size = 393, normalized size = 3.00 \[ \frac {\frac {\frac {105 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {816 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {365 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} - \frac {480 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {1110 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {1760 \, \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} + \frac {1110 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} - \frac {2160 \, \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} + \frac {365 \, \sin \left (d x + c\right )^{9}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{9}} - \frac {240 \, \sin \left (d x + c\right )^{10}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{10}} - \frac {105 \, \sin \left (d x + c\right )^{11}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{11}} - 176}{a^{3} + \frac {6 \, a^{3} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {15 \, a^{3} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + \frac {20 \, a^{3} \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} + \frac {15 \, a^{3} \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} + \frac {6 \, a^{3} \sin \left (d x + c\right )^{10}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{10}} + \frac {a^{3} \sin \left (d x + c\right )^{12}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{12}}} - \frac {105 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{3}}}{120 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 12.49, size = 173, normalized size = 1.32 \[ -\frac {7\,x}{16\,a^3}-\frac {\frac {7\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}}{8}+2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}-\frac {73\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9}{24}+18\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8-\frac {37\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7}{4}+\frac {44\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6}{3}+\frac {37\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{4}+4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+\frac {73\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{24}+\frac {34\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{5}-\frac {7\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{8}+\frac {22}{15}}{a^3\,d\,{\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\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]
________________________________________________________________________________________