Optimal. Leaf size=98 \[ \frac {b^2 \tanh ^{-1}(\tanh (a+b x))^5}{105 x^5 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^3}+\frac {b \tanh ^{-1}(\tanh (a+b x))^5}{21 x^6 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^2}+\frac {\tanh ^{-1}(\tanh (a+b x))^5}{7 x^7 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 98, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2202, 2198}
\begin {gather*} \frac {b^2 \tanh ^{-1}(\tanh (a+b x))^5}{105 x^5 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^3}+\frac {\tanh ^{-1}(\tanh (a+b x))^5}{7 x^7 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )}+\frac {b \tanh ^{-1}(\tanh (a+b x))^5}{21 x^6 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2198
Rule 2202
Rubi steps
\begin {align*} \int \frac {\tanh ^{-1}(\tanh (a+b x))^4}{x^8} \, dx &=\frac {\tanh ^{-1}(\tanh (a+b x))^5}{7 x^7 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )}+\frac {(2 b) \int \frac {\tanh ^{-1}(\tanh (a+b x))^4}{x^7} \, dx}{7 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )}\\ &=\frac {b \tanh ^{-1}(\tanh (a+b x))^5}{21 x^6 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^2}+\frac {\tanh ^{-1}(\tanh (a+b x))^5}{7 x^7 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )}+\frac {b^2 \int \frac {\tanh ^{-1}(\tanh (a+b x))^4}{x^6} \, dx}{21 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^2}\\ &=\frac {b^2 \tanh ^{-1}(\tanh (a+b x))^5}{105 x^5 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^3}+\frac {b \tanh ^{-1}(\tanh (a+b x))^5}{21 x^6 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^2}+\frac {\tanh ^{-1}(\tanh (a+b x))^5}{7 x^7 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 71, normalized size = 0.72 \begin {gather*} -\frac {b^4 x^4+3 b^3 x^3 \tanh ^{-1}(\tanh (a+b x))+6 b^2 x^2 \tanh ^{-1}(\tanh (a+b x))^2+10 b x \tanh ^{-1}(\tanh (a+b x))^3+15 \tanh ^{-1}(\tanh (a+b x))^4}{105 x^7} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 3.01, size = 74, normalized size = 0.76
method | result | size |
default | \(-\frac {\arctanh \left (\tanh \left (b x +a \right )\right )^{4}}{7 x^{7}}+\frac {4 b \left (-\frac {\arctanh \left (\tanh \left (b x +a \right )\right )^{3}}{6 x^{6}}+\frac {b \left (-\frac {\arctanh \left (\tanh \left (b x +a \right )\right )^{2}}{5 x^{5}}+\frac {2 b \left (-\frac {\arctanh \left (\tanh \left (b x +a \right )\right )}{4 x^{4}}-\frac {b}{12 x^{3}}\right )}{5}\right )}{2}\right )}{7}\) | \(74\) |
risch | \(\text {Expression too large to display}\) | \(22625\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.43, size = 72, normalized size = 0.73 \begin {gather*} -\frac {1}{105} \, {\left (b {\left (\frac {b^{2}}{x^{3}} + \frac {3 \, b \operatorname {artanh}\left (\tanh \left (b x + a\right )\right )}{x^{4}}\right )} + \frac {6 \, b \operatorname {artanh}\left (\tanh \left (b x + a\right )\right )^{2}}{x^{5}}\right )} b - \frac {2 \, b \operatorname {artanh}\left (\tanh \left (b x + a\right )\right )^{3}}{21 \, x^{6}} - \frac {\operatorname {artanh}\left (\tanh \left (b x + a\right )\right )^{4}}{7 \, x^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.31, size = 46, normalized size = 0.47 \begin {gather*} -\frac {35 \, b^{4} x^{4} + 105 \, a b^{3} x^{3} + 126 \, a^{2} b^{2} x^{2} + 70 \, a^{3} b x + 15 \, a^{4}}{105 \, x^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.16, size = 80, normalized size = 0.82 \begin {gather*} - \frac {b^{4}}{105 x^{3}} - \frac {b^{3} \operatorname {atanh}{\left (\tanh {\left (a + b x \right )} \right )}}{35 x^{4}} - \frac {2 b^{2} \operatorname {atanh}^{2}{\left (\tanh {\left (a + b x \right )} \right )}}{35 x^{5}} - \frac {2 b \operatorname {atanh}^{3}{\left (\tanh {\left (a + b x \right )} \right )}}{21 x^{6}} - \frac {\operatorname {atanh}^{4}{\left (\tanh {\left (a + b x \right )} \right )}}{7 x^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.39, size = 46, normalized size = 0.47 \begin {gather*} -\frac {35 \, b^{4} x^{4} + 105 \, a b^{3} x^{3} + 126 \, a^{2} b^{2} x^{2} + 70 \, a^{3} b x + 15 \, a^{4}}{105 \, x^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.01, size = 70, normalized size = 0.71 \begin {gather*} -\frac {{\mathrm {atanh}\left (\mathrm {tanh}\left (a+b\,x\right )\right )}^4}{7\,x^7}-\frac {b^4}{105\,x^3}-\frac {2\,b^2\,{\mathrm {atanh}\left (\mathrm {tanh}\left (a+b\,x\right )\right )}^2}{35\,x^5}-\frac {b^3\,\mathrm {atanh}\left (\mathrm {tanh}\left (a+b\,x\right )\right )}{35\,x^4}-\frac {2\,b\,{\mathrm {atanh}\left (\mathrm {tanh}\left (a+b\,x\right )\right )}^3}{21\,x^6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________