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

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

[Out]

arctan((b*x+a)/c^(1/2))/b/c^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {253, 209} \begin {gather*} \frac {\text {ArcTan}\left (\frac {a+b x}{\sqrt {c}}\right )}{b \sqrt {c}} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

ArcTan[(a + b*x)/Sqrt[c]]/(b*Sqrt[c])

Rule 209

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

Rule 253

Int[((a_.) + (b_.)*(v_)^(n_))^(p_), x_Symbol] :> Dist[1/Coefficient[v, x, 1], Subst[Int[(a + b*x^n)^p, x], x,
v], x] /; FreeQ[{a, b, n, p}, x] && LinearQ[v, x] && NeQ[v, x]

Rubi steps

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

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

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

[Out]

ArcTan[(a + b*x)/Sqrt[c]]/(b*Sqrt[c])

________________________________________________________________________________________

Maple [A]
time = 0.34, size = 28, normalized size = 1.33

method result size
default \(\frac {\arctan \left (\frac {2 b^{2} x +2 a b}{2 b \sqrt {c}}\right )}{b \sqrt {c}}\) \(28\)
risch \(-\frac {\ln \left (b x +\sqrt {-c}+a \right )}{2 \sqrt {-c}\, b}+\frac {\ln \left (-b x +\sqrt {-c}-a \right )}{2 \sqrt {-c}\, b}\) \(47\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/b/c^(1/2)*arctan(1/2*(2*b^2*x+2*a*b)/b/c^(1/2))

________________________________________________________________________________________

Maxima [A]
time = 0.48, size = 24, normalized size = 1.14 \begin {gather*} \frac {\arctan \left (\frac {b^{2} x + a b}{b \sqrt {c}}\right )}{b \sqrt {c}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan((b^2*x + a*b)/(b*sqrt(c)))/(b*sqrt(c))

________________________________________________________________________________________

Fricas [A]
time = 0.37, size = 83, normalized size = 3.95 \begin {gather*} \left [-\frac {\sqrt {-c} \log \left (\frac {b^{2} x^{2} + 2 \, a b x + a^{2} - 2 \, {\left (b x + a\right )} \sqrt {-c} - c}{b^{2} x^{2} + 2 \, a b x + a^{2} + c}\right )}{2 \, b c}, \frac {\arctan \left (\frac {b x + a}{\sqrt {c}}\right )}{b \sqrt {c}}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

[-1/2*sqrt(-c)*log((b^2*x^2 + 2*a*b*x + a^2 - 2*(b*x + a)*sqrt(-c) - c)/(b^2*x^2 + 2*a*b*x + a^2 + c))/(b*c),
arctan((b*x + a)/sqrt(c))/(b*sqrt(c))]

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 54 vs. \(2 (17) = 34\).
time = 0.07, size = 54, normalized size = 2.57 \begin {gather*} \frac {- \frac {\sqrt {- \frac {1}{c}} \log {\left (x + \frac {a - c \sqrt {- \frac {1}{c}}}{b} \right )}}{2} + \frac {\sqrt {- \frac {1}{c}} \log {\left (x + \frac {a + c \sqrt {- \frac {1}{c}}}{b} \right )}}{2}}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(-sqrt(-1/c)*log(x + (a - c*sqrt(-1/c))/b)/2 + sqrt(-1/c)*log(x + (a + c*sqrt(-1/c))/b)/2)/b

________________________________________________________________________________________

Giac [A]
time = 4.02, size = 17, normalized size = 0.81 \begin {gather*} \frac {\arctan \left (\frac {b x + a}{\sqrt {c}}\right )}{b \sqrt {c}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

arctan((b*x + a)/sqrt(c))/(b*sqrt(c))

________________________________________________________________________________________

Mupad [B]
time = 0.04, size = 17, normalized size = 0.81 \begin {gather*} \frac {\mathrm {atan}\left (\frac {a+b\,x}{\sqrt {c}}\right )}{b\,\sqrt {c}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

atan((a + b*x)/c^(1/2))/(b*c^(1/2))

________________________________________________________________________________________