3.3.64 \(\int \frac {e^{2 \text {ArcTan}(a x)}}{(c+a^2 c x^2)^2} \, dx\) [264]

Optimal. Leaf size=53 \[ \frac {e^{2 \text {ArcTan}(a x)}}{8 a c^2}+\frac {e^{2 \text {ArcTan}(a x)} (1+a x)}{4 a c^2 \left (1+a^2 x^2\right )} \]

[Out]

1/8*exp(2*arctan(a*x))/a/c^2+1/4*exp(2*arctan(a*x))*(a*x+1)/a/c^2/(a^2*x^2+1)

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {5178, 5179} \begin {gather*} \frac {(a x+1) e^{2 \text {ArcTan}(a x)}}{4 a c^2 \left (a^2 x^2+1\right )}+\frac {e^{2 \text {ArcTan}(a x)}}{8 a c^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[E^(2*ArcTan[a*x])/(c + a^2*c*x^2)^2,x]

[Out]

E^(2*ArcTan[a*x])/(8*a*c^2) + (E^(2*ArcTan[a*x])*(1 + a*x))/(4*a*c^2*(1 + a^2*x^2))

Rule 5178

Int[E^(ArcTan[(a_.)*(x_)]*(n_.))*((c_) + (d_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(n - 2*a*(p + 1)*x)*(c + d*x^2)
^(p + 1)*(E^(n*ArcTan[a*x])/(a*c*(n^2 + 4*(p + 1)^2))), x] + Dist[2*(p + 1)*((2*p + 3)/(c*(n^2 + 4*(p + 1)^2))
), Int[(c + d*x^2)^(p + 1)*E^(n*ArcTan[a*x]), x], x] /; FreeQ[{a, c, d, n}, x] && EqQ[d, a^2*c] && LtQ[p, -1]
&&  !IntegerQ[I*n] && NeQ[n^2 + 4*(p + 1)^2, 0] && IntegerQ[2*p]

Rule 5179

Int[E^(ArcTan[(a_.)*(x_)]*(n_.))/((c_) + (d_.)*(x_)^2), x_Symbol] :> Simp[E^(n*ArcTan[a*x])/(a*c*n), x] /; Fre
eQ[{a, c, d, n}, x] && EqQ[d, a^2*c]

Rubi steps

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

________________________________________________________________________________________

Mathematica [C] Result contains complex when optimal does not.
time = 0.01, size = 55, normalized size = 1.04 \begin {gather*} \frac {(1-i a x)^i (1+i a x)^{-i} \left (3+2 a x+a^2 x^2\right )}{8 c^2 \left (a+a^3 x^2\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[E^(2*ArcTan[a*x])/(c + a^2*c*x^2)^2,x]

[Out]

((1 - I*a*x)^I*(3 + 2*a*x + a^2*x^2))/(8*c^2*(1 + I*a*x)^I*(a + a^3*x^2))

________________________________________________________________________________________

Maple [A]
time = 0.08, size = 40, normalized size = 0.75

method result size
gosper \(\frac {{\mathrm e}^{2 \arctan \left (a x \right )} \left (a^{2} x^{2}+2 a x +3\right )}{8 \left (a^{2} x^{2}+1\right ) a \,c^{2}}\) \(40\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(2*arctan(a*x))/(a^2*c*x^2+c)^2,x,method=_RETURNVERBOSE)

[Out]

1/8*exp(2*arctan(a*x))*(a^2*x^2+2*a*x+3)/(a^2*x^2+1)/a/c^2

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(e^(2*arctan(a*x))/(a^2*c*x^2 + c)^2, x)

________________________________________________________________________________________

Fricas [A]
time = 2.76, size = 40, normalized size = 0.75 \begin {gather*} \frac {{\left (a^{2} x^{2} + 2 \, a x + 3\right )} e^{\left (2 \, \arctan \left (a x\right )\right )}}{8 \, {\left (a^{3} c^{2} x^{2} + a c^{2}\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/8*(a^2*x^2 + 2*a*x + 3)*e^(2*arctan(a*x))/(a^3*c^2*x^2 + a*c^2)

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 99 vs. \(2 (42) = 84\).
time = 1.49, size = 99, normalized size = 1.87 \begin {gather*} \begin {cases} \frac {a^{2} x^{2} e^{2 \operatorname {atan}{\left (a x \right )}}}{8 a^{3} c^{2} x^{2} + 8 a c^{2}} + \frac {2 a x e^{2 \operatorname {atan}{\left (a x \right )}}}{8 a^{3} c^{2} x^{2} + 8 a c^{2}} + \frac {3 e^{2 \operatorname {atan}{\left (a x \right )}}}{8 a^{3} c^{2} x^{2} + 8 a c^{2}} & \text {for}\: a \neq 0 \\\frac {x}{c^{2}} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(2*atan(a*x))/(a**2*c*x**2+c)**2,x)

[Out]

Piecewise((a**2*x**2*exp(2*atan(a*x))/(8*a**3*c**2*x**2 + 8*a*c**2) + 2*a*x*exp(2*atan(a*x))/(8*a**3*c**2*x**2
 + 8*a*c**2) + 3*exp(2*atan(a*x))/(8*a**3*c**2*x**2 + 8*a*c**2), Ne(a, 0)), (x/c**2, True))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

sage0*x

________________________________________________________________________________________

Mupad [B]
time = 0.58, size = 46, normalized size = 0.87 \begin {gather*} \frac {{\mathrm {e}}^{2\,\mathrm {atan}\left (a\,x\right )}\,\left (\frac {3}{8\,a^3\,c^2}+\frac {x}{4\,a^2\,c^2}+\frac {x^2}{8\,a\,c^2}\right )}{\frac {1}{a^2}+x^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(2*atan(a*x))/(c + a^2*c*x^2)^2,x)

[Out]

(exp(2*atan(a*x))*(3/(8*a^3*c^2) + x/(4*a^2*c^2) + x^2/(8*a*c^2)))/(1/a^2 + x^2)

________________________________________________________________________________________