Integrand size = 17, antiderivative size = 66 \[ \int \frac {\tanh ^5\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\frac {\log \left (\cosh \left (a+b \log \left (c x^n\right )\right )\right )}{b n}-\frac {\tanh ^2\left (a+b \log \left (c x^n\right )\right )}{2 b n}-\frac {\tanh ^4\left (a+b \log \left (c x^n\right )\right )}{4 b n} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {3554, 3556} \[ \int \frac {\tanh ^5\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=-\frac {\tanh ^4\left (a+b \log \left (c x^n\right )\right )}{4 b n}-\frac {\tanh ^2\left (a+b \log \left (c x^n\right )\right )}{2 b n}+\frac {\log \left (\cosh \left (a+b \log \left (c x^n\right )\right )\right )}{b n} \]
[In]
[Out]
Rule 3554
Rule 3556
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \tanh ^5(a+b x) \, dx,x,\log \left (c x^n\right )\right )}{n} \\ & = -\frac {\tanh ^4\left (a+b \log \left (c x^n\right )\right )}{4 b n}+\frac {\text {Subst}\left (\int \tanh ^3(a+b x) \, dx,x,\log \left (c x^n\right )\right )}{n} \\ & = -\frac {\tanh ^2\left (a+b \log \left (c x^n\right )\right )}{2 b n}-\frac {\tanh ^4\left (a+b \log \left (c x^n\right )\right )}{4 b n}+\frac {\text {Subst}\left (\int \tanh (a+b x) \, dx,x,\log \left (c x^n\right )\right )}{n} \\ & = \frac {\log \left (\cosh \left (a+b \log \left (c x^n\right )\right )\right )}{b n}-\frac {\tanh ^2\left (a+b \log \left (c x^n\right )\right )}{2 b n}-\frac {\tanh ^4\left (a+b \log \left (c x^n\right )\right )}{4 b n} \\ \end{align*}
Time = 0.21 (sec) , antiderivative size = 55, normalized size of antiderivative = 0.83 \[ \int \frac {\tanh ^5\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\frac {4 \log \left (\cosh \left (a+b \log \left (c x^n\right )\right )\right )-2 \tanh ^2\left (a+b \log \left (c x^n\right )\right )-\tanh ^4\left (a+b \log \left (c x^n\right )\right )}{4 b n} \]
[In]
[Out]
Time = 0.65 (sec) , antiderivative size = 62, normalized size of antiderivative = 0.94
method | result | size |
parallelrisch | \(-\frac {{\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}^{4}+4 \ln \left (x \right ) b n +2 {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}^{2}+4 \ln \left (1-\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )\right )}{4 b n}\) | \(62\) |
derivativedivides | \(\frac {-\frac {{\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}^{4}}{4}-\frac {{\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}^{2}}{2}-\frac {\ln \left (\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )-1\right )}{2}-\frac {\ln \left (\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )+1\right )}{2}}{n b}\) | \(71\) |
default | \(\frac {-\frac {{\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}^{4}}{4}-\frac {{\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}^{2}}{2}-\frac {\ln \left (\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )-1\right )}{2}-\frac {\ln \left (\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )+1\right )}{2}}{n b}\) | \(71\) |
risch | \(\ln \left (x \right )-\frac {2 a}{b n}-\frac {2 \ln \left (c \right )}{n}-\frac {2 \ln \left (x^{n}\right )}{n}-\frac {i \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}}{n}+\frac {i \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )}{n}+\frac {i \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}}{n}-\frac {i \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )}{n}+\frac {4 \left (x^{n}\right )^{2 b} c^{2 b} \left ({\mathrm e}^{3 i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}} {\mathrm e}^{-3 i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{-3 i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{3 i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )} {\mathrm e}^{6 a} \left (x^{n}\right )^{4 b} c^{4 b}+{\mathrm e}^{2 i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}} {\mathrm e}^{-2 i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{-2 i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{2 i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )} {\mathrm e}^{4 a} \left (x^{n}\right )^{2 b} c^{2 b}+{\mathrm e}^{i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}} {\mathrm e}^{-i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{-i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )} {\mathrm e}^{2 a}\right )}{b n {\left (\left (x^{n}\right )^{2 b} c^{2 b} {\mathrm e}^{2 a} {\mathrm e}^{i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}} {\mathrm e}^{-i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{-i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )}+1\right )}^{4}}+\frac {\ln \left (\left (x^{n}\right )^{2 b} c^{2 b} {\mathrm e}^{2 a} {\mathrm e}^{i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}} {\mathrm e}^{-i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{-i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )}+1\right )}{b n}\) | \(657\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 1568 vs. \(2 (62) = 124\).
Time = 0.26 (sec) , antiderivative size = 1568, normalized size of antiderivative = 23.76 \[ \int \frac {\tanh ^5\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\text {Too large to display} \]
[In]
[Out]
Time = 3.84 (sec) , antiderivative size = 87, normalized size of antiderivative = 1.32 \[ \int \frac {\tanh ^5\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\begin {cases} \log {\left (x \right )} \tanh ^{5}{\left (a \right )} & \text {for}\: b = 0 \wedge \left (b = 0 \vee n = 0\right ) \\\log {\left (x \right )} \tanh ^{5}{\left (a + b \log {\left (c \right )} \right )} & \text {for}\: n = 0 \\\frac {\log {\left (c x^{n} \right )}}{n} - \frac {\log {\left (\tanh {\left (a + b \log {\left (c x^{n} \right )} \right )} + 1 \right )}}{b n} - \frac {\tanh ^{4}{\left (a + b \log {\left (c x^{n} \right )} \right )}}{4 b n} - \frac {\tanh ^{2}{\left (a + b \log {\left (c x^{n} \right )} \right )}}{2 b n} & \text {otherwise} \end {cases} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 829 vs. \(2 (62) = 124\).
Time = 0.33 (sec) , antiderivative size = 829, normalized size of antiderivative = 12.56 \[ \int \frac {\tanh ^5\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\text {Too large to display} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 161 vs. \(2 (62) = 124\).
Time = 0.36 (sec) , antiderivative size = 161, normalized size of antiderivative = 2.44 \[ \int \frac {\tanh ^5\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\frac {\log \left (\sqrt {2 \, x^{2 \, b n} {\left | c \right |}^{2 \, b} \cos \left (\pi b \mathrm {sgn}\left (c\right ) - \pi b\right ) e^{\left (2 \, a\right )} + x^{4 \, b n} {\left | c \right |}^{4 \, b} e^{\left (4 \, a\right )} + 1}\right )}{b n} - \frac {25 \, c^{8 \, b} x^{8 \, b n} e^{\left (8 \, a\right )} + 52 \, c^{6 \, b} x^{6 \, b n} e^{\left (6 \, a\right )} + 102 \, c^{4 \, b} x^{4 \, b n} e^{\left (4 \, a\right )} + 52 \, c^{2 \, b} x^{2 \, b n} e^{\left (2 \, a\right )} + 25}{12 \, {\left (c^{2 \, b} x^{2 \, b n} e^{\left (2 \, a\right )} + 1\right )}^{4} b n} - \log \left (x\right ) \]
[In]
[Out]
Time = 1.72 (sec) , antiderivative size = 227, normalized size of antiderivative = 3.44 \[ \int \frac {\tanh ^5\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\frac {8}{b\,n+3\,b\,n\,{\mathrm {e}}^{2\,a}\,{\left (c\,x^n\right )}^{2\,b}+3\,b\,n\,{\mathrm {e}}^{4\,a}\,{\left (c\,x^n\right )}^{4\,b}+b\,n\,{\mathrm {e}}^{6\,a}\,{\left (c\,x^n\right )}^{6\,b}}-\ln \left (x\right )+\frac {4}{b\,n+b\,n\,{\mathrm {e}}^{2\,a}\,{\left (c\,x^n\right )}^{2\,b}}-\frac {4}{b\,n+4\,b\,n\,{\mathrm {e}}^{2\,a}\,{\left (c\,x^n\right )}^{2\,b}+6\,b\,n\,{\mathrm {e}}^{4\,a}\,{\left (c\,x^n\right )}^{4\,b}+4\,b\,n\,{\mathrm {e}}^{6\,a}\,{\left (c\,x^n\right )}^{6\,b}+b\,n\,{\mathrm {e}}^{8\,a}\,{\left (c\,x^n\right )}^{8\,b}}-\frac {8}{b\,n+2\,b\,n\,{\mathrm {e}}^{2\,a}\,{\left (c\,x^n\right )}^{2\,b}+b\,n\,{\mathrm {e}}^{4\,a}\,{\left (c\,x^n\right )}^{4\,b}}+\frac {\ln \left ({\mathrm {e}}^{2\,a}\,{\left (c\,x^n\right )}^{2\,b}+1\right )}{b\,n} \]
[In]
[Out]