Optimal. Leaf size=123 \[ \frac {9 e^{2 \text {ArcTan}(a x)}}{160 a c^4}+\frac {e^{2 \text {ArcTan}(a x)} (1+3 a x)}{20 a c^4 \left (1+a^2 x^2\right )^3}+\frac {3 e^{2 \text {ArcTan}(a x)} (1+2 a x)}{40 a c^4 \left (1+a^2 x^2\right )^2}+\frac {9 e^{2 \text {ArcTan}(a x)} (1+a x)}{80 a c^4 \left (1+a^2 x^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 123, normalized size of antiderivative = 1.00, number of steps
used = 4, 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 {9 (a x+1) e^{2 \text {ArcTan}(a x)}}{80 a c^4 \left (a^2 x^2+1\right )}+\frac {3 (2 a x+1) e^{2 \text {ArcTan}(a x)}}{40 a c^4 \left (a^2 x^2+1\right )^2}+\frac {(3 a x+1) e^{2 \text {ArcTan}(a x)}}{20 a c^4 \left (a^2 x^2+1\right )^3}+\frac {9 e^{2 \text {ArcTan}(a x)}}{160 a c^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 5178
Rule 5179
Rubi steps
\begin {align*} \int \frac {e^{2 \tan ^{-1}(a x)}}{\left (c+a^2 c x^2\right )^4} \, dx &=\frac {e^{2 \tan ^{-1}(a x)} (1+3 a x)}{20 a c^4 \left (1+a^2 x^2\right )^3}+\frac {3 \int \frac {e^{2 \tan ^{-1}(a x)}}{\left (c+a^2 c x^2\right )^3} \, dx}{4 c}\\ &=\frac {e^{2 \tan ^{-1}(a x)} (1+3 a x)}{20 a c^4 \left (1+a^2 x^2\right )^3}+\frac {3 e^{2 \tan ^{-1}(a x)} (1+2 a x)}{40 a c^4 \left (1+a^2 x^2\right )^2}+\frac {9 \int \frac {e^{2 \tan ^{-1}(a x)}}{\left (c+a^2 c x^2\right )^2} \, dx}{20 c^2}\\ &=\frac {e^{2 \tan ^{-1}(a x)} (1+3 a x)}{20 a c^4 \left (1+a^2 x^2\right )^3}+\frac {3 e^{2 \tan ^{-1}(a x)} (1+2 a x)}{40 a c^4 \left (1+a^2 x^2\right )^2}+\frac {9 e^{2 \tan ^{-1}(a x)} (1+a x)}{80 a c^4 \left (1+a^2 x^2\right )}+\frac {9 \int \frac {e^{2 \tan ^{-1}(a x)}}{c+a^2 c x^2} \, dx}{80 c^3}\\ &=\frac {9 e^{2 \tan ^{-1}(a x)}}{160 a c^4}+\frac {e^{2 \tan ^{-1}(a x)} (1+3 a x)}{20 a c^4 \left (1+a^2 x^2\right )^3}+\frac {3 e^{2 \tan ^{-1}(a x)} (1+2 a x)}{40 a c^4 \left (1+a^2 x^2\right )^2}+\frac {9 e^{2 \tan ^{-1}(a x)} (1+a x)}{80 a c^4 \left (1+a^2 x^2\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.19, size = 122, normalized size = 0.99 \begin {gather*} \frac {8 c e^{2 \text {ArcTan}(a x)} (1+3 a x)+3 \left (c+a^2 c x^2\right ) \left (4 e^{2 \text {ArcTan}(a x)} (1+2 a x)+3 (1-i a x)^i (1+i a x)^{-i} (-i+a x) (i+a x) \left (3+2 a x+a^2 x^2\right )\right )}{160 a c^2 \left (c+a^2 c x^2\right )^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 73, normalized size = 0.59
method | result | size |
gosper | \(\frac {{\mathrm e}^{2 \arctan \left (a x \right )} \left (9 a^{6} x^{6}+18 a^{5} x^{5}+45 a^{4} x^{4}+60 a^{3} x^{3}+75 a^{2} x^{2}+66 a x +47\right )}{160 \left (a^{2} x^{2}+1\right )^{3} c^{4} a}\) | \(73\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
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]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.74, size = 95, normalized size = 0.77 \begin {gather*} \frac {{\left (9 \, a^{6} x^{6} + 18 \, a^{5} x^{5} + 45 \, a^{4} x^{4} + 60 \, a^{3} x^{3} + 75 \, a^{2} x^{2} + 66 \, a x + 47\right )} e^{\left (2 \, \arctan \left (a x\right )\right )}}{160 \, {\left (a^{7} c^{4} x^{6} + 3 \, a^{5} c^{4} x^{4} + 3 \, a^{3} c^{4} x^{2} + a c^{4}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 410 vs.
\(2 (112) = 224\).
time = 10.73, size = 410, normalized size = 3.33 \begin {gather*} \begin {cases} \frac {9 a^{6} x^{6} e^{2 \operatorname {atan}{\left (a x \right )}}}{160 a^{7} c^{4} x^{6} + 480 a^{5} c^{4} x^{4} + 480 a^{3} c^{4} x^{2} + 160 a c^{4}} + \frac {18 a^{5} x^{5} e^{2 \operatorname {atan}{\left (a x \right )}}}{160 a^{7} c^{4} x^{6} + 480 a^{5} c^{4} x^{4} + 480 a^{3} c^{4} x^{2} + 160 a c^{4}} + \frac {45 a^{4} x^{4} e^{2 \operatorname {atan}{\left (a x \right )}}}{160 a^{7} c^{4} x^{6} + 480 a^{5} c^{4} x^{4} + 480 a^{3} c^{4} x^{2} + 160 a c^{4}} + \frac {60 a^{3} x^{3} e^{2 \operatorname {atan}{\left (a x \right )}}}{160 a^{7} c^{4} x^{6} + 480 a^{5} c^{4} x^{4} + 480 a^{3} c^{4} x^{2} + 160 a c^{4}} + \frac {75 a^{2} x^{2} e^{2 \operatorname {atan}{\left (a x \right )}}}{160 a^{7} c^{4} x^{6} + 480 a^{5} c^{4} x^{4} + 480 a^{3} c^{4} x^{2} + 160 a c^{4}} + \frac {66 a x e^{2 \operatorname {atan}{\left (a x \right )}}}{160 a^{7} c^{4} x^{6} + 480 a^{5} c^{4} x^{4} + 480 a^{3} c^{4} x^{2} + 160 a c^{4}} + \frac {47 e^{2 \operatorname {atan}{\left (a x \right )}}}{160 a^{7} c^{4} x^{6} + 480 a^{5} c^{4} x^{4} + 480 a^{3} c^{4} x^{2} + 160 a c^{4}} & \text {for}\: a \neq 0 \\\frac {x}{c^{4}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
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]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.67, size = 111, normalized size = 0.90 \begin {gather*} \frac {9\,{\mathrm {e}}^{2\,\mathrm {atan}\left (a\,x\right )}}{160\,a\,c^4}+\frac {9\,{\mathrm {e}}^{2\,\mathrm {atan}\left (a\,x\right )}\,\left (a\,x+1\right )}{80\,a\,c^4\,\left (a^2\,x^2+1\right )}+\frac {3\,{\mathrm {e}}^{2\,\mathrm {atan}\left (a\,x\right )}\,\left (2\,a\,x+1\right )}{40\,a\,c^4\,{\left (a^2\,x^2+1\right )}^2}+\frac {{\mathrm {e}}^{2\,\mathrm {atan}\left (a\,x\right )}\,\left (3\,a\,x+1\right )}{20\,a\,c^4\,{\left (a^2\,x^2+1\right )}^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________