Optimal. Leaf size=16 \[ -\frac{\tanh ^{-1}\left (\frac{\cos (x)}{\sqrt{2}}\right )}{\sqrt{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0184993, antiderivative size = 16, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {3186, 206} \[ -\frac{\tanh ^{-1}\left (\frac{\cos (x)}{\sqrt{2}}\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3186
Rule 206
Rubi steps
\begin{align*} \int \frac{\sin (x)}{1+\sin ^2(x)} \, dx &=-\operatorname{Subst}\left (\int \frac{1}{2-x^2} \, dx,x,\cos (x)\right )\\ &=-\frac{\tanh ^{-1}\left (\frac{\cos (x)}{\sqrt{2}}\right )}{\sqrt{2}}\\ \end{align*}
Mathematica [C] time = 0.0506998, size = 46, normalized size = 2.88 \[ -\frac{i \left (\tan ^{-1}\left (\frac{\tan \left (\frac{x}{2}\right )-i}{\sqrt{2}}\right )-\tan ^{-1}\left (\frac{\tan \left (\frac{x}{2}\right )+i}{\sqrt{2}}\right )\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.012, size = 14, normalized size = 0.9 \begin{align*} -{\frac{\sqrt{2}}{2}{\it Artanh} \left ({\frac{\cos \left ( x \right ) \sqrt{2}}{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.42643, size = 32, normalized size = 2. \begin{align*} \frac{1}{4} \, \sqrt{2} \log \left (-\frac{\sqrt{2} - \cos \left (x\right )}{\sqrt{2} + \cos \left (x\right )}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.99284, size = 92, normalized size = 5.75 \begin{align*} \frac{1}{4} \, \sqrt{2} \log \left (-\frac{\cos \left (x\right )^{2} - 2 \, \sqrt{2} \cos \left (x\right ) + 2}{\cos \left (x\right )^{2} - 2}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 25.3179, size = 46, normalized size = 2.88 \begin{align*} \frac{\sqrt{2} \log{\left (\tan ^{2}{\left (\frac{x}{2} \right )} - 2 \sqrt{2} + 3 \right )}}{4} - \frac{\sqrt{2} \log{\left (\tan ^{2}{\left (\frac{x}{2} \right )} + 2 \sqrt{2} + 3 \right )}}{4} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09137, size = 36, normalized size = 2.25 \begin{align*} -\frac{1}{4} \, \sqrt{2} \log \left (\sqrt{2} + \cos \left (x\right )\right ) + \frac{1}{4} \, \sqrt{2} \log \left (\sqrt{2} - \cos \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]