3.77.46 \(\int \frac {6+9 x+8 x^2+4 x^3}{3 x+2 x^2} \, dx\)

Optimal. Leaf size=19 \[ e^2+x+x^2+\log \left (3 x^2 (3+2 x)\right ) \]

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 15, normalized size of antiderivative = 0.79, number of steps used = 3, number of rules used = 2, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.074, Rules used = {1593, 1620} \begin {gather*} x^2+x+2 \log (x)+\log (2 x+3) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(6 + 9*x + 8*x^2 + 4*x^3)/(3*x + 2*x^2),x]

[Out]

x + x^2 + 2*Log[x] + Log[3 + 2*x]

Rule 1593

Int[(u_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.))^(n_.), x_Symbol] :> Int[u*x^(n*p)*(a + b*x^(q - p))^n, x] /; F
reeQ[{a, b, p, q}, x] && IntegerQ[n] && PosQ[q - p]

Rule 1620

Int[(Px_)*((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[Px*(a + b*x)
^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d, m, n}, x] && PolyQ[Px, x] && (IntegersQ[m, n] || IGtQ[m, -2]) &&
GtQ[Expon[Px, x], 2]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {6+9 x+8 x^2+4 x^3}{x (3+2 x)} \, dx\\ &=\int \left (1+\frac {2}{x}+2 x+\frac {2}{3+2 x}\right ) \, dx\\ &=x+x^2+2 \log (x)+\log (3+2 x)\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 15, normalized size = 0.79 \begin {gather*} x+x^2+2 \log (x)+\log (3+2 x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(6 + 9*x + 8*x^2 + 4*x^3)/(3*x + 2*x^2),x]

[Out]

x + x^2 + 2*Log[x] + Log[3 + 2*x]

________________________________________________________________________________________

fricas [A]  time = 1.23, size = 15, normalized size = 0.79 \begin {gather*} x^{2} + x + \log \left (2 \, x + 3\right ) + 2 \, \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*x^3+8*x^2+9*x+6)/(2*x^2+3*x),x, algorithm="fricas")

[Out]

x^2 + x + log(2*x + 3) + 2*log(x)

________________________________________________________________________________________

giac [A]  time = 0.24, size = 17, normalized size = 0.89 \begin {gather*} x^{2} + x + \log \left ({\left | 2 \, x + 3 \right |}\right ) + 2 \, \log \left ({\left | x \right |}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*x^3+8*x^2+9*x+6)/(2*x^2+3*x),x, algorithm="giac")

[Out]

x^2 + x + log(abs(2*x + 3)) + 2*log(abs(x))

________________________________________________________________________________________

maple [A]  time = 0.22, size = 16, normalized size = 0.84




method result size



default \(x^{2}+x +2 \ln \relax (x )+\ln \left (2 x +3\right )\) \(16\)
norman \(x^{2}+x +2 \ln \relax (x )+\ln \left (2 x +3\right )\) \(16\)
risch \(x^{2}+x +2 \ln \relax (x )+\ln \left (2 x +3\right )\) \(16\)
meijerg \(2 \ln \relax (x )+2 \ln \relax (2)-2 \ln \relax (3)+\ln \left (1+\frac {2 x}{3}\right )-\frac {x \left (6-2 x \right )}{2}+4 x\) \(31\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((4*x^3+8*x^2+9*x+6)/(2*x^2+3*x),x,method=_RETURNVERBOSE)

[Out]

x^2+x+2*ln(x)+ln(2*x+3)

________________________________________________________________________________________

maxima [A]  time = 0.34, size = 15, normalized size = 0.79 \begin {gather*} x^{2} + x + \log \left (2 \, x + 3\right ) + 2 \, \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*x^3+8*x^2+9*x+6)/(2*x^2+3*x),x, algorithm="maxima")

[Out]

x^2 + x + log(2*x + 3) + 2*log(x)

________________________________________________________________________________________

mupad [B]  time = 0.06, size = 13, normalized size = 0.68 \begin {gather*} x+\ln \left (x+\frac {3}{2}\right )+2\,\ln \relax (x)+x^2 \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((9*x + 8*x^2 + 4*x^3 + 6)/(3*x + 2*x^2),x)

[Out]

x + log(x + 3/2) + 2*log(x) + x^2

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 15, normalized size = 0.79 \begin {gather*} x^{2} + x + 2 \log {\relax (x )} + \log {\left (x + \frac {3}{2} \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*x**3+8*x**2+9*x+6)/(2*x**2+3*x),x)

[Out]

x**2 + x + 2*log(x) + log(x + 3/2)

________________________________________________________________________________________