3.48.98 \(\int \frac {36+54 x-9 x^2+(18 x-3 x^2) \log (4)}{9-6 x+x^2} \, dx\)

Optimal. Leaf size=21 \[ \frac {3 x^2 \left (-3-\frac {4}{x}-\log (4)\right )}{-3+x} \]

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.061, Rules used = {27, 1850} \begin {gather*} \frac {9 (13+\log (64))}{3-x}-3 x (3+\log (4)) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(36 + 54*x - 9*x^2 + (18*x - 3*x^2)*Log[4])/(9 - 6*x + x^2),x]

[Out]

-3*x*(3 + Log[4]) + (9*(13 + Log[64]))/(3 - x)

Rule 27

Int[(u_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[u*Cancel[(b/2 + c*x)^(2*p)/c^p], x] /; Fr
eeQ[{a, b, c}, x] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p]

Rule 1850

Int[(Pq_)*((a_) + (b_.)*(x_)^(n_.))^(p_.), x_Symbol] :> Int[ExpandIntegrand[Pq*(a + b*x^n)^p, x], x] /; FreeQ[
{a, b, n}, x] && PolyQ[Pq, x] && (IGtQ[p, 0] || EqQ[n, 1])

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {36+54 x-9 x^2+\left (18 x-3 x^2\right ) \log (4)}{(-3+x)^2} \, dx\\ &=\int \left (-3 (3+\log (4))+\frac {9 (13+\log (64))}{(-3+x)^2}\right ) \, dx\\ &=-3 x (3+\log (4))+\frac {9 (13+\log (64))}{3-x}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 28, normalized size = 1.33 \begin {gather*} -\frac {3 \left (66+18 \log (4)-6 x (3+\log (4))+x^2 (3+\log (4))\right )}{-3+x} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(36 + 54*x - 9*x^2 + (18*x - 3*x^2)*Log[4])/(9 - 6*x + x^2),x]

[Out]

(-3*(66 + 18*Log[4] - 6*x*(3 + Log[4]) + x^2*(3 + Log[4])))/(-3 + x)

________________________________________________________________________________________

fricas [A]  time = 0.65, size = 29, normalized size = 1.38 \begin {gather*} -\frac {3 \, {\left (3 \, x^{2} + 2 \, {\left (x^{2} - 3 \, x + 9\right )} \log \relax (2) - 9 \, x + 39\right )}}{x - 3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*(-3*x^2+18*x)*log(2)-9*x^2+54*x+36)/(x^2-6*x+9),x, algorithm="fricas")

[Out]

-3*(3*x^2 + 2*(x^2 - 3*x + 9)*log(2) - 9*x + 39)/(x - 3)

________________________________________________________________________________________

giac [A]  time = 0.12, size = 22, normalized size = 1.05 \begin {gather*} -6 \, x \log \relax (2) - 9 \, x - \frac {9 \, {\left (6 \, \log \relax (2) + 13\right )}}{x - 3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*(-3*x^2+18*x)*log(2)-9*x^2+54*x+36)/(x^2-6*x+9),x, algorithm="giac")

[Out]

-6*x*log(2) - 9*x - 9*(6*log(2) + 13)/(x - 3)

________________________________________________________________________________________

maple [A]  time = 0.17, size = 19, normalized size = 0.90




method result size



norman \(\frac {\left (-6 \ln \relax (2)-9\right ) x^{2}-36}{x -3}\) \(19\)
gosper \(-\frac {3 \left (2 x^{2} \ln \relax (2)+3 x^{2}+12\right )}{x -3}\) \(22\)
default \(-6 x \ln \relax (2)-9 x -\frac {3 \left (18 \ln \relax (2)+39\right )}{x -3}\) \(23\)
risch \(-6 x \ln \relax (2)-9 x -\frac {117}{x -3}-\frac {54 \ln \relax (2)}{x -3}\) \(26\)
meijerg \(\frac {4 x}{1-\frac {x}{3}}-3 \left (-6 \ln \relax (2)-9\right ) \left (-\frac {x \left (-x +6\right )}{9 \left (1-\frac {x}{3}\right )}-2 \ln \left (1-\frac {x}{3}\right )\right )-3 \left (-12 \ln \relax (2)-18\right ) \left (\frac {x}{3-x}+\ln \left (1-\frac {x}{3}\right )\right )\) \(69\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*(-3*x^2+18*x)*ln(2)-9*x^2+54*x+36)/(x^2-6*x+9),x,method=_RETURNVERBOSE)

[Out]

((-6*ln(2)-9)*x^2-36)/(x-3)

________________________________________________________________________________________

maxima [A]  time = 0.35, size = 23, normalized size = 1.10 \begin {gather*} -3 \, x {\left (2 \, \log \relax (2) + 3\right )} - \frac {9 \, {\left (6 \, \log \relax (2) + 13\right )}}{x - 3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*(-3*x^2+18*x)*log(2)-9*x^2+54*x+36)/(x^2-6*x+9),x, algorithm="maxima")

[Out]

-3*x*(2*log(2) + 3) - 9*(6*log(2) + 13)/(x - 3)

________________________________________________________________________________________

mupad [B]  time = 3.25, size = 21, normalized size = 1.00 \begin {gather*} -x\,\left (\ln \left (64\right )+9\right )-\frac {54\,\ln \relax (2)+117}{x-3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((54*x + 2*log(2)*(18*x - 3*x^2) - 9*x^2 + 36)/(x^2 - 6*x + 9),x)

[Out]

- x*(log(64) + 9) - (54*log(2) + 117)/(x - 3)

________________________________________________________________________________________

sympy [A]  time = 0.14, size = 19, normalized size = 0.90 \begin {gather*} - x \left (6 \log {\relax (2 )} + 9\right ) - \frac {54 \log {\relax (2 )} + 117}{x - 3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*(-3*x**2+18*x)*ln(2)-9*x**2+54*x+36)/(x**2-6*x+9),x)

[Out]

-x*(6*log(2) + 9) - (54*log(2) + 117)/(x - 3)

________________________________________________________________________________________