3.377 \(\int \frac {1}{(1+x^2) (3+\frac {10 x}{1+x^2})} \, dx\)

Optimal. Leaf size=19 \[ \frac {1}{8} \log (3 x+1)-\frac {1}{8} \log (x+3) \]

[Out]

-1/8*ln(3+x)+1/8*ln(1+3*x)

________________________________________________________________________________________

Rubi [A]  time = 0.06, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {6688, 616, 31} \[ \frac {1}{8} \log (3 x+1)-\frac {1}{8} \log (x+3) \]

Antiderivative was successfully verified.

[In]

Int[1/((1 + x^2)*(3 + (10*x)/(1 + x^2))),x]

[Out]

-Log[3 + x]/8 + Log[1 + 3*x]/8

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]

Rule 6688

Int[u_, x_Symbol] :> With[{v = SimplifyIntegrand[u, x]}, Int[v, x] /; SimplerIntegrandQ[v, u, x]]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 19, normalized size = 1.00 \[ \frac {1}{8} \log (3 x+1)-\frac {1}{8} \log (x+3) \]

Antiderivative was successfully verified.

[In]

Integrate[1/((1 + x^2)*(3 + (10*x)/(1 + x^2))),x]

[Out]

-1/8*Log[3 + x] + Log[1 + 3*x]/8

________________________________________________________________________________________

fricas [A]  time = 0.52, size = 15, normalized size = 0.79 \[ \frac {1}{8} \, \log \left (3 \, x + 1\right ) - \frac {1}{8} \, \log \left (x + 3\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/8*log(3*x + 1) - 1/8*log(x + 3)

________________________________________________________________________________________

giac [A]  time = 0.28, size = 17, normalized size = 0.89 \[ \frac {1}{8} \, \log \left ({\left | 3 \, x + 1 \right |}\right ) - \frac {1}{8} \, \log \left ({\left | x + 3 \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/8*log(abs(3*x + 1)) - 1/8*log(abs(x + 3))

________________________________________________________________________________________

maple [A]  time = 0.01, size = 16, normalized size = 0.84 \[ \frac {\ln \left (3 x +1\right )}{8}-\frac {\ln \left (x +3\right )}{8} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/8*ln(x+3)+1/8*ln(1+3*x)

________________________________________________________________________________________

maxima [A]  time = 1.03, size = 15, normalized size = 0.79 \[ \frac {1}{8} \, \log \left (3 \, x + 1\right ) - \frac {1}{8} \, \log \left (x + 3\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/8*log(3*x + 1) - 1/8*log(x + 3)

________________________________________________________________________________________

mupad [B]  time = 0.08, size = 8, normalized size = 0.42 \[ -\frac {\mathrm {atanh}\left (\frac {3\,x}{4}+\frac {5}{4}\right )}{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-atanh((3*x)/4 + 5/4)/4

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(x**2+1)/(3+10*x/(x**2+1)),x)

[Out]

log(x + 1/3)/8 - log(x + 3)/8

________________________________________________________________________________________