Optimal. Leaf size=106 \[ -\frac {a^{7/2} \tanh ^{-1}\left (\frac {\sqrt {a \sin (c+d x)+a}}{\sqrt {2} \sqrt {a}}\right )}{8 \sqrt {2} d}-\frac {a^2 \sec ^2(c+d x) (a \sin (c+d x)+a)^{3/2}}{8 d}+\frac {a \sec ^4(c+d x) (a \sin (c+d x)+a)^{5/2}}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.17, antiderivative size = 106, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {2676, 2675, 2667, 63, 206} \[ -\frac {a^{7/2} \tanh ^{-1}\left (\frac {\sqrt {a \sin (c+d x)+a}}{\sqrt {2} \sqrt {a}}\right )}{8 \sqrt {2} d}-\frac {a^2 \sec ^2(c+d x) (a \sin (c+d x)+a)^{3/2}}{8 d}+\frac {a \sec ^4(c+d x) (a \sin (c+d x)+a)^{5/2}}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 206
Rule 2667
Rule 2675
Rule 2676
Rubi steps
\begin {align*} \int \sec ^5(c+d x) (a+a \sin (c+d x))^{7/2} \, dx &=\frac {a \sec ^4(c+d x) (a+a \sin (c+d x))^{5/2}}{2 d}-\frac {1}{4} a^2 \int \sec ^3(c+d x) (a+a \sin (c+d x))^{3/2} \, dx\\ &=-\frac {a^2 \sec ^2(c+d x) (a+a \sin (c+d x))^{3/2}}{8 d}+\frac {a \sec ^4(c+d x) (a+a \sin (c+d x))^{5/2}}{2 d}-\frac {1}{16} a^3 \int \sec (c+d x) \sqrt {a+a \sin (c+d x)} \, dx\\ &=-\frac {a^2 \sec ^2(c+d x) (a+a \sin (c+d x))^{3/2}}{8 d}+\frac {a \sec ^4(c+d x) (a+a \sin (c+d x))^{5/2}}{2 d}-\frac {a^4 \operatorname {Subst}\left (\int \frac {1}{(a-x) \sqrt {a+x}} \, dx,x,a \sin (c+d x)\right )}{16 d}\\ &=-\frac {a^2 \sec ^2(c+d x) (a+a \sin (c+d x))^{3/2}}{8 d}+\frac {a \sec ^4(c+d x) (a+a \sin (c+d x))^{5/2}}{2 d}-\frac {a^4 \operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+a \sin (c+d x)}\right )}{8 d}\\ &=-\frac {a^{7/2} \tanh ^{-1}\left (\frac {\sqrt {a+a \sin (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{8 \sqrt {2} d}-\frac {a^2 \sec ^2(c+d x) (a+a \sin (c+d x))^{3/2}}{8 d}+\frac {a \sec ^4(c+d x) (a+a \sin (c+d x))^{5/2}}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.29, size = 108, normalized size = 1.02 \[ \frac {2 a^3 (\sin (c+d x)+3) \sqrt {a (\sin (c+d x)+1)}-\sqrt {2} a^{7/2} \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^4 \tanh ^{-1}\left (\frac {\sqrt {a (\sin (c+d x)+1)}}{\sqrt {2} \sqrt {a}}\right )}{16 d (\sin (c+d x)-1)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.78, size = 145, normalized size = 1.37 \[ \frac {{\left (\sqrt {2} a^{3} \cos \left (d x + c\right )^{2} + 2 \, \sqrt {2} a^{3} \sin \left (d x + c\right ) - 2 \, \sqrt {2} a^{3}\right )} \sqrt {a} \log \left (-\frac {a \sin \left (d x + c\right ) - 2 \, \sqrt {2} \sqrt {a \sin \left (d x + c\right ) + a} \sqrt {a} + 3 \, a}{\sin \left (d x + c\right ) - 1}\right ) - 4 \, {\left (a^{3} \sin \left (d x + c\right ) + 3 \, a^{3}\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{32 \, {\left (d \cos \left (d x + c\right )^{2} + 2 \, d \sin \left (d x + c\right ) - 2 \, d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [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]
________________________________________________________________________________________
maple [A] time = 0.28, size = 75, normalized size = 0.71 \[ -\frac {2 a^{5} \left (-\frac {\sqrt {a +a \sin \left (d x +c \right )}\, \left (3+\sin \left (d x +c \right )\right )}{16 \left (a \sin \left (d x +c \right )-a \right )^{2}}+\frac {\sqrt {2}\, \arctanh \left (\frac {\sqrt {a +a \sin \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )}{32 a^{\frac {3}{2}}}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 132, normalized size = 1.25 \[ \frac {\sqrt {2} a^{\frac {9}{2}} \log \left (-\frac {\sqrt {2} \sqrt {a} - \sqrt {a \sin \left (d x + c\right ) + a}}{\sqrt {2} \sqrt {a} + \sqrt {a \sin \left (d x + c\right ) + a}}\right ) + \frac {4 \, {\left ({\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a^{5} + 2 \, \sqrt {a \sin \left (d x + c\right ) + a} a^{6}\right )}}{{\left (a \sin \left (d x + c\right ) + a\right )}^{2} - 4 \, {\left (a \sin \left (d x + c\right ) + a\right )} a + 4 \, a^{2}}}{32 \, a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (a+a\,\sin \left (c+d\,x\right )\right )}^{7/2}}{{\cos \left (c+d\,x\right )}^5} \,d x \]
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]
________________________________________________________________________________________