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

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

________________________________________________________________________________________

Rubi [A]  time = 0.28, antiderivative size = 28, normalized size of antiderivative = 1.08, number of steps used = 5, number of rules used = 4, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {6741, 12, 6742, 6684} \begin {gather*} 2 \log (x)-\log \left (-x^8-4 x^2-\log \left (x^2\right )+8 x\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

2*Log[x] - Log[8*x - 4*x^2 - x^8 - Log[x^2]]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 6684

Int[(u_)/(y_), x_Symbol] :> With[{q = DerivativeDivides[y, u, x]}, Simp[q*Log[RemoveContent[y, x]], x] /;  !Fa
lseQ[q]]

Rule 6741

Int[u_, x_Symbol] :> With[{v = NormalizeIntegrand[u, x]}, Int[v, x] /; v =!= u]

Rule 6742

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.24, size = 24, normalized size = 0.92 \begin {gather*} 2 \log (x)-\log \left (-8 x+4 x^2+x^8+\log \left (x^2\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

2*Log[x] - Log[-8*x + 4*x^2 + x^8 + Log[x^2]]

________________________________________________________________________________________

fricas [A]  time = 0.54, size = 24, normalized size = 0.92 \begin {gather*} -\log \left (x^{8} + 4 \, x^{2} - 8 \, x + \log \left (x^{2}\right )\right ) + \log \left (x^{2}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-log(x^8 + 4*x^2 - 8*x + log(x^2)) + log(x^2)

________________________________________________________________________________________

giac [A]  time = 0.44, size = 24, normalized size = 0.92 \begin {gather*} -\log \left (x^{8} + 4 \, x^{2} - 8 \, x + \log \left (x^{2}\right )\right ) + 2 \, \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-log(x^8 + 4*x^2 - 8*x + log(x^2)) + 2*log(x)

________________________________________________________________________________________

maple [A]  time = 0.03, size = 25, normalized size = 0.96




method result size



norman \(2 \ln \relax (x )-\ln \left (x^{8}+4 x^{2}+\ln \left (x^{2}\right )-8 x \right )\) \(25\)
risch \(2 \ln \relax (x )-\ln \left (x^{8}+4 x^{2}+\ln \left (x^{2}\right )-8 x \right )\) \(25\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*ln(x)-ln(x^8+4*x^2+ln(x^2)-8*x)

________________________________________________________________________________________

maxima [A]  time = 0.71, size = 24, normalized size = 0.92 \begin {gather*} -\log \left (\frac {1}{2} \, x^{8} + 2 \, x^{2} - 4 \, x + \log \relax (x)\right ) + 2 \, \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int -\frac {8\,x-2\,\ln \left (x^2\right )+6\,x^8+2}{x\,\ln \left (x^2\right )-8\,x^2+4\,x^3+x^9} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.15, size = 22, normalized size = 0.85 \begin {gather*} 2 \log {\relax (x )} - \log {\left (x^{8} + 4 x^{2} - 8 x + \log {\left (x^{2} \right )} \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*log(x) - log(x**8 + 4*x**2 - 8*x + log(x**2))

________________________________________________________________________________________