3.3.63 \(\int x^2 \sin (\log (x)) \, dx\) [263]

Optimal. Leaf size=21 \[ -\frac {1}{10} x^3 \cos (\log (x))+\frac {3}{10} x^3 \sin (\log (x)) \]

[Out]

-1/10*x^3*cos(ln(x))+3/10*x^3*sin(ln(x))

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4573} \begin {gather*} \frac {3}{10} x^3 \sin (\log (x))-\frac {1}{10} x^3 \cos (\log (x)) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^2*Sin[Log[x]],x]

[Out]

-1/10*(x^3*Cos[Log[x]]) + (3*x^3*Sin[Log[x]])/10

Rule 4573

Int[((e_.)*(x_))^(m_.)*Sin[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*(d_.)], x_Symbol] :> Simp[(m + 1)*(e*x)^(m +
1)*(Sin[d*(a + b*Log[c*x^n])]/(b^2*d^2*e*n^2 + e*(m + 1)^2)), x] - Simp[b*d*n*(e*x)^(m + 1)*(Cos[d*(a + b*Log[
c*x^n])]/(b^2*d^2*e*n^2 + e*(m + 1)^2)), x] /; FreeQ[{a, b, c, d, e, m, n}, x] && NeQ[b^2*d^2*n^2 + (m + 1)^2,
 0]

Rubi steps

\begin {gather*} \begin {aligned} \text {Integral} &=-\frac {1}{10} x^3 \cos (\log (x))+\frac {3}{10} x^3 \sin (\log (x))\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 21, normalized size = 1.00 \begin {gather*} -\frac {1}{10} x^3 \cos (\log (x))+\frac {3}{10} x^3 \sin (\log (x)) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^2*Sin[Log[x]],x]

[Out]

-1/10*(x^3*Cos[Log[x]]) + (3*x^3*Sin[Log[x]])/10

________________________________________________________________________________________

Maple [C] Result contains complex when optimal does not.
time = 0.14, size = 26, normalized size = 1.24

method result size
risch \(\left (-\frac {1}{20}-\frac {3 i}{20}\right ) x^{3} x^{i}+\left (-\frac {1}{20}+\frac {3 i}{20}\right ) x^{3} x^{-i}\) \(26\)
norman \(\frac {-\frac {x^{3}}{10}+\frac {3 x^{3} \tan \left (\frac {\ln \left (x \right )}{2}\right )}{5}+\frac {x^{3} \left (\tan ^{2}\left (\frac {\ln \left (x \right )}{2}\right )\right )}{10}}{1+\tan ^{2}\left (\frac {\ln \left (x \right )}{2}\right )}\) \(41\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*sin(ln(x)),x,method=_RETURNVERBOSE)

[Out]

(-1/20-3/20*I)*x^3*x^I+(-1/20+3/20*I)*x^3/(x^I)

________________________________________________________________________________________

Maxima [A]
time = 0.34, size = 14, normalized size = 0.67 \begin {gather*} -\frac {1}{10} \, x^{3} {\left (\cos \left (\log \left (x\right )\right ) - 3 \, \sin \left (\log \left (x\right )\right )\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*sin(log(x)),x, algorithm="maxima")

[Out]

-1/10*x^3*(cos(log(x)) - 3*sin(log(x)))

________________________________________________________________________________________

Fricas [A]
time = 0.60, size = 17, normalized size = 0.81 \begin {gather*} -\frac {1}{10} \, x^{3} \cos \left (\log \left (x\right )\right ) + \frac {3}{10} \, x^{3} \sin \left (\log \left (x\right )\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*sin(log(x)),x, algorithm="fricas")

[Out]

-1/10*x^3*cos(log(x)) + 3/10*x^3*sin(log(x))

________________________________________________________________________________________

Sympy [A]
time = 0.40, size = 20, normalized size = 0.95 \begin {gather*} \frac {3 x^{3} \sin {\left (\log {\left (x \right )} \right )}}{10} - \frac {x^{3} \cos {\left (\log {\left (x \right )} \right )}}{10} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*sin(ln(x)),x)

[Out]

3*x**3*sin(log(x))/10 - x**3*cos(log(x))/10

________________________________________________________________________________________

Giac [A]
time = 0.49, size = 17, normalized size = 0.81 \begin {gather*} -\frac {1}{10} \, x^{3} \cos \left (\log \left (x\right )\right ) + \frac {3}{10} \, x^{3} \sin \left (\log \left (x\right )\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*sin(log(x)),x, algorithm="giac")

[Out]

-1/10*x^3*cos(log(x)) + 3/10*x^3*sin(log(x))

________________________________________________________________________________________

Mupad [B]
time = 0.14, size = 14, normalized size = 0.67 \begin {gather*} -\frac {\sqrt {10}\,x^3\,\cos \left (\mathrm {atan}\left (3\right )+\ln \left (x\right )\right )}{10} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*sin(log(x)),x)

[Out]

-(10^(1/2)*x^3*cos(atan(3) + log(x)))/10

________________________________________________________________________________________

Chatgpt [F] Failed to verify
time = 1.00, size = 17, normalized size = 0.81 \begin {gather*} -\frac {x^{2} \cos \left (\ln \left (x \right )\right )}{2}-\frac {x^{2} \sin \left (\ln \left (x \right )\right )}{4} \end {gather*}

Warning: Unable to verify antiderivative.

[In]

int(x^2*sin(ln(x)),x)

[Out]

-1/2*x^2*cos(ln(x))-1/4*x^2*sin(ln(x))

________________________________________________________________________________________