Optimal. Leaf size=11 \[ x+\frac{\cos (x)}{\sin (x)+1} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0356624, antiderivative size = 11, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222 \[ x+\frac{\cos (x)}{\sin (x)+1} \]
Antiderivative was successfully verified.
[In] Int[Sin[x]/(1 + Sin[x]),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 1.52093, size = 8, normalized size = 0.73 \[ x + \frac{\cos{\left (x \right )}}{\sin{\left (x \right )} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(sin(x)/(1+sin(x)),x)
[Out]
_______________________________________________________________________________________
Mathematica [B] time = 0.0229655, size = 25, normalized size = 2.27 \[ x-\frac{2 \sin \left (\frac{x}{2}\right )}{\sin \left (\frac{x}{2}\right )+\cos \left (\frac{x}{2}\right )} \]
Antiderivative was successfully verified.
[In] Integrate[Sin[x]/(1 + Sin[x]),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.019, size = 13, normalized size = 1.2 \[ 2\, \left ( 1+\tan \left ( x/2 \right ) \right ) ^{-1}+x \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(sin(x)/(1+sin(x)),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.50407, size = 38, normalized size = 3.45 \[ \frac{2}{\frac{\sin \left (x\right )}{\cos \left (x\right ) + 1} + 1} + 2 \, \arctan \left (\frac{\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sin(x)/(sin(x) + 1),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.231073, size = 32, normalized size = 2.91 \[ \frac{{\left (x + 1\right )} \cos \left (x\right ) +{\left (x - 1\right )} \sin \left (x\right ) + x + 1}{\cos \left (x\right ) + \sin \left (x\right ) + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sin(x)/(sin(x) + 1),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.999472, size = 34, normalized size = 3.09 \[ \frac{x \tan{\left (\frac{x}{2} \right )}}{\tan{\left (\frac{x}{2} \right )} + 1} + \frac{x}{\tan{\left (\frac{x}{2} \right )} + 1} - \frac{2 \tan{\left (\frac{x}{2} \right )}}{\tan{\left (\frac{x}{2} \right )} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sin(x)/(1+sin(x)),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.211878, size = 16, normalized size = 1.45 \[ x + \frac{2}{\tan \left (\frac{1}{2} \, x\right ) + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sin(x)/(sin(x) + 1),x, algorithm="giac")
[Out]