3.2.15 \(\int \frac {3+2 x}{(-2+x) (5+x)} \, dx\) [115]

Optimal. Leaf size=11 \[ \log (2-x)+\log (5+x) \]

[Out]

ln(2-x)+ln(5+x)

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {78} \begin {gather*} \log (2-x)+\log (x+5) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

Log[2 - x] + Log[5 + x]

Rule 78

Int[((a_.) + (b_.)*(x_))*((c_) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Int[ExpandIntegran
d[(a + b*x)*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && NeQ[b*c - a*d, 0] && ((ILtQ[
n, 0] && ILtQ[p, 0]) || EqQ[p, 1] || (IGtQ[p, 0] && ( !IntegerQ[n] || LeQ[9*p + 5*(n + 2), 0] || GeQ[n + p + 1
, 0] || (GeQ[n + p + 2, 0] && RationalQ[a, b, c, d, e, f]))))

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 9, normalized size = 0.82 \begin {gather*} \log (-2+x)+\log (5+x) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

Log[-2 + x] + Log[5 + x]

________________________________________________________________________________________

Maple [A]
time = 0.06, size = 9, normalized size = 0.82

method result size
default \(\ln \left (\left (-2+x \right ) \left (5+x \right )\right )\) \(9\)
norman \(\ln \left (-2+x \right )+\ln \left (5+x \right )\) \(10\)
risch \(\ln \left (x^{2}+3 x -10\right )\) \(10\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((3+2*x)/(-2+x)/(5+x),x,method=_RETURNVERBOSE)

[Out]

ln((-2+x)*(5+x))

________________________________________________________________________________________

Maxima [A]
time = 3.33, size = 9, normalized size = 0.82 \begin {gather*} \log \left (x + 5\right ) + \log \left (x - 2\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

log(x + 5) + log(x - 2)

________________________________________________________________________________________

Fricas [A]
time = 1.06, size = 9, normalized size = 0.82 \begin {gather*} \log \left (x^{2} + 3 \, x - 10\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

log(x^2 + 3*x - 10)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3+2*x)/(-2+x)/(5+x),x)

[Out]

log(x**2 + 3*x - 10)

________________________________________________________________________________________

Giac [A]
time = 0.44, size = 11, normalized size = 1.00 \begin {gather*} \log \left ({\left | x + 5 \right |}\right ) + \log \left ({\left | x - 2 \right |}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

log(abs(x + 5)) + log(abs(x - 2))

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*x + 3)/((x - 2)*(x + 5)),x)

[Out]

log(3*x + x^2 - 10)

________________________________________________________________________________________