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

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

[Out]

arctan(x/c)/c

________________________________________________________________________________________

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}{c}\right )}{c} \]

Antiderivative was successfully verified.

[In]

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

[Out]

ArcTan[x/c]/c

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

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

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

[Out]

ArcTan[x/c]/c

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(x/c)/c

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(x/c)/c

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(x/c)/c

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan(x/c)/c

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

atan(x/c)/c

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________