3.1.2 \(\int \frac {1}{a^2+b^2 x^2} \, dx\) [2]

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

[Out]

arctan(b*x/a)/a/b

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {211} \begin {gather*} \frac {\text {ArcTan}\left (\frac {b x}{a}\right )}{a b} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

ArcTan[(b*x)/a]/(a*b)

Rule 211

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 14, normalized size = 1.00 \begin {gather*} \frac {\tan ^{-1}\left (\frac {b x}{a}\right )}{a b} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

ArcTan[(b*x)/a]/(a*b)

________________________________________________________________________________________

Maple [A]
time = 0.05, size = 15, normalized size = 1.07

method result size
default \(\frac {\arctan \left (\frac {b x}{a}\right )}{a b}\) \(15\)
risch \(\frac {\arctan \left (\frac {b x}{a}\right )}{a b}\) \(15\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(b*x/a)/a/b

________________________________________________________________________________________

Maxima [A]
time = 5.30, size = 14, normalized size = 1.00 \begin {gather*} \frac {\arctan \left (\frac {b x}{a}\right )}{a b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(b*x/a)/(a*b)

________________________________________________________________________________________

Fricas [A]
time = 0.55, size = 14, normalized size = 1.00 \begin {gather*} \frac {\arctan \left (\frac {b x}{a}\right )}{a b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(b*x/a)/(a*b)

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 0.05, size = 26, normalized size = 1.86 \begin {gather*} \frac {- \frac {i \log {\left (- \frac {i a}{b} + x \right )}}{2} + \frac {i \log {\left (\frac {i a}{b} + x \right )}}{2}}{a b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Giac [A]
time = 1.46, size = 14, normalized size = 1.00 \begin {gather*} \frac {\arctan \left (\frac {b x}{a}\right )}{a b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(b*x/a)/(a*b)

________________________________________________________________________________________

Mupad [B]
time = 0.04, size = 14, normalized size = 1.00 \begin {gather*} \frac {\mathrm {atan}\left (\frac {b\,x}{a}\right )}{a\,b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

atan((b*x)/a)/(a*b)

________________________________________________________________________________________