Integrand size = 19, antiderivative size = 133 \[ \int x^3 \tanh ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\frac {1}{4} \left (1+\frac {4}{b d n}\right ) x^4+\frac {x^4 \left (1-e^{2 a d} \left (c x^n\right )^{2 b d}\right )}{b d n \left (1+e^{2 a d} \left (c x^n\right )^{2 b d}\right )}-\frac {2 x^4 \operatorname {Hypergeometric2F1}\left (1,\frac {2}{b d n},1+\frac {2}{b d n},-e^{2 a d} \left (c x^n\right )^{2 b d}\right )}{b d n} \]
[Out]
Time = 0.13 (sec) , antiderivative size = 133, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.263, Rules used = {5658, 5656, 516, 470, 371} \[ \int x^3 \tanh ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=-\frac {2 x^4 \operatorname {Hypergeometric2F1}\left (1,\frac {2}{b d n},1+\frac {2}{b d n},-e^{2 a d} \left (c x^n\right )^{2 b d}\right )}{b d n}+\frac {x^4 \left (1-e^{2 a d} \left (c x^n\right )^{2 b d}\right )}{b d n \left (e^{2 a d} \left (c x^n\right )^{2 b d}+1\right )}+\frac {1}{4} x^4 \left (\frac {4}{b d n}+1\right ) \]
[In]
[Out]
Rule 371
Rule 470
Rule 516
Rule 5656
Rule 5658
Rubi steps \begin{align*} \text {integral}& = \frac {\left (x^4 \left (c x^n\right )^{-4/n}\right ) \text {Subst}\left (\int x^{-1+\frac {4}{n}} \tanh ^2(d (a+b \log (x))) \, dx,x,c x^n\right )}{n} \\ & = \frac {\left (x^4 \left (c x^n\right )^{-4/n}\right ) \text {Subst}\left (\int \frac {x^{-1+\frac {4}{n}} \left (-1+e^{2 a d} x^{2 b d}\right )^2}{\left (1+e^{2 a d} x^{2 b d}\right )^2} \, dx,x,c x^n\right )}{n} \\ & = \frac {x^4 \left (1-e^{2 a d} \left (c x^n\right )^{2 b d}\right )}{b d n \left (1+e^{2 a d} \left (c x^n\right )^{2 b d}\right )}-\frac {\left (e^{-2 a d} x^4 \left (c x^n\right )^{-4/n}\right ) \text {Subst}\left (\int \frac {x^{-1+\frac {4}{n}} \left (\frac {2 e^{2 a d} (4-b d n)}{n}-\frac {2 e^{4 a d} (4+b d n) x^{2 b d}}{n}\right )}{1+e^{2 a d} x^{2 b d}} \, dx,x,c x^n\right )}{2 b d n} \\ & = \frac {1}{4} \left (1+\frac {4}{b d n}\right ) x^4+\frac {x^4 \left (1-e^{2 a d} \left (c x^n\right )^{2 b d}\right )}{b d n \left (1+e^{2 a d} \left (c x^n\right )^{2 b d}\right )}-\frac {\left (8 x^4 \left (c x^n\right )^{-4/n}\right ) \text {Subst}\left (\int \frac {x^{-1+\frac {4}{n}}}{1+e^{2 a d} x^{2 b d}} \, dx,x,c x^n\right )}{b d n^2} \\ & = \frac {1}{4} \left (1+\frac {4}{b d n}\right ) x^4+\frac {x^4 \left (1-e^{2 a d} \left (c x^n\right )^{2 b d}\right )}{b d n \left (1+e^{2 a d} \left (c x^n\right )^{2 b d}\right )}-\frac {2 x^4 \operatorname {Hypergeometric2F1}\left (1,\frac {2}{b d n},1+\frac {2}{b d n},-e^{2 a d} \left (c x^n\right )^{2 b d}\right )}{b d n} \\ \end{align*}
Time = 8.36 (sec) , antiderivative size = 159, normalized size of antiderivative = 1.20 \[ \int x^3 \tanh ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\frac {x^4 \left (8 e^{2 d \left (a+b \log \left (c x^n\right )\right )} \operatorname {Hypergeometric2F1}\left (1,1+\frac {2}{b d n},2+\frac {2}{b d n},-e^{2 d \left (a+b \log \left (c x^n\right )\right )}\right )+(2+b d n) \left (b d n-4 \operatorname {Hypergeometric2F1}\left (1,\frac {2}{b d n},1+\frac {2}{b d n},-e^{2 d \left (a+b \log \left (c x^n\right )\right )}\right )-4 \tanh \left (d \left (a+b \log \left (c x^n\right )\right )\right )\right )\right )}{4 b d n (2+b d n)} \]
[In]
[Out]
\[\int x^{3} {\tanh \left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )}^{2}d x\]
[In]
[Out]
\[ \int x^3 \tanh ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int { x^{3} \tanh \left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right )^{2} \,d x } \]
[In]
[Out]
Timed out. \[ \int x^3 \tanh ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int x^3 \tanh ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int { x^{3} \tanh \left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right )^{2} \,d x } \]
[In]
[Out]
\[ \int x^3 \tanh ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int { x^{3} \tanh \left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right )^{2} \,d x } \]
[In]
[Out]
Timed out. \[ \int x^3 \tanh ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int x^3\,{\mathrm {tanh}\left (d\,\left (a+b\,\ln \left (c\,x^n\right )\right )\right )}^2 \,d x \]
[In]
[Out]