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

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

[Out]

arctan(x/a)/a

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {203} \[ \frac {\tan ^{-1}\left (\frac {x}{a}\right )}{a} \]

Antiderivative was successfully verified.

[In]

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

[Out]

ArcTan[x/a]/a

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

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 10, normalized size = 1.00 \[ \frac {\tan ^{-1}\left (\frac {x}{a}\right )}{a} \]

Antiderivative was successfully verified.

[In]

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

[Out]

ArcTan[x/a]/a

________________________________________________________________________________________

fricas [A]  time = 0.58, size = 10, normalized size = 1.00 \[ \frac {\arctan \left (\frac {x}{a}\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(x/a)/a

________________________________________________________________________________________

giac [A]  time = 0.26, size = 10, normalized size = 1.00 \[ \frac {\arctan \left (\frac {x}{a}\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(x/a)/a

________________________________________________________________________________________

maple [A]  time = 0.00, size = 11, normalized size = 1.10 \[ \frac {\arctan \left (\frac {x}{a}\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(x/a)/a

________________________________________________________________________________________

maxima [A]  time = 0.99, size = 10, normalized size = 1.00 \[ \frac {\arctan \left (\frac {x}{a}\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(x/a)/a

________________________________________________________________________________________

mupad [B]  time = 2.25, size = 10, normalized size = 1.00 \[ \frac {\mathrm {atan}\left (\frac {x}{a}\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

atan(x/a)/a

________________________________________________________________________________________

sympy [C]  time = 0.11, size = 20, normalized size = 2.00 \[ \frac {- \frac {i \log {\left (- i a + x \right )}}{2} + \frac {i \log {\left (i a + x \right )}}{2}}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(-I*log(-I*a + x)/2 + I*log(I*a + x)/2)/a

________________________________________________________________________________________