Optimal. Leaf size=16 \[ \frac{x}{2}-\frac{1}{2} \log (\sin (x)+\cos (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0411408, antiderivative size = 16, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3097, 3133} \[ \frac{x}{2}-\frac{1}{2} \log (\sin (x)+\cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3097
Rule 3133
Rubi steps
\begin{align*} \int \frac{\sin (x)}{\cos (x)+\sin (x)} \, dx &=\frac{x}{2}-\frac{1}{2} \int \frac{\cos (x)-\sin (x)}{\cos (x)+\sin (x)} \, dx\\ &=\frac{x}{2}-\frac{1}{2} \log (\cos (x)+\sin (x))\\ \end{align*}
Mathematica [A] time = 0.0232694, size = 16, normalized size = 1. \[ \frac{x}{2}-\frac{1}{2} \log (\sin (x)+\cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.023, size = 21, normalized size = 1.3 \begin{align*}{\frac{\ln \left ( \left ( \tan \left ( x \right ) \right ) ^{2}+1 \right ) }{4}}-{\frac{\ln \left ( 1+\tan \left ( x \right ) \right ) }{2}}+{\frac{x}{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.41169, size = 72, normalized size = 4.5 \begin{align*} \arctan \left (\frac{\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) - \frac{1}{2} \, \log \left (-\frac{2 \, \sin \left (x\right )}{\cos \left (x\right ) + 1} + \frac{\sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}} - 1\right ) + \frac{1}{2} \, \log \left (\frac{\sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.27533, size = 51, normalized size = 3.19 \begin{align*} \frac{1}{2} \, x - \frac{1}{4} \, \log \left (2 \, \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 [A] time = 0.132393, size = 12, normalized size = 0.75 \begin{align*} \frac{x}{2} - \frac{\log{\left (\sin{\left (x \right )} + \cos{\left (x \right )} \right )}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.08967, size = 28, normalized size = 1.75 \begin{align*} \frac{1}{2} \, x + \frac{1}{4} \, \log \left (\tan \left (x\right )^{2} + 1\right ) - \frac{1}{2} \, \log \left ({\left | \tan \left (x\right ) + 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]