\(\int (d+e x)^3 \log (d (a+b x+c x^2)^n) \, dx\) [83]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [F(-1)]
   Maxima [F(-2)]
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 23, antiderivative size = 338 \[ \int (d+e x)^3 \log \left (d \left (a+b x+c x^2\right )^n\right ) \, dx=-\frac {\left (8 c^3 d^3-b^3 e^3+b c e^2 (4 b d+3 a e)-2 c^2 d e (3 b d+4 a e)\right ) n x}{4 c^3}-\frac {e \left (12 c^2 d^2+b^2 e^2-2 c e (2 b d+a e)\right ) n x^2}{8 c^2}-\frac {e^2 (8 c d-b e) n x^3}{12 c}-\frac {1}{8} e^3 n x^4+\frac {\sqrt {b^2-4 a c} (2 c d-b e) \left (2 c^2 d^2+b^2 e^2-2 c e (b d+a e)\right ) n \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{4 c^4}-\frac {\left (2 c^4 d^4+b^4 e^4-4 b^2 c e^3 (b d+a e)-4 c^3 d^2 e (b d+3 a e)+2 c^2 e^2 \left (3 b^2 d^2+6 a b d e+a^2 e^2\right )\right ) n \log \left (a+b x+c x^2\right )}{8 c^4 e}+\frac {(d+e x)^4 \log \left (d \left (a+b x+c x^2\right )^n\right )}{4 e} \]

[Out]

-1/4*(8*c^3*d^3-b^3*e^3+b*c*e^2*(3*a*e+4*b*d)-2*c^2*d*e*(4*a*e+3*b*d))*n*x/c^3-1/8*e*(12*c^2*d^2+b^2*e^2-2*c*e
*(a*e+2*b*d))*n*x^2/c^2-1/12*e^2*(-b*e+8*c*d)*n*x^3/c-1/8*e^3*n*x^4-1/8*(2*c^4*d^4+b^4*e^4-4*b^2*c*e^3*(a*e+b*
d)-4*c^3*d^2*e*(3*a*e+b*d)+2*c^2*e^2*(a^2*e^2+6*a*b*d*e+3*b^2*d^2))*n*ln(c*x^2+b*x+a)/c^4/e+1/4*(e*x+d)^4*ln(d
*(c*x^2+b*x+a)^n)/e+1/4*(-b*e+2*c*d)*(2*c^2*d^2+b^2*e^2-2*c*e*(a*e+b*d))*n*arctanh((2*c*x+b)/(-4*a*c+b^2)^(1/2
))*(-4*a*c+b^2)^(1/2)/c^4

Rubi [A] (verified)

Time = 0.33 (sec) , antiderivative size = 338, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {2605, 814, 648, 632, 212, 642} \[ \int (d+e x)^3 \log \left (d \left (a+b x+c x^2\right )^n\right ) \, dx=-\frac {n \left (2 c^2 e^2 \left (a^2 e^2+6 a b d e+3 b^2 d^2\right )-4 b^2 c e^3 (a e+b d)-4 c^3 d^2 e (3 a e+b d)+b^4 e^4+2 c^4 d^4\right ) \log \left (a+b x+c x^2\right )}{8 c^4 e}+\frac {n \sqrt {b^2-4 a c} (2 c d-b e) \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \left (-2 c e (a e+b d)+b^2 e^2+2 c^2 d^2\right )}{4 c^4}-\frac {n x \left (-2 c^2 d e (4 a e+3 b d)+b c e^2 (3 a e+4 b d)-b^3 e^3+8 c^3 d^3\right )}{4 c^3}-\frac {e n x^2 \left (-2 c e (a e+2 b d)+b^2 e^2+12 c^2 d^2\right )}{8 c^2}+\frac {(d+e x)^4 \log \left (d \left (a+b x+c x^2\right )^n\right )}{4 e}-\frac {e^2 n x^3 (8 c d-b e)}{12 c}-\frac {1}{8} e^3 n x^4 \]

[In]

Int[(d + e*x)^3*Log[d*(a + b*x + c*x^2)^n],x]

[Out]

-1/4*((8*c^3*d^3 - b^3*e^3 + b*c*e^2*(4*b*d + 3*a*e) - 2*c^2*d*e*(3*b*d + 4*a*e))*n*x)/c^3 - (e*(12*c^2*d^2 +
b^2*e^2 - 2*c*e*(2*b*d + a*e))*n*x^2)/(8*c^2) - (e^2*(8*c*d - b*e)*n*x^3)/(12*c) - (e^3*n*x^4)/8 + (Sqrt[b^2 -
 4*a*c]*(2*c*d - b*e)*(2*c^2*d^2 + b^2*e^2 - 2*c*e*(b*d + a*e))*n*ArcTanh[(b + 2*c*x)/Sqrt[b^2 - 4*a*c]])/(4*c
^4) - ((2*c^4*d^4 + b^4*e^4 - 4*b^2*c*e^3*(b*d + a*e) - 4*c^3*d^2*e*(b*d + 3*a*e) + 2*c^2*e^2*(3*b^2*d^2 + 6*a
*b*d*e + a^2*e^2))*n*Log[a + b*x + c*x^2])/(8*c^4*e) + ((d + e*x)^4*Log[d*(a + b*x + c*x^2)^n])/(4*e)

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 632

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 642

Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[d*(Log[RemoveContent[a + b*x +
c*x^2, x]]/b), x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]

Rule 648

Int[((d_.) + (e_.)*(x_))/((a_) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Dist[(2*c*d - b*e)/(2*c), Int[1/(a +
 b*x + c*x^2), x], x] + Dist[e/(2*c), Int[(b + 2*c*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e}, x] &
& NeQ[2*c*d - b*e, 0] && NeQ[b^2 - 4*a*c, 0] &&  !NiceSqrtQ[b^2 - 4*a*c]

Rule 814

Int[(((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_)))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Int[Exp
andIntegrand[(d + e*x)^m*((f + g*x)/(a + b*x + c*x^2)), x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[b^2 -
 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && IntegerQ[m]

Rule 2605

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] - Dist[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] && RationalFunc
tionQ[RFx, x] && IGtQ[n, 0] && (EqQ[n, 1] || IntegerQ[m]) && NeQ[m, -1]

Rubi steps \begin{align*} \text {integral}& = \frac {(d+e x)^4 \log \left (d \left (a+b x+c x^2\right )^n\right )}{4 e}-\frac {n \int \frac {(b+2 c x) (d+e x)^4}{a+b x+c x^2} \, dx}{4 e} \\ & = \frac {(d+e x)^4 \log \left (d \left (a+b x+c x^2\right )^n\right )}{4 e}-\frac {n \int \left (\frac {e \left (8 c^3 d^3-b^3 e^3+b c e^2 (4 b d+3 a e)-2 c^2 d e (3 b d+4 a e)\right )}{c^3}+\frac {e^2 \left (12 c^2 d^2+b^2 e^2-2 c e (2 b d+a e)\right ) x}{c^2}+\frac {e^3 (8 c d-b e) x^2}{c}+2 e^4 x^3+\frac {-4 a b^2 c d e^3+a b^3 e^4-8 a c^2 d e \left (c d^2-a e^2\right )+b c \left (c^2 d^4+6 a c d^2 e^2-3 a^2 e^4\right )+\left (2 c^4 d^4+b^4 e^4-4 b^2 c e^3 (b d+a e)-4 c^3 d^2 e (b d+3 a e)+2 c^2 e^2 \left (3 b^2 d^2+6 a b d e+a^2 e^2\right )\right ) x}{c^3 \left (a+b x+c x^2\right )}\right ) \, dx}{4 e} \\ & = -\frac {\left (8 c^3 d^3-b^3 e^3+b c e^2 (4 b d+3 a e)-2 c^2 d e (3 b d+4 a e)\right ) n x}{4 c^3}-\frac {e \left (12 c^2 d^2+b^2 e^2-2 c e (2 b d+a e)\right ) n x^2}{8 c^2}-\frac {e^2 (8 c d-b e) n x^3}{12 c}-\frac {1}{8} e^3 n x^4+\frac {(d+e x)^4 \log \left (d \left (a+b x+c x^2\right )^n\right )}{4 e}-\frac {n \int \frac {-4 a b^2 c d e^3+a b^3 e^4-8 a c^2 d e \left (c d^2-a e^2\right )+b c \left (c^2 d^4+6 a c d^2 e^2-3 a^2 e^4\right )+\left (2 c^4 d^4+b^4 e^4-4 b^2 c e^3 (b d+a e)-4 c^3 d^2 e (b d+3 a e)+2 c^2 e^2 \left (3 b^2 d^2+6 a b d e+a^2 e^2\right )\right ) x}{a+b x+c x^2} \, dx}{4 c^3 e} \\ & = -\frac {\left (8 c^3 d^3-b^3 e^3+b c e^2 (4 b d+3 a e)-2 c^2 d e (3 b d+4 a e)\right ) n x}{4 c^3}-\frac {e \left (12 c^2 d^2+b^2 e^2-2 c e (2 b d+a e)\right ) n x^2}{8 c^2}-\frac {e^2 (8 c d-b e) n x^3}{12 c}-\frac {1}{8} e^3 n x^4+\frac {(d+e x)^4 \log \left (d \left (a+b x+c x^2\right )^n\right )}{4 e}-\frac {\left (\left (b^2-4 a c\right ) (2 c d-b e) \left (2 c^2 d^2+b^2 e^2-2 c e (b d+a e)\right ) n\right ) \int \frac {1}{a+b x+c x^2} \, dx}{8 c^4}-\frac {\left (\left (2 c^4 d^4+b^4 e^4-4 b^2 c e^3 (b d+a e)-4 c^3 d^2 e (b d+3 a e)+2 c^2 e^2 \left (3 b^2 d^2+6 a b d e+a^2 e^2\right )\right ) n\right ) \int \frac {b+2 c x}{a+b x+c x^2} \, dx}{8 c^4 e} \\ & = -\frac {\left (8 c^3 d^3-b^3 e^3+b c e^2 (4 b d+3 a e)-2 c^2 d e (3 b d+4 a e)\right ) n x}{4 c^3}-\frac {e \left (12 c^2 d^2+b^2 e^2-2 c e (2 b d+a e)\right ) n x^2}{8 c^2}-\frac {e^2 (8 c d-b e) n x^3}{12 c}-\frac {1}{8} e^3 n x^4-\frac {\left (2 c^4 d^4+b^4 e^4-4 b^2 c e^3 (b d+a e)-4 c^3 d^2 e (b d+3 a e)+2 c^2 e^2 \left (3 b^2 d^2+6 a b d e+a^2 e^2\right )\right ) n \log \left (a+b x+c x^2\right )}{8 c^4 e}+\frac {(d+e x)^4 \log \left (d \left (a+b x+c x^2\right )^n\right )}{4 e}+\frac {\left (\left (b^2-4 a c\right ) (2 c d-b e) \left (2 c^2 d^2+b^2 e^2-2 c e (b d+a e)\right ) n\right ) \text {Subst}\left (\int \frac {1}{b^2-4 a c-x^2} \, dx,x,b+2 c x\right )}{4 c^4} \\ & = -\frac {\left (8 c^3 d^3-b^3 e^3+b c e^2 (4 b d+3 a e)-2 c^2 d e (3 b d+4 a e)\right ) n x}{4 c^3}-\frac {e \left (12 c^2 d^2+b^2 e^2-2 c e (2 b d+a e)\right ) n x^2}{8 c^2}-\frac {e^2 (8 c d-b e) n x^3}{12 c}-\frac {1}{8} e^3 n x^4+\frac {\sqrt {b^2-4 a c} (2 c d-b e) \left (2 c^2 d^2+b^2 e^2-2 c e (b d+a e)\right ) n \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{4 c^4}-\frac {\left (2 c^4 d^4+b^4 e^4-4 b^2 c e^3 (b d+a e)-4 c^3 d^2 e (b d+3 a e)+2 c^2 e^2 \left (3 b^2 d^2+6 a b d e+a^2 e^2\right )\right ) n \log \left (a+b x+c x^2\right )}{8 c^4 e}+\frac {(d+e x)^4 \log \left (d \left (a+b x+c x^2\right )^n\right )}{4 e} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.32 (sec) , antiderivative size = 324, normalized size of antiderivative = 0.96 \[ \int (d+e x)^3 \log \left (d \left (a+b x+c x^2\right )^n\right ) \, dx=\frac {-\frac {n \left (6 c e \left (8 c^3 d^3-b^3 e^3+b c e^2 (4 b d+3 a e)-2 c^2 d e (3 b d+4 a e)\right ) x+3 c^2 e^2 \left (12 c^2 d^2+b^2 e^2-2 c e (2 b d+a e)\right ) x^2+2 c^3 e^3 (8 c d-b e) x^3+3 c^4 e^4 x^4-6 \sqrt {b^2-4 a c} e (2 c d-b e) \left (2 c^2 d^2+b^2 e^2-2 c e (b d+a e)\right ) \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )+3 \left (2 c^4 d^4+b^4 e^4-4 b^2 c e^3 (b d+a e)-4 c^3 d^2 e (b d+3 a e)+2 c^2 e^2 \left (3 b^2 d^2+6 a b d e+a^2 e^2\right )\right ) \log (a+x (b+c x))\right )}{6 c^4}+(d+e x)^4 \log \left (d (a+x (b+c x))^n\right )}{4 e} \]

[In]

Integrate[(d + e*x)^3*Log[d*(a + b*x + c*x^2)^n],x]

[Out]

(-1/6*(n*(6*c*e*(8*c^3*d^3 - b^3*e^3 + b*c*e^2*(4*b*d + 3*a*e) - 2*c^2*d*e*(3*b*d + 4*a*e))*x + 3*c^2*e^2*(12*
c^2*d^2 + b^2*e^2 - 2*c*e*(2*b*d + a*e))*x^2 + 2*c^3*e^3*(8*c*d - b*e)*x^3 + 3*c^4*e^4*x^4 - 6*Sqrt[b^2 - 4*a*
c]*e*(2*c*d - b*e)*(2*c^2*d^2 + b^2*e^2 - 2*c*e*(b*d + a*e))*ArcTanh[(b + 2*c*x)/Sqrt[b^2 - 4*a*c]] + 3*(2*c^4
*d^4 + b^4*e^4 - 4*b^2*c*e^3*(b*d + a*e) - 4*c^3*d^2*e*(b*d + 3*a*e) + 2*c^2*e^2*(3*b^2*d^2 + 6*a*b*d*e + a^2*
e^2))*Log[a + x*(b + c*x)]))/c^4 + (d + e*x)^4*Log[d*(a + x*(b + c*x))^n])/(4*e)

Maple [A] (verified)

Time = 2.38 (sec) , antiderivative size = 594, normalized size of antiderivative = 1.76

method result size
parts \(\frac {\ln \left (d \left (c \,x^{2}+b x +a \right )^{n}\right ) e^{3} x^{4}}{4}+\ln \left (d \left (c \,x^{2}+b x +a \right )^{n}\right ) e^{2} d \,x^{3}+\frac {3 \ln \left (d \left (c \,x^{2}+b x +a \right )^{n}\right ) e \,d^{2} x^{2}}{2}+\ln \left (d \left (c \,x^{2}+b x +a \right )^{n}\right ) d^{3} x +\frac {\ln \left (d \left (c \,x^{2}+b x +a \right )^{n}\right ) d^{4}}{4 e}-\frac {n \left (\frac {e \left (\frac {1}{2} c^{3} e^{3} x^{4}-\frac {1}{3} b \,c^{2} e^{3} x^{3}+\frac {8}{3} c^{3} d \,e^{2} x^{3}-a \,c^{2} e^{3} x^{2}+\frac {1}{2} b^{2} c \,e^{3} x^{2}-2 b \,c^{2} d \,e^{2} x^{2}+6 c^{3} d^{2} e \,x^{2}+3 a b c x \,e^{3}-8 a \,c^{2} d x \,e^{2}-x \,b^{3} e^{3}+4 b^{2} c d x \,e^{2}-6 x b \,c^{2} d^{2} e +8 x \,c^{3} d^{3}\right )}{c^{3}}+\frac {\frac {\left (2 a^{2} c^{2} e^{4}-4 a \,b^{2} c \,e^{4}+12 a b \,c^{2} d \,e^{3}-12 a \,c^{3} d^{2} e^{2}+b^{4} e^{4}-4 b^{3} c d \,e^{3}+6 b^{2} c^{2} d^{2} e^{2}-4 b \,c^{3} d^{3} e +2 c^{4} d^{4}\right ) \ln \left (c \,x^{2}+b x +a \right )}{2 c}+\frac {2 \left (-3 a^{2} b c \,e^{4}+8 a^{2} c^{2} d \,e^{3}+a \,b^{3} e^{4}-4 a \,b^{2} c d \,e^{3}+6 a b \,c^{2} d^{2} e^{2}-8 a \,c^{3} d^{3} e +b \,c^{3} d^{4}-\frac {\left (2 a^{2} c^{2} e^{4}-4 a \,b^{2} c \,e^{4}+12 a b \,c^{2} d \,e^{3}-12 a \,c^{3} d^{2} e^{2}+b^{4} e^{4}-4 b^{3} c d \,e^{3}+6 b^{2} c^{2} d^{2} e^{2}-4 b \,c^{3} d^{3} e +2 c^{4} d^{4}\right ) b}{2 c}\right ) \arctan \left (\frac {2 x c +b}{\sqrt {4 c a -b^{2}}}\right )}{\sqrt {4 c a -b^{2}}}}{c^{3}}\right )}{4 e}\) \(594\)
risch \(\text {Expression too large to display}\) \(16059\)

[In]

int((e*x+d)^3*ln(d*(c*x^2+b*x+a)^n),x,method=_RETURNVERBOSE)

[Out]

1/4*ln(d*(c*x^2+b*x+a)^n)*e^3*x^4+ln(d*(c*x^2+b*x+a)^n)*e^2*d*x^3+3/2*ln(d*(c*x^2+b*x+a)^n)*e*d^2*x^2+ln(d*(c*
x^2+b*x+a)^n)*d^3*x+1/4*ln(d*(c*x^2+b*x+a)^n)/e*d^4-1/4/e*n*(e/c^3*(1/2*c^3*e^3*x^4-1/3*b*c^2*e^3*x^3+8/3*c^3*
d*e^2*x^3-a*c^2*e^3*x^2+1/2*b^2*c*e^3*x^2-2*b*c^2*d*e^2*x^2+6*c^3*d^2*e*x^2+3*a*b*c*x*e^3-8*a*c^2*d*x*e^2-x*b^
3*e^3+4*b^2*c*d*x*e^2-6*x*b*c^2*d^2*e+8*x*c^3*d^3)+1/c^3*(1/2*(2*a^2*c^2*e^4-4*a*b^2*c*e^4+12*a*b*c^2*d*e^3-12
*a*c^3*d^2*e^2+b^4*e^4-4*b^3*c*d*e^3+6*b^2*c^2*d^2*e^2-4*b*c^3*d^3*e+2*c^4*d^4)/c*ln(c*x^2+b*x+a)+2*(-3*a^2*b*
c*e^4+8*a^2*c^2*d*e^3+a*b^3*e^4-4*a*b^2*c*d*e^3+6*a*b*c^2*d^2*e^2-8*a*c^3*d^3*e+b*c^3*d^4-1/2*(2*a^2*c^2*e^4-4
*a*b^2*c*e^4+12*a*b*c^2*d*e^3-12*a*c^3*d^2*e^2+b^4*e^4-4*b^3*c*d*e^3+6*b^2*c^2*d^2*e^2-4*b*c^3*d^3*e+2*c^4*d^4
)*b/c)/(4*a*c-b^2)^(1/2)*arctan((2*c*x+b)/(4*a*c-b^2)^(1/2))))

Fricas [A] (verification not implemented)

none

Time = 0.33 (sec) , antiderivative size = 880, normalized size of antiderivative = 2.60 \[ \int (d+e x)^3 \log \left (d \left (a+b x+c x^2\right )^n\right ) \, dx=\left [-\frac {3 \, c^{4} e^{3} n x^{4} + 2 \, {\left (8 \, c^{4} d e^{2} - b c^{3} e^{3}\right )} n x^{3} + 3 \, {\left (12 \, c^{4} d^{2} e - 4 \, b c^{3} d e^{2} + {\left (b^{2} c^{2} - 2 \, a c^{3}\right )} e^{3}\right )} n x^{2} - 3 \, {\left (4 \, c^{3} d^{3} - 6 \, b c^{2} d^{2} e + 4 \, {\left (b^{2} c - a c^{2}\right )} d e^{2} - {\left (b^{3} - 2 \, a b c\right )} e^{3}\right )} \sqrt {b^{2} - 4 \, a c} n \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 ) + 6 \, {\left (8 \, c^{4} d^{3} - 6 \, b c^{3} d^{2} e + 4 \, {\left (b^{2} c^{2} - 2 \, a c^{3}\right )} d e^{2} - {\left (b^{3} c - 3 \, a b c^{2}\right )} e^{3}\right )} n x - 3 \, {\left (2 \, c^{4} e^{3} n x^{4} + 8 \, c^{4} d e^{2} n x^{3} + 12 \, c^{4} d^{2} e n x^{2} + 8 \, c^{4} d^{3} n x + {\left (4 \, b c^{3} d^{3} - 6 \, {\left (b^{2} c^{2} - 2 \, a c^{3}\right )} d^{2} e + 4 \, {\left (b^{3} c - 3 \, a b c^{2}\right )} d e^{2} - {\left (b^{4} - 4 \, a b^{2} c + 2 \, a^{2} c^{2}\right )} e^{3}\right )} n\right )} \log \left (c x^{2} + b x + a\right ) - 6 \, {\left (c^{4} e^{3} x^{4} + 4 \, c^{4} d e^{2} x^{3} + 6 \, c^{4} d^{2} e x^{2} + 4 \, c^{4} d^{3} x\right )} \log \left (d\right )}{24 \, c^{4}}, -\frac {3 \, c^{4} e^{3} n x^{4} + 2 \, {\left (8 \, c^{4} d e^{2} - b c^{3} e^{3}\right )} n x^{3} + 3 \, {\left (12 \, c^{4} d^{2} e - 4 \, b c^{3} d e^{2} + {\left (b^{2} c^{2} - 2 \, a c^{3}\right )} e^{3}\right )} n x^{2} - 6 \, {\left (4 \, c^{3} d^{3} - 6 \, b c^{2} d^{2} e + 4 \, {\left (b^{2} c - a c^{2}\right )} d e^{2} - {\left (b^{3} - 2 \, a b c\right )} e^{3}\right )} \sqrt {-b^{2} + 4 \, a c} n \arctan \left (-\frac {\sqrt {-b^{2} + 4 \, a c} {\left (2 \, c x + b\right )}}{b^{2} - 4 \, a c}\right ) + 6 \, {\left (8 \, c^{4} d^{3} - 6 \, b c^{3} d^{2} e + 4 \, {\left (b^{2} c^{2} - 2 \, a c^{3}\right )} d e^{2} - {\left (b^{3} c - 3 \, a b c^{2}\right )} e^{3}\right )} n x - 3 \, {\left (2 \, c^{4} e^{3} n x^{4} + 8 \, c^{4} d e^{2} n x^{3} + 12 \, c^{4} d^{2} e n x^{2} + 8 \, c^{4} d^{3} n x + {\left (4 \, b c^{3} d^{3} - 6 \, {\left (b^{2} c^{2} - 2 \, a c^{3}\right )} d^{2} e + 4 \, {\left (b^{3} c - 3 \, a b c^{2}\right )} d e^{2} - {\left (b^{4} - 4 \, a b^{2} c + 2 \, a^{2} c^{2}\right )} e^{3}\right )} n\right )} \log \left (c x^{2} + b x + a\right ) - 6 \, {\left (c^{4} e^{3} x^{4} + 4 \, c^{4} d e^{2} x^{3} + 6 \, c^{4} d^{2} e x^{2} + 4 \, c^{4} d^{3} x\right )} \log \left (d\right )}{24 \, c^{4}}\right ] \]

[In]

integrate((e*x+d)^3*log(d*(c*x^2+b*x+a)^n),x, algorithm="fricas")

[Out]

[-1/24*(3*c^4*e^3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n*x^4 +
 8*c^4*d*e^2*n*x^3 + 12*c^4*d^2*e*n*x^2 + 8*c^4*d^3*n*x + (4*b*c^3*d^3 - 6*(b^2*c^2 - 2*a*c^3)*d^2*e + 4*(b^3*
c - 3*a*b*c^2)*d*e^2 - (b^4 - 4*a*b^2*c + 2*a^2*c^2)*e^3)*n)*log(c*x^2 + b*x + a) - 6*(c^4*e^3*x^4 + 4*c^4*d*e
^2*x^3 + 6*c^4*d^2*e*x^2 + 4*c^4*d^3*x)*log(d))/c^4]

Sympy [F(-1)]

Timed out. \[ \int (d+e x)^3 \log \left (d \left (a+b x+c x^2\right )^n\right ) \, dx=\text {Timed out} \]

[In]

integrate((e*x+d)**3*ln(d*(c*x**2+b*x+a)**n),x)

[Out]

Timed out

Maxima [F(-2)]

Exception generated. \[ \int (d+e x)^3 \log \left (d \left (a+b x+c x^2\right )^n\right ) \, dx=\text {Exception raised: ValueError} \]

[In]

integrate((e*x+d)^3*log(d*(c*x^2+b*x+a)^n),x, algorithm="maxima")

[Out]

Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'a
ssume' command before evaluation *may* help (example of legal syntax is 'assume(4*a*c-b^2>0)', see `assume?` f
or more deta

Giac [A] (verification not implemented)

none

Time = 0.36 (sec) , antiderivative size = 495, normalized size of antiderivative = 1.46 \[ \int (d+e x)^3 \log \left (d \left (a+b x+c x^2\right )^n\right ) \, dx=-\frac {1}{8} \, {\left (e^{3} n - 2 \, e^{3} \log \left (d\right )\right )} x^{4} - \frac {{\left (8 \, c d e^{2} n - b e^{3} n - 12 \, c d e^{2} \log \left (d\right )\right )} x^{3}}{12 \, c} + \frac {1}{4} \, {\left (e^{3} n x^{4} + 4 \, d e^{2} n x^{3} + 6 \, d^{2} e n x^{2} + 4 \, d^{3} n x\right )} \log \left (c x^{2} + b x + a\right ) - \frac {{\left (12 \, c^{2} d^{2} e n - 4 \, b c d e^{2} n + b^{2} e^{3} n - 2 \, a c e^{3} n - 12 \, c^{2} d^{2} e \log \left (d\right )\right )} x^{2}}{8 \, c^{2}} - \frac {{\left (8 \, c^{3} d^{3} n - 6 \, b c^{2} d^{2} e n + 4 \, b^{2} c d e^{2} n - 8 \, a c^{2} d e^{2} n - b^{3} e^{3} n + 3 \, a b c e^{3} n - 4 \, c^{3} d^{3} \log \left (d\right )\right )} x}{4 \, c^{3}} + \frac {{\left (4 \, b c^{3} d^{3} n - 6 \, b^{2} c^{2} d^{2} e n + 12 \, a c^{3} d^{2} e n + 4 \, b^{3} c d e^{2} n - 12 \, a b c^{2} d e^{2} n - b^{4} e^{3} n + 4 \, a b^{2} c e^{3} n - 2 \, a^{2} c^{2} e^{3} n\right )} \log \left (c x^{2} + b x + a\right )}{8 \, c^{4}} - \frac {{\left (4 \, b^{2} c^{3} d^{3} n - 16 \, a c^{4} d^{3} n - 6 \, b^{3} c^{2} d^{2} e n + 24 \, a b c^{3} d^{2} e n + 4 \, b^{4} c d e^{2} n - 20 \, a b^{2} c^{2} d e^{2} n + 16 \, a^{2} c^{3} d e^{2} n - b^{5} e^{3} n + 6 \, a b^{3} c e^{3} n - 8 \, a^{2} b c^{2} e^{3} n\right )} \arctan \left (\frac {2 \, c x + b}{\sqrt {-b^{2} + 4 \, a c}}\right )}{4 \, \sqrt {-b^{2} + 4 \, a c} c^{4}} \]

[In]

integrate((e*x+d)^3*log(d*(c*x^2+b*x+a)^n),x, algorithm="giac")

[Out]

-1/8*(e^3*n - 2*e^3*log(d))*x^4 - 1/12*(8*c*d*e^2*n - b*e^3*n - 12*c*d*e^2*log(d))*x^3/c + 1/4*(e^3*n*x^4 + 4*
d*e^2*n*x^3 + 6*d^2*e*n*x^2 + 4*d^3*n*x)*log(c*x^2 + b*x + a) - 1/8*(12*c^2*d^2*e*n - 4*b*c*d*e^2*n + b^2*e^3*
n - 2*a*c*e^3*n - 12*c^2*d^2*e*log(d))*x^2/c^2 - 1/4*(8*c^3*d^3*n - 6*b*c^2*d^2*e*n + 4*b^2*c*d*e^2*n - 8*a*c^
2*d*e^2*n - b^3*e^3*n + 3*a*b*c*e^3*n - 4*c^3*d^3*log(d))*x/c^3 + 1/8*(4*b*c^3*d^3*n - 6*b^2*c^2*d^2*e*n + 12*
a*c^3*d^2*e*n + 4*b^3*c*d*e^2*n - 12*a*b*c^2*d*e^2*n - b^4*e^3*n + 4*a*b^2*c*e^3*n - 2*a^2*c^2*e^3*n)*log(c*x^
2 + b*x + a)/c^4 - 1/4*(4*b^2*c^3*d^3*n - 16*a*c^4*d^3*n - 6*b^3*c^2*d^2*e*n + 24*a*b*c^3*d^2*e*n + 4*b^4*c*d*
e^2*n - 20*a*b^2*c^2*d*e^2*n + 16*a^2*c^3*d*e^2*n - b^5*e^3*n + 6*a*b^3*c*e^3*n - 8*a^2*b*c^2*e^3*n)*arctan((2
*c*x + b)/sqrt(-b^2 + 4*a*c))/(sqrt(-b^2 + 4*a*c)*c^4)

Mupad [B] (verification not implemented)

Time = 1.92 (sec) , antiderivative size = 775, normalized size of antiderivative = 2.29 \[ \int (d+e x)^3 \log \left (d \left (a+b x+c x^2\right )^n\right ) \, dx=\ln \left (d\,{\left (c\,x^2+b\,x+a\right )}^n\right )\,\left (d^3\,x+\frac {3\,d^2\,e\,x^2}{2}+d\,e^2\,x^3+\frac {e^3\,x^4}{4}\right )-x^3\,\left (\frac {e^2\,n\,\left (b\,e+8\,c\,d\right )}{12\,c}-\frac {b\,e^3\,n}{6\,c}\right )-x\,\left (\frac {b\,\left (\frac {b\,\left (\frac {e^2\,n\,\left (b\,e+8\,c\,d\right )}{4\,c}-\frac {b\,e^3\,n}{2\,c}\right )}{c}+\frac {a\,e^3\,n}{2\,c}-\frac {d\,e\,n\,\left (b\,e+3\,c\,d\right )}{c}\right )}{c}-\frac {a\,\left (\frac {e^2\,n\,\left (b\,e+8\,c\,d\right )}{4\,c}-\frac {b\,e^3\,n}{2\,c}\right )}{c}+\frac {d^2\,n\,\left (3\,b\,e+4\,c\,d\right )}{2\,c}\right )+x^2\,\left (\frac {b\,\left (\frac {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,d^2\,e\,n\,\sqrt {b^2-4\,a\,c}+4\,b^2\,c\,d\,e^2\,n\,\sqrt {b^2-4\,a\,c}\right )}{8\,c^4} \]

[In]

int(log(d*(a + b*x + c*x^2)^n)*(d + e*x)^3,x)

[Out]

log(d*(a + b*x + c*x^2)^n)*(d^3*x + (e^3*x^4)/4 + (3*d^2*e*x^2)/2 + d*e^2*x^3) - x^3*((e^2*n*(b*e + 8*c*d))/(1
2*c) - (b*e^3*n)/(6*c)) - x*((b*((b*((e^2*n*(b*e + 8*c*d))/(4*c) - (b*e^3*n)/(2*c)))/c + (a*e^3*n)/(2*c) - (d*
e*n*(b*e + 3*c*d))/c))/c - (a*((e^2*n*(b*e + 8*c*d))/(4*c) - (b*e^3*n)/(2*c)))/c + (d^2*n*(3*b*e + 4*c*d))/(2*
c)) + x^2*((b*((e^2*n*(b*e + 8*c*d))/(4*c) - (b*e^3*n)/(2*c)))/(2*c) + (a*e^3*n)/(4*c) - (d*e*n*(b*e + 3*c*d))
/(2*c)) - (log(b*(b^2 - 4*a*c)^(1/2) - 4*a*c + b^2 + 2*c*x*(b^2 - 4*a*c)^(1/2))*(b^4*e^3*n + 2*a^2*c^2*e^3*n -
 4*b*c^3*d^3*n + b^3*e^3*n*(b^2 - 4*a*c)^(1/2) - 4*c^3*d^3*n*(b^2 - 4*a*c)^(1/2) - 4*a*b^2*c*e^3*n - 12*a*c^3*
d^2*e*n - 4*b^3*c*d*e^2*n + 6*b^2*c^2*d^2*e*n - 2*a*b*c*e^3*n*(b^2 - 4*a*c)^(1/2) + 12*a*b*c^2*d*e^2*n + 4*a*c
^2*d*e^2*n*(b^2 - 4*a*c)^(1/2) + 6*b*c^2*d^2*e*n*(b^2 - 4*a*c)^(1/2) - 4*b^2*c*d*e^2*n*(b^2 - 4*a*c)^(1/2)))/(
8*c^4) - (e^3*n*x^4)/8 - (log(4*a*c + b*(b^2 - 4*a*c)^(1/2) - b^2 + 2*c*x*(b^2 - 4*a*c)^(1/2))*(b^4*e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