Optimal. Leaf size=60 \[ \frac {\tanh ^{-1}\left (\frac {\sqrt {a \sin (c+d x)+a}}{\sqrt {2} \sqrt {a}}\right )}{\sqrt {2} \sqrt {a} d}-\frac {1}{d \sqrt {a \sin (c+d x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {2667, 51, 63, 206} \[ \frac {\tanh ^{-1}\left (\frac {\sqrt {a \sin (c+d x)+a}}{\sqrt {2} \sqrt {a}}\right )}{\sqrt {2} \sqrt {a} d}-\frac {1}{d \sqrt {a \sin (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 51
Rule 63
Rule 206
Rule 2667
Rubi steps
\begin {align*} \int \frac {\sec (c+d x)}{\sqrt {a+a \sin (c+d x)}} \, dx &=\frac {a \operatorname {Subst}\left (\int \frac {1}{(a-x) (a+x)^{3/2}} \, dx,x,a \sin (c+d x)\right )}{d}\\ &=-\frac {1}{d \sqrt {a+a \sin (c+d x)}}+\frac {\operatorname {Subst}\left (\int \frac {1}{(a-x) \sqrt {a+x}} \, dx,x,a \sin (c+d x)\right )}{2 d}\\ &=-\frac {1}{d \sqrt {a+a \sin (c+d x)}}+\frac {\operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+a \sin (c+d x)}\right )}{d}\\ &=\frac {\tanh ^{-1}\left (\frac {\sqrt {a+a \sin (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{\sqrt {2} \sqrt {a} d}-\frac {1}{d \sqrt {a+a \sin (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.05, size = 39, normalized size = 0.65 \[ -\frac {\, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};\frac {1}{2} (\sin (c+d x)+1)\right )}{d \sqrt {a \sin (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.59, size = 90, normalized size = 1.50 \[ \frac {\frac {\sqrt {2} {\left (a \sin \left (d x + c\right ) + a\right )} \log \left (-\frac {\frac {2 \, \sqrt {2} \sqrt {a \sin \left (d x + c\right ) + a}}{\sqrt {a}} + \sin \left (d x + c\right ) + 3}{\sin \left (d x + c\right ) - 1}\right )}{\sqrt {a}} - 4 \, \sqrt {a \sin \left (d x + c\right ) + a}}{4 \, {\left (a d \sin \left (d x + c\right ) + a d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.44, size = 211, normalized size = 3.52 \[ -\frac {\frac {\sqrt {2} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} - \sqrt {a}\right )}}{2 \, \sqrt {-a}}\right )}{\sqrt {-a} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )} + \frac {2 \, {\left (\sqrt {a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} - \sqrt {a}\right )}}{{\left ({\left (\sqrt {a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}\right )}^{2} + 2 \, {\left (\sqrt {a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}\right )} \sqrt {a} - a\right )} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.15, size = 54, normalized size = 0.90 \[ -\frac {2 a \left (\frac {1}{2 a \sqrt {a +a \sin \left (d x +c \right )}}-\frac {\sqrt {2}\, \arctanh \left (\frac {\sqrt {a +a \sin \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )}{4 a^{\frac {3}{2}}}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.25, size = 78, normalized size = 1.30 \[ -\frac {\sqrt {2} \sqrt {a} \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 \, a}{\sqrt {a \sin \left (d x + c\right ) + a}}}{4 \, a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {1}{\cos \left (c+d\,x\right )\,\sqrt {a+a\,\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 {\left (c + d x \right )}}{\sqrt {a \left (\sin {\left (c + d x \right )} + 1\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________