Optimal. Leaf size=5 \[ \cos (x) \sin (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 5, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3756, 391}
\begin {gather*} \sin (x) \cos (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 391
Rule 3756
Rubi steps
\begin {align*} \int \cos ^2(x) \left (1-\tan ^2(x)\right ) \, dx &=\text {Subst}\left (\int \frac {1-x^2}{\left (1+x^2\right )^2} \, dx,x,\tan (x)\right )\\ &=\cos (x) \sin (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 8, normalized size = 1.60 \begin {gather*} \frac {1}{2} \sin (2 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 3.58, size = 6, normalized size = 1.20 \begin {gather*} \frac {\text {Sin}\left [2 x\right ]}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 6, normalized size = 1.20
method | result | size |
default | \(\cos \left (x \right ) \sin \left (x \right )\) | \(6\) |
risch | \(\frac {\sin \left (2 x \right )}{2}\) | \(7\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 11 vs.
\(2 (5) = 10\).
time = 0.26, size = 11, normalized size = 2.20 \begin {gather*} \frac {\tan \left (x\right )}{\tan \left (x\right )^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 5, normalized size = 1.00 \begin {gather*} \cos \left (x\right ) \sin \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.18, size = 7, normalized size = 1.40 \begin {gather*} \frac {\tan {\left (x \right )}}{\sec ^{2}{\left (x \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 7, normalized size = 1.40 \begin {gather*} \frac 1{\tan x+\frac 1{\tan x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.17, size = 6, normalized size = 1.20 \begin {gather*} \frac {\sin \left (2\,x\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________