Integrand size = 32, antiderivative size = 258 \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{a e+b e x+c e x^2} \, dx=\frac {2 n \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )^2}{\sqrt {b^2-4 a c} e}-\frac {4 n \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (\frac {2}{1-\frac {b}{\sqrt {b^2-4 a c}}-\frac {2 c x}{\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} e}-\frac {2 \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (d \left (a+b x+c x^2\right )^n\right )}{\sqrt {b^2-4 a c} e}-\frac {2 n \operatorname {PolyLog}\left (2,-\frac {1+\frac {b}{\sqrt {b^2-4 a c}}+\frac {2 c x}{\sqrt {b^2-4 a c}}}{1-\frac {b}{\sqrt {b^2-4 a c}}-\frac {2 c x}{\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} e} \]
[Out]
Time = 0.24 (sec) , antiderivative size = 258, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.281, Rules used = {632, 212, 2607, 12, 6256, 6131, 6055, 2449, 2352} \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{a e+b e x+c e x^2} \, dx=-\frac {2 \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (d \left (a+b x+c x^2\right )^n\right )}{e \sqrt {b^2-4 a c}}+\frac {2 n \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )^2}{e \sqrt {b^2-4 a c}}-\frac {4 n \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (\frac {2}{-\frac {2 c x}{\sqrt {b^2-4 a c}}-\frac {b}{\sqrt {b^2-4 a c}}+1}\right )}{e \sqrt {b^2-4 a c}}-\frac {2 n \operatorname {PolyLog}\left (2,-\frac {\frac {b}{\sqrt {b^2-4 a c}}+\frac {2 c x}{\sqrt {b^2-4 a c}}+1}{-\frac {b}{\sqrt {b^2-4 a c}}-\frac {2 c x}{\sqrt {b^2-4 a c}}+1}\right )}{e \sqrt {b^2-4 a c}} \]
[In]
[Out]
Rule 12
Rule 212
Rule 632
Rule 2352
Rule 2449
Rule 2607
Rule 6055
Rule 6131
Rule 6256
Rubi steps \begin{align*} \text {integral}& = -\frac {2 \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (d \left (a+b x+c x^2\right )^n\right )}{\sqrt {b^2-4 a c} e}-n \int \frac {2 (-b-2 c x) \tanh ^{-1}\left (\frac {b}{\sqrt {b^2-4 a c}}+\frac {2 c x}{\sqrt {b^2-4 a c}}\right )}{\sqrt {b^2-4 a c} e \left (a+b x+c x^2\right )} \, dx \\ & = -\frac {2 \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (d \left (a+b x+c x^2\right )^n\right )}{\sqrt {b^2-4 a c} e}-\frac {(2 n) \int \frac {(-b-2 c x) \tanh ^{-1}\left (\frac {b}{\sqrt {b^2-4 a c}}+\frac {2 c x}{\sqrt {b^2-4 a c}}\right )}{a+b x+c x^2} \, dx}{\sqrt {b^2-4 a c} e} \\ & = -\frac {2 \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (d \left (a+b x+c x^2\right )^n\right )}{\sqrt {b^2-4 a c} e}+\frac {n \text {Subst}\left (\int \frac {\sqrt {b^2-4 a c} x \tanh ^{-1}(x)}{-\frac {b^2-4 a c}{4 c}+\frac {\left (b^2-4 a c\right ) x^2}{4 c}} \, dx,x,\frac {b}{\sqrt {b^2-4 a c}}+\frac {2 c x}{\sqrt {b^2-4 a c}}\right )}{c e} \\ & = -\frac {2 \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (d \left (a+b x+c x^2\right )^n\right )}{\sqrt {b^2-4 a c} e}+\frac {\left (\sqrt {b^2-4 a c} n\right ) \text {Subst}\left (\int \frac {x \tanh ^{-1}(x)}{-\frac {b^2-4 a c}{4 c}+\frac {\left (b^2-4 a c\right ) x^2}{4 c}} \, dx,x,\frac {b}{\sqrt {b^2-4 a c}}+\frac {2 c x}{\sqrt {b^2-4 a c}}\right )}{c e} \\ & = \frac {2 n \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )^2}{\sqrt {b^2-4 a c} e}-\frac {2 \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (d \left (a+b x+c x^2\right )^n\right )}{\sqrt {b^2-4 a c} e}-\frac {(4 n) \text {Subst}\left (\int \frac {\tanh ^{-1}(x)}{1-x} \, dx,x,\frac {b}{\sqrt {b^2-4 a c}}+\frac {2 c x}{\sqrt {b^2-4 a c}}\right )}{\sqrt {b^2-4 a c} e} \\ & = \frac {2 n \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )^2}{\sqrt {b^2-4 a c} e}-\frac {4 n \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (\frac {2}{1-\frac {b}{\sqrt {b^2-4 a c}}-\frac {2 c x}{\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} e}-\frac {2 \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (d \left (a+b x+c x^2\right )^n\right )}{\sqrt {b^2-4 a c} e}+\frac {(4 n) \text {Subst}\left (\int \frac {\log \left (\frac {2}{1-x}\right )}{1-x^2} \, dx,x,\frac {b}{\sqrt {b^2-4 a c}}+\frac {2 c x}{\sqrt {b^2-4 a c}}\right )}{\sqrt {b^2-4 a c} e} \\ & = \frac {2 n \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )^2}{\sqrt {b^2-4 a c} e}-\frac {4 n \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (\frac {2}{1-\frac {b}{\sqrt {b^2-4 a c}}-\frac {2 c x}{\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} e}-\frac {2 \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (d \left (a+b x+c x^2\right )^n\right )}{\sqrt {b^2-4 a c} e}-\frac {(4 n) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-\frac {b}{\sqrt {b^2-4 a c}}-\frac {2 c x}{\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} e} \\ & = \frac {2 n \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )^2}{\sqrt {b^2-4 a c} e}-\frac {4 n \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (\frac {2}{1-\frac {b}{\sqrt {b^2-4 a c}}-\frac {2 c x}{\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} e}-\frac {2 \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \log \left (d \left (a+b x+c x^2\right )^n\right )}{\sqrt {b^2-4 a c} e}-\frac {2 n \text {Li}_2\left (1-\frac {2}{1-\frac {b}{\sqrt {b^2-4 a c}}-\frac {2 c x}{\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} e} \\ \end{align*}
Time = 0.22 (sec) , antiderivative size = 339, normalized size of antiderivative = 1.31 \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{a e+b e x+c e x^2} \, dx=\frac {-n \log ^2\left (b-\sqrt {b^2-4 a c}+2 c x\right )+2 n \log \left (\frac {-b+\sqrt {b^2-4 a c}-2 c x}{2 \sqrt {b^2-4 a c}}\right ) \log \left (b+\sqrt {b^2-4 a c}+2 c x\right )+n \log ^2\left (b+\sqrt {b^2-4 a c}+2 c x\right )-2 n \log \left (b-\sqrt {b^2-4 a c}+2 c x\right ) \log \left (\frac {b+\sqrt {b^2-4 a c}+2 c x}{2 \sqrt {b^2-4 a c}}\right )+2 \log \left (b-\sqrt {b^2-4 a c}+2 c x\right ) \log \left (d (a+x (b+c x))^n\right )-2 \log \left (b+\sqrt {b^2-4 a c}+2 c x\right ) \log \left (d (a+x (b+c x))^n\right )-2 n \operatorname {PolyLog}\left (2,\frac {-b+\sqrt {b^2-4 a c}-2 c x}{2 \sqrt {b^2-4 a c}}\right )+2 n \operatorname {PolyLog}\left (2,\frac {b+\sqrt {b^2-4 a c}+2 c x}{2 \sqrt {b^2-4 a c}}\right )}{2 \sqrt {b^2-4 a c} e} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 2.46 (sec) , antiderivative size = 433, normalized size of antiderivative = 1.68
method | result | size |
risch | \(-\frac {2 \arctan \left (\frac {2 x c +b}{\sqrt {4 c a -b^{2}}}\right ) n \ln \left (c \,x^{2}+b x +a \right )}{e \sqrt {4 c a -b^{2}}}+\frac {2 \arctan \left (\frac {2 x c +b}{\sqrt {4 c a -b^{2}}}\right ) \ln \left (\left (c \,x^{2}+b x +a \right )^{n}\right )}{e \sqrt {4 c a -b^{2}}}+\frac {n \left (\munderset {\underline {\hspace {1.25 ex}}\alpha =\operatorname {RootOf}\left (c \,\textit {\_Z}^{2}+\textit {\_Z} b +a \right )}{\sum }\frac {2 \ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right ) \ln \left (c \,x^{2}+b x +a \right )-\frac {\ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right )^{2}}{2 \underline {\hspace {1.25 ex}}\alpha c +b}-\frac {2 \left (2 \underline {\hspace {1.25 ex}}\alpha c +b \right ) \ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right ) \ln \left (\frac {2 \underline {\hspace {1.25 ex}}\alpha c +\left (x -\underline {\hspace {1.25 ex}}\alpha \right ) c +b}{2 \underline {\hspace {1.25 ex}}\alpha c +b}\right )}{4 c a -b^{2}}-\frac {2 \left (2 \underline {\hspace {1.25 ex}}\alpha c +b \right ) \operatorname {dilog}\left (\frac {2 \underline {\hspace {1.25 ex}}\alpha c +\left (x -\underline {\hspace {1.25 ex}}\alpha \right ) c +b}{2 \underline {\hspace {1.25 ex}}\alpha c +b}\right )}{4 c a -b^{2}}}{2 \underline {\hspace {1.25 ex}}\alpha c +b}\right )}{2 e}+\frac {\left (i \pi \,\operatorname {csgn}\left (i \left (c \,x^{2}+b x +a \right )^{n}\right ) {\operatorname {csgn}\left (i d \left (c \,x^{2}+b x +a \right )^{n}\right )}^{2}-i \pi \,\operatorname {csgn}\left (i \left (c \,x^{2}+b x +a \right )^{n}\right ) \operatorname {csgn}\left (i d \left (c \,x^{2}+b x +a \right )^{n}\right ) \operatorname {csgn}\left (i d \right )-i \pi {\operatorname {csgn}\left (i d \left (c \,x^{2}+b x +a \right )^{n}\right )}^{3}+i \pi {\operatorname {csgn}\left (i d \left (c \,x^{2}+b x +a \right )^{n}\right )}^{2} \operatorname {csgn}\left (i d \right )+2 \ln \left (d \right )\right ) \arctan \left (\frac {2 x c +b}{\sqrt {4 c a -b^{2}}}\right )}{e \sqrt {4 c a -b^{2}}}\) | \(433\) |
[In]
[Out]
\[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{a e+b e x+c e x^2} \, dx=\int { \frac {\log \left ({\left (c x^{2} + b x + a\right )}^{n} d\right )}{c e x^{2} + b e x + a e} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{a e+b e x+c e x^2} \, dx=\text {Timed out} \]
[In]
[Out]
Exception generated. \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{a e+b e x+c e x^2} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{a e+b e x+c e x^2} \, dx=\int { \frac {\log \left ({\left (c x^{2} + b x + a\right )}^{n} d\right )}{c e x^{2} + b e x + a e} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{a e+b e x+c e x^2} \, dx=\int \frac {\ln \left (d\,{\left (c\,x^2+b\,x+a\right )}^n\right )}{c\,e\,x^2+b\,e\,x+a\,e} \,d x \]
[In]
[Out]