Optimal. Leaf size=49 \[ -\frac {3 \cos (c+d x)}{a^3 d}-\frac {3 x}{a^3}-\frac {2 \cos ^3(c+d x)}{a d (a \sin (c+d x)+a)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2680, 2682, 8} \[ -\frac {3 \cos (c+d x)}{a^3 d}-\frac {3 x}{a^3}-\frac {2 \cos ^3(c+d x)}{a d (a \sin (c+d x)+a)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2680
Rule 2682
Rubi steps
\begin {align*} \int \frac {\cos ^4(c+d x)}{(a+a \sin (c+d x))^3} \, dx &=-\frac {2 \cos ^3(c+d x)}{a d (a+a \sin (c+d x))^2}-\frac {3 \int \frac {\cos ^2(c+d x)}{a+a \sin (c+d x)} \, dx}{a^2}\\ &=-\frac {3 \cos (c+d x)}{a^3 d}-\frac {2 \cos ^3(c+d x)}{a d (a+a \sin (c+d x))^2}-\frac {3 \int 1 \, dx}{a^3}\\ &=-\frac {3 x}{a^3}-\frac {3 \cos (c+d x)}{a^3 d}-\frac {2 \cos ^3(c+d x)}{a d (a+a \sin (c+d x))^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.04, size = 59, normalized size = 1.20 \[ -\frac {\cos ^5(c+d x) \, _2F_1\left (\frac {3}{2},\frac {5}{2};\frac {7}{2};\frac {1}{2} (1-\sin (c+d x))\right )}{5 \sqrt {2} a^3 d (\sin (c+d x)+1)^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.54, size = 78, normalized size = 1.59 \[ -\frac {3 \, d x + {\left (3 \, d x + 5\right )} \cos \left (d x + c\right ) + \cos \left (d x + c\right )^{2} + {\left (3 \, d x + \cos \left (d x + c\right ) - 4\right )} \sin \left (d x + c\right ) + 4}{a^{3} d \cos \left (d x + c\right ) + a^{3} d \sin \left (d x + c\right ) + a^{3} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 2.08, size = 80, normalized size = 1.63 \[ -\frac {\frac {3 \, {\left (d x + c\right )}}{a^{3}} + \frac {2 \, {\left (4 \, \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 ) + 5\right )}}{{\left (\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\right )} a^{3}}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.21, size = 64, normalized size = 1.31 \[ -\frac {2}{a^{3} d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}-\frac {6 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a^{3} d}-\frac {8}{a^{3} d \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.59, size = 139, normalized size = 2.84 \[ -\frac {2 \, {\left (\frac {\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {4 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + 5}{a^{3} + \frac {a^{3} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {a^{3} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {a^{3} \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}} + \frac {3 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{3}}\right )}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.85, size = 69, normalized size = 1.41 \[ -\frac {3\,x}{a^3}-\frac {8\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+10}{a^3\,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 [A] time = 40.79, size = 478, normalized size = 9.76 \[ \begin {cases} - \frac {3 d x \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{a^{3} d \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d} - \frac {3 d x \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{a^{3} d \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d} - \frac {3 d x \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{a^{3} d \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d} - \frac {3 d x}{a^{3} d \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d} - \frac {8 \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{a^{3} d \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d} - \frac {2 \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{a^{3} d \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d} - \frac {10}{a^{3} d \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )} + a^{3} d} & \text {for}\: d \neq 0 \\\frac {x \cos ^{4}{\relax (c )}}{\left (a \sin {\relax (c )} + a\right )^{3}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________