Optimal. Leaf size=129 \[ -n \text{PolyLog}\left (2,-\frac{2 c x}{b-\sqrt{b^2-4 a c}}\right )-n \text{PolyLog}\left (2,-\frac{2 c x}{\sqrt{b^2-4 a c}+b}\right )-n \log (x) \log \left (\frac{2 c x}{b-\sqrt{b^2-4 a c}}+1\right )-n \log (x) \log \left (\frac{2 c x}{\sqrt{b^2-4 a c}+b}+1\right )+\log (x) \log \left (d \left (a+b x+c x^2\right )^n\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.175996, antiderivative size = 129, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 4, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.21, Rules used = {2524, 2357, 2317, 2391} \[ -n \text{PolyLog}\left (2,-\frac{2 c x}{b-\sqrt{b^2-4 a c}}\right )-n \text{PolyLog}\left (2,-\frac{2 c x}{\sqrt{b^2-4 a c}+b}\right )-n \log (x) \log \left (\frac{2 c x}{b-\sqrt{b^2-4 a c}}+1\right )-n \log (x) \log \left (\frac{2 c x}{\sqrt{b^2-4 a c}+b}+1\right )+\log (x) \log \left (d \left (a+b x+c x^2\right )^n\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2524
Rule 2357
Rule 2317
Rule 2391
Rubi steps
\begin{align*} \int \frac{\log \left (d \left (a+b x+c x^2\right )^n\right )}{x} \, dx &=\log (x) \log \left (d \left (a+b x+c x^2\right )^n\right )-n \int \frac{(b+2 c x) \log (x)}{a+b x+c x^2} \, dx\\ &=\log (x) \log \left (d \left (a+b x+c x^2\right )^n\right )-n \int \left (\frac{2 c \log (x)}{b-\sqrt{b^2-4 a c}+2 c x}+\frac{2 c \log (x)}{b+\sqrt{b^2-4 a c}+2 c x}\right ) \, dx\\ &=\log (x) \log \left (d \left (a+b x+c x^2\right )^n\right )-(2 c n) \int \frac{\log (x)}{b-\sqrt{b^2-4 a c}+2 c x} \, dx-(2 c n) \int \frac{\log (x)}{b+\sqrt{b^2-4 a c}+2 c x} \, dx\\ &=-n \log (x) \log \left (1+\frac{2 c x}{b-\sqrt{b^2-4 a c}}\right )-n \log (x) \log \left (1+\frac{2 c x}{b+\sqrt{b^2-4 a c}}\right )+\log (x) \log \left (d \left (a+b x+c x^2\right )^n\right )+n \int \frac{\log \left (1+\frac{2 c x}{b-\sqrt{b^2-4 a c}}\right )}{x} \, dx+n \int \frac{\log \left (1+\frac{2 c x}{b+\sqrt{b^2-4 a c}}\right )}{x} \, dx\\ &=-n \log (x) \log \left (1+\frac{2 c x}{b-\sqrt{b^2-4 a c}}\right )-n \log (x) \log \left (1+\frac{2 c x}{b+\sqrt{b^2-4 a c}}\right )+\log (x) \log \left (d \left (a+b x+c x^2\right )^n\right )-n \text{Li}_2\left (-\frac{2 c x}{b-\sqrt{b^2-4 a c}}\right )-n \text{Li}_2\left (-\frac{2 c x}{b+\sqrt{b^2-4 a c}}\right )\\ \end{align*}
Mathematica [A] time = 0.156441, size = 156, normalized size = 1.21 \[ -n \text{PolyLog}\left (2,-\frac{2 c x}{b-\sqrt{b^2-4 a c}}\right )-n \text{PolyLog}\left (2,-\frac{2 c x}{\sqrt{b^2-4 a c}+b}\right )-n \log (x) \log \left (\frac{-\sqrt{b^2-4 a c}+b+2 c x}{b-\sqrt{b^2-4 a c}}\right )-n \log (x) \log \left (\frac{\sqrt{b^2-4 a c}+b+2 c x}{\sqrt{b^2-4 a c}+b}\right )+\log (x) \log \left (d (a+x (b+c x))^n\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.063, size = 315, normalized size = 2.4 \begin{align*} \ln \left ( x \right ) \ln \left ( \left ( c{x}^{2}+bx+a \right ) ^{n} \right ) -\ln \left ( x \right ) \ln \left ({ \left ( -b-2\,cx+\sqrt{-4\,ac+{b}^{2}} \right ) \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) ^{-1}} \right ) n-\ln \left ( x \right ) \ln \left ({ \left ( b+2\,cx+\sqrt{-4\,ac+{b}^{2}} \right ) \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) ^{-1}} \right ) n-{\it dilog} \left ({ \left ( -b-2\,cx+\sqrt{-4\,ac+{b}^{2}} \right ) \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) ^{-1}} \right ) n-{\it dilog} \left ({ \left ( b+2\,cx+\sqrt{-4\,ac+{b}^{2}} \right ) \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) ^{-1}} \right ) n-{\frac{i}{2}}\ln \left ( x \right ) \pi \,{\it csgn} \left ( id \right ){\it csgn} \left ( i \left ( c{x}^{2}+bx+a \right ) ^{n} \right ){\it csgn} \left ( id \left ( c{x}^{2}+bx+a \right ) ^{n} \right ) +{\frac{i}{2}}\ln \left ( x \right ) \pi \,{\it csgn} \left ( id \right ) \left ({\it csgn} \left ( id \left ( c{x}^{2}+bx+a \right ) ^{n} \right ) \right ) ^{2}+{\frac{i}{2}}\ln \left ( x \right ) \pi \,{\it csgn} \left ( i \left ( c{x}^{2}+bx+a \right ) ^{n} \right ) \left ({\it csgn} \left ( id \left ( c{x}^{2}+bx+a \right ) ^{n} \right ) \right ) ^{2}-{\frac{i}{2}}\ln \left ( x \right ) \pi \, \left ({\it csgn} \left ( id \left ( c{x}^{2}+bx+a \right ) ^{n} \right ) \right ) ^{3}+\ln \left ( x \right ) \ln \left ( d \right ) \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{\log \left ({\left (c x^{2} + b x + a\right )}^{n} d\right )}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\log \left ({\left (c x^{2} + b x + a\right )}^{n} d\right )}{x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\log{\left (d \left (a + b x + c x^{2}\right )^{n} \right )}}{x}\, dx \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{\log \left ({\left (c x^{2} + b x + a\right )}^{n} d\right )}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]