3.65 \(\int (b+a x) \log (x) \, dx\)

Optimal. Leaf size=28 \[ -\frac {a x^2}{4}+\frac {1}{2} a x^2 \log (x)-b x+b x \log (x) \]

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 29, normalized size of antiderivative = 1.04, number of steps used = 2, number of rules used = 1, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2313} \[ \frac {1}{2} \log (x) \left (a x^2+2 b x\right )-\frac {a x^2}{4}-b x \]

Antiderivative was successfully verified.

[In]

Int[(b + a*x)*Log[x],x]

[Out]

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

Rule 2313

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = IntHide[(d +
 e*x^r)^q, x]}, Simp[u*(a + b*Log[c*x^n]), x] - Dist[b*n, Int[SimplifyIntegrand[u/x, x], x], x]] /; FreeQ[{a,
b, c, d, e, n, r}, x] && IGtQ[q, 0]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 28, normalized size = 1.00 \[ -\frac {a x^2}{4}+\frac {1}{2} a x^2 \log (x)-b x+b x \log (x) \]

Antiderivative was successfully verified.

[In]

Integrate[(b + a*x)*Log[x],x]

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.44, size = 25, normalized size = 0.89 \[ -\frac {1}{4} \, a x^{2} - b x + \frac {1}{2} \, {\left (a x^{2} + 2 \, b x\right )} \log \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 1.18, size = 24, normalized size = 0.86 \[ \frac {1}{2} \, a x^{2} \log \relax (x) - \frac {1}{4} \, a x^{2} + b x \log \relax (x) - b x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.01, size = 25, normalized size = 0.89 \[ \frac {a \,x^{2} \ln \relax (x )}{2}-\frac {a \,x^{2}}{4}+b x \ln \relax (x )-b x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*x+b)*ln(x),x)

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.42, size = 25, normalized size = 0.89 \[ -\frac {1}{4} \, a x^{2} - b x + \frac {1}{2} \, {\left (a x^{2} + 2 \, b x\right )} \log \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.14, size = 21, normalized size = 0.75 \[ -\frac {x\,\left (4\,b+a\,x-4\,b\,\ln \relax (x)-2\,a\,x\,\ln \relax (x)\right )}{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(x)*(b + a*x),x)

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 22, normalized size = 0.79 \[ - \frac {a x^{2}}{4} - b x + \left (\frac {a x^{2}}{2} + b x\right ) \log {\relax (x )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________