Optimal. Leaf size=16 \[ \frac {x}{2}-\frac {1}{2} \log (\sin (x)+\cos (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, 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.02, size = 16, normalized size = 1.00 \[ \frac {x}{2}-\frac {1}{2} \log (\sin (x)+\cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 15, normalized size = 0.94 \[ \frac {1}{2} \, x - \frac {1}{4} \, \log \left (2 \, \cos \relax (x) \sin \relax (x) + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.08, size = 21, normalized size = 1.31 \[ \frac {1}{2} \, x + \frac {1}{4} \, \log \left (\tan \relax (x)^{2} + 1\right ) - \frac {1}{2} \, \log \left ({\left | \tan \relax (x) + 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 21, normalized size = 1.31 \[ \frac {x}{2}+\frac {\ln \left (\tan ^{2}\relax (x )+1\right )}{4}-\frac {\ln \left (\tan \relax (x )+1\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 1.28, size = 53, normalized size = 3.31 \[ \arctan \left (\frac {\sin \relax (x)}{\cos \relax (x) + 1}\right ) - \frac {1}{2} \, \log \left (-\frac {2 \, \sin \relax (x)}{\cos \relax (x) + 1} + \frac {\sin \relax (x)^{2}}{{\left (\cos \relax (x) + 1\right )}^{2}} - 1\right ) + \frac {1}{2} \, \log \left (\frac {\sin \relax (x)^{2}}{{\left (\cos \relax (x) + 1\right )}^{2}} + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.03, size = 13, normalized size = 0.81 \[ \frac {x}{2}-\frac {\ln \left (\cos \left (x-\frac {\pi }{4}\right )\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.15, size = 12, normalized size = 0.75 \[ \frac {x}{2} - \frac {\log {\left (\sin {\relax (x )} + \cos {\relax (x )} \right )}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________