Optimal. Leaf size=21 \[ \sin (x) \sqrt{\csc (x)+1}+\tanh ^{-1}\left (\sqrt{\csc (x)+1}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0239342, antiderivative size = 21, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.364, Rules used = {3873, 47, 63, 207} \[ \sin (x) \sqrt{\csc (x)+1}+\tanh ^{-1}\left (\sqrt{\csc (x)+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3873
Rule 47
Rule 63
Rule 207
Rubi steps
\begin{align*} \int \cos (x) \sqrt{1+\csc (x)} \, dx &=-\operatorname{Subst}\left (\int \frac{\sqrt{1+x}}{x^2} \, dx,x,\csc (x)\right )\\ &=\sqrt{1+\csc (x)} \sin (x)-\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{x \sqrt{1+x}} \, dx,x,\csc (x)\right )\\ &=\sqrt{1+\csc (x)} \sin (x)-\operatorname{Subst}\left (\int \frac{1}{-1+x^2} \, dx,x,\sqrt{1+\csc (x)}\right )\\ &=\tanh ^{-1}\left (\sqrt{1+\csc (x)}\right )+\sqrt{1+\csc (x)} \sin (x)\\ \end{align*}
Mathematica [A] time = 0.0151509, size = 21, normalized size = 1. \[ \sin (x) \sqrt{\csc (x)+1}+\tanh ^{-1}\left (\sqrt{\csc (x)+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.034, size = 48, normalized size = 2.3 \begin{align*}{\frac{1}{2} \left ( 1+\sqrt{1+\csc \left ( x \right ) } \right ) ^{-1}}+{\frac{1}{2}\ln \left ( 1+\sqrt{1+\csc \left ( x \right ) } \right ) }+{\frac{1}{2} \left ( \sqrt{1+\csc \left ( x \right ) }-1 \right ) ^{-1}}-{\frac{1}{2}\ln \left ( \sqrt{1+\csc \left ( x \right ) }-1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 0.94912, size = 51, normalized size = 2.43 \begin{align*} \sqrt{\frac{1}{\sin \left (x\right )} + 1} \sin \left (x\right ) + \frac{1}{2} \, \log \left (\sqrt{\frac{1}{\sin \left (x\right )} + 1} + 1\right ) - \frac{1}{2} \, \log \left (\sqrt{\frac{1}{\sin \left (x\right )} + 1} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.02988, size = 271, normalized size = 12.9 \begin{align*} \sqrt{\frac{\sin \left (x\right ) + 1}{\sin \left (x\right )}} \sin \left (x\right ) + \frac{1}{2} \, \log \left (\frac{2 \,{\left (\sqrt{\frac{\sin \left (x\right ) + 1}{\sin \left (x\right )}} \sin \left (x\right ) + \sin \left (x\right ) + 1\right )}}{\cos \left (x\right ) + \sin \left (x\right ) + 1}\right ) - \frac{1}{2} \, \log \left (-\frac{2 \,{\left (\sqrt{\frac{\sin \left (x\right ) + 1}{\sin \left (x\right )}} \sin \left (x\right ) - \sin \left (x\right ) - 1\right )}}{\cos \left (x\right ) + \sin \left (x\right ) + 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{\csc{\left (x \right )} + 1} \cos{\left (x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.14278, size = 51, normalized size = 2.43 \begin{align*} \frac{1}{2} \,{\left (2 \, \sqrt{\sin \left (x\right )^{2} + \sin \left (x\right )} - \log \left ({\left | 2 \, \sqrt{\sin \left (x\right )^{2} + \sin \left (x\right )} - 2 \, \sin \left (x\right ) - 1 \right |}\right )\right )} \mathrm{sgn}\left (\sin \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]