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

Optimal. Leaf size=2 \[ \tan ^{-1}(x) \]

[Out]

ArcTan[x]

________________________________________________________________________________________

Rubi [A]  time = 0.0008568, antiderivative size = 2, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 7, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {203} \[ \tan ^{-1}(x) \]

Antiderivative was successfully verified.

[In]

Int[(1 + x^2)^(-1),x]

[Out]

ArcTan[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}{1+x^2} \, dx &=\tan ^{-1}(x)\\ \end{align*}

Mathematica [A]  time = 0.0023982, size = 2, normalized size = 1. \[ \tan ^{-1}(x) \]

Antiderivative was successfully verified.

[In]

Integrate[(1 + x^2)^(-1),x]

[Out]

ArcTan[x]

________________________________________________________________________________________

Maple [A]  time = 0.002, size = 3, normalized size = 1.5 \begin{align*} \arctan \left ( x \right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(x)

________________________________________________________________________________________

Maxima [A]  time = 1.44817, size = 3, normalized size = 1.5 \begin{align*} \arctan \left (x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(x)

________________________________________________________________________________________

Fricas [A]  time = 2.11376, size = 15, normalized size = 7.5 \begin{align*} \arctan \left (x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(x)

________________________________________________________________________________________

Sympy [A]  time = 0.083858, size = 2, normalized size = 1. \begin{align*} \operatorname{atan}{\left (x \right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

atan(x)

________________________________________________________________________________________

Giac [A]  time = 1.06734, size = 3, normalized size = 1.5 \begin{align*} \arctan \left (x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(x)