Optimal. Leaf size=99 \[ \frac {3 a^3 \tan ^5(c+d x)}{35 d}+\frac {2 a^3 \tan ^3(c+d x)}{7 d}+\frac {3 a^3 \tan (c+d x)}{7 d}+\frac {3 a^3 \sec ^5(c+d x)}{35 d}+\frac {2 a \sec ^7(c+d x) (a \sin (c+d x)+a)^2}{7 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 99, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2676, 2669, 3767} \[ \frac {3 a^3 \tan ^5(c+d x)}{35 d}+\frac {2 a^3 \tan ^3(c+d x)}{7 d}+\frac {3 a^3 \tan (c+d x)}{7 d}+\frac {3 a^3 \sec ^5(c+d x)}{35 d}+\frac {2 a \sec ^7(c+d x) (a \sin (c+d x)+a)^2}{7 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2669
Rule 2676
Rule 3767
Rubi steps
\begin {align*} \int \sec ^8(c+d x) (a+a \sin (c+d x))^3 \, dx &=\frac {2 a \sec ^7(c+d x) (a+a \sin (c+d x))^2}{7 d}+\frac {1}{7} \left (3 a^2\right ) \int \sec ^6(c+d x) (a+a \sin (c+d x)) \, dx\\ &=\frac {3 a^3 \sec ^5(c+d x)}{35 d}+\frac {2 a \sec ^7(c+d x) (a+a \sin (c+d x))^2}{7 d}+\frac {1}{7} \left (3 a^3\right ) \int \sec ^6(c+d x) \, dx\\ &=\frac {3 a^3 \sec ^5(c+d x)}{35 d}+\frac {2 a \sec ^7(c+d x) (a+a \sin (c+d x))^2}{7 d}-\frac {\left (3 a^3\right ) \operatorname {Subst}\left (\int \left (1+2 x^2+x^4\right ) \, dx,x,-\tan (c+d x)\right )}{7 d}\\ &=\frac {3 a^3 \sec ^5(c+d x)}{35 d}+\frac {2 a \sec ^7(c+d x) (a+a \sin (c+d x))^2}{7 d}+\frac {3 a^3 \tan (c+d x)}{7 d}+\frac {2 a^3 \tan ^3(c+d x)}{7 d}+\frac {3 a^3 \tan ^5(c+d x)}{35 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 134, normalized size = 1.35 \[ -\frac {8 a^3 \tan ^7(c+d x)}{35 d}+\frac {13 a^3 \sec ^7(c+d x)}{35 d}+\frac {a^3 \tan (c+d x) \sec ^6(c+d x)}{d}+\frac {a^3 \tan ^2(c+d x) \sec ^5(c+d x)}{5 d}-\frac {a^3 \tan ^3(c+d x) \sec ^4(c+d x)}{d}+\frac {4 a^3 \tan ^5(c+d x) \sec ^2(c+d x)}{5 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.54, size = 112, normalized size = 1.13 \[ \frac {8 \, a^{3} \cos \left (d x + c\right )^{4} - 36 \, a^{3} \cos \left (d x + c\right )^{2} + 15 \, a^{3} + 4 \, {\left (6 \, a^{3} \cos \left (d x + c\right )^{2} - 5 \, a^{3}\right )} \sin \left (d x + c\right )}{35 \, {\left (3 \, d \cos \left (d x + c\right )^{3} - 4 \, d \cos \left (d x + c\right ) - {\left (d \cos \left (d x + c\right )^{3} - 4 \, d \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.52, size = 138, normalized size = 1.39 \[ -\frac {\frac {35 \, a^{3}}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1} + \frac {525 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} - 1960 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 4025 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 4480 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 3143 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1176 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 243 \, a^{3}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}^{7}}}{280 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.27, size = 217, normalized size = 2.19 \[ \frac {a^{3} \left (\frac {\sin ^{4}\left (d x +c \right )}{7 \cos \left (d x +c \right )^{7}}+\frac {3 \left (\sin ^{4}\left (d x +c \right )\right )}{35 \cos \left (d x +c \right )^{5}}+\frac {\sin ^{4}\left (d x +c \right )}{35 \cos \left (d x +c \right )^{3}}-\frac {\sin ^{4}\left (d x +c \right )}{35 \cos \left (d x +c \right )}-\frac {\left (2+\sin ^{2}\left (d x +c \right )\right ) \cos \left (d x +c \right )}{35}\right )+3 a^{3} \left (\frac {\sin ^{3}\left (d x +c \right )}{7 \cos \left (d x +c \right )^{7}}+\frac {4 \left (\sin ^{3}\left (d x +c \right )\right )}{35 \cos \left (d x +c \right )^{5}}+\frac {8 \left (\sin ^{3}\left (d x +c \right )\right )}{105 \cos \left (d x +c \right )^{3}}\right )+\frac {3 a^{3}}{7 \cos \left (d x +c \right )^{7}}-a^{3} \left (-\frac {16}{35}-\frac {\left (\sec ^{6}\left (d x +c \right )\right )}{7}-\frac {6 \left (\sec ^{4}\left (d x +c \right )\right )}{35}-\frac {8 \left (\sec ^{2}\left (d x +c \right )\right )}{35}\right ) \tan \left (d x +c \right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.48, size = 122, normalized size = 1.23 \[ \frac {{\left (15 \, \tan \left (d x + c\right )^{7} + 42 \, \tan \left (d x + c\right )^{5} + 35 \, \tan \left (d x + c\right )^{3}\right )} a^{3} + {\left (5 \, \tan \left (d x + c\right )^{7} + 21 \, \tan \left (d x + c\right )^{5} + 35 \, \tan \left (d x + c\right )^{3} + 35 \, \tan \left (d x + c\right )\right )} a^{3} - \frac {{\left (7 \, \cos \left (d x + c\right )^{2} - 5\right )} a^{3}}{\cos \left (d x + c\right )^{7}} + \frac {15 \, a^{3}}{\cos \left (d x + c\right )^{7}}}{35 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.86, size = 228, normalized size = 2.30 \[ \frac {2\,a^3\,\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (13\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7-43\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )+77\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-7\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3-105\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+175\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5-105\,\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+35\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7\right )}{35\,d\,{\left (\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )-\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}^7\,\left (\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )+\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )} \]
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]
________________________________________________________________________________________