3.40.19 \(\int \frac {-9-14 x+6 x^2+4 x^3}{17-9 x-7 x^2+2 x^3+x^4} \, dx\)

Optimal. Leaf size=17 \[ \log (4)+\log \left (-1+x-\left (-4+x+x^2\right )^2\right ) \]

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 19, normalized size of antiderivative = 1.12, number of steps used = 1, number of rules used = 1, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.028, Rules used = {1587} \begin {gather*} \log \left (x^4+2 x^3-7 x^2-9 x+17\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-9 - 14*x + 6*x^2 + 4*x^3)/(17 - 9*x - 7*x^2 + 2*x^3 + x^4),x]

[Out]

Log[17 - 9*x - 7*x^2 + 2*x^3 + x^4]

Rule 1587

Int[(Pp_)/(Qq_), x_Symbol] :> With[{p = Expon[Pp, x], q = Expon[Qq, x]}, Simp[(Coeff[Pp, x, p]*Log[RemoveConte
nt[Qq, x]])/(q*Coeff[Qq, x, q]), x] /; EqQ[p, q - 1] && EqQ[Pp, Simplify[(Coeff[Pp, x, p]*D[Qq, x])/(q*Coeff[Q
q, x, q])]]] /; PolyQ[Pp, x] && PolyQ[Qq, x]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\log \left (17-9 x-7 x^2+2 x^3+x^4\right )\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 19, normalized size = 1.12 \begin {gather*} \log \left (17-9 x-7 x^2+2 x^3+x^4\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-9 - 14*x + 6*x^2 + 4*x^3)/(17 - 9*x - 7*x^2 + 2*x^3 + x^4),x]

[Out]

Log[17 - 9*x - 7*x^2 + 2*x^3 + x^4]

________________________________________________________________________________________

fricas [A]  time = 1.05, size = 19, normalized size = 1.12 \begin {gather*} \log \left (x^{4} + 2 \, x^{3} - 7 \, x^{2} - 9 \, x + 17\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*x^3+6*x^2-14*x-9)/(x^4+2*x^3-7*x^2-9*x+17),x, algorithm="fricas")

[Out]

log(x^4 + 2*x^3 - 7*x^2 - 9*x + 17)

________________________________________________________________________________________

giac [A]  time = 0.14, size = 20, normalized size = 1.18 \begin {gather*} \log \left ({\left | x^{4} + 2 \, x^{3} - 7 \, x^{2} - 9 \, x + 17 \right |}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*x^3+6*x^2-14*x-9)/(x^4+2*x^3-7*x^2-9*x+17),x, algorithm="giac")

[Out]

log(abs(x^4 + 2*x^3 - 7*x^2 - 9*x + 17))

________________________________________________________________________________________

maple [A]  time = 0.02, size = 20, normalized size = 1.18




method result size



derivativedivides \(\ln \left (x^{4}+2 x^{3}-7 x^{2}-9 x +17\right )\) \(20\)
default \(\ln \left (x^{4}+2 x^{3}-7 x^{2}-9 x +17\right )\) \(20\)
norman \(\ln \left (x^{4}+2 x^{3}-7 x^{2}-9 x +17\right )\) \(20\)
risch \(\ln \left (x^{4}+2 x^{3}-7 x^{2}-9 x +17\right )\) \(20\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((4*x^3+6*x^2-14*x-9)/(x^4+2*x^3-7*x^2-9*x+17),x,method=_RETURNVERBOSE)

[Out]

ln(x^4+2*x^3-7*x^2-9*x+17)

________________________________________________________________________________________

maxima [A]  time = 0.34, size = 19, normalized size = 1.12 \begin {gather*} \log \left (x^{4} + 2 \, x^{3} - 7 \, x^{2} - 9 \, x + 17\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*x^3+6*x^2-14*x-9)/(x^4+2*x^3-7*x^2-9*x+17),x, algorithm="maxima")

[Out]

log(x^4 + 2*x^3 - 7*x^2 - 9*x + 17)

________________________________________________________________________________________

mupad [B]  time = 0.09, size = 19, normalized size = 1.12 \begin {gather*} \ln \left (x^4+2\,x^3-7\,x^2-9\,x+17\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(14*x - 6*x^2 - 4*x^3 + 9)/(2*x^3 - 7*x^2 - 9*x + x^4 + 17),x)

[Out]

log(2*x^3 - 7*x^2 - 9*x + x^4 + 17)

________________________________________________________________________________________

sympy [A]  time = 0.09, size = 19, normalized size = 1.12 \begin {gather*} \log {\left (x^{4} + 2 x^{3} - 7 x^{2} - 9 x + 17 \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*x**3+6*x**2-14*x-9)/(x**4+2*x**3-7*x**2-9*x+17),x)

[Out]

log(x**4 + 2*x**3 - 7*x**2 - 9*x + 17)

________________________________________________________________________________________