Optimal. Leaf size=92 \[ -\frac{2 x^3}{b^2 \coth ^{-1}(\tanh (a+b x))}+\frac{6 x \left (b x-\coth ^{-1}(\tanh (a+b x))\right )}{b^4}+\frac{6 \left (b x-\coth ^{-1}(\tanh (a+b x))\right )^2 \log \left (\coth ^{-1}(\tanh (a+b x))\right )}{b^5}-\frac{x^4}{2 b \coth ^{-1}(\tanh (a+b x))^2}+\frac{3 x^2}{b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0712986, antiderivative size = 92, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.385, Rules used = {2168, 2159, 2158, 2157, 29} \[ -\frac{2 x^3}{b^2 \coth ^{-1}(\tanh (a+b x))}+\frac{6 x \left (b x-\coth ^{-1}(\tanh (a+b x))\right )}{b^4}+\frac{6 \left (b x-\coth ^{-1}(\tanh (a+b x))\right )^2 \log \left (\coth ^{-1}(\tanh (a+b x))\right )}{b^5}-\frac{x^4}{2 b \coth ^{-1}(\tanh (a+b x))^2}+\frac{3 x^2}{b^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2168
Rule 2159
Rule 2158
Rule 2157
Rule 29
Rubi steps
\begin{align*} \int \frac{x^4}{\coth ^{-1}(\tanh (a+b x))^3} \, dx &=-\frac{x^4}{2 b \coth ^{-1}(\tanh (a+b x))^2}+\frac{2 \int \frac{x^3}{\coth ^{-1}(\tanh (a+b x))^2} \, dx}{b}\\ &=-\frac{x^4}{2 b \coth ^{-1}(\tanh (a+b x))^2}-\frac{2 x^3}{b^2 \coth ^{-1}(\tanh (a+b x))}+\frac{6 \int \frac{x^2}{\coth ^{-1}(\tanh (a+b x))} \, dx}{b^2}\\ &=\frac{3 x^2}{b^3}-\frac{x^4}{2 b \coth ^{-1}(\tanh (a+b x))^2}-\frac{2 x^3}{b^2 \coth ^{-1}(\tanh (a+b x))}-\frac{\left (6 \left (-b x+\coth ^{-1}(\tanh (a+b x))\right )\right ) \int \frac{x}{\coth ^{-1}(\tanh (a+b x))} \, dx}{b^3}\\ &=\frac{3 x^2}{b^3}+\frac{6 x \left (b x-\coth ^{-1}(\tanh (a+b x))\right )}{b^4}-\frac{x^4}{2 b \coth ^{-1}(\tanh (a+b x))^2}-\frac{2 x^3}{b^2 \coth ^{-1}(\tanh (a+b x))}+\frac{\left (6 \left (-b x+\coth ^{-1}(\tanh (a+b x))\right )^2\right ) \int \frac{1}{\coth ^{-1}(\tanh (a+b x))} \, dx}{b^4}\\ &=\frac{3 x^2}{b^3}+\frac{6 x \left (b x-\coth ^{-1}(\tanh (a+b x))\right )}{b^4}-\frac{x^4}{2 b \coth ^{-1}(\tanh (a+b x))^2}-\frac{2 x^3}{b^2 \coth ^{-1}(\tanh (a+b x))}+\frac{\left (6 \left (-b x+\coth ^{-1}(\tanh (a+b x))\right )^2\right ) \operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,\coth ^{-1}(\tanh (a+b x))\right )}{b^5}\\ &=\frac{3 x^2}{b^3}+\frac{6 x \left (b x-\coth ^{-1}(\tanh (a+b x))\right )}{b^4}-\frac{x^4}{2 b \coth ^{-1}(\tanh (a+b x))^2}-\frac{2 x^3}{b^2 \coth ^{-1}(\tanh (a+b x))}+\frac{6 \left (b x-\coth ^{-1}(\tanh (a+b x))\right )^2 \log \left (\coth ^{-1}(\tanh (a+b x))\right )}{b^5}\\ \end{align*}
Mathematica [A] time = 0.0418133, size = 114, normalized size = 1.24 \[ -\frac{\left (\coth ^{-1}(\tanh (a+b x))-b x\right )^4}{2 b^5 \coth ^{-1}(\tanh (a+b x))^2}+\frac{4 \left (\coth ^{-1}(\tanh (a+b x))-b x\right )^3}{b^5 \coth ^{-1}(\tanh (a+b x))}-\frac{3 x \left (\coth ^{-1}(\tanh (a+b x))-b x\right )}{b^4}+\frac{6 \left (\coth ^{-1}(\tanh (a+b x))-b x\right )^2 \log \left (\coth ^{-1}(\tanh (a+b x))\right )}{b^5}+\frac{x^2}{2 b^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 1.396, size = 29456, normalized size = 320.2 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 3.54373, size = 266, normalized size = 2.89 \begin{align*} \frac{8 \,{\left (16 \, b^{4} x^{4} + 7 \, \pi ^{4} + 56 i \, \pi ^{3} a - 168 \, \pi ^{2} a^{2} - 224 i \, \pi a^{3} + 112 \, a^{4} +{\left (32 i \, \pi b^{3} - 64 \, a b^{3}\right )} x^{3} +{\left (44 \, \pi ^{2} b^{2} + 176 i \, \pi a b^{2} - 176 \, a^{2} b^{2}\right )} x^{2} +{\left (4 i \, \pi ^{3} b - 24 \, \pi ^{2} a b - 48 i \, \pi a^{2} b + 32 \, a^{3} b\right )} x\right )}}{256 \, b^{7} x^{2} - 64 \, \pi ^{2} b^{5} - 256 i \, \pi a b^{5} + 256 \, a^{2} b^{5} +{\left (-256 i \, \pi b^{6} + 512 \, a b^{6}\right )} x} - \frac{{\left (3 \, \pi ^{2} + 12 i \, \pi a - 12 \, a^{2}\right )} \log \left (-i \, \pi + 2 \, b x + 2 \, a\right )}{2 \, b^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.79415, size = 1100, normalized size = 11.96 \begin{align*} \frac{64 \, b^{6} x^{6} - 128 \, a b^{5} x^{5} - 7 \, \pi ^{6} - 28 \, \pi ^{4} a^{2} + 112 \, \pi ^{2} a^{4} + 448 \, a^{6} + 32 \,{\left (\pi ^{2} b^{4} - 36 \, a^{2} b^{4}\right )} x^{4} - 512 \,{\left (\pi ^{2} a b^{3} + 3 \, a^{3} b^{3}\right )} x^{3} - 32 \,{\left (\pi ^{4} b^{2} + 32 \, \pi ^{2} a^{2} b^{2}\right )} x^{2} - 32 \,{\left (5 \, \pi ^{4} a b + 12 \, \pi ^{2} a^{3} b - 32 \, a^{5} b\right )} x - 96 \,{\left (16 \, \pi a b^{4} x^{4} + 64 \, \pi a^{2} b^{3} x^{3} + \pi ^{5} a + 8 \, \pi ^{3} a^{3} + 16 \, \pi a^{5} + 8 \,{\left (\pi ^{3} a b^{2} + 12 \, \pi a^{3} b^{2}\right )} x^{2} + 16 \,{\left (\pi ^{3} a^{2} b + 4 \, \pi a^{4} b\right )} x\right )} \arctan \left (-\frac{2 \, b x + 2 \, a - \sqrt{4 \, b^{2} x^{2} + 8 \, a b x + \pi ^{2} + 4 \, a^{2}}}{\pi }\right ) - 6 \,{\left (\pi ^{6} + 4 \, \pi ^{4} a^{2} - 16 \, \pi ^{2} a^{4} - 64 \, a^{6} + 16 \,{\left (\pi ^{2} b^{4} - 4 \, a^{2} b^{4}\right )} x^{4} + 64 \,{\left (\pi ^{2} a b^{3} - 4 \, a^{3} b^{3}\right )} x^{3} + 8 \,{\left (\pi ^{4} b^{2} + 8 \, \pi ^{2} a^{2} b^{2} - 48 \, a^{4} b^{2}\right )} x^{2} + 16 \,{\left (\pi ^{4} a b - 16 \, a^{5} b\right )} x\right )} \log \left (4 \, b^{2} x^{2} + 8 \, a b x + \pi ^{2} + 4 \, a^{2}\right )}{8 \,{\left (16 \, b^{9} x^{4} + 64 \, a b^{8} x^{3} + \pi ^{4} b^{5} + 8 \, \pi ^{2} a^{2} b^{5} + 16 \, a^{4} b^{5} + 8 \,{\left (\pi ^{2} b^{7} + 12 \, a^{2} b^{7}\right )} x^{2} + 16 \,{\left (\pi ^{2} a b^{6} + 4 \, a^{3} b^{6}\right )} x\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{4}}{\operatorname{acoth}^{3}{\left (\tanh{\left (a + b x \right )} \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{4}}{\operatorname{arcoth}\left (\tanh \left (b x + a\right )\right )^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]