Optimal. Leaf size=188 \[ -\frac {3 \left (4 a^2-2 a b-b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a-b}}\right )}{32 d \sqrt {a-b}}+\frac {3 \left (4 a^2+2 a b-b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b}}\right )}{32 d \sqrt {a+b}}+\frac {\sec ^4(c+d x) (a \sin (c+d x)+b) \sqrt {a+b \sin (c+d x)}}{4 d}-\frac {\sec ^2(c+d x) (b-6 a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{16 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.32, antiderivative size = 188, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {2668, 739, 823, 827, 1166, 206} \[ -\frac {3 \left (4 a^2-2 a b-b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a-b}}\right )}{32 d \sqrt {a-b}}+\frac {3 \left (4 a^2+2 a b-b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b}}\right )}{32 d \sqrt {a+b}}+\frac {\sec ^4(c+d x) (a \sin (c+d x)+b) \sqrt {a+b \sin (c+d x)}}{4 d}-\frac {\sec ^2(c+d x) (b-6 a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{16 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 739
Rule 823
Rule 827
Rule 1166
Rule 2668
Rubi steps
\begin {align*} \int \sec ^5(c+d x) (a+b \sin (c+d x))^{3/2} \, dx &=\frac {b^5 \operatorname {Subst}\left (\int \frac {(a+x)^{3/2}}{\left (b^2-x^2\right )^3} \, dx,x,b \sin (c+d x)\right )}{d}\\ &=\frac {\sec ^4(c+d x) (b+a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{4 d}-\frac {b^3 \operatorname {Subst}\left (\int \frac {\frac {1}{2} \left (-6 a^2+b^2\right )-\frac {5 a x}{2}}{\sqrt {a+x} \left (b^2-x^2\right )^2} \, dx,x,b \sin (c+d x)\right )}{4 d}\\ &=-\frac {\sec ^2(c+d x) (b-6 a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{16 d}+\frac {\sec ^4(c+d x) (b+a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{4 d}+\frac {b \operatorname {Subst}\left (\int \frac {\frac {3}{4} \left (4 a^4-5 a^2 b^2+b^4\right )+\frac {3}{2} a \left (a^2-b^2\right ) x}{\sqrt {a+x} \left (b^2-x^2\right )} \, dx,x,b \sin (c+d x)\right )}{8 \left (a^2-b^2\right ) d}\\ &=-\frac {\sec ^2(c+d x) (b-6 a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{16 d}+\frac {\sec ^4(c+d x) (b+a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{4 d}+\frac {b \operatorname {Subst}\left (\int \frac {-\frac {3}{2} a^2 \left (a^2-b^2\right )+\frac {3}{4} \left (4 a^4-5 a^2 b^2+b^4\right )+\frac {3}{2} a \left (a^2-b^2\right ) x^2}{-a^2+b^2+2 a x^2-x^4} \, dx,x,\sqrt {a+b \sin (c+d x)}\right )}{4 \left (a^2-b^2\right ) d}\\ &=-\frac {\sec ^2(c+d x) (b-6 a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{16 d}+\frac {\sec ^4(c+d x) (b+a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{4 d}-\frac {\left (3 \left (4 a^2-2 a b-b^2\right )\right ) \operatorname {Subst}\left (\int \frac {1}{a-b-x^2} \, dx,x,\sqrt {a+b \sin (c+d x)}\right )}{32 d}+\frac {\left (3 \left (4 a^2+2 a b-b^2\right )\right ) \operatorname {Subst}\left (\int \frac {1}{a+b-x^2} \, dx,x,\sqrt {a+b \sin (c+d x)}\right )}{32 d}\\ &=-\frac {3 \left (4 a^2-2 a b-b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a-b}}\right )}{32 \sqrt {a-b} d}+\frac {3 \left (4 a^2+2 a b-b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b}}\right )}{32 \sqrt {a+b} d}-\frac {\sec ^2(c+d x) (b-6 a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{16 d}+\frac {\sec ^4(c+d x) (b+a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{4 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 2.60, size = 297, normalized size = 1.58 \[ -\frac {8 \left (b^2-a^2\right ) \sec ^4(c+d x) (a \sin (c+d x)-b) (a+b \sin (c+d x))^{5/2}+3 \sqrt {a-b} (a+b)^2 \left (4 a^3-6 a^2 b+a b^2+b^3\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a-b}}\right )-3 (a-b)^2 \sqrt {a+b} \left (4 a^3+6 a^2 b+a b^2-b^3\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b}}\right )+2 \sec ^2(c+d x) (a+b \sin (c+d x))^{5/2} \left (\left (4 a b^2-6 a^3\right ) \sin (c+d x)+5 a^2 b-3 b^3\right )-2 b \sqrt {a+b \sin (c+d x)} \left (12 a^4+\left (6 a^3 b-4 a b^3\right ) \sin (c+d x)-13 a^2 b^2+3 b^4\right )}{32 d \left (a^2-b^2\right )^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.11, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (b \sec \left (d x + c\right )^{5} \sin \left (d x + c\right ) + a \sec \left (d x + c\right )^{5}\right )} \sqrt {b \sin \left (d x + c\right ) + a}, x\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 [B] time = 1.02, size = 409, normalized size = 2.18 \[ \frac {4 \sqrt {a +b \sin \left (d x +c \right )}\, \sqrt {-a +b}\, \sqrt {a +b}\, b \left (b \left (\cos ^{2}\left (d x +c \right )\right )+8 a \sin \left (d x +c \right )-b \right )+3 b \left (4 \arctanh \left (\frac {\sqrt {a +b \sin \left (d x +c \right )}}{\sqrt {a +b}}\right ) a^{2} \sqrt {-a +b}+2 b \arctanh \left (\frac {\sqrt {a +b \sin \left (d x +c \right )}}{\sqrt {a +b}}\right ) a \sqrt {-a +b}-b^{2} \arctanh \left (\frac {\sqrt {a +b \sin \left (d x +c \right )}}{\sqrt {a +b}}\right ) \sqrt {-a +b}+4 \arctan \left (\frac {\sqrt {a +b \sin \left (d x +c \right )}}{\sqrt {-a +b}}\right ) a^{2} \sqrt {a +b}-2 b \arctan \left (\frac {\sqrt {a +b \sin \left (d x +c \right )}}{\sqrt {-a +b}}\right ) a \sqrt {a +b}-b^{2} \arctan \left (\frac {\sqrt {a +b \sin \left (d x +c \right )}}{\sqrt {-a +b}}\right ) \sqrt {a +b}\right ) \left (\cos ^{4}\left (d x +c \right )\right )+6 \sqrt {a +b \sin \left (d x +c \right )}\, \sqrt {-a +b}\, \sqrt {a +b}\, b \left (2 a \sin \left (d x +c \right )-b \right ) \left (\cos ^{2}\left (d x +c \right )\right )-24 \left (a +b \sin \left (d x +c \right )\right )^{\frac {3}{2}} a \sqrt {-a +b}\, \sqrt {a +b}+24 \sqrt {a +b \sin \left (d x +c \right )}\, a^{2} \sqrt {-a +b}\, \sqrt {a +b}+12 \sqrt {a +b \sin \left (d x +c \right )}\, b^{2} \sqrt {-a +b}\, \sqrt {a +b}}{32 \sqrt {-a +b}\, \sqrt {a +b}\, b \cos \left (d x +c \right )^{4} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
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+b\,\sin \left (c+d\,x\right )\right )}^{3/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]
________________________________________________________________________________________