3.1.28 \(\int \frac {-5+2 x}{2+3 x^2} \, dx\) [28]

Optimal. Leaf size=30 \[ -\frac {5 \tan ^{-1}\left (\sqrt {\frac {3}{2}} x\right )}{\sqrt {6}}+\frac {1}{3} \log \left (2+3 x^2\right ) \]

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {649, 209, 266} \begin {gather*} \frac {1}{3} \log \left (3 x^2+2\right )-\frac {5 \text {ArcTan}\left (\sqrt {\frac {3}{2}} x\right )}{\sqrt {6}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-5 + 2*x)/(2 + 3*x^2),x]

[Out]

(-5*ArcTan[Sqrt[3/2]*x])/Sqrt[6] + Log[2 + 3*x^2]/3

Rule 209

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*ArcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

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 649

Int[((d_) + (e_.)*(x_))/((a_) + (c_.)*(x_)^2), x_Symbol] :> Dist[d, Int[1/(a + c*x^2), x], x] + Dist[e, Int[x/
(a + c*x^2), x], x] /; FreeQ[{a, c, d, e}, x] &&  !NiceSqrtQ[(-a)*c]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 30, normalized size = 1.00 \begin {gather*} -\frac {5 \tan ^{-1}\left (\sqrt {\frac {3}{2}} x\right )}{\sqrt {6}}+\frac {1}{3} \log \left (2+3 x^2\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-5 + 2*x)/(2 + 3*x^2),x]

[Out]

(-5*ArcTan[Sqrt[3/2]*x])/Sqrt[6] + Log[2 + 3*x^2]/3

________________________________________________________________________________________

Maple [A]
time = 0.06, size = 24, normalized size = 0.80

method result size
default \(\frac {\ln \left (3 x^{2}+2\right )}{3}-\frac {5 \arctan \left (\frac {x \sqrt {6}}{2}\right ) \sqrt {6}}{6}\) \(24\)
risch \(\frac {\ln \left (9 x^{2}+6\right )}{3}-\frac {5 \arctan \left (\frac {x \sqrt {6}}{2}\right ) \sqrt {6}}{6}\) \(24\)
meijerg \(-\frac {5 \sqrt {6}\, \arctan \left (\frac {x \sqrt {2}\, \sqrt {3}}{2}\right )}{6}+\frac {\ln \left (1+\frac {3 x^{2}}{2}\right )}{3}\) \(27\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [A]
time = 1.93, size = 23, normalized size = 0.77 \begin {gather*} -\frac {5}{6} \, \sqrt {6} \arctan \left (\frac {1}{2} \, \sqrt {6} x\right ) + \frac {1}{3} \, \log \left (3 \, x^{2} + 2\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-5/6*sqrt(6)*arctan(1/2*sqrt(6)*x) + 1/3*log(3*x^2 + 2)

________________________________________________________________________________________

Fricas [A]
time = 0.94, size = 23, normalized size = 0.77 \begin {gather*} -\frac {5}{6} \, \sqrt {6} \arctan \left (\frac {1}{2} \, \sqrt {6} x\right ) + \frac {1}{3} \, \log \left (3 \, x^{2} + 2\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-5/6*sqrt(6)*arctan(1/2*sqrt(6)*x) + 1/3*log(3*x^2 + 2)

________________________________________________________________________________________

Sympy [A]
time = 0.04, size = 27, normalized size = 0.90 \begin {gather*} \frac {\log {\left (x^{2} + \frac {2}{3} \right )}}{3} - \frac {5 \sqrt {6} \operatorname {atan}{\left (\frac {\sqrt {6} x}{2} \right )}}{6} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-5+2*x)/(3*x**2+2),x)

[Out]

log(x**2 + 2/3)/3 - 5*sqrt(6)*atan(sqrt(6)*x/2)/6

________________________________________________________________________________________

Giac [A]
time = 1.28, size = 21, normalized size = 0.70 \begin {gather*} -\frac {5}{6} \, \sqrt {6} \arctan \left (\frac {1}{2} \, \sqrt {6} x\right ) + \frac {1}{3} \, \log \left (x^{2} + \frac {2}{3}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-5/6*sqrt(6)*arctan(1/2*sqrt(6)*x) + 1/3*log(x^2 + 2/3)

________________________________________________________________________________________

Mupad [B]
time = 0.04, size = 21, normalized size = 0.70 \begin {gather*} \frac {\ln \left (x^2+\frac {2}{3}\right )}{3}-\frac {5\,\sqrt {6}\,\mathrm {atan}\left (\frac {\sqrt {6}\,x}{2}\right )}{6} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________