Optimal. Leaf size=47 \[ \frac {e^{a c+b c x} \cot ^{-1}(\sinh (c (a+b x)))}{b c}+\frac {\log \left (1+e^{2 c (a+b x)}\right )}{b c} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2225, 5316,
2320, 12, 266} \begin {gather*} \frac {\log \left (e^{2 c (a+b x)}+1\right )}{b c}+\frac {e^{a c+b c x} \cot ^{-1}(\sinh (c (a+b x)))}{b c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 266
Rule 2225
Rule 2320
Rule 5316
Rubi steps
\begin {align*} \int e^{c (a+b x)} \cot ^{-1}(\sinh (a c+b c x)) \, dx &=\frac {\text {Subst}\left (\int e^x \cot ^{-1}(\sinh (x)) \, dx,x,a c+b c x\right )}{b c}\\ &=\frac {e^{a c+b c x} \cot ^{-1}(\sinh (c (a+b x)))}{b c}+\frac {\text {Subst}\left (\int e^x \text {sech}(x) \, dx,x,a c+b c x\right )}{b c}\\ &=\frac {e^{a c+b c x} \cot ^{-1}(\sinh (c (a+b x)))}{b c}+\frac {\text {Subst}\left (\int \frac {2 x}{1+x^2} \, dx,x,e^{a c+b c x}\right )}{b c}\\ &=\frac {e^{a c+b c x} \cot ^{-1}(\sinh (c (a+b x)))}{b c}+\frac {2 \text {Subst}\left (\int \frac {x}{1+x^2} \, dx,x,e^{a c+b c x}\right )}{b c}\\ &=\frac {e^{a c+b c x} \cot ^{-1}(\sinh (c (a+b x)))}{b c}+\frac {\log \left (1+e^{2 c (a+b x)}\right )}{b c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 61, normalized size = 1.30 \begin {gather*} \frac {-e^{c (a+b x)} \cot ^{-1}\left (\frac {1}{2} e^{-c (a+b x)}-\frac {1}{2} e^{c (a+b x)}\right )+\log \left (1+e^{2 c (a+b x)}\right )}{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.19, size = 1281, normalized size = 27.26
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1281\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 47, normalized size = 1.00 \begin {gather*} \frac {\operatorname {arccot}\left (\sinh \left (b c x + a c\right )\right ) e^{\left ({\left (b x + a\right )} c\right )}}{b c} + \frac {\log \left (e^{\left (2 \, b c x + 2 \, a c\right )} + 1\right )}{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. 131 vs.
\(2 (45) = 90\).
time = 1.37, size = 131, normalized size = 2.79 \begin {gather*} \frac {{\left (\cosh \left (b c x + a c\right ) + \sinh \left (b c x + a c\right )\right )} \arctan \left (\frac {2 \, {\left (\cosh \left (b c x + a c\right ) + \sinh \left (b c x + a c\right )\right )}}{\cosh \left (b c x + a c\right )^{2} + 2 \, \cosh \left (b c x + a c\right ) \sinh \left (b c x + a c\right ) + \sinh \left (b c x + a c\right )^{2} - 1}\right ) + \log \left (\frac {2 \, \cosh \left (b c x + a c\right )}{\cosh \left (b c x + a c\right ) - \sinh \left (b c x + a c\right )}\right )}{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 (\sinh {\left (a c + b c x \right )} \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.56, size = 66, normalized size = 1.40 \begin {gather*} \frac {{\left (\arctan \left (\frac {2}{e^{\left (b c x + a c\right )} - e^{\left (-b c x - a c\right )}}\right ) e^{\left (b c x\right )} + e^{\left (-a c\right )} \log \left (e^{\left (2 \, b c x + 2 \, a c\right )} + 1\right )\right )} e^{\left (a c\right )}}{b c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.73, size = 65, normalized size = 1.38 \begin {gather*} \frac {\ln \left ({\mathrm {e}}^{2\,b\,c\,x}\,{\mathrm {e}}^{2\,a\,c}+1\right )}{b\,c}+\frac {{\mathrm {e}}^{b\,c\,x}\,{\mathrm {e}}^{a\,c}\,\mathrm {acot}\left (\frac {{\mathrm {e}}^{b\,c\,x}\,{\mathrm {e}}^{a\,c}}{2}-\frac {{\mathrm {e}}^{-b\,c\,x}\,{\mathrm {e}}^{-a\,c}}{2}\right )}{b\,c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________