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

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

[Out]

-2/5/a/c^2/exp(arctan(a*x))+1/5*(2*a*x-1)/a/c^2/exp(arctan(a*x))/(a^2*x^2+1)

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 54, 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 {(1-2 a x) e^{-\text {ArcTan}(a x)}}{5 a c^2 \left (a^2 x^2+1\right )}-\frac {2 e^{-\text {ArcTan}(a x)}}{5 a c^2} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

-2/(5*a*c^2*E^ArcTan[a*x]) - (1 - 2*a*x)/(5*a*c^2*E^ArcTan[a*x]*(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^{-\tan ^{-1}(a x)}}{\left (c+a^2 c x^2\right )^2} \, dx &=-\frac {e^{-\tan ^{-1}(a x)} (1-2 a x)}{5 a c^2 \left (1+a^2 x^2\right )}+\frac {2 \int \frac {e^{-\tan ^{-1}(a x)}}{c+a^2 c x^2} \, dx}{5 c}\\ &=-\frac {2 e^{-\tan ^{-1}(a x)}}{5 a c^2}-\frac {e^{-\tan ^{-1}(a x)} (1-2 a x)}{5 a c^2 \left (1+a^2 x^2\right )}\\ \end {align*}

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

Maple [A]
time = 0.10, size = 41, normalized size = 0.76

method result size
gosper \(-\frac {\left (2 a^{2} x^{2}-2 a x +3\right ) {\mathrm e}^{-\arctan \left (a x \right )}}{5 \left (a^{2} x^{2}+1\right ) c^{2} a}\) \(41\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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(1/exp(arctan(a*x))/(a^2*c*x^2+c)^2,x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 2.26, size = 41, normalized size = 0.76 \begin {gather*} -\frac {{\left (2 \, a^{2} x^{2} - 2 \, a x + 3\right )} e^{\left (-\arctan \left (a x\right )\right )}}{5 \, {\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(1/exp(arctan(a*x))/(a^2*c*x^2+c)^2,x, algorithm="fricas")

[Out]

-1/5*(2*a^2*x^2 - 2*a*x + 3)*e^(-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. 116 vs. \(2 (44) = 88\).
time = 22.63, size = 116, normalized size = 2.15 \begin {gather*} \begin {cases} - \frac {2 a^{2} x^{2}}{5 a^{3} c^{2} x^{2} e^{\operatorname {atan}{\left (a x \right )}} + 5 a c^{2} e^{\operatorname {atan}{\left (a x \right )}}} + \frac {2 a x}{5 a^{3} c^{2} x^{2} e^{\operatorname {atan}{\left (a x \right )}} + 5 a c^{2} e^{\operatorname {atan}{\left (a x \right )}}} - \frac {3}{5 a^{3} c^{2} x^{2} e^{\operatorname {atan}{\left (a x \right )}} + 5 a c^{2} e^{\operatorname {atan}{\left (a x \right )}}} & \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(1/exp(atan(a*x))/(a**2*c*x**2+c)**2,x)

[Out]

Piecewise((-2*a**2*x**2/(5*a**3*c**2*x**2*exp(atan(a*x)) + 5*a*c**2*exp(atan(a*x))) + 2*a*x/(5*a**3*c**2*x**2*
exp(atan(a*x)) + 5*a*c**2*exp(atan(a*x))) - 3/(5*a**3*c**2*x**2*exp(atan(a*x)) + 5*a*c**2*exp(atan(a*x))), 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(1/exp(arctan(a*x))/(a^2*c*x^2+c)^2,x, algorithm="giac")

[Out]

sage0*x

________________________________________________________________________________________

Mupad [B]
time = 0.56, size = 47, normalized size = 0.87 \begin {gather*} -\frac {{\mathrm {e}}^{-\mathrm {atan}\left (a\,x\right )}\,\left (\frac {3}{5\,a^3\,c^2}-\frac {2\,x}{5\,a^2\,c^2}+\frac {2\,x^2}{5\,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(-atan(a*x))/(c + a^2*c*x^2)^2,x)

[Out]

-(exp(-atan(a*x))*(3/(5*a^3*c^2) - (2*x)/(5*a^2*c^2) + (2*x^2)/(5*a*c^2)))/(1/a^2 + x^2)

________________________________________________________________________________________