3.250 \(\int \frac {1+2 x}{2+3 x} \, dx\)

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

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {43} \[ \frac {2 x}{3}-\frac {1}{9} \log (3 x+2) \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 17, normalized size = 1.06 \[ \frac {1}{9} (6 x-\log (3 x+2)+4) \]

Antiderivative was successfully verified.

[In]

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

[Out]

(4 + 6*x - Log[2 + 3*x])/9

________________________________________________________________________________________

fricas [A]  time = 0.40, size = 12, normalized size = 0.75 \[ \frac {2}{3} \, x - \frac {1}{9} \, \log \left (3 \, x + 2\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 1.00, size = 13, normalized size = 0.81 \[ \frac {2}{3} \, x - \frac {1}{9} \, \log \left ({\left | 3 \, x + 2 \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.00, size = 13, normalized size = 0.81 \[ \frac {2 x}{3}-\frac {\ln \left (3 x +2\right )}{9} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*x+1)/(3*x+2),x)

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.42, size = 12, normalized size = 0.75 \[ \frac {2}{3} \, x - \frac {1}{9} \, \log \left (3 \, x + 2\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.14, size = 10, normalized size = 0.62 \[ \frac {2\,x}{3}-\frac {\ln \left (x+\frac {2}{3}\right )}{9} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*x + 1)/(3*x + 2),x)

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.08, size = 12, normalized size = 0.75 \[ \frac {2 x}{3} - \frac {\log {\left (3 x + 2 \right )}}{9} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________