Optimal. Leaf size=54 \[ -\frac{a^2 x^3}{9}-\frac{b^3 \log (x)}{3 a}-\frac{1}{2} a b x^2+\frac{\log (x) (a x+b)^3}{3 a}-b^2 x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0278243, antiderivative size = 54, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.4, Rules used = {32, 2313, 12, 43} \[ -\frac{a^2 x^3}{9}-\frac{b^3 \log (x)}{3 a}-\frac{1}{2} a b x^2+\frac{\log (x) (a x+b)^3}{3 a}-b^2 x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 32
Rule 2313
Rule 12
Rule 43
Rubi steps
\begin{align*} \int (b+a x)^2 \log (x) \, dx &=\frac{(b+a x)^3 \log (x)}{3 a}-\int \frac{(b+a x)^3}{3 a x} \, dx\\ &=\frac{(b+a x)^3 \log (x)}{3 a}-\frac{\int \frac{(b+a x)^3}{x} \, dx}{3 a}\\ &=\frac{(b+a x)^3 \log (x)}{3 a}-\frac{\int \left (3 a b^2+\frac{b^3}{x}+3 a^2 b x+a^3 x^2\right ) \, dx}{3 a}\\ &=-b^2 x-\frac{1}{2} a b x^2-\frac{a^2 x^3}{9}-\frac{b^3 \log (x)}{3 a}+\frac{(b+a x)^3 \log (x)}{3 a}\\ \end{align*}
Mathematica [A] time = 0.0103252, size = 53, normalized size = 0.98 \[ -\frac{1}{9} a^2 x^3+\frac{1}{3} a^2 x^3 \log (x)-\frac{1}{2} a b x^2+a b x^2 \log (x)-b^2 x+b^2 x \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.001, size = 48, normalized size = 0.9 \begin{align*}{\frac{{a}^{2}{x}^{3}\ln \left ( x \right ) }{3}}-{\frac{{a}^{2}{x}^{3}}{9}}+ab{x}^{2}\ln \left ( x \right ) -{\frac{ab{x}^{2}}{2}}+\ln \left ( x \right ) x{b}^{2}-{b}^{2}x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.958832, size = 63, normalized size = 1.17 \begin{align*} -\frac{1}{9} \, a^{2} x^{3} - \frac{1}{2} \, a b x^{2} - b^{2} x + \frac{1}{3} \,{\left (a^{2} x^{3} + 3 \, a b x^{2} + 3 \, b^{2} x\right )} \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.98242, size = 109, normalized size = 2.02 \begin{align*} -\frac{1}{9} \, a^{2} x^{3} - \frac{1}{2} \, a b x^{2} - b^{2} x + \frac{1}{3} \,{\left (a^{2} x^{3} + 3 \, a b x^{2} + 3 \, b^{2} x\right )} \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.120427, size = 44, normalized size = 0.81 \begin{align*} - \frac{a^{2} x^{3}}{9} - \frac{a b x^{2}}{2} - b^{2} x + \left (\frac{a^{2} x^{3}}{3} + a b x^{2} + b^{2} x\right ) \log{\left (x \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.08132, size = 63, normalized size = 1.17 \begin{align*} \frac{1}{3} \, a^{2} x^{3} \log \left (x\right ) - \frac{1}{9} \, a^{2} x^{3} + a b x^{2} \log \left (x\right ) - \frac{1}{2} \, a b x^{2} + b^{2} x \log \left (x\right ) - b^{2} x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]