Optimal. Leaf size=30 \[ -\frac {\cot ^3(c+d x)}{3 b d (a \cot (c+d x)+b)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {3088, 37} \[ -\frac {\cot ^3(c+d x)}{3 b d (a \cot (c+d x)+b)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 3088
Rubi steps
\begin {align*} \int \frac {\cos ^2(c+d x)}{(a \cos (c+d x)+b \sin (c+d x))^4} \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {x^2}{(b+a x)^4} \, dx,x,\cot (c+d x)\right )}{d}\\ &=-\frac {\cot ^3(c+d x)}{3 b d (b+a \cot (c+d x))^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.66, size = 124, normalized size = 4.13 \[ \frac {\left (2 a b^3-6 a^3 b\right ) \cos (3 (c+d x))-6 a b \left (a^2+b^2\right ) \cos (c+d x)+2 \left (a^2-b^2\right ) \sin (c+d x) \left (\left (3 a^2-b^2\right ) \cos (2 (c+d x))+3 a^2+b^2\right )}{12 a d \left (a^2+b^2\right )^2 (a \cos (c+d x)+b \sin (c+d x))^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.57, size = 255, normalized size = 8.50 \[ -\frac {{\left (9 \, a^{4} b - 6 \, a^{2} b^{3} + b^{5}\right )} \cos \left (d x + c\right )^{3} - 3 \, {\left (a^{4} b - 3 \, a^{2} b^{3}\right )} \cos \left (d x + c\right ) - {\left (a^{3} b^{2} - 3 \, a b^{4} + {\left (3 \, a^{5} - 10 \, a^{3} b^{2} + 3 \, a b^{4}\right )} \cos \left (d x + c\right )^{2}\right )} \sin \left (d x + c\right )}{3 \, {\left ({\left (a^{9} - 6 \, a^{5} b^{4} - 8 \, a^{3} b^{6} - 3 \, a b^{8}\right )} d \cos \left (d x + c\right )^{3} + 3 \, {\left (a^{7} b^{2} + 3 \, a^{5} b^{4} + 3 \, a^{3} b^{6} + a b^{8}\right )} d \cos \left (d x + c\right ) + {\left ({\left (3 \, a^{8} b + 8 \, a^{6} b^{3} + 6 \, a^{4} b^{5} - b^{9}\right )} d \cos \left (d x + c\right )^{2} + {\left (a^{6} b^{3} + 3 \, a^{4} b^{5} + 3 \, a^{2} b^{7} + b^{9}\right )} d\right )} \sin \left (d x + c\right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.45, size = 20, normalized size = 0.67 \[ -\frac {1}{3 \, {\left (b \tan \left (d x + c\right ) + a\right )}^{3} b d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.30, size = 21, normalized size = 0.70 \[ -\frac {1}{3 d b \left (a +b \tan \left (d x +c \right )\right )^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.34, size = 53, normalized size = 1.77 \[ -\frac {1}{3 \, {\left (b^{4} \tan \left (d x + c\right )^{3} + 3 \, a b^{3} \tan \left (d x + c\right )^{2} + 3 \, a^{2} b^{2} \tan \left (d x + c\right ) + a^{3} b\right )} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.29, size = 224, normalized size = 7.47 \[ \frac {\frac {2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{a}+\frac {2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{a}+\frac {4\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{a^2}-\frac {4\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{a^2}-\frac {4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,\left (3\,a^2-2\,b^2\right )}{3\,a^3}}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,\left (12\,a\,b^2-3\,a^3\right )-a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,\left (12\,a\,b^2-3\,a^3\right )-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,\left (12\,a^2\,b-8\,b^3\right )+a^3+6\,a^2\,b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+6\,a^2\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\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]
________________________________________________________________________________________