Optimal. Leaf size=75 \[ -\frac{3}{10} e^{-3 x} x^2 \sin (x)-\frac{1}{10} e^{-3 x} x^2 \cos (x)-\frac{4}{25} e^{-3 x} x \sin (x)-\frac{9}{250} e^{-3 x} \sin (x)-\frac{3}{25} e^{-3 x} x \cos (x)-\frac{13}{250} e^{-3 x} \cos (x) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.2228, antiderivative size = 75, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 5, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.454 \[ -\frac{3}{10} e^{-3 x} x^2 \sin (x)-\frac{1}{10} e^{-3 x} x^2 \cos (x)-\frac{4}{25} e^{-3 x} x \sin (x)-\frac{9}{250} e^{-3 x} \sin (x)-\frac{3}{25} e^{-3 x} x \cos (x)-\frac{13}{250} e^{-3 x} \cos (x) \]
Antiderivative was successfully verified.
[In] Int[(x^2*Sin[x])/E^(3*x),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ - \frac{3 x^{2} e^{- 3 x} \sin{\left (x \right )}}{10} - \frac{x^{2} e^{- 3 x} \cos{\left (x \right )}}{10} - 2 \int x \left (- \frac{3 e^{- 3 x} \sin{\left (x \right )}}{10} - \frac{e^{- 3 x} \cos{\left (x \right )}}{10}\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**2*sin(x)/exp(3*x),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0406455, size = 38, normalized size = 0.51 \[ \frac{1}{250} e^{-3 x} \left (-\left (75 x^2+40 x+9\right ) \sin (x)-\left (25 x^2+30 x+13\right ) \cos (x)\right ) \]
Antiderivative was successfully verified.
[In] Integrate[(x^2*Sin[x])/E^(3*x),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.007, size = 36, normalized size = 0.5 \[ \left ( -{\frac{{x}^{2}}{10}}-{\frac{3\,x}{25}}-{\frac{13}{250}} \right ){{\rm e}^{-3\,x}}\cos \left ( x \right ) + \left ( -{\frac{3\,{x}^{2}}{10}}-{\frac{4\,x}{25}}-{\frac{9}{250}} \right ){{\rm e}^{-3\,x}}\sin \left ( x \right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^2*sin(x)/exp(3*x),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.38843, size = 45, normalized size = 0.6 \[ -\frac{1}{250} \,{\left ({\left (25 \, x^{2} + 30 \, x + 13\right )} \cos \left (x\right ) +{\left (75 \, x^{2} + 40 \, x + 9\right )} \sin \left (x\right )\right )} e^{\left (-3 \, x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^2*e^(-3*x)*sin(x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.214124, size = 50, normalized size = 0.67 \[ -\frac{1}{250} \,{\left (25 \, x^{2} + 30 \, x + 13\right )} \cos \left (x\right ) e^{\left (-3 \, x\right )} - \frac{1}{250} \,{\left (75 \, x^{2} + 40 \, x + 9\right )} e^{\left (-3 \, x\right )} \sin \left (x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^2*e^(-3*x)*sin(x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 3.66555, size = 80, normalized size = 1.07 \[ - \frac{3 x^{2} e^{- 3 x} \sin{\left (x \right )}}{10} - \frac{x^{2} e^{- 3 x} \cos{\left (x \right )}}{10} - \frac{4 x e^{- 3 x} \sin{\left (x \right )}}{25} - \frac{3 x e^{- 3 x} \cos{\left (x \right )}}{25} - \frac{9 e^{- 3 x} \sin{\left (x \right )}}{250} - \frac{13 e^{- 3 x} \cos{\left (x \right )}}{250} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**2*sin(x)/exp(3*x),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.204716, size = 45, normalized size = 0.6 \[ -\frac{1}{250} \,{\left ({\left (25 \, x^{2} + 30 \, x + 13\right )} \cos \left (x\right ) +{\left (75 \, x^{2} + 40 \, x + 9\right )} \sin \left (x\right )\right )} e^{\left (-3 \, x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^2*e^(-3*x)*sin(x),x, algorithm="giac")
[Out]