Optimal. Leaf size=180 \[ \frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}-\frac {\text {ArcTan}\left (1-\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c}+\frac {\text {ArcTan}\left (1+\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c}+\frac {\log \left (1+e^{2 c (a+b x)}-\sqrt {2} e^{a c+b c x}\right )}{2 \sqrt {2} b c}-\frac {\log \left (1+e^{2 c (a+b x)}+\sqrt {2} e^{a c+b c x}\right )}{2 \sqrt {2} b c} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 180, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 10, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {2225, 5316,
12, 2281, 303, 1176, 631, 210, 1179, 642} \begin {gather*} -\frac {\text {ArcTan}\left (1-\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c}+\frac {\text {ArcTan}\left (\sqrt {2} e^{a c+b c x}+1\right )}{\sqrt {2} b c}+\frac {\log \left (e^{2 c (a+b x)}-\sqrt {2} e^{a c+b c x}+1\right )}{2 \sqrt {2} b c}-\frac {\log \left (e^{2 c (a+b x)}+\sqrt {2} e^{a c+b c x}+1\right )}{2 \sqrt {2} b c}+\frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 210
Rule 303
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 2225
Rule 2281
Rule 5316
Rubi steps
\begin {align*} \int e^{c (a+b x)} \cot ^{-1}(\tanh (a c+b c x)) \, dx &=\frac {\text {Subst}\left (\int e^x \cot ^{-1}(\tanh (x)) \, dx,x,a c+b c x\right )}{b c}\\ &=\frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}+\frac {\text {Subst}\left (\int \frac {2 e^{3 x}}{1+e^{4 x}} \, dx,x,a c+b c x\right )}{b c}\\ &=\frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}+\frac {2 \text {Subst}\left (\int \frac {e^{3 x}}{1+e^{4 x}} \, dx,x,a c+b c x\right )}{b c}\\ &=\frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}+\frac {2 \text {Subst}\left (\int \frac {x^2}{1+x^4} \, dx,x,e^{a c+b c x}\right )}{b c}\\ &=\frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}-\frac {\text {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,e^{a c+b c x}\right )}{b c}+\frac {\text {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,e^{a c+b c x}\right )}{b c}\\ &=\frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}+\frac {\text {Subst}\left (\int \frac {1}{1-\sqrt {2} x+x^2} \, dx,x,e^{a c+b c x}\right )}{2 b c}+\frac {\text {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,e^{a c+b c x}\right )}{2 b c}+\frac {\text {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,e^{a c+b c x}\right )}{2 \sqrt {2} b c}+\frac {\text {Subst}\left (\int \frac {\sqrt {2}-2 x}{-1+\sqrt {2} x-x^2} \, dx,x,e^{a c+b c x}\right )}{2 \sqrt {2} b c}\\ &=\frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}+\frac {\log \left (1-\sqrt {2} e^{a c+b c x}+e^{2 a c+2 b c x}\right )}{2 \sqrt {2} b c}-\frac {\log \left (1+\sqrt {2} e^{a c+b c x}+e^{2 a c+2 b c x}\right )}{2 \sqrt {2} b c}+\frac {\text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c}-\frac {\text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c}\\ &=\frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}-\frac {\tan ^{-1}\left (1-\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c}+\frac {\tan ^{-1}\left (1+\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c}+\frac {\log \left (1-\sqrt {2} e^{a c+b c x}+e^{2 a c+2 b c x}\right )}{2 \sqrt {2} b c}-\frac {\log \left (1+\sqrt {2} e^{a c+b c x}+e^{2 a c+2 b c x}\right )}{2 \sqrt {2} b c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 0.06, size = 89, normalized size = 0.49 \begin {gather*} \frac {2 e^{c (a+b x)} \cot ^{-1}\left (\frac {-1+e^{2 c (a+b x)}}{1+e^{2 c (a+b x)}}\right )+\text {RootSum}\left [1+\text {$\#$1}^4\&,\frac {-a c-b c x+\log \left (e^{c (a+b x)}-\text {$\#$1}\right )}{\text {$\#$1}}\&\right ]}{2 b c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.45, size = 1323, normalized size = 7.35
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1323\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 167, normalized size = 0.93 \begin {gather*} \frac {\operatorname {arccot}\left (\tanh \left (b c x + a c\right )\right ) e^{\left ({\left (b x + a\right )} c\right )}}{b c} + \frac {\sqrt {2} \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} + 2 \, e^{\left (b c x + a c\right )}\right )}\right )}{2 \, b c} + \frac {\sqrt {2} \arctan \left (-\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} - 2 \, e^{\left (b c x + a c\right )}\right )}\right )}{2 \, b c} - \frac {\sqrt {2} \log \left (\sqrt {2} e^{\left (b c x + a c\right )} + e^{\left (2 \, b c x + 2 \, a c\right )} + 1\right )}{4 \, b c} + \frac {\sqrt {2} \log \left (-\sqrt {2} e^{\left (b c x + a c\right )} + e^{\left (2 \, b c x + 2 \, a c\right )} + 1\right )}{4 \, b c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 431 vs.
\(2 (153) = 306\).
time = 2.28, size = 431, normalized size = 2.39 \begin {gather*} -\frac {4 \, \sqrt {2} b c \left (\frac {1}{b^{4} c^{4}}\right )^{\frac {1}{4}} \arctan \left (-\sqrt {2} b c \left (\frac {1}{b^{4} c^{4}}\right )^{\frac {1}{4}} e^{\left (b c x + a c\right )} + \sqrt {2} \sqrt {\sqrt {2} b^{3} c^{3} \left (\frac {1}{b^{4} c^{4}}\right )^{\frac {3}{4}} e^{\left (b c x + a c\right )} + b^{2} c^{2} \sqrt {\frac {1}{b^{4} c^{4}}} + e^{\left (2 \, b c x + 2 \, a c\right )}} b c \left (\frac {1}{b^{4} c^{4}}\right )^{\frac {1}{4}} - 1\right ) + 4 \, \sqrt {2} b c \left (\frac {1}{b^{4} c^{4}}\right )^{\frac {1}{4}} \arctan \left (-\sqrt {2} b c \left (\frac {1}{b^{4} c^{4}}\right )^{\frac {1}{4}} e^{\left (b c x + a c\right )} + \sqrt {2} \sqrt {-\sqrt {2} b^{3} c^{3} \left (\frac {1}{b^{4} c^{4}}\right )^{\frac {3}{4}} e^{\left (b c x + a c\right )} + b^{2} c^{2} \sqrt {\frac {1}{b^{4} c^{4}}} + e^{\left (2 \, b c x + 2 \, a c\right )}} b c \left (\frac {1}{b^{4} c^{4}}\right )^{\frac {1}{4}} + 1\right ) + \sqrt {2} b c \left (\frac {1}{b^{4} c^{4}}\right )^{\frac {1}{4}} \log \left (\sqrt {2} b^{3} c^{3} \left (\frac {1}{b^{4} c^{4}}\right )^{\frac {3}{4}} e^{\left (b c x + a c\right )} + b^{2} c^{2} \sqrt {\frac {1}{b^{4} c^{4}}} + e^{\left (2 \, b c x + 2 \, a c\right )}\right ) - \sqrt {2} b c \left (\frac {1}{b^{4} c^{4}}\right )^{\frac {1}{4}} \log \left (-\sqrt {2} b^{3} c^{3} \left (\frac {1}{b^{4} c^{4}}\right )^{\frac {3}{4}} e^{\left (b c x + a c\right )} + b^{2} c^{2} \sqrt {\frac {1}{b^{4} c^{4}}} + e^{\left (2 \, b c x + 2 \, a c\right )}\right ) - 4 \, \arctan \left (\frac {e^{\left (2 \, b c x + 2 \, a c\right )} + 1}{e^{\left (2 \, b c x + 2 \, a c\right )} - 1}\right ) e^{\left (b c x + a c\right )}}{4 \, b c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} e^{a c} \int e^{b c x} \operatorname {acot}{\left (\tanh {\left (a c + b c x \right )} \right )}\, dx \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 = 2.56, size = 164, normalized size = 0.91 \begin {gather*} \frac {4\,{\mathrm {e}}^{a\,c+b\,c\,x}\,\mathrm {acot}\left (\frac {{\mathrm {e}}^{2\,b\,c\,x}\,{\mathrm {e}}^{2\,a\,c}-1}{{\mathrm {e}}^{2\,b\,c\,x}\,{\mathrm {e}}^{2\,a\,c}+1}\right )+\sqrt {2}\,\ln \left (\sqrt {2}\,\left (-4-4{}\mathrm {i}\right )-{\mathrm {e}}^{b\,c\,x}\,{\mathrm {e}}^{a\,c}\,8{}\mathrm {i}\right )\,\left (-1-\mathrm {i}\right )+\sqrt {2}\,\ln \left (\sqrt {2}\,\left (-4+4{}\mathrm {i}\right )+{\mathrm {e}}^{b\,c\,x}\,{\mathrm {e}}^{a\,c}\,8{}\mathrm {i}\right )\,\left (-1+1{}\mathrm {i}\right )+\sqrt {2}\,\ln \left (\sqrt {2}\,\left (4-4{}\mathrm {i}\right )+{\mathrm {e}}^{b\,c\,x}\,{\mathrm {e}}^{a\,c}\,8{}\mathrm {i}\right )\,\left (1-\mathrm {i}\right )+\sqrt {2}\,\ln \left (\sqrt {2}\,\left (4+4{}\mathrm {i}\right )-{\mathrm {e}}^{b\,c\,x}\,{\mathrm {e}}^{a\,c}\,8{}\mathrm {i}\right )\,\left (1+1{}\mathrm {i}\right )}{4\,b\,c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________