Optimal. Leaf size=92 \[ \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} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 92, normalized size of antiderivative = 1.00, 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 = {2199, 2190,
2189, 2188, 29} \begin {gather*} \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 {6 x \left (b x-\coth ^{-1}(\tanh (a+b x))\right )}{b^4}-\frac {2 x^3}{b^2 \coth ^{-1}(\tanh (a+b x))}-\frac {x^4}{2 b \coth ^{-1}(\tanh (a+b x))^2}+\frac {3 x^2}{b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 2188
Rule 2189
Rule 2190
Rule 2199
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 ) \text {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.03, size = 114, normalized size = 1.24 \begin {gather*} \frac {x^2}{2 b^3}-\frac {3 x \left (-b x+\coth ^{-1}(\tanh (a+b x))\right )}{b^4}+\frac {4 \left (-b x+\coth ^{-1}(\tanh (a+b x))\right )^3}{b^5 \coth ^{-1}(\tanh (a+b x))}-\frac {\left (-b x+\coth ^{-1}(\tanh (a+b x))\right )^4}{2 b^5 \coth ^{-1}(\tanh (a+b x))^2}+\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 {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 1.45, size = 29456, normalized size = 320.17
method | result | size |
risch | \(\text {Expression too large to display}\) | \(29456\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains complex when optimal does not.
time = 0.88, size = 198, normalized size = 2.15 \begin {gather*} \frac {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} - 32 \, {\left (-i \, \pi b^{3} + 2 \, a b^{3}\right )} x^{3} + 44 \, {\left (\pi ^{2} b^{2} + 4 i \, \pi a b^{2} - 4 \, a^{2} b^{2}\right )} x^{2} - 4 \, {\left (-i \, \pi ^{3} b + 6 \, \pi ^{2} a b + 12 i \, \pi a^{2} b - 8 \, a^{3} b\right )} x}{8 \, {\left (4 \, b^{7} x^{2} - \pi ^{2} b^{5} - 4 i \, \pi a b^{5} + 4 \, a^{2} b^{5} - 4 \, {\left (i \, \pi b^{6} - 2 \, a b^{6}\right )} x\right )}} - \frac {3 \, {\left (\pi ^{2} + 4 i \, \pi a - 4 \, a^{2}\right )} \log \left (-i \, \pi + 2 \, b x + 2 \, a\right )}{2 \, b^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 493 vs.
\(2 (90) = 180\).
time = 0.37, size = 493, normalized size = 5.36 \begin {gather*} \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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{4}}{\operatorname {acoth}^{3}{\left (\tanh {\left (a + b x \right )} \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 0.42, size = 163, normalized size = 1.77 \begin {gather*} -\frac {16 \, \pi ^{3} b x - 96 i \, \pi ^{2} a b x - 192 \, \pi a^{2} b x + 128 i \, a^{3} b x + 7 i \, \pi ^{4} + 56 \, \pi ^{3} a - 168 i \, \pi ^{2} a^{2} - 224 \, \pi a^{3} + 112 i \, a^{4}}{-32 i \, b^{7} x^{2} + 32 \, \pi b^{6} x - 64 i \, a b^{6} x + 8 i \, \pi ^{2} b^{5} + 32 \, \pi a b^{5} - 32 i \, a^{2} b^{5}} + \frac {x^{2}}{2 \, b^{3}} - \frac {3 \, {\left (i \, \pi + 2 \, a\right )} x}{2 \, b^{4}} - \frac {3 \, {\left (\pi ^{2} - 4 i \, \pi a - 4 \, a^{2}\right )} \log \left (i \, \pi + 2 \, b x + 2 \, a\right )}{2 \, b^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.38, size = 867, normalized size = 9.42 \begin {gather*} \frac {\frac {7\,\left ({\left (2\,a-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )}^4+24\,a^2\,{\left (2\,a-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )}^2+16\,a^4-8\,a\,{\left (2\,a-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )}^3-32\,a^3\,\left (2\,a-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )\right )}{4\,b}-x\,\left (4\,{\left (2\,a-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )}^3-32\,a^3-24\,a\,{\left (2\,a-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )}^2+48\,a^2\,\left (2\,a-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )\right )}{2\,b^4\,{\left (2\,a-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )}^2+x\,\left (16\,a\,b^5-8\,b^5\,\left (2\,a-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )\right )+8\,a^2\,b^4+8\,b^6\,x^2-8\,a\,b^4\,\left (2\,a-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )}+\frac {x^2}{2\,b^3}+\frac {\ln \left (\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )-\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )\right )\,\left (3\,{\left (2\,a-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )}^2-12\,a\,\left (2\,a-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )+12\,a^2\right )}{2\,b^5}+\frac {3\,x\,\left (\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )}{2\,b^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________