3.3.32 \(\int x \log (a+x^2) \, dx\) [232]

Optimal. Leaf size=23 \[ -\frac {x^2}{2}+\frac {1}{2} \left (a+x^2\right ) \log \left (a+x^2\right ) \]

[Out]

-1/2*x^2+1/2*(x^2+a)*ln(x^2+a)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {2504, 2436, 2332} \begin {gather*} \frac {1}{2} \left (a+x^2\right ) \log \left (a+x^2\right )-\frac {x^2}{2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x*Log[a + x^2],x]

[Out]

-1/2*x^2 + ((a + x^2)*Log[a + x^2])/2

Rule 2332

Int[Log[(c_.)*(x_)^(n_.)], x_Symbol] :> Simp[x*Log[c*x^n], x] - Simp[n*x, x] /; FreeQ[{c, n}, x]

Rule 2436

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.), x_Symbol] :> Dist[1/e, Subst[Int[(a + b*Log[c*
x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, n, p}, x]

Rule 2504

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m_.), x_Symbol] :> Dist[1/n, Subst[I
nt[x^(Simplify[(m + 1)/n] - 1)*(a + b*Log[c*(d + e*x)^p])^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, e, m, n, p,
 q}, x] && IntegerQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0]) &&  !(EqQ[q, 1] && ILtQ[n, 0] &&
 IGtQ[m, 0])

Rubi steps

\begin {align*} \int x \log \left (a+x^2\right ) \, dx &=\frac {1}{2} \text {Subst}\left (\int \log (a+x) \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \log (x) \, dx,x,a+x^2\right )\\ &=-\frac {x^2}{2}+\frac {1}{2} \left (a+x^2\right ) \log \left (a+x^2\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 22, normalized size = 0.96 \begin {gather*} \frac {1}{2} \left (-x^2+\left (a+x^2\right ) \log \left (a+x^2\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x*Log[a + x^2],x]

[Out]

(-x^2 + (a + x^2)*Log[a + x^2])/2

________________________________________________________________________________________

Maple [A]
time = 0.01, size = 23, normalized size = 1.00

method result size
derivativedivides \(\frac {\left (x^{2}+a \right ) \ln \left (x^{2}+a \right )}{2}-\frac {x^{2}}{2}-\frac {a}{2}\) \(23\)
default \(\frac {\left (x^{2}+a \right ) \ln \left (x^{2}+a \right )}{2}-\frac {x^{2}}{2}-\frac {a}{2}\) \(23\)
norman \(-\frac {x^{2}}{2}+\frac {\ln \left (x^{2}+a \right ) a}{2}+\frac {\ln \left (x^{2}+a \right ) x^{2}}{2}\) \(27\)
risch \(-\frac {x^{2}}{2}+\frac {\ln \left (x^{2}+a \right ) a}{2}+\frac {\ln \left (x^{2}+a \right ) x^{2}}{2}\) \(27\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2*(x^2+a)*ln(x^2+a)-1/2*x^2-1/2*a

________________________________________________________________________________________

Maxima [A]
time = 1.23, size = 22, normalized size = 0.96 \begin {gather*} -\frac {1}{2} \, x^{2} + \frac {1}{2} \, {\left (x^{2} + a\right )} \log \left (x^{2} + a\right ) - \frac {1}{2} \, a \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/2*x^2 + 1/2*(x^2 + a)*log(x^2 + a) - 1/2*a

________________________________________________________________________________________

Fricas [A]
time = 0.56, size = 19, normalized size = 0.83 \begin {gather*} -\frac {1}{2} \, x^{2} + \frac {1}{2} \, {\left (x^{2} + a\right )} \log \left (x^{2} + a\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/2*x^2 + 1/2*(x^2 + a)*log(x^2 + a)

________________________________________________________________________________________

Sympy [A]
time = 0.06, size = 26, normalized size = 1.13 \begin {gather*} \frac {a \log {\left (a + x^{2} \right )}}{2} + \frac {x^{2} \log {\left (a + x^{2} \right )}}{2} - \frac {x^{2}}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*ln(x**2+a),x)

[Out]

a*log(a + x**2)/2 + x**2*log(a + x**2)/2 - x**2/2

________________________________________________________________________________________

Giac [A]
time = 0.51, size = 22, normalized size = 0.96 \begin {gather*} -\frac {1}{2} \, x^{2} + \frac {1}{2} \, {\left (x^{2} + a\right )} \log \left (x^{2} + a\right ) - \frac {1}{2} \, a \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/2*x^2 + 1/2*(x^2 + a)*log(x^2 + a) - 1/2*a

________________________________________________________________________________________

Mupad [B]
time = 0.14, size = 41, normalized size = 1.78 \begin {gather*} \frac {a\,\ln \left (x+\sqrt {-a}\right )}{2}+\frac {x^2\,\ln \left (x^2+a\right )}{2}+\frac {a\,\ln \left (x-\sqrt {-a}\right )}{2}-\frac {x^2}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*log(a + x^2),x)

[Out]

(a*log(x + (-a)^(1/2)))/2 + (x^2*log(a + x^2))/2 + (a*log(x - (-a)^(1/2)))/2 - x^2/2

________________________________________________________________________________________