\(\int \frac {1}{\sqrt {1+x^2}} \, dx\) [260]

   Optimal result
   Rubi [A] (verified)
   Mathematica [B] (verified)
   Maple [A] (verified)
   Fricas [B] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [B] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 9, antiderivative size = 2 \[ \int \frac {1}{\sqrt {1+x^2}} \, dx=\text {arcsinh}(x) \]

[Out]

arcsinh(x)

Rubi [A] (verified)

Time = 0.00 (sec) , antiderivative size = 2, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {221} \[ \int \frac {1}{\sqrt {1+x^2}} \, dx=\text {arcsinh}(x) \]

[In]

Int[1/Sqrt[1 + x^2],x]

[Out]

ArcSinh[x]

Rule 221

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

Rubi steps \begin{align*} \text {integral}& = \text {arcsinh}(x) \\ \end{align*}

Mathematica [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(16\) vs. \(2(2)=4\).

Time = 0.00 (sec) , antiderivative size = 16, normalized size of antiderivative = 8.00 \[ \int \frac {1}{\sqrt {1+x^2}} \, dx=-\log \left (-x+\sqrt {1+x^2}\right ) \]

[In]

Integrate[1/Sqrt[1 + x^2],x]

[Out]

-Log[-x + Sqrt[1 + x^2]]

Maple [A] (verified)

Time = 0.10 (sec) , antiderivative size = 3, normalized size of antiderivative = 1.50

method result size
default \(\operatorname {arcsinh}\left (x \right )\) \(3\)
meijerg \(\operatorname {arcsinh}\left (x \right )\) \(3\)
trager \(\ln \left (x +\sqrt {x^{2}+1}\right )\) \(11\)
pseudoelliptic \(\operatorname {arctanh}\left (\frac {\sqrt {x^{2}+1}}{x}\right )\) \(13\)

[In]

int(1/(x^2+1)^(1/2),x,method=_RETURNVERBOSE)

[Out]

arcsinh(x)

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 14 vs. \(2 (2) = 4\).

Time = 0.23 (sec) , antiderivative size = 14, normalized size of antiderivative = 7.00 \[ \int \frac {1}{\sqrt {1+x^2}} \, dx=-\log \left (-x + \sqrt {x^{2} + 1}\right ) \]

[In]

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

[Out]

-log(-x + sqrt(x^2 + 1))

Sympy [A] (verification not implemented)

Time = 0.06 (sec) , antiderivative size = 2, normalized size of antiderivative = 1.00 \[ \int \frac {1}{\sqrt {1+x^2}} \, dx=\operatorname {asinh}{\left (x \right )} \]

[In]

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

[Out]

asinh(x)

Maxima [A] (verification not implemented)

none

Time = 0.29 (sec) , antiderivative size = 2, normalized size of antiderivative = 1.00 \[ \int \frac {1}{\sqrt {1+x^2}} \, dx=\operatorname {arsinh}\left (x\right ) \]

[In]

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

[Out]

arcsinh(x)

Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 25 vs. \(2 (2) = 4\).

Time = 0.28 (sec) , antiderivative size = 25, normalized size of antiderivative = 12.50 \[ \int \frac {1}{\sqrt {1+x^2}} \, dx=\frac {1}{2} \, \sqrt {x^{2} + 1} x - \frac {1}{2} \, \log \left (-x + \sqrt {x^{2} + 1}\right ) \]

[In]

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

[Out]

1/2*sqrt(x^2 + 1)*x - 1/2*log(-x + sqrt(x^2 + 1))

Mupad [B] (verification not implemented)

Time = 0.00 (sec) , antiderivative size = 2, normalized size of antiderivative = 1.00 \[ \int \frac {1}{\sqrt {1+x^2}} \, dx=\mathrm {asinh}\left (x\right ) \]

[In]

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

[Out]

asinh(x)