3.2.34 \(\int \frac {1}{-2 x^3+x^4} \, dx\) [134]

Optimal. Leaf size=31 \[ \frac {1}{4 x^2}+\frac {1}{4 x}+\frac {1}{8} \log (2-x)-\frac {\log (x)}{8} \]

[Out]

1/4/x^2+1/4/x+1/8*ln(2-x)-1/8*ln(x)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {1607, 46} \begin {gather*} \frac {1}{4 x^2}+\frac {1}{4 x}+\frac {1}{8} \log (2-x)-\frac {\log (x)}{8} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-2*x^3 + x^4)^(-1),x]

[Out]

1/(4*x^2) + 1/(4*x) + Log[2 - x]/8 - Log[x]/8

Rule 46

Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*x
)^n, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, 0] && IntegerQ[n] &&  !(IGtQ[n, 0] && Lt
Q[m + n + 2, 0])

Rule 1607

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]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 31, normalized size = 1.00 \begin {gather*} \frac {1}{4 x^2}+\frac {1}{4 x}+\frac {1}{8} \log (2-x)-\frac {\log (x)}{8} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-2*x^3 + x^4)^(-1),x]

[Out]

1/(4*x^2) + 1/(4*x) + Log[2 - x]/8 - Log[x]/8

________________________________________________________________________________________

Maple [A]
time = 0.07, size = 22, normalized size = 0.71

method result size
norman \(\frac {\frac {1}{4}+\frac {x}{4}}{x^{2}}-\frac {\ln \left (x \right )}{8}+\frac {\ln \left (-2+x \right )}{8}\) \(21\)
risch \(\frac {\frac {1}{4}+\frac {x}{4}}{x^{2}}-\frac {\ln \left (x \right )}{8}+\frac {\ln \left (-2+x \right )}{8}\) \(21\)
default \(\frac {1}{4 x^{2}}+\frac {1}{4 x}-\frac {\ln \left (x \right )}{8}+\frac {\ln \left (-2+x \right )}{8}\) \(22\)
meijerg \(\frac {1}{4 x^{2}}+\frac {1}{4 x}-\frac {\ln \left (x \right )}{8}+\frac {\ln \left (2\right )}{8}-\frac {i \pi }{8}+\frac {\ln \left (1-\frac {x}{2}\right )}{8}\) \(32\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x^4-2*x^3),x,method=_RETURNVERBOSE)

[Out]

1/4/x^2+1/4/x-1/8*ln(x)+1/8*ln(-2+x)

________________________________________________________________________________________

Maxima [A]
time = 0.98, size = 19, normalized size = 0.61 \begin {gather*} \frac {x + 1}{4 \, x^{2}} + \frac {1}{8} \, \log \left (x - 2\right ) - \frac {1}{8} \, \log \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(x^4-2*x^3),x, algorithm="maxima")

[Out]

1/4*(x + 1)/x^2 + 1/8*log(x - 2) - 1/8*log(x)

________________________________________________________________________________________

Fricas [A]
time = 1.05, size = 25, normalized size = 0.81 \begin {gather*} \frac {x^{2} \log \left (x - 2\right ) - x^{2} \log \left (x\right ) + 2 \, x + 2}{8 \, x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(x^4-2*x^3),x, algorithm="fricas")

[Out]

1/8*(x^2*log(x - 2) - x^2*log(x) + 2*x + 2)/x^2

________________________________________________________________________________________

Sympy [A]
time = 0.04, size = 19, normalized size = 0.61 \begin {gather*} - \frac {\log {\left (x \right )}}{8} + \frac {\log {\left (x - 2 \right )}}{8} + \frac {x + 1}{4 x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(x**4-2*x**3),x)

[Out]

-log(x)/8 + log(x - 2)/8 + (x + 1)/(4*x**2)

________________________________________________________________________________________

Giac [A]
time = 0.48, size = 21, normalized size = 0.68 \begin {gather*} \frac {x + 1}{4 \, x^{2}} + \frac {1}{8} \, \log \left ({\left | x - 2 \right |}\right ) - \frac {1}{8} \, \log \left ({\left | x \right |}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(x^4-2*x^3),x, algorithm="giac")

[Out]

1/4*(x + 1)/x^2 + 1/8*log(abs(x - 2)) - 1/8*log(abs(x))

________________________________________________________________________________________

Mupad [B]
time = 0.04, size = 16, normalized size = 0.52 \begin {gather*} \frac {\frac {x}{4}+\frac {1}{4}}{x^2}-\frac {\mathrm {atanh}\left (x-1\right )}{4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-1/(2*x^3 - x^4),x)

[Out]

(x/4 + 1/4)/x^2 - atanh(x - 1)/4

________________________________________________________________________________________