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

Optimal. Leaf size=12 \[ \frac {1}{3} \log \left (x^3+3 x\right ) \]

[Out]

1/3*ln(x^3+3*x)

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {1587} \[ \frac {1}{3} \log \left (x^3+3 x\right ) \]

Antiderivative was successfully verified.

[In]

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

[Out]

Log[3*x + x^3]/3

Rule 1587

Int[(Pp_)/(Qq_), x_Symbol] :> With[{p = Expon[Pp, x], q = Expon[Qq, x]}, Simp[(Coeff[Pp, x, p]*Log[RemoveConte
nt[Qq, x]])/(q*Coeff[Qq, x, q]), x] /; EqQ[p, q - 1] && EqQ[Pp, Simplify[(Coeff[Pp, x, p]*D[Qq, x])/(q*Coeff[Q
q, x, q])]]] /; PolyQ[Pp, x] && PolyQ[Qq, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 17, normalized size = 1.42 \[ \frac {1}{3} \log \left (x^2+3\right )+\frac {\log (x)}{3} \]

Antiderivative was successfully verified.

[In]

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

[Out]

Log[x]/3 + Log[3 + x^2]/3

________________________________________________________________________________________

fricas [A]  time = 0.64, size = 10, normalized size = 0.83 \[ \frac {1}{3} \, \log \left (x^{3} + 3 \, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/3*log(x^3 + 3*x)

________________________________________________________________________________________

giac [A]  time = 0.40, size = 13, normalized size = 1.08 \[ \frac {1}{3} \, \log \left (3 \, {\left | \frac {1}{3} \, x^{3} + x \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/3*log(3*abs(1/3*x^3 + x))

________________________________________________________________________________________

maple [A]  time = 0.00, size = 11, normalized size = 0.92 \[ \frac {\ln \left (\left (x^{2}+3\right ) x \right )}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/3*ln(x*(x^2+3))

________________________________________________________________________________________

maxima [A]  time = 0.62, size = 10, normalized size = 0.83 \[ \frac {1}{3} \, \log \left (x^{3} + 3 \, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/3*log(x^3 + 3*x)

________________________________________________________________________________________

mupad [B]  time = 2.27, size = 10, normalized size = 0.83 \[ \frac {\ln \left (x^3+3\,x\right )}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

log(3*x + x^3)/3

________________________________________________________________________________________

sympy [A]  time = 0.09, size = 8, normalized size = 0.67 \[ \frac {\log {\left (x^{3} + 3 x \right )}}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

log(x**3 + 3*x)/3

________________________________________________________________________________________