3.3.84 \(\int \frac {2+2 x+x^4}{x^4+x^5} \, dx\) [284]

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

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.02, 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 = {1607, 1634} \begin {gather*} \log (x+1)-\frac {2}{3 x^3} \end {gather*}

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 1607

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 1634

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 \begin {gather*} -\frac {2}{3 x^3}+\log (1+x) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

Maple [A]
time = 0.16, size = 11, normalized size = 0.92

method result size
default \(-\frac {2}{3 x^{3}}+\ln \left (1+x \right )\) \(11\)
norman \(-\frac {2}{3 x^{3}}+\ln \left (1+x \right )\) \(11\)
meijerg \(-\frac {2}{3 x^{3}}+\ln \left (1+x \right )\) \(11\)
risch \(-\frac {2}{3 x^{3}}+\ln \left (1+x \right )\) \(11\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [A]
time = 0.27, size = 10, normalized size = 0.83 \begin {gather*} -\frac {2}{3 \, x^{3}} + \log \left (x + 1\right ) \end {gather*}

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)

________________________________________________________________________________________

Fricas [A]
time = 0.41, size = 16, normalized size = 1.33 \begin {gather*} \frac {3 \, x^{3} \log \left (x + 1\right ) - 2}{3 \, x^{3}} \end {gather*}

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

________________________________________________________________________________________

Sympy [A]
time = 0.02, size = 10, normalized size = 0.83 \begin {gather*} \log {\left (x + 1 \right )} - \frac {2}{3 x^{3}} \end {gather*}

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)

________________________________________________________________________________________

Giac [A]
time = 2.44, size = 11, normalized size = 0.92 \begin {gather*} -\frac {2}{3 \, x^{3}} + \log \left ({\left | x + 1 \right |}\right ) \end {gather*}

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))

________________________________________________________________________________________

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

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)

________________________________________________________________________________________