Optimal. Leaf size=17 \[ \frac {\sin ^5(x)}{5}-\frac {\sin ^7(x)}{7} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2644, 14}
\begin {gather*} \frac {\sin ^5(x)}{5}-\frac {\sin ^7(x)}{7} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2644
Rubi steps
\begin {align*} \int \cos ^3(x) \sin ^4(x) \, dx &=\text {Subst}\left (\int x^4 \left (1-x^2\right ) \, dx,x,\sin (x)\right )\\ &=\text {Subst}\left (\int \left (x^4-x^6\right ) \, dx,x,\sin (x)\right )\\ &=\frac {\sin ^5(x)}{5}-\frac {\sin ^7(x)}{7}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 31, normalized size = 1.82 \begin {gather*} \frac {3 \sin (x)}{64}-\frac {1}{64} \sin (3 x)-\frac {1}{320} \sin (5 x)+\frac {1}{448} \sin (7 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 1.81, size = 13, normalized size = 0.76 \begin {gather*} -\frac {\text {Sin}\left [x\right ]^7}{7}+\frac {\text {Sin}\left [x\right ]^5}{5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(29\) vs.
\(2(13)=26\).
time = 0.03, size = 30, normalized size = 1.76
method | result | size |
risch | \(\frac {3 \sin \left (x \right )}{64}+\frac {\sin \left (7 x \right )}{448}-\frac {\sin \left (5 x \right )}{320}-\frac {\sin \left (3 x \right )}{64}\) | \(24\) |
default | \(-\frac {\left (\cos ^{4}\left (x \right )\right ) \left (\sin ^{3}\left (x \right )\right )}{7}-\frac {3 \sin \left (x \right ) \left (\cos ^{4}\left (x \right )\right )}{35}+\frac {\left (2+\cos ^{2}\left (x \right )\right ) \sin \left (x \right )}{35}\) | \(30\) |
norman | \(\frac {\frac {32 \left (\tan ^{5}\left (\frac {x}{2}\right )\right )}{5}-\frac {192 \left (\tan ^{7}\left (\frac {x}{2}\right )\right )}{35}+\frac {32 \left (\tan ^{9}\left (\frac {x}{2}\right )\right )}{5}}{\left (1+\tan ^{2}\left (\frac {x}{2}\right )\right )^{7}}\) | \(37\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 13, normalized size = 0.76 \begin {gather*} -\frac {1}{7} \, \sin \left (x\right )^{7} + \frac {1}{5} \, \sin \left (x\right )^{5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 22, normalized size = 1.29 \begin {gather*} \frac {1}{35} \, {\left (5 \, \cos \left (x\right )^{6} - 8 \, \cos \left (x\right )^{4} + \cos \left (x\right )^{2} + 2\right )} \sin \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.03, size = 12, normalized size = 0.71 \begin {gather*} - \frac {\sin ^{7}{\left (x \right )}}{7} + \frac {\sin ^{5}{\left (x \right )}}{5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 16, normalized size = 0.94 \begin {gather*} -\frac {\sin ^{7}x}{7}+\frac {\sin ^{5}x}{5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.15, size = 14, normalized size = 0.82 \begin {gather*} -\frac {{\sin \left (x\right )}^5\,\left (5\,{\sin \left (x\right )}^2-7\right )}{35} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________