Optimal. Leaf size=11 \[ \log (\sin (x))-\log (\sin (x)+1) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3258, 615} \[ \log (\sin (x))-\log (\sin (x)+1) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 615
Rule 3258
Rubi steps
\begin {align*} \int \frac {\cos (x)}{\sin (x)+\sin ^2(x)} \, dx &=\operatorname {Subst}\left (\int \frac {1}{x+x^2} \, dx,x,\sin (x)\right )\\ &=\log (\sin (x))-\log (1+\sin (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 11, normalized size = 1.00 \[ \log (\sin (x))-\log (\sin (x)+1) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.60, size = 13, normalized size = 1.18 \[ \log \left (\frac {1}{2} \, \sin \relax (x)\right ) - \log \left (\sin \relax (x) + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 12, normalized size = 1.09 \[ -\log \left (\sin \relax (x) + 1\right ) + \log \left ({\left | \sin \relax (x) \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 12, normalized size = 1.09 \[ \ln \left (\sin \relax (x )\right )-\ln \left (1+\sin \relax (x )\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.31, size = 11, normalized size = 1.00 \[ -\log \left (\sin \relax (x) + 1\right ) + \log \left (\sin \relax (x)\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.98, size = 9, normalized size = 0.82 \[ -2\,\mathrm {atanh}\left (2\,\sin \relax (x)+1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.18, size = 10, normalized size = 0.91 \[ - \log {\left (\sin {\relax (x )} + 1 \right )} + \log {\left (\sin {\relax (x )} \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________