3.2 \(\int \frac{1}{x^4 (1+x^2)} \, dx\)

Optimal. Leaf size=13 \[ -\frac{1}{3 x^3}+\frac{1}{x}+\tan ^{-1}(x) \]

[Out]

-1/(3*x^3) + x^(-1) + ArcTan[x]

________________________________________________________________________________________

Rubi [A]  time = 0.0048847, antiderivative size = 13, normalized size of antiderivative = 1., 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 = {325, 203} \[ -\frac{1}{3 x^3}+\frac{1}{x}+\tan ^{-1}(x) \]

Antiderivative was successfully verified.

[In]

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

[Out]

-1/(3*x^3) + x^(-1) + ArcTan[x]

Rule 325

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[((c*x)^(m + 1)*(a + b*x^n)^(p + 1))/(a*
c*(m + 1)), x] - Dist[(b*(m + n*(p + 1) + 1))/(a*c^n*(m + 1)), Int[(c*x)^(m + n)*(a + b*x^n)^p, x], x] /; Free
Q[{a, b, c, p}, x] && IGtQ[n, 0] && LtQ[m, -1] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 203

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

Rubi steps

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

Mathematica [A]  time = 0.0038972, size = 13, normalized size = 1. \[ -\frac{1}{3 x^3}+\frac{1}{x}+\tan ^{-1}(x) \]

Antiderivative was successfully verified.

[In]

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

[Out]

-1/(3*x^3) + x^(-1) + ArcTan[x]

________________________________________________________________________________________

Maple [A]  time = 0.005, size = 12, normalized size = 0.9 \begin{align*} -{\frac{1}{3\,{x}^{3}}}+{x}^{-1}+\arctan \left ( x \right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x^4/(x^2+1),x)

[Out]

-1/3/x^3+1/x+arctan(x)

________________________________________________________________________________________

Maxima [A]  time = 1.41326, size = 20, normalized size = 1.54 \begin{align*} \frac{3 \, x^{2} - 1}{3 \, x^{3}} + \arctan \left (x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]  time = 1.50589, size = 53, normalized size = 4.08 \begin{align*} \frac{3 \, x^{3} \arctan \left (x\right ) + 3 \, x^{2} - 1}{3 \, x^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Sympy [A]  time = 0.105203, size = 14, normalized size = 1.08 \begin{align*} \operatorname{atan}{\left (x \right )} + \frac{3 x^{2} - 1}{3 x^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

atan(x) + (3*x**2 - 1)/(3*x**3)

________________________________________________________________________________________

Giac [A]  time = 1.07896, size = 20, normalized size = 1.54 \begin{align*} \frac{3 \, x^{2} - 1}{3 \, x^{3}} + \arctan \left (x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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