Integrand size = 19, antiderivative size = 121 \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{x^3} \, dx=-\frac {b n}{2 a x}-\frac {b \sqrt {b^2-4 a c} n \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{2 a^2}-\frac {\left (b^2-2 a c\right ) n \log (x)}{2 a^2}+\frac {\left (b^2-2 a c\right ) n \log \left (a+b x+c x^2\right )}{4 a^2}-\frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{2 x^2} \] Output:
-1/2*b*n/a/x-1/2*b*(-4*a*c+b^2)^(1/2)*n*arctanh((2*c*x+b)/(-4*a*c+b^2)^(1/ 2))/a^2-1/2*(-2*a*c+b^2)*n*ln(x)/a^2+1/4*(-2*a*c+b^2)*n*ln(c*x^2+b*x+a)/a^ 2-1/2*ln(d*(c*x^2+b*x+a)^n)/x^2
Time = 0.26 (sec) , antiderivative size = 105, normalized size of antiderivative = 0.87 \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{x^3} \, dx=-\frac {\frac {n x \left (2 a b+2 b \sqrt {b^2-4 a c} x \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )+2 \left (b^2-2 a c\right ) x \log (x)-\left (b^2-2 a c\right ) x \log (a+x (b+c x))\right )}{a^2}+2 \log \left (d (a+x (b+c x))^n\right )}{4 x^2} \] Input:
Integrate[Log[d*(a + b*x + c*x^2)^n]/x^3,x]
Output:
-1/4*((n*x*(2*a*b + 2*b*Sqrt[b^2 - 4*a*c]*x*ArcTanh[(b + 2*c*x)/Sqrt[b^2 - 4*a*c]] + 2*(b^2 - 2*a*c)*x*Log[x] - (b^2 - 2*a*c)*x*Log[a + x*(b + c*x)] ))/a^2 + 2*Log[d*(a + x*(b + c*x))^n])/x^2
Time = 0.39 (sec) , antiderivative size = 117, normalized size of antiderivative = 0.97, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {3005, 1200, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{x^3} \, dx\) |
\(\Big \downarrow \) 3005 |
\(\displaystyle \frac {1}{2} n \int \frac {b+2 c x}{x^2 \left (c x^2+b x+a\right )}dx-\frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{2 x^2}\) |
\(\Big \downarrow \) 1200 |
\(\displaystyle \frac {1}{2} n \int \left (\frac {b}{a x^2}+\frac {2 a c-b^2}{a^2 x}+\frac {b \left (b^2-3 a c\right )+c \left (b^2-2 a c\right ) x}{a^2 \left (c x^2+b x+a\right )}\right )dx-\frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{2 x^2}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {1}{2} n \left (-\frac {b \sqrt {b^2-4 a c} \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{a^2}+\frac {\left (b^2-2 a c\right ) \log \left (a+b x+c x^2\right )}{2 a^2}-\frac {\log (x) \left (b^2-2 a c\right )}{a^2}-\frac {b}{a x}\right )-\frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{2 x^2}\) |
Input:
Int[Log[d*(a + b*x + c*x^2)^n]/x^3,x]
Output:
(n*(-(b/(a*x)) - (b*Sqrt[b^2 - 4*a*c]*ArcTanh[(b + 2*c*x)/Sqrt[b^2 - 4*a*c ]])/a^2 - ((b^2 - 2*a*c)*Log[x])/a^2 + ((b^2 - 2*a*c)*Log[a + b*x + c*x^2] )/(2*a^2)))/2 - Log[d*(a + b*x + c*x^2)^n]/(2*x^2)
Int[(((d_.) + (e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))^(n_.))/((a_.) + (b_.)* (x_) + (c_.)*(x_)^2), x_Symbol] :> Int[ExpandIntegrand[(d + e*x)^m*((f + g* x)^n/(a + b*x + c*x^2)), x], x] /; FreeQ[{a, b, c, d, e, f, g, m}, x] && In tegersQ[n]
Int[((a_.) + Log[(c_.)*(RFx_)^(p_.)]*(b_.))^(n_.)*((d_.) + (e_.)*(x_))^(m_. ), x_Symbol] :> Simp[(d + e*x)^(m + 1)*((a + b*Log[c*RFx^p])^n/(e*(m + 1))) , x] - Simp[b*n*(p/(e*(m + 1))) Int[SimplifyIntegrand[(d + e*x)^(m + 1)*( a + b*Log[c*RFx^p])^(n - 1)*(D[RFx, x]/RFx), x], x], x] /; FreeQ[{a, b, c, d, e, m, p}, x] && RationalFunctionQ[RFx, x] && IGtQ[n, 0] && (EqQ[n, 1] || IntegerQ[m]) && NeQ[m, -1]
Time = 0.38 (sec) , antiderivative size = 145, normalized size of antiderivative = 1.20
method | result | size |
parts | \(-\frac {\ln \left (d \left (c \,x^{2}+b x +a \right )^{n}\right )}{2 x^{2}}+\frac {n \left (\frac {\frac {\left (-2 a \,c^{2}+b^{2} c \right ) \ln \left (c \,x^{2}+b x +a \right )}{2 c}+\frac {2 \left (-3 a b c +b^{3}-\frac {\left (-2 a \,c^{2}+b^{2} c \right ) b}{2 c}\right ) \arctan \left (\frac {2 x c +b}{\sqrt {4 a c -b^{2}}}\right )}{\sqrt {4 a c -b^{2}}}}{a^{2}}-\frac {b}{a x}+\frac {\left (2 a c -b^{2}\right ) \ln \left (x \right )}{a^{2}}\right )}{2}\) | \(145\) |
risch | \(\text {Expression too large to display}\) | \(1178\) |
Input:
int(ln(d*(c*x^2+b*x+a)^n)/x^3,x,method=_RETURNVERBOSE)
Output:
-1/2*ln(d*(c*x^2+b*x+a)^n)/x^2+1/2*n*(1/a^2*(1/2*(-2*a*c^2+b^2*c)/c*ln(c*x ^2+b*x+a)+2*(-3*a*b*c+b^3-1/2*(-2*a*c^2+b^2*c)*b/c)/(4*a*c-b^2)^(1/2)*arct an((2*c*x+b)/(4*a*c-b^2)^(1/2)))-1/a*b/x+(2*a*c-b^2)/a^2*ln(x))
Time = 0.10 (sec) , antiderivative size = 261, normalized size of antiderivative = 2.16 \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{x^3} \, dx=\left [\frac {\sqrt {b^{2} - 4 \, a c} b n x^{2} \log \left (\frac {2 \, c^{2} x^{2} + 2 \, b c x + b^{2} - 2 \, a c - \sqrt {b^{2} - 4 \, a c} {\left (2 \, c x + b\right )}}{c x^{2} + b x + a}\right ) - 2 \, {\left (b^{2} - 2 \, a c\right )} n x^{2} \log \left (x\right ) - 2 \, a b n x - 2 \, a^{2} \log \left (d\right ) + {\left ({\left (b^{2} - 2 \, a c\right )} n x^{2} - 2 \, a^{2} n\right )} \log \left (c x^{2} + b x + a\right )}{4 \, a^{2} x^{2}}, -\frac {2 \, \sqrt {-b^{2} + 4 \, a c} b n x^{2} \arctan \left (-\frac {\sqrt {-b^{2} + 4 \, a c} {\left (2 \, c x + b\right )}}{b^{2} - 4 \, a c}\right ) + 2 \, {\left (b^{2} - 2 \, a c\right )} n x^{2} \log \left (x\right ) + 2 \, a b n x + 2 \, a^{2} \log \left (d\right ) - {\left ({\left (b^{2} - 2 \, a c\right )} n x^{2} - 2 \, a^{2} n\right )} \log \left (c x^{2} + b x + a\right )}{4 \, a^{2} x^{2}}\right ] \] Input:
integrate(log(d*(c*x^2+b*x+a)^n)/x^3,x, algorithm="fricas")
Output:
[1/4*(sqrt(b^2 - 4*a*c)*b*n*x^2*log((2*c^2*x^2 + 2*b*c*x + b^2 - 2*a*c - s qrt(b^2 - 4*a*c)*(2*c*x + b))/(c*x^2 + b*x + a)) - 2*(b^2 - 2*a*c)*n*x^2*l og(x) - 2*a*b*n*x - 2*a^2*log(d) + ((b^2 - 2*a*c)*n*x^2 - 2*a^2*n)*log(c*x ^2 + b*x + a))/(a^2*x^2), -1/4*(2*sqrt(-b^2 + 4*a*c)*b*n*x^2*arctan(-sqrt( -b^2 + 4*a*c)*(2*c*x + b)/(b^2 - 4*a*c)) + 2*(b^2 - 2*a*c)*n*x^2*log(x) + 2*a*b*n*x + 2*a^2*log(d) - ((b^2 - 2*a*c)*n*x^2 - 2*a^2*n)*log(c*x^2 + b*x + a))/(a^2*x^2)]
Timed out. \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{x^3} \, dx=\text {Timed out} \] Input:
integrate(ln(d*(c*x**2+b*x+a)**n)/x**3,x)
Output:
Timed out
Exception generated. \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{x^3} \, dx=\text {Exception raised: ValueError} \] Input:
integrate(log(d*(c*x^2+b*x+a)^n)/x^3,x, algorithm="maxima")
Output:
Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'assume' command before evaluation *may* help (example of legal syntax is 'assume(4*a*c-b^2>0)', see `assume?` for more deta
Time = 0.15 (sec) , antiderivative size = 129, normalized size of antiderivative = 1.07 \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{x^3} \, dx=\frac {{\left (b^{2} n - 2 \, a c n\right )} \log \left (c x^{2} + b x + a\right )}{4 \, a^{2}} - \frac {n \log \left (c x^{2} + b x + a\right )}{2 \, x^{2}} - \frac {{\left (b^{2} n - 2 \, a c n\right )} \log \left (x\right )}{2 \, a^{2}} + \frac {{\left (b^{3} n - 4 \, a b c n\right )} \arctan \left (\frac {2 \, c x + b}{\sqrt {-b^{2} + 4 \, a c}}\right )}{2 \, \sqrt {-b^{2} + 4 \, a c} a^{2}} - \frac {b n x + a \log \left (d\right )}{2 \, a x^{2}} \] Input:
integrate(log(d*(c*x^2+b*x+a)^n)/x^3,x, algorithm="giac")
Output:
1/4*(b^2*n - 2*a*c*n)*log(c*x^2 + b*x + a)/a^2 - 1/2*n*log(c*x^2 + b*x + a )/x^2 - 1/2*(b^2*n - 2*a*c*n)*log(x)/a^2 + 1/2*(b^3*n - 4*a*b*c*n)*arctan( (2*c*x + b)/sqrt(-b^2 + 4*a*c))/(sqrt(-b^2 + 4*a*c)*a^2) - 1/2*(b*n*x + a* log(d))/(a*x^2)
Time = 26.02 (sec) , antiderivative size = 474, normalized size of antiderivative = 3.92 \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{x^3} \, dx=\frac {\ln \left (\frac {b^3\,c^2\,n^2-2\,a\,b\,c^3\,n^2}{4\,a^2}+\frac {\left (b^2\,n-2\,a\,c\,n+b\,n\,\sqrt {b^2-4\,a\,c}\right )\,\left (\frac {\left (\frac {x\,\left (24\,a^3\,c^2-8\,a^2\,b^2\,c\right )}{4\,a^2}-a\,b\,c\right )\,\left (b^2\,n-2\,a\,c\,n+b\,n\,\sqrt {b^2-4\,a\,c}\right )}{4\,a^2}-\frac {2\,a\,b^3\,c\,n-6\,a^2\,b\,c^2\,n}{4\,a^2}+\frac {x\,\left (12\,a^2\,c^3\,n-4\,a\,b^2\,c^2\,n\right )}{4\,a^2}\right )}{4\,a^2}+\frac {b^2\,c^3\,n^2\,x}{4\,a^2}\right )\,\left (b^2\,n-2\,a\,c\,n+b\,n\,\sqrt {b^2-4\,a\,c}\right )}{4\,a^2}-\frac {\ln \left (x\right )\,\left (b^2\,n-2\,a\,c\,n\right )}{2\,a^2}-\frac {\ln \left (d\,{\left (c\,x^2+b\,x+a\right )}^n\right )}{2\,x^2}-\frac {\ln \left (\frac {b^3\,c^2\,n^2-2\,a\,b\,c^3\,n^2}{4\,a^2}+\frac {\left (2\,a\,c\,n-b^2\,n+b\,n\,\sqrt {b^2-4\,a\,c}\right )\,\left (\frac {2\,a\,b^3\,c\,n-6\,a^2\,b\,c^2\,n}{4\,a^2}+\frac {\left (\frac {x\,\left (24\,a^3\,c^2-8\,a^2\,b^2\,c\right )}{4\,a^2}-a\,b\,c\right )\,\left (2\,a\,c\,n-b^2\,n+b\,n\,\sqrt {b^2-4\,a\,c}\right )}{4\,a^2}-\frac {x\,\left (12\,a^2\,c^3\,n-4\,a\,b^2\,c^2\,n\right )}{4\,a^2}\right )}{4\,a^2}+\frac {b^2\,c^3\,n^2\,x}{4\,a^2}\right )\,\left (2\,a\,c\,n-b^2\,n+b\,n\,\sqrt {b^2-4\,a\,c}\right )}{4\,a^2}-\frac {b\,n}{2\,a\,x} \] Input:
int(log(d*(a + b*x + c*x^2)^n)/x^3,x)
Output:
(log((b^3*c^2*n^2 - 2*a*b*c^3*n^2)/(4*a^2) + ((b^2*n - 2*a*c*n + b*n*(b^2 - 4*a*c)^(1/2))*((((x*(24*a^3*c^2 - 8*a^2*b^2*c))/(4*a^2) - a*b*c)*(b^2*n - 2*a*c*n + b*n*(b^2 - 4*a*c)^(1/2)))/(4*a^2) - (2*a*b^3*c*n - 6*a^2*b*c^2 *n)/(4*a^2) + (x*(12*a^2*c^3*n - 4*a*b^2*c^2*n))/(4*a^2)))/(4*a^2) + (b^2* c^3*n^2*x)/(4*a^2))*(b^2*n - 2*a*c*n + b*n*(b^2 - 4*a*c)^(1/2)))/(4*a^2) - (log(x)*(b^2*n - 2*a*c*n))/(2*a^2) - log(d*(a + b*x + c*x^2)^n)/(2*x^2) - (log((b^3*c^2*n^2 - 2*a*b*c^3*n^2)/(4*a^2) + ((2*a*c*n - b^2*n + b*n*(b^2 - 4*a*c)^(1/2))*((2*a*b^3*c*n - 6*a^2*b*c^2*n)/(4*a^2) + (((x*(24*a^3*c^2 - 8*a^2*b^2*c))/(4*a^2) - a*b*c)*(2*a*c*n - b^2*n + b*n*(b^2 - 4*a*c)^(1/ 2)))/(4*a^2) - (x*(12*a^2*c^3*n - 4*a*b^2*c^2*n))/(4*a^2)))/(4*a^2) + (b^2 *c^3*n^2*x)/(4*a^2))*(2*a*c*n - b^2*n + b*n*(b^2 - 4*a*c)^(1/2)))/(4*a^2) - (b*n)/(2*a*x)
Time = 0.15 (sec) , antiderivative size = 139, normalized size of antiderivative = 1.15 \[ \int \frac {\log \left (d \left (a+b x+c x^2\right )^n\right )}{x^3} \, dx=\frac {-2 \sqrt {4 a c -b^{2}}\, \mathit {atan} \left (\frac {2 c x +b}{\sqrt {4 a c -b^{2}}}\right ) b n \,x^{2}-2 \,\mathrm {log}\left (\left (c \,x^{2}+b x +a \right )^{n} d \right ) a^{2}-2 \,\mathrm {log}\left (\left (c \,x^{2}+b x +a \right )^{n} d \right ) a c \,x^{2}+\mathrm {log}\left (\left (c \,x^{2}+b x +a \right )^{n} d \right ) b^{2} x^{2}+4 \,\mathrm {log}\left (x \right ) a c n \,x^{2}-2 \,\mathrm {log}\left (x \right ) b^{2} n \,x^{2}-2 a b n x}{4 a^{2} x^{2}} \] Input:
int(log(d*(c*x^2+b*x+a)^n)/x^3,x)
Output:
( - 2*sqrt(4*a*c - b**2)*atan((b + 2*c*x)/sqrt(4*a*c - b**2))*b*n*x**2 - 2 *log((a + b*x + c*x**2)**n*d)*a**2 - 2*log((a + b*x + c*x**2)**n*d)*a*c*x* *2 + log((a + b*x + c*x**2)**n*d)*b**2*x**2 + 4*log(x)*a*c*n*x**2 - 2*log( x)*b**2*n*x**2 - 2*a*b*n*x)/(4*a**2*x**2)