Integrand size = 13, antiderivative size = 67 \[ \int \frac {\cosh ^4(x)}{a+a \text {sech}(x)} \, dx=\frac {15 x}{8 a}-\frac {4 \sinh (x)}{a}+\frac {15 \cosh (x) \sinh (x)}{8 a}+\frac {5 \cosh ^3(x) \sinh (x)}{4 a}-\frac {\cosh ^3(x) \sinh (x)}{a+a \text {sech}(x)}-\frac {4 \sinh ^3(x)}{3 a} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {3904, 3872, 2715, 8, 2713} \[ \int \frac {\cosh ^4(x)}{a+a \text {sech}(x)} \, dx=\frac {15 x}{8 a}-\frac {4 \sinh ^3(x)}{3 a}-\frac {4 \sinh (x)}{a}+\frac {5 \sinh (x) \cosh ^3(x)}{4 a}+\frac {15 \sinh (x) \cosh (x)}{8 a}-\frac {\sinh (x) \cosh ^3(x)}{a \text {sech}(x)+a} \]
[In]
[Out]
Rule 8
Rule 2713
Rule 2715
Rule 3872
Rule 3904
Rubi steps \begin{align*} \text {integral}& = -\frac {\cosh ^3(x) \sinh (x)}{a+a \text {sech}(x)}-\frac {\int \cosh ^4(x) (-5 a+4 a \text {sech}(x)) \, dx}{a^2} \\ & = -\frac {\cosh ^3(x) \sinh (x)}{a+a \text {sech}(x)}-\frac {4 \int \cosh ^3(x) \, dx}{a}+\frac {5 \int \cosh ^4(x) \, dx}{a} \\ & = \frac {5 \cosh ^3(x) \sinh (x)}{4 a}-\frac {\cosh ^3(x) \sinh (x)}{a+a \text {sech}(x)}-\frac {(4 i) \text {Subst}\left (\int \left (1-x^2\right ) \, dx,x,-i \sinh (x)\right )}{a}+\frac {15 \int \cosh ^2(x) \, dx}{4 a} \\ & = -\frac {4 \sinh (x)}{a}+\frac {15 \cosh (x) \sinh (x)}{8 a}+\frac {5 \cosh ^3(x) \sinh (x)}{4 a}-\frac {\cosh ^3(x) \sinh (x)}{a+a \text {sech}(x)}-\frac {4 \sinh ^3(x)}{3 a}+\frac {15 \int 1 \, dx}{8 a} \\ & = \frac {15 x}{8 a}-\frac {4 \sinh (x)}{a}+\frac {15 \cosh (x) \sinh (x)}{8 a}+\frac {5 \cosh ^3(x) \sinh (x)}{4 a}-\frac {\cosh ^3(x) \sinh (x)}{a+a \text {sech}(x)}-\frac {4 \sinh ^3(x)}{3 a} \\ \end{align*}
Time = 0.43 (sec) , antiderivative size = 63, normalized size of antiderivative = 0.94 \[ \int \frac {\cosh ^4(x)}{a+a \text {sech}(x)} \, dx=\frac {\text {sech}\left (\frac {x}{2}\right ) \left (360 x \cosh \left (\frac {x}{2}\right )-360 \sinh \left (\frac {x}{2}\right )-120 \sinh \left (\frac {3 x}{2}\right )+40 \sinh \left (\frac {5 x}{2}\right )-5 \sinh \left (\frac {7 x}{2}\right )+3 \sinh \left (\frac {9 x}{2}\right )\right )}{192 a} \]
[In]
[Out]
Time = 0.33 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.64
method | result | size |
parallelrisch | \(-\frac {\operatorname {csch}\left (x \right ) \left (-360 x \sinh \left (x \right )+240 \cosh \left (x \right )+8 \cosh \left (4 x \right )+160 \cosh \left (2 x \right )-3 \cosh \left (5 x \right )-45 \cosh \left (3 x \right )-360\right )}{192 a}\) | \(43\) |
risch | \(\frac {3 \,{\mathrm e}^{5 x}-5 \,{\mathrm e}^{4 x}+40 \,{\mathrm e}^{3 x}-120 \,{\mathrm e}^{2 x}+552+120 \,{\mathrm e}^{-x}-40 \,{\mathrm e}^{-2 x}+5 \,{\mathrm e}^{-3 x}+360 x \,{\mathrm e}^{x}-168 \,{\mathrm e}^{x}-3 \,{\mathrm e}^{-4 x}+360 x}{192 \left ({\mathrm e}^{x}+1\right ) a}\) | \(74\) |
default | \(\frac {-\tanh \left (\frac {x}{2}\right )-\frac {1}{4 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{4}}+\frac {5}{6 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{3}}-\frac {15}{8 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{2}}+\frac {25}{8 \left (\tanh \left (\frac {x}{2}\right )+1\right )}+\frac {15 \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )}{8}+\frac {1}{4 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{4}}+\frac {5}{6 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{3}}+\frac {15}{8 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{2}}+\frac {25}{8 \left (\tanh \left (\frac {x}{2}\right )-1\right )}-\frac {15 \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )}{8}}{a}\) | \(110\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 139 vs. \(2 (59) = 118\).
Time = 0.24 (sec) , antiderivative size = 139, normalized size of antiderivative = 2.07 \[ \int \frac {\cosh ^4(x)}{a+a \text {sech}(x)} \, dx=\frac {3 \, \cosh \left (x\right )^{5} + {\left (15 \, \cosh \left (x\right ) - 8\right )} \sinh \left (x\right )^{4} + 3 \, \sinh \left (x\right )^{5} - 8 \, \cosh \left (x\right )^{4} + {\left (30 \, \cosh \left (x\right )^{2} - 8 \, \cosh \left (x\right ) + 35\right )} \sinh \left (x\right )^{3} + 45 \, \cosh \left (x\right )^{3} + {\left (30 \, \cosh \left (x\right )^{3} - 48 \, \cosh \left (x\right )^{2} + 135 \, \cosh \left (x\right ) - 160\right )} \sinh \left (x\right )^{2} + 24 \, {\left (15 \, x - 2\right )} \cosh \left (x\right ) - 160 \, \cosh \left (x\right )^{2} + {\left (15 \, \cosh \left (x\right )^{4} - 8 \, \cosh \left (x\right )^{3} + 105 \, \cosh \left (x\right )^{2} + 360 \, x - 160 \, \cosh \left (x\right ) - 288\right )} \sinh \left (x\right ) + 360 \, x + 552}{192 \, {\left (a \cosh \left (x\right ) + a \sinh \left (x\right ) + a\right )}} \]
[In]
[Out]
\[ \int \frac {\cosh ^4(x)}{a+a \text {sech}(x)} \, dx=\frac {\int \frac {\cosh ^{4}{\left (x \right )}}{\operatorname {sech}{\left (x \right )} + 1}\, dx}{a} \]
[In]
[Out]
none
Time = 0.19 (sec) , antiderivative size = 80, normalized size of antiderivative = 1.19 \[ \int \frac {\cosh ^4(x)}{a+a \text {sech}(x)} \, dx=\frac {15 \, x}{8 \, a} + \frac {168 \, e^{\left (-x\right )} - 48 \, e^{\left (-2 \, x\right )} + 8 \, e^{\left (-3 \, x\right )} - 3 \, e^{\left (-4 \, x\right )}}{192 \, a} - \frac {5 \, e^{\left (-x\right )} - 40 \, e^{\left (-2 \, x\right )} + 120 \, e^{\left (-3 \, x\right )} + 552 \, e^{\left (-4 \, x\right )} - 3}{192 \, {\left (a e^{\left (-4 \, x\right )} + a e^{\left (-5 \, x\right )}\right )}} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 86, normalized size of antiderivative = 1.28 \[ \int \frac {\cosh ^4(x)}{a+a \text {sech}(x)} \, dx=\frac {15 \, x}{8 \, a} + \frac {{\left (552 \, e^{\left (4 \, x\right )} + 120 \, e^{\left (3 \, x\right )} - 40 \, e^{\left (2 \, x\right )} + 5 \, e^{x} - 3\right )} e^{\left (-4 \, x\right )}}{192 \, a {\left (e^{x} + 1\right )}} + \frac {3 \, a^{3} e^{\left (4 \, x\right )} - 8 \, a^{3} e^{\left (3 \, x\right )} + 48 \, a^{3} e^{\left (2 \, x\right )} - 168 \, a^{3} e^{x}}{192 \, a^{4}} \]
[In]
[Out]
Time = 2.10 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.31 \[ \int \frac {\cosh ^4(x)}{a+a \text {sech}(x)} \, dx=\frac {7\,{\mathrm {e}}^{-x}}{8\,a}-\frac {{\mathrm {e}}^{-2\,x}}{4\,a}+\frac {{\mathrm {e}}^{2\,x}}{4\,a}+\frac {{\mathrm {e}}^{-3\,x}}{24\,a}-\frac {{\mathrm {e}}^{3\,x}}{24\,a}-\frac {{\mathrm {e}}^{-4\,x}}{64\,a}+\frac {{\mathrm {e}}^{4\,x}}{64\,a}+\frac {15\,x}{8\,a}+\frac {2}{a\,\left ({\mathrm {e}}^x+1\right )}-\frac {7\,{\mathrm {e}}^x}{8\,a} \]
[In]
[Out]