Integrand size = 13, antiderivative size = 66 \[ \int \frac {\tanh ^3(x)}{(i+\sinh (x))^2} \, dx=-\frac {1}{8} i \arctan (\sinh (x))-\frac {i}{16 (i-\sinh (x))}+\frac {i}{12 (i+\sinh (x))^3}-\frac {1}{4 (i+\sinh (x))^2}-\frac {3 i}{16 (i+\sinh (x))} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {2786, 90, 209} \[ \int \frac {\tanh ^3(x)}{(i+\sinh (x))^2} \, dx=-\frac {1}{8} i \arctan (\sinh (x))-\frac {i}{16 (-\sinh (x)+i)}-\frac {3 i}{16 (\sinh (x)+i)}-\frac {1}{4 (\sinh (x)+i)^2}+\frac {i}{12 (\sinh (x)+i)^3} \]
[In]
[Out]
Rule 90
Rule 209
Rule 2786
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {x^3}{(i-x)^2 (i+x)^4} \, dx,x,\sinh (x)\right ) \\ & = \text {Subst}\left (\int \left (-\frac {i}{16 (-i+x)^2}-\frac {i}{4 (i+x)^4}+\frac {1}{2 (i+x)^3}+\frac {3 i}{16 (i+x)^2}-\frac {i}{8 \left (1+x^2\right )}\right ) \, dx,x,\sinh (x)\right ) \\ & = -\frac {i}{16 (i-\sinh (x))}+\frac {i}{12 (i+\sinh (x))^3}-\frac {1}{4 (i+\sinh (x))^2}-\frac {3 i}{16 (i+\sinh (x))}-\frac {1}{8} i \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sinh (x)\right ) \\ & = -\frac {1}{8} i \arctan (\sinh (x))-\frac {i}{16 (i-\sinh (x))}+\frac {i}{12 (i+\sinh (x))^3}-\frac {1}{4 (i+\sinh (x))^2}-\frac {3 i}{16 (i+\sinh (x))} \\ \end{align*}
Time = 0.11 (sec) , antiderivative size = 52, normalized size of antiderivative = 0.79 \[ \int \frac {\tanh ^3(x)}{(i+\sinh (x))^2} \, dx=\frac {1}{48} i \left (-6 \arctan (\sinh (x))-\frac {2 \left (2 i+7 \sinh (x)-6 i \sinh ^2(x)+3 \sinh ^3(x)\right )}{(-i+\sinh (x)) (i+\sinh (x))^3}\right ) \]
[In]
[Out]
Time = 20.25 (sec) , antiderivative size = 76, normalized size of antiderivative = 1.15
method | result | size |
risch | \(-\frac {i {\mathrm e}^{x} \left (-12 i {\mathrm e}^{5 x}+3 \,{\mathrm e}^{6 x}+40 i {\mathrm e}^{3 x}+19 \,{\mathrm e}^{4 x}-12 i {\mathrm e}^{x}-19 \,{\mathrm e}^{2 x}-3\right )}{12 \left ({\mathrm e}^{x}-i\right )^{2} \left ({\mathrm e}^{x}+i\right )^{6}}+\frac {\ln \left ({\mathrm e}^{x}+i\right )}{8}-\frac {\ln \left ({\mathrm e}^{x}-i\right )}{8}\) | \(76\) |
default | \(-\frac {i}{8 \left (-i+\tanh \left (\frac {x}{2}\right )\right )}+\frac {1}{8 \left (-i+\tanh \left (\frac {x}{2}\right )\right )^{2}}-\frac {\ln \left (-i+\tanh \left (\frac {x}{2}\right )\right )}{8}+\frac {2 i}{\left (\tanh \left (\frac {x}{2}\right )+i\right )^{5}}-\frac {2 i}{3 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{3}}-\frac {i}{8 \left (\tanh \left (\frac {x}{2}\right )+i\right )}+\frac {2}{3 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{6}}-\frac {2}{\left (\tanh \left (\frac {x}{2}\right )+i\right )^{4}}-\frac {1}{8 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{2}}+\frac {\ln \left (\tanh \left (\frac {x}{2}\right )+i\right )}{8}\) | \(114\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 197 vs. \(2 (38) = 76\).
Time = 0.28 (sec) , antiderivative size = 197, normalized size of antiderivative = 2.98 \[ \int \frac {\tanh ^3(x)}{(i+\sinh (x))^2} \, dx=\frac {3 \, {\left (e^{\left (8 \, x\right )} + 4 i \, e^{\left (7 \, x\right )} - 4 \, e^{\left (6 \, x\right )} + 4 i \, e^{\left (5 \, x\right )} - 10 \, e^{\left (4 \, x\right )} - 4 i \, e^{\left (3 \, x\right )} - 4 \, e^{\left (2 \, x\right )} - 4 i \, e^{x} + 1\right )} \log \left (e^{x} + i\right ) - 3 \, {\left (e^{\left (8 \, x\right )} + 4 i \, e^{\left (7 \, x\right )} - 4 \, e^{\left (6 \, x\right )} + 4 i \, e^{\left (5 \, x\right )} - 10 \, e^{\left (4 \, x\right )} - 4 i \, e^{\left (3 \, x\right )} - 4 \, e^{\left (2 \, x\right )} - 4 i \, e^{x} + 1\right )} \log \left (e^{x} - i\right ) - 6 i \, e^{\left (7 \, x\right )} - 24 \, e^{\left (6 \, x\right )} - 38 i \, e^{\left (5 \, x\right )} + 80 \, e^{\left (4 \, x\right )} + 38 i \, e^{\left (3 \, x\right )} - 24 \, e^{\left (2 \, x\right )} + 6 i \, e^{x}}{24 \, {\left (e^{\left (8 \, x\right )} + 4 i \, e^{\left (7 \, x\right )} - 4 \, e^{\left (6 \, x\right )} + 4 i \, e^{\left (5 \, x\right )} - 10 \, e^{\left (4 \, x\right )} - 4 i \, e^{\left (3 \, x\right )} - 4 \, e^{\left (2 \, x\right )} - 4 i \, e^{x} + 1\right )}} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 129 vs. \(2 (49) = 98\).
Time = 0.13 (sec) , antiderivative size = 129, normalized size of antiderivative = 1.95 \[ \int \frac {\tanh ^3(x)}{(i+\sinh (x))^2} \, dx=\frac {- 3 i e^{7 x} - 12 e^{6 x} - 19 i e^{5 x} + 40 e^{4 x} + 19 i e^{3 x} - 12 e^{2 x} + 3 i e^{x}}{12 e^{8 x} + 48 i e^{7 x} - 48 e^{6 x} + 48 i e^{5 x} - 120 e^{4 x} - 48 i e^{3 x} - 48 e^{2 x} - 48 i e^{x} + 12} - \frac {\log {\left (e^{x} - i \right )}}{8} + \frac {\log {\left (e^{x} + i \right )}}{8} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 115 vs. \(2 (38) = 76\).
Time = 0.20 (sec) , antiderivative size = 115, normalized size of antiderivative = 1.74 \[ \int \frac {\tanh ^3(x)}{(i+\sinh (x))^2} \, dx=\frac {-3 i \, e^{\left (-x\right )} - 12 \, e^{\left (-2 \, x\right )} - 19 i \, e^{\left (-3 \, x\right )} + 40 \, e^{\left (-4 \, x\right )} + 19 i \, e^{\left (-5 \, x\right )} - 12 \, e^{\left (-6 \, x\right )} + 3 i \, e^{\left (-7 \, x\right )}}{48 i \, e^{\left (-x\right )} - 48 \, e^{\left (-2 \, x\right )} + 48 i \, e^{\left (-3 \, x\right )} - 120 \, e^{\left (-4 \, x\right )} - 48 i \, e^{\left (-5 \, x\right )} - 48 \, e^{\left (-6 \, x\right )} - 48 i \, e^{\left (-7 \, x\right )} + 12 \, e^{\left (-8 \, x\right )} + 12} - \frac {1}{8} \, \log \left (e^{\left (-x\right )} + i\right ) + \frac {1}{8} \, \log \left (e^{\left (-x\right )} - i\right ) \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 102 vs. \(2 (38) = 76\).
Time = 0.26 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.55 \[ \int \frac {\tanh ^3(x)}{(i+\sinh (x))^2} \, dx=\frac {e^{\left (-x\right )} - e^{x}}{16 \, {\left (e^{\left (-x\right )} - e^{x} + 2 i\right )}} - \frac {11 \, {\left (e^{\left (-x\right )} - e^{x}\right )}^{3} - 102 i \, {\left (e^{\left (-x\right )} - e^{x}\right )}^{2} - 180 \, e^{\left (-x\right )} + 180 \, e^{x} + 104 i}{96 \, {\left (e^{\left (-x\right )} - e^{x} - 2 i\right )}^{3}} + \frac {1}{16} \, \log \left (-e^{\left (-x\right )} + e^{x} + 2 i\right ) - \frac {1}{16} \, \log \left (-e^{\left (-x\right )} + e^{x} - 2 i\right ) \]
[In]
[Out]
Time = 2.28 (sec) , antiderivative size = 209, normalized size of antiderivative = 3.17 \[ \int \frac {\tanh ^3(x)}{(i+\sinh (x))^2} \, dx=\frac {\ln \left (-\frac {1}{4}+\frac {{\mathrm {e}}^x\,1{}\mathrm {i}}{4}\right )}{8}-\frac {\ln \left (\frac {1}{4}+\frac {{\mathrm {e}}^x\,1{}\mathrm {i}}{4}\right )}{8}-\frac {2{}\mathrm {i}}{{\mathrm {e}}^{5\,x}-10\,{\mathrm {e}}^{3\,x}+{\mathrm {e}}^{4\,x}\,5{}\mathrm {i}-{\mathrm {e}}^{2\,x}\,10{}\mathrm {i}+5\,{\mathrm {e}}^x+1{}\mathrm {i}}-\frac {11}{8\,\left ({\mathrm {e}}^{2\,x}-1+{\mathrm {e}}^x\,2{}\mathrm {i}\right )}+\frac {3}{{\mathrm {e}}^{4\,x}-6\,{\mathrm {e}}^{2\,x}+1+{\mathrm {e}}^{3\,x}\,4{}\mathrm {i}-{\mathrm {e}}^x\,4{}\mathrm {i}}+\frac {1}{8\,\left (1-{\mathrm {e}}^{2\,x}+{\mathrm {e}}^x\,2{}\mathrm {i}\right )}+\frac {1{}\mathrm {i}}{8\,\left ({\mathrm {e}}^x-\mathrm {i}\right )}-\frac {3{}\mathrm {i}}{8\,\left ({\mathrm {e}}^x+1{}\mathrm {i}\right )}-\frac {2}{3\,\left (15\,{\mathrm {e}}^{2\,x}-15\,{\mathrm {e}}^{4\,x}+{\mathrm {e}}^{6\,x}-1-{\mathrm {e}}^{3\,x}\,20{}\mathrm {i}+{\mathrm {e}}^{5\,x}\,6{}\mathrm {i}+{\mathrm {e}}^x\,6{}\mathrm {i}\right )}+\frac {8{}\mathrm {i}}{3\,\left ({\mathrm {e}}^{2\,x}\,3{}\mathrm {i}+{\mathrm {e}}^{3\,x}-3\,{\mathrm {e}}^x-\mathrm {i}\right )} \]
[In]
[Out]