Optimal. Leaf size=18 \[ \frac{1}{2} \tanh ^{-1}(\sin (x))-\frac{1}{2 (\sin (x)+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.030173, antiderivative size = 18, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {2667, 44, 207} \[ \frac{1}{2} \tanh ^{-1}(\sin (x))-\frac{1}{2 (\sin (x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2667
Rule 44
Rule 207
Rubi steps
\begin{align*} \int \frac{\sec (x)}{1+\sin (x)} \, dx &=\operatorname{Subst}\left (\int \frac{1}{(1-x) (1+x)^2} \, dx,x,\sin (x)\right )\\ &=\operatorname{Subst}\left (\int \left (\frac{1}{2 (1+x)^2}-\frac{1}{2 \left (-1+x^2\right )}\right ) \, dx,x,\sin (x)\right )\\ &=-\frac{1}{2 (1+\sin (x))}-\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{-1+x^2} \, dx,x,\sin (x)\right )\\ &=\frac{1}{2} \tanh ^{-1}(\sin (x))-\frac{1}{2 (1+\sin (x))}\\ \end{align*}
Mathematica [A] time = 0.0173726, size = 18, normalized size = 1. \[ \frac{1}{2} \tanh ^{-1}(\sin (x))-\frac{1}{2 (\sin (x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.03, size = 24, normalized size = 1.3 \begin{align*} -{\frac{1}{2+2\,\sin \left ( x \right ) }}+{\frac{\ln \left ( 1+\sin \left ( x \right ) \right ) }{4}}-{\frac{\ln \left ( -1+\sin \left ( x \right ) \right ) }{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.930043, size = 31, normalized size = 1.72 \begin{align*} -\frac{1}{2 \,{\left (\sin \left (x\right ) + 1\right )}} + \frac{1}{4} \, \log \left (\sin \left (x\right ) + 1\right ) - \frac{1}{4} \, \log \left (\sin \left (x\right ) - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.35832, size = 115, normalized size = 6.39 \begin{align*} \frac{{\left (\sin \left (x\right ) + 1\right )} \log \left (\sin \left (x\right ) + 1\right ) -{\left (\sin \left (x\right ) + 1\right )} \log \left (-\sin \left (x\right ) + 1\right ) - 2}{4 \,{\left (\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 \frac{\sec{\left (x \right )}}{\sin{\left (x \right )} + 1}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.05734, size = 34, normalized size = 1.89 \begin{align*} -\frac{1}{2 \,{\left (\sin \left (x\right ) + 1\right )}} + \frac{1}{4} \, \log \left (\sin \left (x\right ) + 1\right ) - \frac{1}{4} \, \log \left (-\sin \left (x\right ) + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]