Optimal. Leaf size=144 \[ -\frac {\sec ^2(c+d x) (b-a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{2 d \left (a^2-b^2\right )}-\frac {(2 a-3 b) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a-b}}\right )}{4 d (a-b)^{3/2}}+\frac {(2 a+3 b) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b}}\right )}{4 d (a+b)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.31, antiderivative size = 144, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {2668, 741, 827, 1166, 206} \[ -\frac {\sec ^2(c+d x) (b-a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{2 d \left (a^2-b^2\right )}-\frac {(2 a-3 b) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a-b}}\right )}{4 d (a-b)^{3/2}}+\frac {(2 a+3 b) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b}}\right )}{4 d (a+b)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 741
Rule 827
Rule 1166
Rule 2668
Rubi steps
\begin {align*} \int \frac {\sec ^3(c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx &=\frac {b^3 \operatorname {Subst}\left (\int \frac {1}{\sqrt {a+x} \left (b^2-x^2\right )^2} \, dx,x,b \sin (c+d x)\right )}{d}\\ &=-\frac {\sec ^2(c+d x) (b-a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{2 \left (a^2-b^2\right ) d}+\frac {b \operatorname {Subst}\left (\int \frac {\frac {1}{2} \left (2 a^2-3 b^2\right )+\frac {a x}{2}}{\sqrt {a+x} \left (b^2-x^2\right )} \, dx,x,b \sin (c+d x)\right )}{2 \left (a^2-b^2\right ) d}\\ &=-\frac {\sec ^2(c+d x) (b-a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{2 \left (a^2-b^2\right ) d}+\frac {b \operatorname {Subst}\left (\int \frac {-\frac {a^2}{2}+\frac {1}{2} \left (2 a^2-3 b^2\right )+\frac {a x^2}{2}}{-a^2+b^2+2 a x^2-x^4} \, dx,x,\sqrt {a+b \sin (c+d x)}\right )}{\left (a^2-b^2\right ) d}\\ &=-\frac {\sec ^2(c+d x) (b-a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{2 \left (a^2-b^2\right ) d}-\frac {(2 a-3 b) \operatorname {Subst}\left (\int \frac {1}{a-b-x^2} \, dx,x,\sqrt {a+b \sin (c+d x)}\right )}{4 (a-b) d}+\frac {(2 a+3 b) \operatorname {Subst}\left (\int \frac {1}{a+b-x^2} \, dx,x,\sqrt {a+b \sin (c+d x)}\right )}{4 (a+b) d}\\ &=-\frac {(2 a-3 b) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a-b}}\right )}{4 (a-b)^{3/2} d}+\frac {(2 a+3 b) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b}}\right )}{4 (a+b)^{3/2} d}-\frac {\sec ^2(c+d x) (b-a \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{2 \left (a^2-b^2\right ) d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.51, size = 176, normalized size = 1.22 \[ \frac {\sqrt {a+b} \left (2 a^2-a b-3 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a-b}}\right )-\sqrt {a-b} \left (\left (2 a^2+a b-3 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b}}\right )+2 \sqrt {a+b} \sec ^2(c+d x) (a \sin (c+d x)-b) \sqrt {a+b \sin (c+d x)}\right )}{4 d \sqrt {a-b} \sqrt {a+b} \left (b^2-a^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec \left (d x + c\right )^{3}}{\sqrt {b \sin \left (d x + c\right ) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.82, size = 218, normalized size = 1.51 \[ -\frac {b \sqrt {a +b \sin \left (d x +c \right )}}{4 d \left (a -b \right ) \left (b \sin \left (d x +c \right )+b \right )}+\frac {\arctan \left (\frac {\sqrt {a +b \sin \left (d x +c \right )}}{\sqrt {-a +b}}\right ) a}{2 d \left (a -b \right ) \sqrt {-a +b}}-\frac {3 \arctan \left (\frac {\sqrt {a +b \sin \left (d x +c \right )}}{\sqrt {-a +b}}\right ) b}{4 d \left (a -b \right ) \sqrt {-a +b}}-\frac {b \sqrt {a +b \sin \left (d x +c \right )}}{4 d \left (a +b \right ) \left (b \sin \left (d x +c \right )-b \right )}+\frac {\arctanh \left (\frac {\sqrt {a +b \sin \left (d x +c \right )}}{\sqrt {a +b}}\right ) a}{2 d \left (a +b \right )^{\frac {3}{2}}}+\frac {3 \arctanh \left (\frac {\sqrt {a +b \sin \left (d x +c \right )}}{\sqrt {a +b}}\right ) b}{4 d \left (a +b \right )^{\frac {3}{2}}} \]
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 {1}{{\cos \left (c+d\,x\right )}^3\,\sqrt {a+b\,\sin \left (c+d\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec ^{3}{\left (c + d x \right )}}{\sqrt {a + b \sin {\left (c + d x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________