Optimal. Leaf size=216 \[ \frac {1}{4} x^2 \log \left (1-\frac {b f^{c+d x}}{1-a}\right )-\frac {1}{4} x^2 \log \left (1+\frac {b f^{c+d x}}{1+a}\right )-\frac {1}{4} x^2 \log \left (1-\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} x^2 \log \left (1+\frac {1}{a+b f^{c+d x}}\right )+\frac {x \text {PolyLog}\left (2,\frac {b f^{c+d x}}{1-a}\right )}{2 d \log (f)}-\frac {x \text {PolyLog}\left (2,-\frac {b f^{c+d x}}{1+a}\right )}{2 d \log (f)}-\frac {\text {PolyLog}\left (3,\frac {b f^{c+d x}}{1-a}\right )}{2 d^2 \log ^2(f)}+\frac {\text {PolyLog}\left (3,-\frac {b f^{c+d x}}{1+a}\right )}{2 d^2 \log ^2(f)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.89, antiderivative size = 216, normalized size of antiderivative = 1.00, number of steps
used = 25, number of rules used = 8, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.571, Rules used = {6349, 2631,
12, 6874, 2221, 2611, 2320, 6724} \begin {gather*} -\frac {\text {Li}_3\left (\frac {b f^{c+d x}}{1-a}\right )}{2 d^2 \log ^2(f)}+\frac {\text {Li}_3\left (-\frac {b f^{c+d x}}{a+1}\right )}{2 d^2 \log ^2(f)}+\frac {x \text {Li}_2\left (\frac {b f^{c+d x}}{1-a}\right )}{2 d \log (f)}-\frac {x \text {Li}_2\left (-\frac {b f^{c+d x}}{a+1}\right )}{2 d \log (f)}+\frac {1}{4} x^2 \log \left (1-\frac {b f^{c+d x}}{1-a}\right )-\frac {1}{4} x^2 \log \left (\frac {b f^{c+d x}}{a+1}+1\right )-\frac {1}{4} x^2 \log \left (1-\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} x^2 \log \left (\frac {1}{a+b f^{c+d x}}+1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2221
Rule 2320
Rule 2611
Rule 2631
Rule 6349
Rule 6724
Rule 6874
Rubi steps
\begin {align*} \int x \coth ^{-1}\left (a+b f^{c+d x}\right ) \, dx &=-\left (\frac {1}{2} \int x \log \left (1-\frac {1}{a+b f^{c+d x}}\right ) \, dx\right )+\frac {1}{2} \int x \log \left (1+\frac {1}{a+b f^{c+d x}}\right ) \, dx\\ &=-\frac {1}{4} x^2 \log \left (1-\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} x^2 \log \left (1+\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} \int \frac {b d f^{c+d x} x^2 \log (f)}{\left (-1+a+b f^{c+d x}\right ) \left (a+b f^{c+d x}\right )} \, dx-\frac {1}{4} \int \frac {b d f^{c+d x} x^2 \log (f)}{\left (-a-b f^{c+d x}\right ) \left (1+a+b f^{c+d x}\right )} \, dx\\ &=-\frac {1}{4} x^2 \log \left (1-\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} x^2 \log \left (1+\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} (b d \log (f)) \int \frac {f^{c+d x} x^2}{\left (-1+a+b f^{c+d x}\right ) \left (a+b f^{c+d x}\right )} \, dx-\frac {1}{4} (b d \log (f)) \int \frac {f^{c+d x} x^2}{\left (-a-b f^{c+d x}\right ) \left (1+a+b f^{c+d x}\right )} \, dx\\ &=-\frac {1}{4} x^2 \log \left (1-\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} x^2 \log \left (1+\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} (b d \log (f)) \int \left (\frac {f^{c+d x} x^2}{-a-b f^{c+d x}}+\frac {f^{c+d x} x^2}{-1+a+b f^{c+d x}}\right ) \, dx-\frac {1}{4} (b d \log (f)) \int \left (\frac {f^{c+d x} x^2}{-a-b f^{c+d x}}+\frac {f^{c+d x} x^2}{1+a+b f^{c+d x}}\right ) \, dx\\ &=-\frac {1}{4} x^2 \log \left (1-\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} x^2 \log \left (1+\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} (b d \log (f)) \int \frac {f^{c+d x} x^2}{-1+a+b f^{c+d x}} \, dx-\frac {1}{4} (b d \log (f)) \int \frac {f^{c+d x} x^2}{1+a+b f^{c+d x}} \, dx\\ &=\frac {1}{4} x^2 \log \left (1-\frac {b f^{c+d x}}{1-a}\right )-\frac {1}{4} x^2 \log \left (1+\frac {b f^{c+d x}}{1+a}\right )-\frac {1}{4} x^2 \log \left (1-\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} x^2 \log \left (1+\frac {1}{a+b f^{c+d x}}\right )-\frac {1}{2} \int x \log \left (1+\frac {b f^{c+d x}}{-1+a}\right ) \, dx+\frac {1}{2} \int x \log \left (1+\frac {b f^{c+d x}}{1+a}\right ) \, dx\\ &=\frac {1}{4} x^2 \log \left (1-\frac {b f^{c+d x}}{1-a}\right )-\frac {1}{4} x^2 \log \left (1+\frac {b f^{c+d x}}{1+a}\right )-\frac {1}{4} x^2 \log \left (1-\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} x^2 \log \left (1+\frac {1}{a+b f^{c+d x}}\right )+\frac {x \text {Li}_2\left (\frac {b f^{c+d x}}{1-a}\right )}{2 d \log (f)}-\frac {x \text {Li}_2\left (-\frac {b f^{c+d x}}{1+a}\right )}{2 d \log (f)}-\frac {\int \text {Li}_2\left (-\frac {b f^{c+d x}}{-1+a}\right ) \, dx}{2 d \log (f)}+\frac {\int \text {Li}_2\left (-\frac {b f^{c+d x}}{1+a}\right ) \, dx}{2 d \log (f)}\\ &=\frac {1}{4} x^2 \log \left (1-\frac {b f^{c+d x}}{1-a}\right )-\frac {1}{4} x^2 \log \left (1+\frac {b f^{c+d x}}{1+a}\right )-\frac {1}{4} x^2 \log \left (1-\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} x^2 \log \left (1+\frac {1}{a+b f^{c+d x}}\right )+\frac {x \text {Li}_2\left (\frac {b f^{c+d x}}{1-a}\right )}{2 d \log (f)}-\frac {x \text {Li}_2\left (-\frac {b f^{c+d x}}{1+a}\right )}{2 d \log (f)}-\frac {\text {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {b x}{-1+a}\right )}{x} \, dx,x,f^{c+d x}\right )}{2 d^2 \log ^2(f)}+\frac {\text {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {b x}{1+a}\right )}{x} \, dx,x,f^{c+d x}\right )}{2 d^2 \log ^2(f)}\\ &=\frac {1}{4} x^2 \log \left (1-\frac {b f^{c+d x}}{1-a}\right )-\frac {1}{4} x^2 \log \left (1+\frac {b f^{c+d x}}{1+a}\right )-\frac {1}{4} x^2 \log \left (1-\frac {1}{a+b f^{c+d x}}\right )+\frac {1}{4} x^2 \log \left (1+\frac {1}{a+b f^{c+d x}}\right )+\frac {x \text {Li}_2\left (\frac {b f^{c+d x}}{1-a}\right )}{2 d \log (f)}-\frac {x \text {Li}_2\left (-\frac {b f^{c+d x}}{1+a}\right )}{2 d \log (f)}-\frac {\text {Li}_3\left (\frac {b f^{c+d x}}{1-a}\right )}{2 d^2 \log ^2(f)}+\frac {\text {Li}_3\left (-\frac {b f^{c+d x}}{1+a}\right )}{2 d^2 \log ^2(f)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 177, normalized size = 0.82 \begin {gather*} \frac {2 d^2 x^2 \coth ^{-1}\left (a+b f^{c+d x}\right ) \log ^2(f)+d^2 x^2 \log ^2(f) \log \left (1+\frac {b f^{c+d x}}{-1+a}\right )-d^2 x^2 \log ^2(f) \log \left (1+\frac {b f^{c+d x}}{1+a}\right )+2 d x \log (f) \text {PolyLog}\left (2,-\frac {b f^{c+d x}}{-1+a}\right )-2 d x \log (f) \text {PolyLog}\left (2,-\frac {b f^{c+d x}}{1+a}\right )-2 \text {PolyLog}\left (3,-\frac {b f^{c+d x}}{-1+a}\right )+2 \text {PolyLog}\left (3,-\frac {b f^{c+d x}}{1+a}\right )}{4 d^2 \log ^2(f)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(589\) vs.
\(2(200)=400\).
time = 0.07, size = 590, normalized size = 2.73
method | result | size |
risch | \(-\frac {x^{2} \ln \left (a +b \,f^{d x +c}-1\right )}{4}+\frac {x^{2} \ln \left (1+a +b \,f^{d x +c}\right )}{4}-\frac {\ln \left (1-\frac {b \,f^{d x} f^{c}}{-a -1}\right ) x^{2}}{4}-\frac {\ln \left (1-\frac {b \,f^{d x} f^{c}}{-a -1}\right ) x c}{2 d}-\frac {\ln \left (1-\frac {b \,f^{d x} f^{c}}{-a -1}\right ) c^{2}}{4 d^{2}}-\frac {\polylog \left (2, \frac {b \,f^{d x} f^{c}}{-a -1}\right ) x}{2 \ln \left (f \right ) d}-\frac {\polylog \left (2, \frac {b \,f^{d x} f^{c}}{-a -1}\right ) c}{2 \ln \left (f \right ) d^{2}}+\frac {\polylog \left (3, \frac {b \,f^{d x} f^{c}}{-a -1}\right )}{2 \ln \left (f \right )^{2} d^{2}}-\frac {c^{2} \ln \left (1+a +b \,f^{d x} f^{c}\right )}{4 d^{2}}+\frac {c \dilog \left (\frac {1+a +b \,f^{d x} f^{c}}{1+a}\right )}{2 \ln \left (f \right ) d^{2}}+\frac {c \ln \left (\frac {1+a +b \,f^{d x} f^{c}}{1+a}\right ) x}{2 d}+\frac {c^{2} \ln \left (\frac {1+a +b \,f^{d x} f^{c}}{1+a}\right )}{2 d^{2}}+\frac {\ln \left (1-\frac {b \,f^{d x} f^{c}}{1-a}\right ) x^{2}}{4}+\frac {\ln \left (1-\frac {b \,f^{d x} f^{c}}{1-a}\right ) x c}{2 d}+\frac {\ln \left (1-\frac {b \,f^{d x} f^{c}}{1-a}\right ) c^{2}}{4 d^{2}}+\frac {\polylog \left (2, \frac {b \,f^{d x} f^{c}}{1-a}\right ) x}{2 \ln \left (f \right ) d}+\frac {\polylog \left (2, \frac {b \,f^{d x} f^{c}}{1-a}\right ) c}{2 \ln \left (f \right ) d^{2}}-\frac {\polylog \left (3, \frac {b \,f^{d x} f^{c}}{1-a}\right )}{2 \ln \left (f \right )^{2} d^{2}}+\frac {c^{2} \ln \left (b \,f^{d x} f^{c}+a -1\right )}{4 d^{2}}-\frac {c \dilog \left (\frac {b \,f^{d x} f^{c}+a -1}{-1+a}\right )}{2 \ln \left (f \right ) d^{2}}-\frac {c \ln \left (\frac {b \,f^{d x} f^{c}+a -1}{-1+a}\right ) x}{2 d}-\frac {c^{2} \ln \left (\frac {b \,f^{d x} f^{c}+a -1}{-1+a}\right )}{2 d^{2}}\) | \(590\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 194, normalized size = 0.90 \begin {gather*} -\frac {1}{4} \, b d {\left (\frac {d^{2} x^{2} \log \left (\frac {b f^{d x} f^{c}}{a + 1} + 1\right ) \log \left (f\right )^{2} + 2 \, d x {\rm Li}_2\left (-\frac {b f^{d x} f^{c}}{a + 1}\right ) \log \left (f\right ) - 2 \, {\rm Li}_{3}(-\frac {b f^{d x} f^{c}}{a + 1})}{b d^{3} \log \left (f\right )^{3}} - \frac {d^{2} x^{2} \log \left (\frac {b f^{d x} f^{c}}{a - 1} + 1\right ) \log \left (f\right )^{2} + 2 \, d x {\rm Li}_2\left (-\frac {b f^{d x} f^{c}}{a - 1}\right ) \log \left (f\right ) - 2 \, {\rm Li}_{3}(-\frac {b f^{d x} f^{c}}{a - 1})}{b d^{3} \log \left (f\right )^{3}}\right )} \log \left (f\right ) + \frac {1}{2} \, x^{2} \operatorname {arcoth}\left (b f^{d x + c} + a\right ) \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. 395 vs.
\(2 (193) = 386\).
time = 0.35, size = 395, normalized size = 1.83 \begin {gather*} \frac {d^{2} x^{2} \log \left (f\right )^{2} \log \left (\frac {b \cosh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + b \sinh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + a + 1}{b \cosh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + b \sinh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + a - 1}\right ) - c^{2} \log \left (b \cosh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + b \sinh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + a + 1\right ) \log \left (f\right )^{2} + c^{2} \log \left (b \cosh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + b \sinh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + a - 1\right ) \log \left (f\right )^{2} - 2 \, d x {\rm Li}_2\left (-\frac {b \cosh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + b \sinh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + a + 1}{a + 1} + 1\right ) \log \left (f\right ) + 2 \, d x {\rm Li}_2\left (-\frac {b \cosh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + b \sinh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + a - 1}{a - 1} + 1\right ) \log \left (f\right ) - {\left (d^{2} x^{2} - c^{2}\right )} \log \left (f\right )^{2} \log \left (\frac {b \cosh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + b \sinh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + a + 1}{a + 1}\right ) + {\left (d^{2} x^{2} - c^{2}\right )} \log \left (f\right )^{2} \log \left (\frac {b \cosh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + b \sinh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + a - 1}{a - 1}\right ) + 2 \, {\rm polylog}\left (3, -\frac {b \cosh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + b \sinh \left ({\left (d x + c\right )} \log \left (f\right )\right )}{a + 1}\right ) - 2 \, {\rm polylog}\left (3, -\frac {b \cosh \left ({\left (d x + c\right )} \log \left (f\right )\right ) + b \sinh \left ({\left (d x + c\right )} \log \left (f\right )\right )}{a - 1}\right )}{4 \, d^{2} \log \left (f\right )^{2}} \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 x \operatorname {acoth}{\left (a + b f^{c} f^{d x} \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int x\,\mathrm {acoth}\left (a+b\,f^{c+d\,x}\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________