Optimal. Leaf size=136 \[ -\frac{b d \text{PolyLog}\left (2,-c x^n\right )}{2 n}+\frac{b d \text{PolyLog}\left (2,c x^n\right )}{2 n}-\frac{b e \log \left (f x^m\right ) \text{PolyLog}\left (2,-c x^n\right )}{2 n}+\frac{b e \log \left (f x^m\right ) \text{PolyLog}\left (2,c x^n\right )}{2 n}+\frac{b e m \text{PolyLog}\left (3,-c x^n\right )}{2 n^2}-\frac{b e m \text{PolyLog}\left (3,c x^n\right )}{2 n^2}+a d \log (x)+\frac{a e \log ^2\left (f x^m\right )}{2 m} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.537622, antiderivative size = 136, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 8, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {2301, 6742, 6095, 5912, 6071, 6069, 2374, 6589} \[ -\frac{b d \text{PolyLog}\left (2,-c x^n\right )}{2 n}+\frac{b d \text{PolyLog}\left (2,c x^n\right )}{2 n}-\frac{b e \log \left (f x^m\right ) \text{PolyLog}\left (2,-c x^n\right )}{2 n}+\frac{b e \log \left (f x^m\right ) \text{PolyLog}\left (2,c x^n\right )}{2 n}+\frac{b e m \text{PolyLog}\left (3,-c x^n\right )}{2 n^2}-\frac{b e m \text{PolyLog}\left (3,c x^n\right )}{2 n^2}+a d \log (x)+\frac{a e \log ^2\left (f x^m\right )}{2 m} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2301
Rule 6742
Rule 6095
Rule 5912
Rule 6071
Rule 6069
Rule 2374
Rule 6589
Rubi steps
\begin{align*} \int \frac{\left (a+b \tanh ^{-1}\left (c x^n\right )\right ) \left (d+e \log \left (f x^m\right )\right )}{x} \, dx &=\int \left (\frac{d \left (a+b \tanh ^{-1}\left (c x^n\right )\right )}{x}+\frac{e \left (a+b \tanh ^{-1}\left (c x^n\right )\right ) \log \left (f x^m\right )}{x}\right ) \, dx\\ &=d \int \frac{a+b \tanh ^{-1}\left (c x^n\right )}{x} \, dx+e \int \frac{\left (a+b \tanh ^{-1}\left (c x^n\right )\right ) \log \left (f x^m\right )}{x} \, dx\\ &=(a e) \int \frac{\log \left (f x^m\right )}{x} \, dx+(b e) \int \frac{\tanh ^{-1}\left (c x^n\right ) \log \left (f x^m\right )}{x} \, dx+\frac{d \operatorname{Subst}\left (\int \frac{a+b \tanh ^{-1}(c x)}{x} \, dx,x,x^n\right )}{n}\\ &=a d \log (x)+\frac{a e \log ^2\left (f x^m\right )}{2 m}-\frac{b d \text{Li}_2\left (-c x^n\right )}{2 n}+\frac{b d \text{Li}_2\left (c x^n\right )}{2 n}-\frac{1}{2} (b e) \int \frac{\log \left (f x^m\right ) \log \left (1-c x^n\right )}{x} \, dx+\frac{1}{2} (b e) \int \frac{\log \left (f x^m\right ) \log \left (1+c x^n\right )}{x} \, dx\\ &=a d \log (x)+\frac{a e \log ^2\left (f x^m\right )}{2 m}-\frac{b d \text{Li}_2\left (-c x^n\right )}{2 n}-\frac{b e \log \left (f x^m\right ) \text{Li}_2\left (-c x^n\right )}{2 n}+\frac{b d \text{Li}_2\left (c x^n\right )}{2 n}+\frac{b e \log \left (f x^m\right ) \text{Li}_2\left (c x^n\right )}{2 n}+\frac{(b e m) \int \frac{\text{Li}_2\left (-c x^n\right )}{x} \, dx}{2 n}-\frac{(b e m) \int \frac{\text{Li}_2\left (c x^n\right )}{x} \, dx}{2 n}\\ &=a d \log (x)+\frac{a e \log ^2\left (f x^m\right )}{2 m}-\frac{b d \text{Li}_2\left (-c x^n\right )}{2 n}-\frac{b e \log \left (f x^m\right ) \text{Li}_2\left (-c x^n\right )}{2 n}+\frac{b d \text{Li}_2\left (c x^n\right )}{2 n}+\frac{b e \log \left (f x^m\right ) \text{Li}_2\left (c x^n\right )}{2 n}+\frac{b e m \text{Li}_3\left (-c x^n\right )}{2 n^2}-\frac{b e m \text{Li}_3\left (c x^n\right )}{2 n^2}\\ \end{align*}
Mathematica [C] time = 0.283437, size = 114, normalized size = 0.84 \[ \frac{b c x^n \left (d+e \log \left (f x^m\right )\right ) \text{HypergeometricPFQ}\left (\left \{\frac{1}{2},\frac{1}{2},1\right \},\left \{\frac{3}{2},\frac{3}{2}\right \},c^2 x^{2 n}\right )}{n}-\frac{b c e m x^n \text{HypergeometricPFQ}\left (\left \{\frac{1}{2},\frac{1}{2},\frac{1}{2},1\right \},\left \{\frac{3}{2},\frac{3}{2},\frac{3}{2}\right \},c^2 x^{2 n}\right )}{n^2}+\frac{1}{2} a \log (x) \left (2 d+2 e \log \left (f x^m\right )-e m \log (x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.285, size = 668, normalized size = 4.9 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{a e \log \left (f x^{m}\right )^{2}}{2 \, m} + a d \log \left (x\right ) - \frac{1}{4} \,{\left (b e m \log \left (x\right )^{2} - 2 \, b e \log \left (x\right ) \log \left (x^{m}\right ) - 2 \,{\left (e \log \left (f\right ) + d\right )} b \log \left (x\right )\right )} \log \left (c x^{n} + 1\right ) + \frac{1}{4} \,{\left (b e m \log \left (x\right )^{2} - 2 \, b e \log \left (x\right ) \log \left (x^{m}\right ) - 2 \,{\left (e \log \left (f\right ) + d\right )} b \log \left (x\right )\right )} \log \left (-c x^{n} + 1\right ) + \int \frac{2 \, b c e n x^{n} \log \left (x\right ) \log \left (x^{m}\right ) -{\left (b c e m n \log \left (x\right )^{2} - 2 \,{\left (e n \log \left (f\right ) + d n\right )} b c \log \left (x\right )\right )} x^{n}}{2 \,{\left (c^{2} x x^{2 \, n} - x\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] time = 1.75005, size = 980, normalized size = 7.21 \begin{align*} \frac{2 \, a e m n^{2} \log \left (x\right )^{2} - 2 \, b e m{\rm polylog}\left (3, c \cosh \left (n \log \left (x\right )\right ) + c \sinh \left (n \log \left (x\right )\right )\right ) + 2 \, b e m{\rm polylog}\left (3, -c \cosh \left (n \log \left (x\right )\right ) - c \sinh \left (n \log \left (x\right )\right )\right ) + 2 \,{\left (b e m n \log \left (x\right ) + b e n \log \left (f\right ) + b d n\right )}{\rm Li}_2\left (c \cosh \left (n \log \left (x\right )\right ) + c \sinh \left (n \log \left (x\right )\right )\right ) - 2 \,{\left (b e m n \log \left (x\right ) + b e n \log \left (f\right ) + b d n\right )}{\rm Li}_2\left (-c \cosh \left (n \log \left (x\right )\right ) - c \sinh \left (n \log \left (x\right )\right )\right ) -{\left (b e m n^{2} \log \left (x\right )^{2} + 2 \,{\left (b e n^{2} \log \left (f\right ) + b d n^{2}\right )} \log \left (x\right )\right )} \log \left (c \cosh \left (n \log \left (x\right )\right ) + c \sinh \left (n \log \left (x\right )\right ) + 1\right ) +{\left (b e m n^{2} \log \left (x\right )^{2} + 2 \,{\left (b e n^{2} \log \left (f\right ) + b d n^{2}\right )} \log \left (x\right )\right )} \log \left (-c \cosh \left (n \log \left (x\right )\right ) - c \sinh \left (n \log \left (x\right )\right ) + 1\right ) + 4 \,{\left (a e n^{2} \log \left (f\right ) + a d n^{2}\right )} \log \left (x\right ) +{\left (b e m n^{2} \log \left (x\right )^{2} + 2 \,{\left (b e n^{2} \log \left (f\right ) + b d n^{2}\right )} \log \left (x\right )\right )} \log \left (-\frac{c \cosh \left (n \log \left (x\right )\right ) + c \sinh \left (n \log \left (x\right )\right ) + 1}{c \cosh \left (n \log \left (x\right )\right ) + c \sinh \left (n \log \left (x\right )\right ) - 1}\right )}{4 \, n^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \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{{\left (b \operatorname{artanh}\left (c x^{n}\right ) + a\right )}{\left (e \log \left (f x^{m}\right ) + d\right )}}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]