Optimal. Leaf size=28 \[ -\frac {\tanh ^{-1}\left (\frac {\cos (x) \cot (x) \sqrt {\sec ^4(x)-1}}{\sqrt {2}}\right )}{\sqrt {2}} \]
[Out]
________________________________________________________________________________________
Rubi [B] time = 0.18, antiderivative size = 59, normalized size of antiderivative = 2.11, number of steps used = 5, number of rules used = 5, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {4148, 6722, 1988, 2008, 206} \[ -\frac {\sqrt {1-\cos ^4(x)} \sec ^2(x) \tanh ^{-1}\left (\frac {\sqrt {2} \sin (x)}{\sqrt {2 \sin ^2(x)-\sin ^4(x)}}\right )}{\sqrt {2} \sqrt {\sec ^4(x)-1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 1988
Rule 2008
Rule 4148
Rule 6722
Rubi steps
\begin {align*} \int \frac {\sec (x)}{\sqrt {-1+\sec ^4(x)}} \, dx &=\operatorname {Subst}\left (\int \frac {1}{\left (1-x^2\right ) \sqrt {-1+\frac {1}{\left (1-x^2\right )^2}}} \, dx,x,\sin (x)\right )\\ &=\frac {\left (\sqrt {1-\cos ^4(x)} \sec ^2(x)\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-\left (1-x^2\right )^2}} \, dx,x,\sin (x)\right )}{\sqrt {-1+\sec ^4(x)}}\\ &=\frac {\left (\sqrt {1-\cos ^4(x)} \sec ^2(x)\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {2 x^2-x^4}} \, dx,x,\sin (x)\right )}{\sqrt {-1+\sec ^4(x)}}\\ &=-\frac {\left (\sqrt {1-\cos ^4(x)} \sec ^2(x)\right ) \operatorname {Subst}\left (\int \frac {1}{1-2 x^2} \, dx,x,\frac {\sin (x)}{\sqrt {2 \sin ^2(x)-\sin ^4(x)}}\right )}{\sqrt {-1+\sec ^4(x)}}\\ &=-\frac {\tanh ^{-1}\left (\frac {\sqrt {2} \sin (x)}{\sqrt {2 \sin ^2(x)-\sin ^4(x)}}\right ) \sqrt {1-\cos ^4(x)} \sec ^2(x)}{\sqrt {2} \sqrt {-1+\sec ^4(x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 45, normalized size = 1.61 \[ -\frac {\sqrt {\cos (2 x)+3} \tan (x) \sec (x) \tanh ^{-1}\left (\frac {1}{2} \sqrt {4-2 \sin ^2(x)}\right )}{2 \sqrt {\sec ^4(x)-1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.49, size = 54, normalized size = 1.93 \[ \frac {1}{4} \, \sqrt {2} \log \left (-\frac {2 \, {\left (2 \, \sqrt {2} \sqrt {-\frac {\cos \relax (x)^{4} - 1}{\cos \relax (x)^{4}}} \cos \relax (x)^{2} - {\left (\cos \relax (x)^{2} + 3\right )} \sin \relax (x)\right )}}{{\left (\cos \relax (x)^{2} - 1\right )} \sin \relax (x)}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 2.22, size = 92, normalized size = 3.29 \[ \frac {\sqrt {2} {\left (\log \left (\tan \left (\frac {1}{2} \, x\right )^{2} - \sqrt {\tan \left (\frac {1}{2} \, x\right )^{4} + 1} + 1\right ) - \log \left (-\tan \left (\frac {1}{2} \, x\right )^{2} + \sqrt {\tan \left (\frac {1}{2} \, x\right )^{4} + 1} + 1\right ) + \log \left (-\tan \left (\frac {1}{2} \, x\right )^{2} + \sqrt {\tan \left (\frac {1}{2} \, x\right )^{4} + 1}\right )\right )}}{4 \, \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, x\right )^{5} - 2 \, \tan \left (\frac {1}{2} \, x\right )^{3} + \tan \left (\frac {1}{2} \, x\right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.25, size = 91, normalized size = 3.25 \[ \frac {\sqrt {8}\, \sqrt {2}\, \left (-\arcsinh \left (\frac {\cos \relax (x )-1}{\cos \relax (x )+1}\right )+\arctanh \left (\frac {\sqrt {2}\, \sqrt {4}}{4 \sqrt {\frac {\cos ^{2}\relax (x )+1}{\left (\cos \relax (x )+1\right )^{2}}}}\right )\right ) \sqrt {\frac {\cos ^{2}\relax (x )+1}{\left (\cos \relax (x )+1\right )^{2}}}\, \left (\sin ^{3}\relax (x )\right )}{8 \left (\cos \relax (x )-1\right ) \sqrt {-\frac {2 \left (\cos ^{4}\relax (x )-1\right )}{\cos \relax (x )^{4}}}\, \cos \relax (x )^{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 \frac {\sec \relax (x)}{\sqrt {\sec \relax (x)^{4} - 1}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.04 \[ \int \frac {1}{\cos \relax (x)\,\sqrt {\frac {1}{{\cos \relax (x)}^4}-1}} \,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 {\relax (x )}}{\sqrt {\left (\sec {\relax (x )} - 1\right ) \left (\sec {\relax (x )} + 1\right ) \left (\sec ^{2}{\relax (x )} + 1\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________