3.92 \(\int \frac {1}{2-7 x+3 x^2} \, dx\)

Optimal. Leaf size=21 \[ \frac {1}{5} \log (2-x)-\frac {1}{5} \log (1-3 x) \]

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {616, 31} \[ \frac {1}{5} \log (2-x)-\frac {1}{5} \log (1-3 x) \]

Antiderivative was successfully verified.

[In]

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

[Out]

-Log[1 - 3*x]/5 + Log[2 - x]/5

Rule 31

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

Rule 616

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Dist[c/q, Int[1/Simp
[b/2 - q/2 + c*x, x], x], x] - Dist[c/q, Int[1/Simp[b/2 + q/2 + c*x, x], x], x]] /; FreeQ[{a, b, c}, x] && NeQ
[b^2 - 4*a*c, 0] && PosQ[b^2 - 4*a*c] && PerfectSquareQ[b^2 - 4*a*c]

Rubi steps

\begin {align*} \int \frac {1}{2-7 x+3 x^2} \, dx &=\frac {3}{5} \int \frac {1}{-6+3 x} \, dx-\frac {3}{5} \int \frac {1}{-1+3 x} \, dx\\ &=-\frac {1}{5} \log (1-3 x)+\frac {1}{5} \log (2-x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 21, normalized size = 1.00 \[ \frac {1}{5} \log (2-x)-\frac {1}{5} \log (1-3 x) \]

Antiderivative was successfully verified.

[In]

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

[Out]

-1/5*Log[1 - 3*x] + Log[2 - x]/5

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 0.01, size = 19, normalized size = 0.90 \[ \frac {1}{5} \log (x-2)-\frac {1}{5} \log (3 x-1) \]

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[(2 - 7*x + 3*x^2)^(-1),x]

[Out]

Log[-2 + x]/5 - Log[-1 + 3*x]/5

________________________________________________________________________________________

fricas [A]  time = 0.78, size = 15, normalized size = 0.71 \[ -\frac {1}{5} \, \log \left (3 \, x - 1\right ) + \frac {1}{5} \, \log \left (x - 2\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/5*log(3*x - 1) + 1/5*log(x - 2)

________________________________________________________________________________________

giac [A]  time = 0.82, size = 17, normalized size = 0.81 \[ -\frac {1}{5} \, \log \left ({\left | 3 \, x - 1 \right |}\right ) + \frac {1}{5} \, \log \left ({\left | x - 2 \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/5*log(abs(3*x - 1)) + 1/5*log(abs(x - 2))

________________________________________________________________________________________

maple [A]  time = 0.28, size = 16, normalized size = 0.76




method result size



default \(-\frac {\ln \left (-1+3 x \right )}{5}+\frac {\ln \left (-2+x \right )}{5}\) \(16\)
norman \(-\frac {\ln \left (-1+3 x \right )}{5}+\frac {\ln \left (-2+x \right )}{5}\) \(16\)
risch \(-\frac {\ln \left (-1+3 x \right )}{5}+\frac {\ln \left (-2+x \right )}{5}\) \(16\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/5*ln(-1+3*x)+1/5*ln(-2+x)

________________________________________________________________________________________

maxima [A]  time = 0.43, size = 15, normalized size = 0.71 \[ -\frac {1}{5} \, \log \left (3 \, x - 1\right ) + \frac {1}{5} \, \log \left (x - 2\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/5*log(3*x - 1) + 1/5*log(x - 2)

________________________________________________________________________________________

mupad [B]  time = 0.09, size = 8, normalized size = 0.38 \[ -\frac {2\,\mathrm {atanh}\left (\frac {6\,x}{5}-\frac {7}{5}\right )}{5} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-(2*atanh((6*x)/5 - 7/5))/5

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 14, normalized size = 0.67 \[ \frac {\log {\left (x - 2 \right )}}{5} - \frac {\log {\left (x - \frac {1}{3} \right )}}{5} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(3*x**2-7*x+2),x)

[Out]

log(x - 2)/5 - log(x - 1/3)/5

________________________________________________________________________________________