Optimal. Leaf size=18 \[ \frac {x}{2}-\frac {1}{6} \cos (3 x) \sin (3 x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 18, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {2715, 8}
\begin {gather*} \frac {x}{2}-\frac {1}{6} \sin (3 x) \cos (3 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2715
Rubi steps
\begin {align*} \int \sin ^2(3 x) \, dx &=-\frac {1}{6} \cos (3 x) \sin (3 x)+\frac {\int 1 \, dx}{2}\\ &=\frac {x}{2}-\frac {1}{6} \cos (3 x) \sin (3 x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 14, normalized size = 0.78 \begin {gather*} \frac {x}{2}-\frac {1}{12} \sin (6 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 1.77, size = 10, normalized size = 0.56 \begin {gather*} \frac {x}{2}-\frac {\text {Sin}\left [6 x\right ]}{12} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 15, normalized size = 0.83
method | result | size |
risch | \(\frac {x}{2}-\frac {\sin \left (6 x \right )}{12}\) | \(11\) |
derivativedivides | \(\frac {x}{2}-\frac {\cos \left (3 x \right ) \sin \left (3 x \right )}{6}\) | \(15\) |
default | \(\frac {x}{2}-\frac {\cos \left (3 x \right ) \sin \left (3 x \right )}{6}\) | \(15\) |
meijerg | \(\frac {\sqrt {\pi }\, \left (\frac {6 x}{\sqrt {\pi }}-\frac {\sin \left (6 x \right )}{\sqrt {\pi }}\right )}{12}\) | \(22\) |
norman | \(\frac {x \left (\tan ^{2}\left (\frac {3 x}{2}\right )\right )+\frac {x}{2}+\frac {\left (\tan ^{3}\left (\frac {3 x}{2}\right )\right )}{3}+\frac {x \left (\tan ^{4}\left (\frac {3 x}{2}\right )\right )}{2}-\frac {\tan \left (\frac {3 x}{2}\right )}{3}}{\left (1+\tan ^{2}\left (\frac {3 x}{2}\right )\right )^{2}}\) | \(47\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 10, normalized size = 0.56 \begin {gather*} \frac {1}{2} \, x - \frac {1}{12} \, \sin \left (6 \, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 14, normalized size = 0.78 \begin {gather*} -\frac {1}{6} \, \cos \left (3 \, x\right ) \sin \left (3 \, x\right ) + \frac {1}{2} \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.03, size = 14, normalized size = 0.78 \begin {gather*} \frac {x}{2} - \frac {\sin {\left (3 x \right )} \cos {\left (3 x \right )}}{6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 13, normalized size = 0.72 \begin {gather*} \frac {x}{2}-\frac {\sin \left (6 x\right )}{12} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 10, normalized size = 0.56 \begin {gather*} \frac {x}{2}-\frac {\sin \left (6\,x\right )}{12} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________