\(\int \frac {300-60 x-25 x^2-3 x^3}{-300 x+12 x^2-25 x^3+x^4} \, dx\) [10069]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 35, antiderivative size = 16 \[ \int \frac {300-60 x-25 x^2-3 x^3}{-300 x+12 x^2-25 x^3+x^4} \, dx=\log \left (\frac {\frac {12}{x}+x}{(25-x)^4}\right ) \]

[Out]

ln((12/x+x)/(-x+25)^4)

Rubi [A] (verified)

Time = 0.03 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.19, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.057, Rules used = {2099, 266} \[ \int \frac {300-60 x-25 x^2-3 x^3}{-300 x+12 x^2-25 x^3+x^4} \, dx=\log \left (x^2+12\right )-4 \log (25-x)-\log (x) \]

[In]

Int[(300 - 60*x - 25*x^2 - 3*x^3)/(-300*x + 12*x^2 - 25*x^3 + x^4),x]

[Out]

-4*Log[25 - x] - Log[x] + Log[12 + x^2]

Rule 266

Int[(x_)^(m_.)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Simp[Log[RemoveContent[a + b*x^n, x]]/(b*n), x] /; FreeQ
[{a, b, m, n}, x] && EqQ[m, n - 1]

Rule 2099

Int[(P_)^(p_)*(Q_)^(q_.), x_Symbol] :> With[{PP = Factor[P]}, Int[ExpandIntegrand[PP^p*Q^q, x], x] /;  !SumQ[N
onfreeFactors[PP, x]]] /; FreeQ[q, x] && PolyQ[P, x] && PolyQ[Q, x] && IntegerQ[p] && NeQ[P, x]

Rubi steps \begin{align*} \text {integral}& = \int \left (-\frac {4}{-25+x}-\frac {1}{x}+\frac {2 x}{12+x^2}\right ) \, dx \\ & = -4 \log (25-x)-\log (x)+2 \int \frac {x}{12+x^2} \, dx \\ & = -4 \log (25-x)-\log (x)+\log \left (12+x^2\right ) \\ \end{align*}

Mathematica [A] (verified)

Time = 0.01 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.19 \[ \int \frac {300-60 x-25 x^2-3 x^3}{-300 x+12 x^2-25 x^3+x^4} \, dx=-4 \log (25-x)-\log (x)+\log \left (12+x^2\right ) \]

[In]

Integrate[(300 - 60*x - 25*x^2 - 3*x^3)/(-300*x + 12*x^2 - 25*x^3 + x^4),x]

[Out]

-4*Log[25 - x] - Log[x] + Log[12 + x^2]

Maple [A] (verified)

Time = 0.11 (sec) , antiderivative size = 18, normalized size of antiderivative = 1.12

method result size
default \(-\ln \left (x \right )-4 \ln \left (x -25\right )+\ln \left (x^{2}+12\right )\) \(18\)
norman \(-\ln \left (x \right )-4 \ln \left (x -25\right )+\ln \left (x^{2}+12\right )\) \(18\)
risch \(-\ln \left (x \right )-4 \ln \left (x -25\right )+\ln \left (x^{2}+12\right )\) \(18\)
parallelrisch \(-\ln \left (x \right )-4 \ln \left (x -25\right )+\ln \left (x^{2}+12\right )\) \(18\)

[In]

int((-3*x^3-25*x^2-60*x+300)/(x^4-25*x^3+12*x^2-300*x),x,method=_RETURNVERBOSE)

[Out]

-ln(x)-4*ln(x-25)+ln(x^2+12)

Fricas [A] (verification not implemented)

none

Time = 0.26 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.06 \[ \int \frac {300-60 x-25 x^2-3 x^3}{-300 x+12 x^2-25 x^3+x^4} \, dx=\log \left (x^{2} + 12\right ) - 4 \, \log \left (x - 25\right ) - \log \left (x\right ) \]

[In]

integrate((-3*x^3-25*x^2-60*x+300)/(x^4-25*x^3+12*x^2-300*x),x, algorithm="fricas")

[Out]

log(x^2 + 12) - 4*log(x - 25) - log(x)

Sympy [A] (verification not implemented)

Time = 0.07 (sec) , antiderivative size = 15, normalized size of antiderivative = 0.94 \[ \int \frac {300-60 x-25 x^2-3 x^3}{-300 x+12 x^2-25 x^3+x^4} \, dx=- \log {\left (x \right )} - 4 \log {\left (x - 25 \right )} + \log {\left (x^{2} + 12 \right )} \]

[In]

integrate((-3*x**3-25*x**2-60*x+300)/(x**4-25*x**3+12*x**2-300*x),x)

[Out]

-log(x) - 4*log(x - 25) + log(x**2 + 12)

Maxima [A] (verification not implemented)

none

Time = 0.19 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.06 \[ \int \frac {300-60 x-25 x^2-3 x^3}{-300 x+12 x^2-25 x^3+x^4} \, dx=\log \left (x^{2} + 12\right ) - 4 \, \log \left (x - 25\right ) - \log \left (x\right ) \]

[In]

integrate((-3*x^3-25*x^2-60*x+300)/(x^4-25*x^3+12*x^2-300*x),x, algorithm="maxima")

[Out]

log(x^2 + 12) - 4*log(x - 25) - log(x)

Giac [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.19 \[ \int \frac {300-60 x-25 x^2-3 x^3}{-300 x+12 x^2-25 x^3+x^4} \, dx=\log \left (x^{2} + 12\right ) - 4 \, \log \left ({\left | x - 25 \right |}\right ) - \log \left ({\left | x \right |}\right ) \]

[In]

integrate((-3*x^3-25*x^2-60*x+300)/(x^4-25*x^3+12*x^2-300*x),x, algorithm="giac")

[Out]

log(x^2 + 12) - 4*log(abs(x - 25)) - log(abs(x))

Mupad [B] (verification not implemented)

Time = 16.37 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.06 \[ \int \frac {300-60 x-25 x^2-3 x^3}{-300 x+12 x^2-25 x^3+x^4} \, dx=\ln \left (x^2+12\right )-4\,\ln \left (x-25\right )-\ln \left (x\right ) \]

[In]

int((60*x + 25*x^2 + 3*x^3 - 300)/(300*x - 12*x^2 + 25*x^3 - x^4),x)

[Out]

log(x^2 + 12) - 4*log(x - 25) - log(x)