3.284 \(\int \frac {2+2 x+x^4}{x^4+x^5} \, dx\)

Optimal. Leaf size=12 \[ \log (x+1)-\frac {2}{3 x^3} \]

[Out]

-2/3/x^3+ln(1+x)

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {1593, 1620} \[ \log (x+1)-\frac {2}{3 x^3} \]

Antiderivative was successfully verified.

[In]

Int[(2 + 2*x + x^4)/(x^4 + x^5),x]

[Out]

-2/(3*x^3) + Log[1 + 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 {align*} \int \frac {2+2 x+x^4}{x^4+x^5} \, dx &=\int \frac {2+2 x+x^4}{x^4 (1+x)} \, dx\\ &=\int \left (\frac {2}{x^4}+\frac {1}{1+x}\right ) \, dx\\ &=-\frac {2}{3 x^3}+\log (1+x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 12, normalized size = 1.00 \[ \log (x+1)-\frac {2}{3 x^3} \]

Antiderivative was successfully verified.

[In]

Integrate[(2 + 2*x + x^4)/(x^4 + x^5),x]

[Out]

-2/(3*x^3) + Log[1 + x]

________________________________________________________________________________________

fricas [A]  time = 0.70, size = 16, normalized size = 1.33 \[ \frac {3 \, x^{3} \log \left (x + 1\right ) - 2}{3 \, x^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^4+2*x+2)/(x^5+x^4),x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.29, size = 11, normalized size = 0.92 \[ -\frac {2}{3 \, x^{3}} + \log \left ({\left | x + 1 \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^4+2*x+2)/(x^5+x^4),x, algorithm="giac")

[Out]

-2/3/x^3 + log(abs(x + 1))

________________________________________________________________________________________

maple [A]  time = 0.01, size = 11, normalized size = 0.92 \[ \ln \left (x +1\right )-\frac {2}{3 x^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^4+2*x+2)/(x^5+x^4),x)

[Out]

-2/3/x^3+ln(x+1)

________________________________________________________________________________________

maxima [A]  time = 1.11, size = 10, normalized size = 0.83 \[ -\frac {2}{3 \, x^{3}} + \log \left (x + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^4+2*x+2)/(x^5+x^4),x, algorithm="maxima")

[Out]

-2/3/x^3 + log(x + 1)

________________________________________________________________________________________

mupad [B]  time = 2.12, size = 10, normalized size = 0.83 \[ \ln \left (x+1\right )-\frac {2}{3\,x^3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*x + x^4 + 2)/(x^4 + x^5),x)

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.09, size = 10, normalized size = 0.83 \[ \log {\left (x + 1 \right )} - \frac {2}{3 x^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x**4+2*x+2)/(x**5+x**4),x)

[Out]

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

________________________________________________________________________________________