Optimal. Leaf size=7 \[ \log (\sin (x))+\log (\cos (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0454076, antiderivative size = 9, normalized size of antiderivative = 1.29, number of steps used = 4, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {446, 72} \[ \log (\tan (x))+2 \log (\cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 446
Rule 72
Rubi steps
\begin{align*} \int (\csc (x)-\sec (x)) (\cos (x)+\sin (x)) \, dx &=\operatorname{Subst}\left (\int \frac{1-x^2}{x \left (1+x^2\right )} \, dx,x,\tan (x)\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{1-x}{x (1+x)} \, dx,x,\tan ^2(x)\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \left (\frac{1}{x}-\frac{2}{1+x}\right ) \, dx,x,\tan ^2(x)\right )\\ &=2 \log (\cos (x))+\log (\tan (x))\\ \end{align*}
Mathematica [A] time = 0.0071322, size = 7, normalized size = 1. \[ \log (\sin (x))+\log (\cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.04, size = 8, normalized size = 1.1 \begin{align*} \ln \left ( \cos \left ( x \right ) \right ) +\ln \left ( \sin \left ( x \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 0.965771, size = 20, normalized size = 2.86 \begin{align*} \frac{1}{2} \, \log \left (-\sin \left (x\right )^{2} + 1\right ) + \log \left (\sin \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.27852, size = 34, normalized size = 4.86 \begin{align*} \log \left (-\frac{1}{2} \, \cos \left (x\right ) \sin \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 6.47874, size = 8, normalized size = 1.14 \begin{align*} \log{\left (\sin{\left (x \right )} \right )} + \log{\left (\cos{\left (x \right )} \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.08246, size = 26, normalized size = 3.71 \begin{align*} \frac{1}{2} \, \log \left (\cos \left (x\right )^{2}\right ) + \frac{1}{2} \, \log \left (-\cos \left (x\right )^{2} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]