Optimal. Leaf size=125 \[ -\frac {2 \cot (c+d x) \sqrt {-\frac {b (1-\sec (c+d x))}{a+b \sec (c+d x)}} \sqrt {\frac {b (\sec (c+d x)+1)}{a+b \sec (c+d x)}} (a+b \sec (c+d x)) \Pi \left (\frac {a}{a+b};\sin ^{-1}\left (\frac {\sqrt {a+b}}{\sqrt {a+b \sec (c+d x)}}\right )|\frac {a-b}{a+b}\right )}{d \sqrt {a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 125, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {3780} \[ -\frac {2 \cot (c+d x) \sqrt {-\frac {b (1-\sec (c+d x))}{a+b \sec (c+d x)}} \sqrt {\frac {b (\sec (c+d x)+1)}{a+b \sec (c+d x)}} (a+b \sec (c+d x)) \Pi \left (\frac {a}{a+b};\sin ^{-1}\left (\frac {\sqrt {a+b}}{\sqrt {a+b \sec (c+d x)}}\right )|\frac {a-b}{a+b}\right )}{d \sqrt {a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3780
Rubi steps
\begin {align*} \int \sqrt {a+b \sec (c+d x)} \, dx &=-\frac {2 \cot (c+d x) \Pi \left (\frac {a}{a+b};\sin ^{-1}\left (\frac {\sqrt {a+b}}{\sqrt {a+b \sec (c+d x)}}\right )|\frac {a-b}{a+b}\right ) \sqrt {-\frac {b (1-\sec (c+d x))}{a+b \sec (c+d x)}} \sqrt {\frac {b (1+\sec (c+d x))}{a+b \sec (c+d x)}} (a+b \sec (c+d x))}{\sqrt {a+b} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.26, size = 151, normalized size = 1.21 \[ \frac {4 \cos ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {\frac {\cos (c+d x)}{\cos (c+d x)+1}} \sqrt {\frac {a \cos (c+d x)+b}{(a+b) (\cos (c+d x)+1)}} \sqrt {a+b \sec (c+d x)} \left ((b-a) F\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right )+2 a \Pi \left (-1;\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right )\right )}{d (a \cos (c+d x)+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [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]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {b \sec \left (d x + c\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.14, size = 215, normalized size = 1.72 \[ -\frac {2 \sqrt {\frac {b +a \cos \left (d x +c \right )}{\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {b +a \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \left (1+\cos \left (d x +c \right )\right )^{2} \left (\EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {\frac {a -b}{a +b}}\right ) a -\EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {\frac {a -b}{a +b}}\right ) b -2 a \EllipticPi \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, -1, \sqrt {\frac {a -b}{a +b}}\right )\right ) \left (-1+\cos \left (d x +c \right )\right )}{d \left (b +a \cos \left (d x +c \right )\right ) \sin \left (d x +c \right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {b \sec \left (d x + c\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \sqrt {a+\frac {b}{\cos \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 \sqrt {a + b \sec {\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________