Optimal. Leaf size=144 \[ -\frac{\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \log \left (c x^n\right )+b^{2/3} \log ^2\left (c x^n\right )\right )}{6 a^{2/3} \sqrt [3]{b} n}+\frac{\log \left (\sqrt [3]{a}+\sqrt [3]{b} \log \left (c x^n\right )\right )}{3 a^{2/3} \sqrt [3]{b} n}-\frac{\tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} \log \left (c x^n\right )}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} a^{2/3} \sqrt [3]{b} n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0944799, antiderivative size = 144, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.353, Rules used = {200, 31, 634, 617, 204, 628} \[ -\frac{\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \log \left (c x^n\right )+b^{2/3} \log ^2\left (c x^n\right )\right )}{6 a^{2/3} \sqrt [3]{b} n}+\frac{\log \left (\sqrt [3]{a}+\sqrt [3]{b} \log \left (c x^n\right )\right )}{3 a^{2/3} \sqrt [3]{b} n}-\frac{\tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} \log \left (c x^n\right )}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} a^{2/3} \sqrt [3]{b} n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 200
Rule 31
Rule 634
Rule 617
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{1}{a x+b x \log ^3\left (c x^n\right )} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{a+b x^3} \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx,x,\log \left (c x^n\right )\right )}{3 a^{2/3} n}+\frac{\operatorname{Subst}\left (\int \frac{2 \sqrt [3]{a}-\sqrt [3]{b} x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx,x,\log \left (c x^n\right )\right )}{3 a^{2/3} n}\\ &=\frac{\log \left (\sqrt [3]{a}+\sqrt [3]{b} \log \left (c x^n\right )\right )}{3 a^{2/3} \sqrt [3]{b} n}+\frac{\operatorname{Subst}\left (\int \frac{1}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx,x,\log \left (c x^n\right )\right )}{2 \sqrt [3]{a} n}-\frac{\operatorname{Subst}\left (\int \frac{-\sqrt [3]{a} \sqrt [3]{b}+2 b^{2/3} x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx,x,\log \left (c x^n\right )\right )}{6 a^{2/3} \sqrt [3]{b} n}\\ &=\frac{\log \left (\sqrt [3]{a}+\sqrt [3]{b} \log \left (c x^n\right )\right )}{3 a^{2/3} \sqrt [3]{b} n}-\frac{\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \log \left (c x^n\right )+b^{2/3} \log ^2\left (c x^n\right )\right )}{6 a^{2/3} \sqrt [3]{b} n}+\frac{\operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1-\frac{2 \sqrt [3]{b} \log \left (c x^n\right )}{\sqrt [3]{a}}\right )}{a^{2/3} \sqrt [3]{b} n}\\ &=-\frac{\tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{b} \log \left (c x^n\right )}{\sqrt [3]{a}}}{\sqrt{3}}\right )}{\sqrt{3} a^{2/3} \sqrt [3]{b} n}+\frac{\log \left (\sqrt [3]{a}+\sqrt [3]{b} \log \left (c x^n\right )\right )}{3 a^{2/3} \sqrt [3]{b} n}-\frac{\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \log \left (c x^n\right )+b^{2/3} \log ^2\left (c x^n\right )\right )}{6 a^{2/3} \sqrt [3]{b} n}\\ \end{align*}
Mathematica [A] time = 0.0494766, size = 112, normalized size = 0.78 \[ -\frac{\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \log \left (c x^n\right )+b^{2/3} \log ^2\left (c x^n\right )\right )-2 \log \left (\sqrt [3]{a}+\sqrt [3]{b} \log \left (c x^n\right )\right )+2 \sqrt{3} \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{b} \log \left (c x^n\right )}{\sqrt [3]{a}}}{\sqrt{3}}\right )}{6 a^{2/3} \sqrt [3]{b} n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 120, normalized size = 0.8 \begin{align*}{\frac{1}{3\,bn}\ln \left ( \ln \left ( c{x}^{n} \right ) +\sqrt [3]{{\frac{a}{b}}} \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}-{\frac{1}{6\,bn}\ln \left ( \left ( \ln \left ( c{x}^{n} \right ) \right ) ^{2}-\sqrt [3]{{\frac{a}{b}}}\ln \left ( c{x}^{n} \right ) + \left ({\frac{a}{b}} \right ) ^{{\frac{2}{3}}} \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}+{\frac{\sqrt{3}}{3\,bn}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 2\,{\ln \left ( c{x}^{n} \right ){\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}-1 \right ) } \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}} \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*} \int \frac{1}{b x \log \left (c x^{n}\right )^{3} + a x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.01421, size = 1335, normalized size = 9.27 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 79.709, size = 340, normalized size = 2.36 \begin{align*} \begin{cases} \frac{\tilde{\infty } \log{\left (x \right )}}{\log{\left (c \right )}^{3}} & \text{for}\: a = 0 \wedge b = 0 \wedge n = 0 \\\frac{\log{\left (x \right )}}{a} & \text{for}\: b = 0 \\\frac{\log{\left (x \right )}}{a + b \log{\left (c \right )}^{3}} & \text{for}\: n = 0 \\- \frac{1}{b \left (2 n^{3} \log{\left (x \right )}^{2} + 4 n^{2} \log{\left (c \right )} \log{\left (x \right )} + 2 n \log{\left (c \right )}^{2}\right )} & \text{for}\: a = 0 \\- \frac{\sqrt [3]{-1} \log{\left (- \sqrt [3]{-1} \sqrt [3]{a} \sqrt [3]{\frac{1}{b}} + n \log{\left (x \right )} + \log{\left (c \right )} \right )}}{3 a^{\frac{2}{3}} b^{3} n \left (\frac{1}{b}\right )^{\frac{8}{3}}} + \frac{\sqrt [3]{-1} \log{\left (4 \left (-1\right )^{\frac{2}{3}} a^{\frac{2}{3}} \left (\frac{1}{b}\right )^{\frac{2}{3}} + 4 \sqrt [3]{-1} \sqrt [3]{a} n \sqrt [3]{\frac{1}{b}} \log{\left (x \right )} + 4 \sqrt [3]{-1} \sqrt [3]{a} \sqrt [3]{\frac{1}{b}} \log{\left (c \right )} + 4 n^{2} \log{\left (x \right )}^{2} + 8 n \log{\left (c \right )} \log{\left (x \right )} + 4 \log{\left (c \right )}^{2} \right )}}{6 a^{\frac{2}{3}} b^{3} n \left (\frac{1}{b}\right )^{\frac{8}{3}}} - \frac{\sqrt [3]{-1} \sqrt{3} \operatorname{atan}{\left (- \frac{\sqrt{3}}{3} + \frac{2 \left (-1\right )^{\frac{2}{3}} \sqrt{3} n \log{\left (x \right )}}{3 \sqrt [3]{a} \sqrt [3]{\frac{1}{b}}} + \frac{2 \left (-1\right )^{\frac{2}{3}} \sqrt{3} \log{\left (c \right )}}{3 \sqrt [3]{a} \sqrt [3]{\frac{1}{b}}} \right )}}{3 a^{\frac{2}{3}} b^{3} n \left (\frac{1}{b}\right )^{\frac{8}{3}}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.30493, size = 328, normalized size = 2.28 \begin{align*} \frac{1}{3} \, \sqrt{3} \left (\frac{1}{a^{2} b n^{3}}\right )^{\frac{1}{3}} \arctan \left (\frac{\sqrt{3} \pi b{\left (\mathrm{sgn}\left (c\right ) - 1\right )} - 2 \, b n \log \left (x\right ) - 2 \, b \log \left ({\left | c \right |}\right ) - 2 \, \left (a b^{2}\right )^{\frac{1}{3}}}{2 \, \sqrt{3} b n \log \left (x\right ) + \pi b{\left (\mathrm{sgn}\left (c\right ) - 1\right )} + 2 \, \sqrt{3} b \log \left ({\left | c \right |}\right ) - 2 \, \sqrt{3} \left (a b^{2}\right )^{\frac{1}{3}}}\right ) + \frac{1}{6} \, \left (\frac{1}{a^{2} b n^{3}}\right )^{\frac{1}{3}} \log \left (\frac{1}{4} \,{\left (\pi b n{\left (\mathrm{sgn}\left (x\right ) - 1\right )} + \pi b{\left (\mathrm{sgn}\left (c\right ) - 1\right )}\right )}^{2} +{\left (b n \log \left ({\left | x \right |}\right ) + b \log \left ({\left | c \right |}\right ) + \left (a b^{2}\right )^{\frac{1}{3}}\right )}^{2}\right ) - \frac{1}{6} \, \left (\frac{1}{a^{2} b n^{3}}\right )^{\frac{1}{3}} \log \left (\frac{1}{4} \,{\left (\sqrt{3} \pi b{\left (\mathrm{sgn}\left (c\right ) - 1\right )} - 2 \, b n \log \left (x\right ) - 2 \, b \log \left ({\left | c \right |}\right ) - 2 \, \left (a b^{2}\right )^{\frac{1}{3}}\right )}^{2} + \frac{1}{4} \,{\left (2 \, \sqrt{3} b n \log \left (x\right ) + \pi b{\left (\mathrm{sgn}\left (c\right ) - 1\right )} + 2 \, \sqrt{3} b \log \left ({\left | c \right |}\right ) - 2 \, \sqrt{3} \left (a b^{2}\right )^{\frac{1}{3}}\right )}^{2}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]