Integrand size = 25, antiderivative size = 74 \[ \int e^{c (a+b x)} \sqrt {\cosh ^2(a c+b c x)} \, dx=\frac {e^{2 c (a+b x)} \sqrt {\cosh ^2(a c+b c x)} \text {sech}(a c+b c x)}{4 b c}+\frac {1}{2} x \sqrt {\cosh ^2(a c+b c x)} \text {sech}(a c+b c x) \]
[Out]
Time = 0.07 (sec) , antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {6852, 2320, 12, 14} \[ \int e^{c (a+b x)} \sqrt {\cosh ^2(a c+b c x)} \, dx=\frac {e^{2 c (a+b x)} \sqrt {\cosh ^2(a c+b c x)} \text {sech}(a c+b c x)}{4 b c}+\frac {1}{2} x \sqrt {\cosh ^2(a c+b c x)} \text {sech}(a c+b c x) \]
[In]
[Out]
Rule 12
Rule 14
Rule 2320
Rule 6852
Rubi steps \begin{align*} \text {integral}& = \left (\sqrt {\cosh ^2(a c+b c x)} \text {sech}(a c+b c x)\right ) \int e^{c (a+b x)} \cosh (a c+b c x) \, dx \\ & = \frac {\left (\sqrt {\cosh ^2(a c+b c x)} \text {sech}(a c+b c x)\right ) \text {Subst}\left (\int \frac {1+x^2}{2 x} \, dx,x,e^{c (a+b x)}\right )}{b c} \\ & = \frac {\left (\sqrt {\cosh ^2(a c+b c x)} \text {sech}(a c+b c x)\right ) \text {Subst}\left (\int \frac {1+x^2}{x} \, dx,x,e^{c (a+b x)}\right )}{2 b c} \\ & = \frac {\left (\sqrt {\cosh ^2(a c+b c x)} \text {sech}(a c+b c x)\right ) \text {Subst}\left (\int \left (\frac {1}{x}+x\right ) \, dx,x,e^{c (a+b x)}\right )}{2 b c} \\ & = \frac {e^{2 c (a+b x)} \sqrt {\cosh ^2(a c+b c x)} \text {sech}(a c+b c x)}{4 b c}+\frac {1}{2} x \sqrt {\cosh ^2(a c+b c x)} \text {sech}(a c+b c x) \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.65 \[ \int e^{c (a+b x)} \sqrt {\cosh ^2(a c+b c x)} \, dx=\frac {\left (e^{2 c (a+b x)}+2 b c x\right ) \sqrt {\cosh ^2(c (a+b x))} \text {sech}(c (a+b x))}{4 b c} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 0.21 (sec) , antiderivative size = 60, normalized size of antiderivative = 0.81
method | result | size |
default | \(\frac {\operatorname {csgn}\left (\cosh \left (c \left (b x +a \right )\right )\right ) \left (\frac {\cosh \left (b c x +a c \right )^{2}}{2}+\frac {\sinh \left (b c x +a c \right ) \cosh \left (b c x +a c \right )}{2}+\frac {b c x}{2}+\frac {a c}{2}\right )}{c b}\) | \(60\) |
risch | \(\frac {x \sqrt {\left (1+{\mathrm e}^{2 c \left (b x +a \right )}\right )^{2} {\mathrm e}^{-2 c \left (b x +a \right )}}\, {\mathrm e}^{c \left (b x +a \right )}}{2+2 \,{\mathrm e}^{2 c \left (b x +a \right )}}+\frac {\sqrt {\left (1+{\mathrm e}^{2 c \left (b x +a \right )}\right )^{2} {\mathrm e}^{-2 c \left (b x +a \right )}}\, {\mathrm e}^{3 c \left (b x +a \right )}}{4 b c \left (1+{\mathrm e}^{2 c \left (b x +a \right )}\right )}\) | \(106\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 66, normalized size of antiderivative = 0.89 \[ \int e^{c (a+b x)} \sqrt {\cosh ^2(a c+b c x)} \, dx=\frac {{\left (2 \, b c x + 1\right )} \cosh \left (b c x + a c\right ) - {\left (2 \, b c x - 1\right )} \sinh \left (b c x + a c\right )}{4 \, {\left (b c \cosh \left (b c x + a c\right ) - b c \sinh \left (b c x + a c\right )\right )}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 1.94 (sec) , antiderivative size = 163, normalized size of antiderivative = 2.20 \[ \int e^{c (a+b x)} \sqrt {\cosh ^2(a c+b c x)} \, dx=\begin {cases} x \sqrt {\cosh ^{2}{\left (a c \right )}} e^{a c} & \text {for}\: b = 0 \\x & \text {for}\: c = 0 \\0 & \text {for}\: a = - \frac {2 b c x - i \pi }{2 c} \\- \frac {x \sqrt {\cosh ^{2}{\left (a c + b c x \right )}} e^{a c} e^{b c x} \sinh {\left (a c + b c x \right )}}{2 \cosh {\left (a c + b c x \right )}} + \frac {x \sqrt {\cosh ^{2}{\left (a c + b c x \right )}} e^{a c} e^{b c x}}{2} + \frac {\sqrt {\cosh ^{2}{\left (a c + b c x \right )}} e^{a c} e^{b c x} \sinh {\left (a c + b c x \right )}}{2 b c \cosh {\left (a c + b c x \right )}} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 29, normalized size of antiderivative = 0.39 \[ \int e^{c (a+b x)} \sqrt {\cosh ^2(a c+b c x)} \, dx=\frac {1}{2} \, x + \frac {a}{2 \, b} + \frac {e^{\left (2 \, b c x + 2 \, a c\right )}}{4 \, b c} \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.31 \[ \int e^{c (a+b x)} \sqrt {\cosh ^2(a c+b c x)} \, dx=\frac {1}{2} \, x + \frac {e^{\left (2 \, b c x + 2 \, a c\right )}}{4 \, b c} \]
[In]
[Out]
Time = 0.13 (sec) , antiderivative size = 76, normalized size of antiderivative = 1.03 \[ \int e^{c (a+b x)} \sqrt {\cosh ^2(a c+b c x)} \, dx=\frac {\left (x\,{\mathrm {e}}^{a\,c+b\,c\,x}+\frac {{\mathrm {e}}^{3\,a\,c+3\,b\,c\,x}}{2\,b\,c}\right )\,\sqrt {{\left (\frac {{\mathrm {e}}^{a\,c+b\,c\,x}}{2}+\frac {{\mathrm {e}}^{-a\,c-b\,c\,x}}{2}\right )}^2}}{{\mathrm {e}}^{2\,a\,c+2\,b\,c\,x}+1} \]
[In]
[Out]