3.24.94 \(\int \frac {1953125+4 x-781250 x^2-2 x^3}{390625 x+x^2} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 16, normalized size of antiderivative = 0.84, number of steps used = 3, number of rules used = 2, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {1593, 1620} \begin {gather*} -x^2+5 \log (x)-\log (x+390625) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(1953125 + 4*x - 781250*x^2 - 2*x^3)/(390625*x + x^2),x]

[Out]

-x^2 + 5*Log[x] - Log[390625 + x]

Rule 1593

Int[(u_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.))^(n_.), x_Symbol] :> Int[u*x^(n*p)*(a + b*x^(q - p))^n, x] /; F
reeQ[{a, b, p, q}, x] && IntegerQ[n] && PosQ[q - p]

Rule 1620

Int[(Px_)*((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[Px*(a + b*x)
^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d, m, n}, x] && PolyQ[Px, x] && (IntegersQ[m, n] || IGtQ[m, -2]) &&
GtQ[Expon[Px, x], 2]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {1953125+4 x-781250 x^2-2 x^3}{x (390625+x)} \, dx\\ &=\int \left (\frac {1}{-390625-x}+\frac {5}{x}-2 x\right ) \, dx\\ &=-x^2+5 \log (x)-\log (390625+x)\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 16, normalized size = 0.84 \begin {gather*} -x^2+5 \log (x)-\log (390625+x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(1953125 + 4*x - 781250*x^2 - 2*x^3)/(390625*x + x^2),x]

[Out]

-x^2 + 5*Log[x] - Log[390625 + x]

________________________________________________________________________________________

fricas [A]  time = 0.96, size = 16, normalized size = 0.84 \begin {gather*} -x^{2} - \log \left (x + 390625\right ) + 5 \, \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-2*x^3-781250*x^2+4*x+1953125)/(x^2+390625*x),x, algorithm="fricas")

[Out]

-x^2 - log(x + 390625) + 5*log(x)

________________________________________________________________________________________

giac [A]  time = 0.44, size = 18, normalized size = 0.95 \begin {gather*} -x^{2} - \log \left ({\left | x + 390625 \right |}\right ) + 5 \, \log \left ({\left | x \right |}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-2*x^3-781250*x^2+4*x+1953125)/(x^2+390625*x),x, algorithm="giac")

[Out]

-x^2 - log(abs(x + 390625)) + 5*log(abs(x))

________________________________________________________________________________________

maple [A]  time = 0.43, size = 17, normalized size = 0.89




method result size



default \(-x^{2}+5 \ln \relax (x )-\ln \left (x +390625\right )\) \(17\)
norman \(-x^{2}+5 \ln \relax (x )-\ln \left (x +390625\right )\) \(17\)
risch \(-x^{2}+5 \ln \relax (x )-\ln \left (x +390625\right )\) \(17\)
meijerg \(-\ln \left (1+\frac {x}{390625}\right )+5 \ln \relax (x )-40 \ln \relax (5)+\frac {390625 x \left (-\frac {3 x}{390625}+6\right )}{3}-781250 x\) \(29\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-2*x^3-781250*x^2+4*x+1953125)/(x^2+390625*x),x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.55, size = 16, normalized size = 0.84 \begin {gather*} -x^{2} - \log \left (x + 390625\right ) + 5 \, \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-2*x^3-781250*x^2+4*x+1953125)/(x^2+390625*x),x, algorithm="maxima")

[Out]

-x^2 - log(x + 390625) + 5*log(x)

________________________________________________________________________________________

mupad [B]  time = 0.05, size = 16, normalized size = 0.84 \begin {gather*} 5\,\ln \relax (x)-\ln \left (x+390625\right )-x^2 \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((4*x - 781250*x^2 - 2*x^3 + 1953125)/(390625*x + x^2),x)

[Out]

5*log(x) - log(x + 390625) - x^2

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 12, normalized size = 0.63 \begin {gather*} - x^{2} + 5 \log {\relax (x )} - \log {\left (x + 390625 \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-2*x**3-781250*x**2+4*x+1953125)/(x**2+390625*x),x)

[Out]

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

________________________________________________________________________________________