Optimal. Leaf size=12 \[ -x \cos (a+x)+\sin (a+x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 12, 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 = {3377, 2717}
\begin {gather*} \sin (a+x)-x \cos (a+x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2717
Rule 3377
Rubi steps
\begin {align*} \int x \sin (a+x) \, dx &=-x \cos (a+x)+\int \cos (a+x) \, dx\\ &=-x \cos (a+x)+\sin (a+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 12, normalized size = 1.00 \begin {gather*} -x \cos (a+x)+\sin (a+x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 21, normalized size = 1.75
method | result | size |
risch | \(-x \cos \left (a +x \right )+\sin \left (a +x \right )\) | \(13\) |
derivativedivides | \(a \cos \left (a +x \right )+\sin \left (a +x \right )-\left (a +x \right ) \cos \left (a +x \right )\) | \(21\) |
default | \(a \cos \left (a +x \right )+\sin \left (a +x \right )-\left (a +x \right ) \cos \left (a +x \right )\) | \(21\) |
norman | \(\frac {x \left (\tan ^{2}\left (\frac {a}{2}+\frac {x}{2}\right )\right )-x +2 \tan \left (\frac {a}{2}+\frac {x}{2}\right )}{1+\tan ^{2}\left (\frac {a}{2}+\frac {x}{2}\right )}\) | \(42\) |
meijerg | \(2 \sin \left (a \right ) \sqrt {\pi }\, \left (-\frac {1}{2 \sqrt {\pi }}+\frac {\cos \left (x \right )}{2 \sqrt {\pi }}+\frac {x \sin \left (x \right )}{2 \sqrt {\pi }}\right )+2 \cos \left (a \right ) \sqrt {\pi }\, \left (-\frac {x \cos \left (x \right )}{2 \sqrt {\pi }}+\frac {\sin \left (x \right )}{2 \sqrt {\pi }}\right )\) | \(53\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.20, size = 20, normalized size = 1.67 \begin {gather*} -{\left (a + x\right )} \cos \left (a + x\right ) + a \cos \left (a + x\right ) + \sin \left (a + x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.89, size = 12, normalized size = 1.00 \begin {gather*} -x \cos \left (a + x\right ) + \sin \left (a + x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.05, size = 10, normalized size = 0.83 \begin {gather*} - x \cos {\left (a + x \right )} + \sin {\left (a + x \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.49, size = 12, normalized size = 1.00 \begin {gather*} -x \cos \left (a + x\right ) + \sin \left (a + x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.08, size = 12, normalized size = 1.00 \begin {gather*} \sin \left (a+x\right )-x\,\cos \left (a+x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________