3.119 \(\int \frac {7+8 x^3}{(1+x) (1+2 x)^3} \, dx\)

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

[Out]

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

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

Int[(7 + 8*x^3)/((1 + x)*(1 + 2*x)^3),x]

[Out]

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

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 {7+8 x^3}{(1+x) (1+2 x)^3} \, dx &=\int \left (\frac {1}{1+x}+\frac {12}{(1+2 x)^3}-\frac {6}{(1+2 x)^2}\right ) \, dx\\ &=-\frac {3}{(1+2 x)^2}+\frac {3}{1+2 x}+\log (1+x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 24, normalized size = 1.04 \[ \frac {6 x+(2 x+1)^2 \log (x+1)}{(2 x+1)^2} \]

Antiderivative was successfully verified.

[In]

Integrate[(7 + 8*x^3)/((1 + x)*(1 + 2*x)^3),x]

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.39, size = 32, normalized size = 1.39 \[ \frac {{\left (4 \, x^{2} + 4 \, x + 1\right )} \log \left (x + 1\right ) + 6 \, x}{4 \, x^{2} + 4 \, x + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

((4*x^2 + 4*x + 1)*log(x + 1) + 6*x)/(4*x^2 + 4*x + 1)

________________________________________________________________________________________

giac [A]  time = 0.01, size = 16, normalized size = 0.70 \[ \frac {6 \, x}{{\left (2 \, x + 1\right )}^{2}} + \log \left ({\left | x + 1 \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

6*x/(2*x + 1)^2 + log(abs(x + 1))

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((8*x^3+7)/(x+1)/(2*x+1)^3,x)

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.60, size = 20, normalized size = 0.87 \[ \frac {6 \, x}{4 \, x^{2} + 4 \, x + 1} + \log \left (x + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

6*x/(4*x^2 + 4*x + 1) + log(x + 1)

________________________________________________________________________________________

mupad [B]  time = 0.09, size = 15, normalized size = 0.65 \[ \ln \left (x+1\right )+\frac {6\,x}{{\left (2\,x+1\right )}^2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((8*x^3 + 7)/((2*x + 1)^3*(x + 1)),x)

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 17, normalized size = 0.74 \[ \frac {6 x}{4 x^{2} + 4 x + 1} + \log {\left (x + 1 \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((8*x**3+7)/(1+x)/(1+2*x)**3,x)

[Out]

6*x/(4*x**2 + 4*x + 1) + log(x + 1)

________________________________________________________________________________________