Integrand size = 17, antiderivative size = 32 \[ \int \frac {1}{a x+b x \log ^2\left (c x^n\right )} \, dx=\frac {\arctan \left (\frac {\sqrt {b} \log \left (c x^n\right )}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} n} \]
[Out]
Time = 0.01 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {211} \[ \int \frac {1}{a x+b x \log ^2\left (c x^n\right )} \, dx=\frac {\arctan \left (\frac {\sqrt {b} \log \left (c x^n\right )}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} n} \]
[In]
[Out]
Rule 211
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {1}{a+b x^2} \, dx,x,\log \left (c x^n\right )\right )}{n} \\ & = \frac {\tan ^{-1}\left (\frac {\sqrt {b} \log \left (c x^n\right )}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} n} \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.00 \[ \int \frac {1}{a x+b x \log ^2\left (c x^n\right )} \, dx=\frac {\arctan \left (\frac {\sqrt {b} \log \left (c x^n\right )}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} n} \]
[In]
[Out]
Time = 0.66 (sec) , antiderivative size = 24, normalized size of antiderivative = 0.75
method | result | size |
default | \(\frac {\arctan \left (\frac {b \ln \left (c \,x^{n}\right )}{\sqrt {a b}}\right )}{n \sqrt {a b}}\) | \(24\) |
risch | \(-\frac {\ln \left (\ln \left (x^{n}\right )+\frac {-i \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \sqrt {-a b}+i \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \sqrt {-a b}+i \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \sqrt {-a b}-i \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3} \sqrt {-a b}+2 \ln \left (c \right ) \sqrt {-a b}-2 a}{2 \sqrt {-a b}}\right )}{2 \sqrt {-a b}\, n}+\frac {\ln \left (\ln \left (x^{n}\right )+\frac {-i \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \sqrt {-a b}+i \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \sqrt {-a b}+i \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \sqrt {-a b}-i \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3} \sqrt {-a b}+2 \ln \left (c \right ) \sqrt {-a b}+2 a}{2 \sqrt {-a b}}\right )}{2 \sqrt {-a b}\, n}\) | \(284\) |
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 121, normalized size of antiderivative = 3.78 \[ \int \frac {1}{a x+b x \log ^2\left (c x^n\right )} \, dx=\left [-\frac {\sqrt {-a b} \log \left (\frac {b n^{2} \log \left (x\right )^{2} + 2 \, b n \log \left (c\right ) \log \left (x\right ) + b \log \left (c\right )^{2} - 2 \, \sqrt {-a b} {\left (n \log \left (x\right ) + \log \left (c\right )\right )} - a}{b n^{2} \log \left (x\right )^{2} + 2 \, b n \log \left (c\right ) \log \left (x\right ) + b \log \left (c\right )^{2} + a}\right )}{2 \, a b n}, \frac {\sqrt {a b} \arctan \left (\frac {\sqrt {a b} {\left (n \log \left (x\right ) + \log \left (c\right )\right )}}{a}\right )}{a b n}\right ] \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 99 vs. \(2 (29) = 58\).
Time = 2.21 (sec) , antiderivative size = 99, normalized size of antiderivative = 3.09 \[ \int \frac {1}{a x+b x \log ^2\left (c x^n\right )} \, dx=\begin {cases} \frac {\tilde {\infty } \log {\left (x \right )}}{\log {\left (c \right )}^{2}} & \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 )}^{2}} & \text {for}\: n = 0 \\- \frac {1}{b n \log {\left (c x^{n} \right )}} & \text {for}\: a = 0 \\\frac {\log {\left (- \sqrt {- \frac {a}{b}} + \log {\left (c x^{n} \right )} \right )}}{2 b n \sqrt {- \frac {a}{b}}} - \frac {\log {\left (\sqrt {- \frac {a}{b}} + \log {\left (c x^{n} \right )} \right )}}{2 b n \sqrt {- \frac {a}{b}}} & \text {otherwise} \end {cases} \]
[In]
[Out]
\[ \int \frac {1}{a x+b x \log ^2\left (c x^n\right )} \, dx=\int { \frac {1}{b x \log \left (c x^{n}\right )^{2} + a x} \,d x } \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.81 \[ \int \frac {1}{a x+b x \log ^2\left (c x^n\right )} \, dx=\frac {\arctan \left (\frac {b n \log \left (x\right ) + b \log \left (c\right )}{\sqrt {a b}}\right )}{\sqrt {a b} n} \]
[In]
[Out]
Time = 1.63 (sec) , antiderivative size = 71, normalized size of antiderivative = 2.22 \[ \int \frac {1}{a x+b x \log ^2\left (c x^n\right )} \, dx=-\frac {\ln \left (\frac {1}{b\,x}+\frac {\ln \left (c\,x^n\right )}{\sqrt {-a}\,\sqrt {b}\,x}\right )-\ln \left (\frac {1}{b\,x}-\frac {\ln \left (c\,x^n\right )}{\sqrt {-a}\,\sqrt {b}\,x}\right )}{2\,\sqrt {-a}\,\sqrt {b}\,n} \]
[In]
[Out]