Optimal. Leaf size=50 \[ \frac {2 a^5 \cos ^3(c+d x)}{d (a-a \sin (c+d x))^2}+\frac {3 a^3 \cos (c+d x)}{d}-3 a^3 x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.14, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {2670, 2680, 2682, 8} \[ \frac {3 a^3 \cos (c+d x)}{d}+\frac {2 a^5 \cos ^3(c+d x)}{d (a-a \sin (c+d x))^2}-3 a^3 x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2670
Rule 2680
Rule 2682
Rubi steps
\begin {align*} \int \sec ^2(c+d x) (a+a \sin (c+d x))^3 \, dx &=a^6 \int \frac {\cos ^4(c+d x)}{(a-a \sin (c+d x))^3} \, dx\\ &=\frac {2 a^5 \cos ^3(c+d x)}{d (a-a \sin (c+d x))^2}-\left (3 a^4\right ) \int \frac {\cos ^2(c+d x)}{a-a \sin (c+d x)} \, dx\\ &=\frac {3 a^3 \cos (c+d x)}{d}+\frac {2 a^5 \cos ^3(c+d x)}{d (a-a \sin (c+d x))^2}-\left (3 a^3\right ) \int 1 \, dx\\ &=-3 a^3 x+\frac {3 a^3 \cos (c+d x)}{d}+\frac {2 a^5 \cos ^3(c+d x)}{d (a-a \sin (c+d x))^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.03, size = 55, normalized size = 1.10 \[ \frac {4 \sqrt {2} a^3 \sqrt {\sin (c+d x)+1} \sec (c+d x) \, _2F_1\left (-\frac {3}{2},-\frac {1}{2};\frac {1}{2};\frac {1}{2} (1-\sin (c+d x))\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.68, size = 101, normalized size = 2.02 \[ -\frac {3 \, a^{3} d x - a^{3} \cos \left (d x + c\right )^{2} - 4 \, a^{3} + {\left (3 \, a^{3} d x - 5 \, a^{3}\right )} \cos \left (d x + c\right ) - {\left (3 \, a^{3} d x - a^{3} \cos \left (d x + c\right ) + 4 \, a^{3}\right )} \sin \left (d x + c\right )}{d \cos \left (d x + c\right ) - d \sin \left (d x + c\right ) + d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.54, size = 91, normalized size = 1.82 \[ -\frac {3 \, {\left (d x + c\right )} a^{3} + \frac {2 \, {\left (4 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 5 \, a^{3}\right )}}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.22, size = 87, normalized size = 1.74 \[ \frac {a^{3} \left (\frac {\sin ^{4}\left (d x +c \right )}{\cos \left (d x +c \right )}+\left (2+\sin ^{2}\left (d x +c \right )\right ) \cos \left (d x +c \right )\right )+3 a^{3} \left (\tan \left (d x +c \right )-d x -c \right )+\frac {3 a^{3}}{\cos \left (d x +c \right )}+a^{3} \tan \left (d x +c \right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.41, size = 68, normalized size = 1.36 \[ -\frac {3 \, {\left (d x + c - \tan \left (d x + c\right )\right )} a^{3} - a^{3} {\left (\frac {1}{\cos \left (d x + c\right )} + \cos \left (d x + c\right )\right )} - a^{3} \tan \left (d x + c\right ) - \frac {3 \, a^{3}}{\cos \left (d x + c\right )}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.78, size = 138, normalized size = 2.76 \[ -3\,a^3\,x-\frac {3\,a^3\,\left (c+d\,x\right )-\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (3\,a^3\,\left (c+d\,x\right )-a^3\,\left (3\,c+3\,d\,x-2\right )\right )-a^3\,\left (3\,c+3\,d\,x-10\right )+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,\left (3\,a^3\,\left (c+d\,x\right )-a^3\,\left (3\,c+3\,d\,x-8\right )\right )}{d\,\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-1\right )\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ a^{3} \left (\int 3 \sin {\left (c + d x \right )} \sec ^{2}{\left (c + d x \right )}\, dx + \int 3 \sin ^{2}{\left (c + d x \right )} \sec ^{2}{\left (c + d x \right )}\, dx + \int \sin ^{3}{\left (c + d x \right )} \sec ^{2}{\left (c + d x \right )}\, dx + \int \sec ^{2}{\left (c + d x \right )}\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________