3.86.44 \(\int \frac {-70-20 x-x^2}{300+60 x+3 x^2} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 13, normalized size of antiderivative = 0.57, number of steps used = 4, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {27, 12, 683} \begin {gather*} -\frac {x}{3}-\frac {10}{x+10} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-70 - 20*x - x^2)/(300 + 60*x + 3*x^2),x]

[Out]

-1/3*x - 10/(10 + x)

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 27

Int[(u_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[u*Cancel[(b/2 + c*x)^(2*p)/c^p], x] /; Fr
eeQ[{a, b, c}, x] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p]

Rule 683

Int[((d_.) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(d +
 e*x)^m*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m}, x] && NeQ[b^2 - 4*a*c, 0] && EqQ[2*c*d - b*e,
 0] && IGtQ[p, 0] &&  !(EqQ[m, 3] && NeQ[p, 1])

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-70-20 x-x^2}{3 (10+x)^2} \, dx\\ &=\frac {1}{3} \int \frac {-70-20 x-x^2}{(10+x)^2} \, dx\\ &=\frac {1}{3} \int \left (-1+\frac {30}{(10+x)^2}\right ) \, dx\\ &=-\frac {x}{3}-\frac {10}{10+x}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 15, normalized size = 0.65 \begin {gather*} \frac {1}{3} \left (-x-\frac {30}{10+x}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-70 - 20*x - x^2)/(300 + 60*x + 3*x^2),x]

[Out]

(-x - 30/(10 + x))/3

________________________________________________________________________________________

fricas [A]  time = 0.74, size = 15, normalized size = 0.65 \begin {gather*} -\frac {x^{2} + 10 \, x + 30}{3 \, {\left (x + 10\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x^2-20*x-70)/(3*x^2+60*x+300),x, algorithm="fricas")

[Out]

-1/3*(x^2 + 10*x + 30)/(x + 10)

________________________________________________________________________________________

giac [A]  time = 0.22, size = 11, normalized size = 0.48 \begin {gather*} -\frac {1}{3} \, x - \frac {10}{x + 10} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x^2-20*x-70)/(3*x^2+60*x+300),x, algorithm="giac")

[Out]

-1/3*x - 10/(x + 10)

________________________________________________________________________________________

maple [A]  time = 0.41, size = 12, normalized size = 0.52




method result size



default \(-\frac {x}{3}-\frac {10}{x +10}\) \(12\)
risch \(-\frac {x}{3}-\frac {10}{x +10}\) \(12\)
gosper \(-\frac {x^{2}-70}{3 \left (x +10\right )}\) \(13\)
norman \(\frac {-\frac {x^{2}}{3}+\frac {70}{3}}{x +10}\) \(14\)
meijerg \(\frac {13 x}{30 \left (1+\frac {x}{10}\right )}-\frac {x \left (\frac {3 x}{10}+6\right )}{9 \left (1+\frac {x}{10}\right )}\) \(27\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-x^2-20*x-70)/(3*x^2+60*x+300),x,method=_RETURNVERBOSE)

[Out]

-1/3*x-10/(x+10)

________________________________________________________________________________________

maxima [A]  time = 0.37, size = 11, normalized size = 0.48 \begin {gather*} -\frac {1}{3} \, x - \frac {10}{x + 10} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x^2-20*x-70)/(3*x^2+60*x+300),x, algorithm="maxima")

[Out]

-1/3*x - 10/(x + 10)

________________________________________________________________________________________

mupad [B]  time = 5.17, size = 11, normalized size = 0.48 \begin {gather*} -\frac {x}{3}-\frac {10}{x+10} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(20*x + x^2 + 70)/(60*x + 3*x^2 + 300),x)

[Out]

- x/3 - 10/(x + 10)

________________________________________________________________________________________

sympy [A]  time = 0.07, size = 8, normalized size = 0.35 \begin {gather*} - \frac {x}{3} - \frac {10}{x + 10} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x**2-20*x-70)/(3*x**2+60*x+300),x)

[Out]

-x/3 - 10/(x + 10)

________________________________________________________________________________________