Optimal. Leaf size=14 \[ \frac {\sin ^2(x)}{2}+\sin (x) \cos (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {2635, 8, 2564, 30} \[ \frac {\sin ^2(x)}{2}+\sin (x) \cos (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 30
Rule 2564
Rule 2635
Rubi steps
\begin {align*} \int \left (-1+2 \cos ^2(x)+\cos (x) \sin (x)\right ) \, dx &=-x+2 \int \cos ^2(x) \, dx+\int \cos (x) \sin (x) \, dx\\ &=-x+\cos (x) \sin (x)+\int 1 \, dx+\operatorname {Subst}(\int x \, dx,x,\sin (x))\\ &=\cos (x) \sin (x)+\frac {\sin ^2(x)}{2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 17, normalized size = 1.21 \[ \frac {1}{2} \sin (2 x)-\frac {\cos ^2(x)}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.71, size = 12, normalized size = 0.86 \[ -\frac {1}{2} \, \cos \relax (x)^{2} + \cos \relax (x) \sin \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 13, normalized size = 0.93 \[ -\frac {1}{2} \, \cos \relax (x)^{2} + \frac {1}{2} \, \sin \left (2 \, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 13, normalized size = 0.93 \[ \cos \relax (x ) \sin \relax (x )+\frac {\left (\sin ^{2}\relax (x )\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 13, normalized size = 0.93 \[ -\frac {1}{2} \, \cos \relax (x)^{2} + \frac {1}{2} \, \sin \left (2 \, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.97, size = 11, normalized size = 0.79 \[ -\frac {\cos \relax (x)\,\left (\cos \relax (x)-2\,\sin \relax (x)\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.05, size = 12, normalized size = 0.86 \[ \frac {\sin ^{2}{\relax (x )}}{2} + \sin {\relax (x )} \cos {\relax (x )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________