3.928 \(\int \frac{\sec ^2(\frac{1}{x})}{x^2} \, dx\)

Optimal. Leaf size=6 \[ -\tan \left (\frac{1}{x}\right ) \]

[Out]

-Tan[x^(-1)]

________________________________________________________________________________________

Rubi [A]  time = 0.0204549, antiderivative size = 6, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {4204, 3767, 8} \[ -\tan \left (\frac{1}{x}\right ) \]

Antiderivative was successfully verified.

[In]

Int[Sec[x^(-1)]^2/x^2,x]

[Out]

-Tan[x^(-1)]

Rule 4204

Int[(x_)^(m_.)*((a_.) + (b_.)*Sec[(c_.) + (d_.)*(x_)^(n_)])^(p_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplif
y[(m + 1)/n] - 1)*(a + b*Sec[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IGtQ[Simplify[
(m + 1)/n], 0] && IntegerQ[p]

Rule 3767

Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> -Dist[d^(-1), Subst[Int[ExpandIntegrand[(1 + x^2)^(n/2 - 1), x]
, x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rubi steps

\begin{align*} \int \frac{\sec ^2\left (\frac{1}{x}\right )}{x^2} \, dx &=-\operatorname{Subst}\left (\int \sec ^2(x) \, dx,x,\frac{1}{x}\right )\\ &=\operatorname{Subst}\left (\int 1 \, dx,x,-\tan \left (\frac{1}{x}\right )\right )\\ &=-\tan \left (\frac{1}{x}\right )\\ \end{align*}

Mathematica [A]  time = 0.0175814, size = 6, normalized size = 1. \[ -\tan \left (\frac{1}{x}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Sec[x^(-1)]^2/x^2,x]

[Out]

-Tan[x^(-1)]

________________________________________________________________________________________

Maple [A]  time = 0.007, size = 7, normalized size = 1.2 \begin{align*} -\tan \left ({x}^{-1} \right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(1/x)^2/x^2,x)

[Out]

-tan(1/x)

________________________________________________________________________________________

Maxima [B]  time = 0.961808, size = 49, normalized size = 8.17 \begin{align*} -\frac{2 \, \sin \left (\frac{2}{x}\right )}{\cos \left (\frac{2}{x}\right )^{2} + \sin \left (\frac{2}{x}\right )^{2} + 2 \, \cos \left (\frac{2}{x}\right ) + 1} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2*sin(2/x)/(cos(2/x)^2 + sin(2/x)^2 + 2*cos(2/x) + 1)

________________________________________________________________________________________

Fricas [A]  time = 2.11173, size = 27, normalized size = 4.5 \begin{align*} -\frac{\sin \left (\frac{1}{x}\right )}{\cos \left (\frac{1}{x}\right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-sin(1/x)/cos(1/x)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec ^{2}{\left (\frac{1}{x} \right )}}{x^{2}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(1/x)**2/x**2,x)

[Out]

Integral(sec(1/x)**2/x**2, x)

________________________________________________________________________________________

Giac [A]  time = 1.07121, size = 8, normalized size = 1.33 \begin{align*} -\tan \left (\frac{1}{x}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-tan(1/x)