Optimal. Leaf size=123 \[ \frac {8 \tan ^3(c+d x)}{63 a^3 d}+\frac {8 \tan (c+d x)}{21 a^3 d}-\frac {2 \sec ^3(c+d x)}{21 d \left (a^3 \sin (c+d x)+a^3\right )}-\frac {2 \sec ^3(c+d x)}{21 a d (a \sin (c+d x)+a)^2}-\frac {\sec ^3(c+d x)}{9 d (a \sin (c+d x)+a)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.15, antiderivative size = 123, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2672, 3767} \[ \frac {8 \tan ^3(c+d x)}{63 a^3 d}+\frac {8 \tan (c+d x)}{21 a^3 d}-\frac {2 \sec ^3(c+d x)}{21 d \left (a^3 \sin (c+d x)+a^3\right )}-\frac {2 \sec ^3(c+d x)}{21 a d (a \sin (c+d x)+a)^2}-\frac {\sec ^3(c+d x)}{9 d (a \sin (c+d x)+a)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2672
Rule 3767
Rubi steps
\begin {align*} \int \frac {\sec ^4(c+d x)}{(a+a \sin (c+d x))^3} \, dx &=-\frac {\sec ^3(c+d x)}{9 d (a+a \sin (c+d x))^3}+\frac {2 \int \frac {\sec ^4(c+d x)}{(a+a \sin (c+d x))^2} \, dx}{3 a}\\ &=-\frac {\sec ^3(c+d x)}{9 d (a+a \sin (c+d x))^3}-\frac {2 \sec ^3(c+d x)}{21 a d (a+a \sin (c+d x))^2}+\frac {10 \int \frac {\sec ^4(c+d x)}{a+a \sin (c+d x)} \, dx}{21 a^2}\\ &=-\frac {\sec ^3(c+d x)}{9 d (a+a \sin (c+d x))^3}-\frac {2 \sec ^3(c+d x)}{21 a d (a+a \sin (c+d x))^2}-\frac {2 \sec ^3(c+d x)}{21 d \left (a^3+a^3 \sin (c+d x)\right )}+\frac {8 \int \sec ^4(c+d x) \, dx}{21 a^3}\\ &=-\frac {\sec ^3(c+d x)}{9 d (a+a \sin (c+d x))^3}-\frac {2 \sec ^3(c+d x)}{21 a d (a+a \sin (c+d x))^2}-\frac {2 \sec ^3(c+d x)}{21 d \left (a^3+a^3 \sin (c+d x)\right )}-\frac {8 \operatorname {Subst}\left (\int \left (1+x^2\right ) \, dx,x,-\tan (c+d x)\right )}{21 a^3 d}\\ &=-\frac {\sec ^3(c+d x)}{9 d (a+a \sin (c+d x))^3}-\frac {2 \sec ^3(c+d x)}{21 a d (a+a \sin (c+d x))^2}-\frac {2 \sec ^3(c+d x)}{21 d \left (a^3+a^3 \sin (c+d x)\right )}+\frac {8 \tan (c+d x)}{21 a^3 d}+\frac {8 \tan ^3(c+d x)}{63 a^3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.11, size = 85, normalized size = 0.69 \[ \frac {\sec ^3(c+d x) (36 \sin (c+d x)+2 \sin (3 (c+d x))-6 \sin (5 (c+d x))-27 \cos (2 (c+d x))-12 \cos (4 (c+d x))+\cos (6 (c+d x)))}{126 a^3 d (\sin (c+d x)+1)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.62, size = 130, normalized size = 1.06 \[ -\frac {16 \, \cos \left (d x + c\right )^{6} - 72 \, \cos \left (d x + c\right )^{4} + 30 \, \cos \left (d x + c\right )^{2} - 2 \, {\left (24 \, \cos \left (d x + c\right )^{4} - 20 \, \cos \left (d x + c\right )^{2} - 7\right )} \sin \left (d x + c\right ) + 7}{63 \, {\left (3 \, a^{3} d \cos \left (d x + c\right )^{5} - 4 \, a^{3} d \cos \left (d x + c\right )^{3} + {\left (a^{3} d \cos \left (d x + c\right )^{5} - 4 \, a^{3} d \cos \left (d x + c\right )^{3}\right )} \sin \left (d x + c\right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.75, size = 171, normalized size = 1.39 \[ -\frac {\frac {21 \, {\left (21 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 36 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 19\right )}}{a^{3} {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}^{3}} + \frac {3591 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{8} + 19656 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 56196 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} + 95760 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 107730 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 79464 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 38484 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 10944 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1615}{a^{3} {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}^{9}}}{2016 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.27, size = 190, normalized size = 1.54 \[ \frac {-\frac {1}{24 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}-\frac {1}{16 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {7}{32 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}-\frac {8}{9 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{9}}+\frac {4}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{8}}-\frac {68}{7 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{7}}+\frac {46}{3 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{6}}-\frac {35}{2 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{5}}+\frac {59}{4 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{4}}-\frac {19}{2 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}+\frac {9}{2 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}-\frac {57}{32 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}}{a^{3} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.44, size = 482, normalized size = 3.92 \[ -\frac {2 \, {\left (\frac {51 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {39 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {235 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} - \frac {450 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {306 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {294 \, \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} + \frac {378 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} + \frac {63 \, \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} - \frac {273 \, \sin \left (d x + c\right )^{9}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{9}} - \frac {189 \, \sin \left (d x + c\right )^{10}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{10}} - \frac {63 \, \sin \left (d x + c\right )^{11}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{11}} + 19\right )}}{63 \, {\left (a^{3} + \frac {6 \, a^{3} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {12 \, a^{3} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {2 \, a^{3} \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} - \frac {27 \, a^{3} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {36 \, a^{3} \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {36 \, a^{3} \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} + \frac {27 \, a^{3} \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} - \frac {2 \, a^{3} \sin \left (d x + c\right )^{9}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{9}} - \frac {12 \, a^{3} \sin \left (d x + c\right )^{10}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{10}} - \frac {6 \, a^{3} \sin \left (d x + c\right )^{11}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{11}} - \frac {a^{3} \sin \left (d x + c\right )^{12}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{12}}\right )} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.56, size = 167, normalized size = 1.36 \[ \frac {\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (\frac {63\,\cos \left (\frac {5\,c}{2}+\frac {5\,d\,x}{2}\right )}{8}-\frac {171\,\cos \left (\frac {3\,c}{2}+\frac {3\,d\,x}{2}\right )}{8}-\frac {145\,\cos \left (\frac {7\,c}{2}+\frac {7\,d\,x}{2}\right )}{16}+\frac {49\,\cos \left (\frac {9\,c}{2}+\frac {9\,d\,x}{2}\right )}{16}+\frac {\cos \left (\frac {11\,c}{2}+\frac {11\,d\,x}{2}\right )}{2}+\frac {617\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{16}-\frac {329\,\sin \left (\frac {3\,c}{2}+\frac {3\,d\,x}{2}\right )}{16}+\frac {145\,\sin \left (\frac {5\,c}{2}+\frac {5\,d\,x}{2}\right )}{32}-\frac {113\,\sin \left (\frac {7\,c}{2}+\frac {7\,d\,x}{2}\right )}{32}-\frac {115\,\sin \left (\frac {9\,c}{2}+\frac {9\,d\,x}{2}\right )}{32}+\frac {19\,\sin \left (\frac {11\,c}{2}+\frac {11\,d\,x}{2}\right )}{32}\right )}{2016\,a^3\,d\,{\cos \left (\frac {c}{2}-\frac {\pi }{4}+\frac {d\,x}{2}\right )}^9\,{\cos \left (\frac {c}{2}+\frac {\pi }{4}+\frac {d\,x}{2}\right )}^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\sec ^{4}{\left (c + d x \right )}}{\sin ^{3}{\left (c + d x \right )} + 3 \sin ^{2}{\left (c + d x \right )} + 3 \sin {\left (c + d x \right )} + 1}\, dx}{a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________