\(\int \frac {-721875+991375 x-129420 x^2-1857 x^3+x^4}{721875 x-135125 x^2-1855 x^3+x^4} \, dx\) [563]

   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 = 38, antiderivative size = 28 \[ \int \frac {-721875+991375 x-129420 x^2-1857 x^3+x^4}{721875 x-135125 x^2-1855 x^3+x^4} \, dx=\log \left (\frac {e^x \left (-1+\frac {80}{3+\frac {x}{25}}\right )}{(5-x) x}\right ) \]

[Out]

ln((80/(3+1/25*x)-1)/(5-x)*exp(x)/x)

Rubi [A] (verified)

Time = 0.03 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.93, number of steps used = 2, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.026, Rules used = {2099} \[ \int \frac {-721875+991375 x-129420 x^2-1857 x^3+x^4}{721875 x-135125 x^2-1855 x^3+x^4} \, dx=x-\log (5-x)+\log (1925-x)-\log (x)-\log (x+75) \]

[In]

Int[(-721875 + 991375*x - 129420*x^2 - 1857*x^3 + x^4)/(721875*x - 135125*x^2 - 1855*x^3 + x^4),x]

[Out]

x - Log[5 - x] + Log[1925 - x] - Log[x] - Log[75 + x]

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 (1+\frac {1}{-75-x}+\frac {1}{5-x}+\frac {1}{-1925+x}-\frac {1}{x}\right ) \, dx \\ & = x-\log (5-x)+\log (1925-x)-\log (x)-\log (75+x) \\ \end{align*}

Mathematica [A] (verified)

Time = 0.01 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.89 \[ \int \frac {-721875+991375 x-129420 x^2-1857 x^3+x^4}{721875 x-135125 x^2-1855 x^3+x^4} \, dx=x+\log (1925-x)-\log (x)-\log \left (375-70 x-x^2\right ) \]

[In]

Integrate[(-721875 + 991375*x - 129420*x^2 - 1857*x^3 + x^4)/(721875*x - 135125*x^2 - 1855*x^3 + x^4),x]

[Out]

x + Log[1925 - x] - Log[x] - Log[375 - 70*x - x^2]

Maple [A] (verified)

Time = 0.03 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.79

method result size
risch \(x +\ln \left (x -1925\right )-\ln \left (x^{3}+70 x^{2}-375 x \right )\) \(22\)
default \(x -\ln \left (x \right )-\ln \left (x +75\right )-\ln \left (-5+x \right )+\ln \left (x -1925\right )\) \(23\)
norman \(x -\ln \left (x \right )-\ln \left (x +75\right )-\ln \left (-5+x \right )+\ln \left (x -1925\right )\) \(23\)
parallelrisch \(x -\ln \left (x \right )-\ln \left (x +75\right )-\ln \left (-5+x \right )+\ln \left (x -1925\right )\) \(23\)

[In]

int((x^4-1857*x^3-129420*x^2+991375*x-721875)/(x^4-1855*x^3-135125*x^2+721875*x),x,method=_RETURNVERBOSE)

[Out]

x+ln(x-1925)-ln(x^3+70*x^2-375*x)

Fricas [A] (verification not implemented)

none

Time = 0.23 (sec) , antiderivative size = 21, normalized size of antiderivative = 0.75 \[ \int \frac {-721875+991375 x-129420 x^2-1857 x^3+x^4}{721875 x-135125 x^2-1855 x^3+x^4} \, dx=x - \log \left (x^{3} + 70 \, x^{2} - 375 \, x\right ) + \log \left (x - 1925\right ) \]

[In]

integrate((x^4-1857*x^3-129420*x^2+991375*x-721875)/(x^4-1855*x^3-135125*x^2+721875*x),x, algorithm="fricas")

[Out]

x - log(x^3 + 70*x^2 - 375*x) + log(x - 1925)

Sympy [A] (verification not implemented)

Time = 0.06 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.68 \[ \int \frac {-721875+991375 x-129420 x^2-1857 x^3+x^4}{721875 x-135125 x^2-1855 x^3+x^4} \, dx=x + \log {\left (x - 1925 \right )} - \log {\left (x^{3} + 70 x^{2} - 375 x \right )} \]

[In]

integrate((x**4-1857*x**3-129420*x**2+991375*x-721875)/(x**4-1855*x**3-135125*x**2+721875*x),x)

[Out]

x + log(x - 1925) - log(x**3 + 70*x**2 - 375*x)

Maxima [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.79 \[ \int \frac {-721875+991375 x-129420 x^2-1857 x^3+x^4}{721875 x-135125 x^2-1855 x^3+x^4} \, dx=x - \log \left (x + 75\right ) - \log \left (x - 5\right ) + \log \left (x - 1925\right ) - \log \left (x\right ) \]

[In]

integrate((x^4-1857*x^3-129420*x^2+991375*x-721875)/(x^4-1855*x^3-135125*x^2+721875*x),x, algorithm="maxima")

[Out]

x - log(x + 75) - log(x - 5) + log(x - 1925) - log(x)

Giac [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.93 \[ \int \frac {-721875+991375 x-129420 x^2-1857 x^3+x^4}{721875 x-135125 x^2-1855 x^3+x^4} \, dx=x - \log \left ({\left | x + 75 \right |}\right ) - \log \left ({\left | x - 5 \right |}\right ) + \log \left ({\left | x - 1925 \right |}\right ) - \log \left ({\left | x \right |}\right ) \]

[In]

integrate((x^4-1857*x^3-129420*x^2+991375*x-721875)/(x^4-1855*x^3-135125*x^2+721875*x),x, algorithm="giac")

[Out]

x - log(abs(x + 75)) - log(abs(x - 5)) + log(abs(x - 1925)) - log(abs(x))

Mupad [B] (verification not implemented)

Time = 7.47 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.68 \[ \int \frac {-721875+991375 x-129420 x^2-1857 x^3+x^4}{721875 x-135125 x^2-1855 x^3+x^4} \, dx=x+\ln \left (x-1925\right )-\ln \left (x\,\left (x^2+70\,x-375\right )\right ) \]

[In]

int(-(129420*x^2 - 991375*x + 1857*x^3 - x^4 + 721875)/(721875*x - 135125*x^2 - 1855*x^3 + x^4),x)

[Out]

x + log(x - 1925) - log(x*(70*x + x^2 - 375))