3.229 \(\int \frac {3 x+3 x^2+x^3}{1+4 x+6 x^2+4 x^3+x^4} \, dx\)

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

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {1594, 1680, 14} \[ \frac {1}{3 (x+1)^3}+\log (x+1) \]

Antiderivative was successfully verified.

[In]

Int[(3*x + 3*x^2 + x^3)/(1 + 4*x + 6*x^2 + 4*x^3 + x^4),x]

[Out]

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

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 1594

Int[(u_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.) + (c_.)*(x_)^(r_.))^(n_.), x_Symbol] :> Int[u*x^(n*p)*(a + b*x^
(q - p) + c*x^(r - p))^n, x] /; FreeQ[{a, b, c, p, q, r}, x] && IntegerQ[n] && PosQ[q - p] && PosQ[r - p]

Rule 1680

Int[(Pq_)*(Q4_)^(p_), x_Symbol] :> With[{a = Coeff[Q4, x, 0], b = Coeff[Q4, x, 1], c = Coeff[Q4, x, 2], d = Co
eff[Q4, x, 3], e = Coeff[Q4, x, 4]}, Subst[Int[SimplifyIntegrand[(Pq /. x -> -(d/(4*e)) + x)*(a + d^4/(256*e^3
) - (b*d)/(8*e) + (c - (3*d^2)/(8*e))*x^2 + e*x^4)^p, x], x], x, d/(4*e) + x] /; EqQ[d^3 - 4*c*d*e + 8*b*e^2,
0] && NeQ[d, 0]] /; FreeQ[p, x] && PolyQ[Pq, x] && PolyQ[Q4, x, 4] &&  !IGtQ[p, 0]

Rubi steps

\begin {align*} \int \frac {3 x+3 x^2+x^3}{1+4 x+6 x^2+4 x^3+x^4} \, dx &=\int \frac {x \left (3+3 x+x^2\right )}{1+4 x+6 x^2+4 x^3+x^4} \, dx\\ &=\operatorname {Subst}\left (\int \frac {-1+x^3}{x^4} \, dx,x,1+x\right )\\ &=\operatorname {Subst}\left (\int \left (-\frac {1}{x^4}+\frac {1}{x}\right ) \, dx,x,1+x\right )\\ &=\frac {1}{3 (1+x)^3}+\log (1+x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 14, normalized size = 1.00 \[ \frac {1}{3 (x+1)^3}+\log (x+1) \]

Antiderivative was successfully verified.

[In]

Integrate[(3*x + 3*x^2 + x^3)/(1 + 4*x + 6*x^2 + 4*x^3 + x^4),x]

[Out]

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

________________________________________________________________________________________

fricas [B]  time = 0.89, size = 38, normalized size = 2.71 \[ \frac {3 \, {\left (x^{3} + 3 \, x^{2} + 3 \, x + 1\right )} \log \left (x + 1\right ) + 1}{3 \, {\left (x^{3} + 3 \, x^{2} + 3 \, x + 1\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^3+3*x^2+3*x)/(x^4+4*x^3+6*x^2+4*x+1),x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^3+3*x^2+3*x)/(x^4+4*x^3+6*x^2+4*x+1),x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^3+3*x^2+3*x)/(x^4+4*x^3+6*x^2+4*x+1),x)

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.44, size = 22, normalized size = 1.57 \[ \frac {1}{3 \, {\left (x^{3} + 3 \, x^{2} + 3 \, x + 1\right )}} + \log \left (x + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^3+3*x^2+3*x)/(x^4+4*x^3+6*x^2+4*x+1),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.04, size = 12, normalized size = 0.86 \[ \ln \left (x+1\right )+\frac {1}{3\,{\left (x+1\right )}^3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((3*x + 3*x^2 + x^3)/(4*x + 6*x^2 + 4*x^3 + x^4 + 1),x)

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.10, size = 20, normalized size = 1.43 \[ \log {\left (x + 1 \right )} + \frac {1}{3 x^{3} + 9 x^{2} + 9 x + 3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x**3+3*x**2+3*x)/(x**4+4*x**3+6*x**2+4*x+1),x)

[Out]

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

________________________________________________________________________________________