Integrand size = 24, antiderivative size = 68 \[ \int (b d+2 c d x)^3 \left (a+b x+c x^2\right )^p \, dx=\frac {\left (b^2-4 a c\right ) d^3 \left (a+b x+c x^2\right )^{1+p}}{(1+p) (2+p)}+\frac {d^3 (b+2 c x)^2 \left (a+b x+c x^2\right )^{1+p}}{2+p} \] Output:
(-4*a*c+b^2)*d^3*(c*x^2+b*x+a)^(p+1)/(p+1)/(2+p)+d^3*(2*c*x+b)^2*(c*x^2+b* x+a)^(p+1)/(2+p)
Time = 0.15 (sec) , antiderivative size = 58, normalized size of antiderivative = 0.85 \[ \int (b d+2 c d x)^3 \left (a+b x+c x^2\right )^p \, dx=\frac {d^3 (a+x (b+c x))^{1+p} \left (b^2 (2+p)+4 b c (1+p) x+4 c \left (-a+c (1+p) x^2\right )\right )}{(1+p) (2+p)} \] Input:
Integrate[(b*d + 2*c*d*x)^3*(a + b*x + c*x^2)^p,x]
Output:
(d^3*(a + x*(b + c*x))^(1 + p)*(b^2*(2 + p) + 4*b*c*(1 + p)*x + 4*c*(-a + c*(1 + p)*x^2)))/((1 + p)*(2 + p))
Time = 0.20 (sec) , antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {1116, 27, 1104}
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 (b d+2 c d x)^3 \left (a+b x+c x^2\right )^p \, dx\) |
\(\Big \downarrow \) 1116 |
\(\displaystyle \frac {d^2 \left (b^2-4 a c\right ) \int d (b+2 c x) \left (c x^2+b x+a\right )^pdx}{p+2}+\frac {d^3 (b+2 c x)^2 \left (a+b x+c x^2\right )^{p+1}}{p+2}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {d^3 \left (b^2-4 a c\right ) \int (b+2 c x) \left (c x^2+b x+a\right )^pdx}{p+2}+\frac {d^3 (b+2 c x)^2 \left (a+b x+c x^2\right )^{p+1}}{p+2}\) |
\(\Big \downarrow \) 1104 |
\(\displaystyle \frac {d^3 \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^{p+1}}{(p+1) (p+2)}+\frac {d^3 (b+2 c x)^2 \left (a+b x+c x^2\right )^{p+1}}{p+2}\) |
Input:
Int[(b*d + 2*c*d*x)^3*(a + b*x + c*x^2)^p,x]
Output:
((b^2 - 4*a*c)*d^3*(a + b*x + c*x^2)^(1 + p))/((1 + p)*(2 + p)) + (d^3*(b + 2*c*x)^2*(a + b*x + c*x^2)^(1 + p))/(2 + p)
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((d_) + (e_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol ] :> Simp[d*((a + b*x + c*x^2)^(p + 1)/(b*(p + 1))), x] /; FreeQ[{a, b, c, d, e, p}, x] && EqQ[2*c*d - b*e, 0]
Int[((d_) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_S ymbol] :> Simp[2*d*(d + e*x)^(m - 1)*((a + b*x + c*x^2)^(p + 1)/(b*(m + 2*p + 1))), x] + Simp[d^2*(m - 1)*((b^2 - 4*a*c)/(b^2*(m + 2*p + 1))) Int[(d + e*x)^(m - 2)*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, p}, x] && EqQ[2*c*d - b*e, 0] && NeQ[m + 2*p + 3, 0] && GtQ[m, 1] && NeQ[m + 2*p + 1, 0] && (IntegerQ[2*p] || (IntegerQ[m] && RationalQ[p]) || OddQ[m])
Time = 0.97 (sec) , antiderivative size = 74, normalized size of antiderivative = 1.09
method | result | size |
gosper | \(-\frac {d^{3} \left (c \,x^{2}+b x +a \right )^{p +1} \left (-4 c^{2} p \,x^{2}-4 b c p x -4 c^{2} x^{2}-b^{2} p -4 c b x +4 a c -2 b^{2}\right )}{p^{2}+3 p +2}\) | \(74\) |
orering | \(-\frac {\left (-4 c^{2} p \,x^{2}-4 b c p x -4 c^{2} x^{2}-b^{2} p -4 c b x +4 a c -2 b^{2}\right ) \left (c \,x^{2}+b x +a \right ) \left (2 c d x +b d \right )^{3} \left (c \,x^{2}+b x +a \right )^{p}}{\left (p^{2}+3 p +2\right ) \left (2 c x +b \right )^{3}}\) | \(98\) |
risch | \(-\frac {d^{3} \left (-4 p \,c^{3} x^{4}-8 p b \,c^{2} x^{3}-4 c^{3} x^{4}-4 a \,c^{2} p \,x^{2}-5 b^{2} c p \,x^{2}-8 b \,c^{2} x^{3}-4 a b c p x -b^{3} p x -6 b^{2} c \,x^{2}-a \,b^{2} p -2 b^{3} x +4 a^{2} c -2 a \,b^{2}\right ) \left (c \,x^{2}+b x +a \right )^{p}}{\left (2+p \right ) \left (p +1\right )}\) | \(133\) |
norman | \(\frac {b \,d^{3} \left (4 a c p +b^{2} p +2 b^{2}\right ) x \,{\mathrm e}^{p \ln \left (c \,x^{2}+b x +a \right )}}{p^{2}+3 p +2}+\frac {c \,d^{3} \left (4 a c p +5 b^{2} p +6 b^{2}\right ) x^{2} {\mathrm e}^{p \ln \left (c \,x^{2}+b x +a \right )}}{p^{2}+3 p +2}-\frac {a \,d^{3} \left (-b^{2} p +4 a c -2 b^{2}\right ) {\mathrm e}^{p \ln \left (c \,x^{2}+b x +a \right )}}{p^{2}+3 p +2}+\frac {4 d^{3} c^{3} x^{4} {\mathrm e}^{p \ln \left (c \,x^{2}+b x +a \right )}}{2+p}+\frac {8 b \,c^{2} d^{3} x^{3} {\mathrm e}^{p \ln \left (c \,x^{2}+b x +a \right )}}{2+p}\) | \(204\) |
parallelrisch | \(\frac {4 x^{4} \left (c \,x^{2}+b x +a \right )^{p} c^{4} d^{3} p +4 x^{4} \left (c \,x^{2}+b x +a \right )^{p} c^{4} d^{3}+8 x^{3} \left (c \,x^{2}+b x +a \right )^{p} b \,c^{3} d^{3} p +8 x^{3} \left (c \,x^{2}+b x +a \right )^{p} b \,c^{3} d^{3}+4 x^{2} \left (c \,x^{2}+b x +a \right )^{p} a \,c^{3} d^{3} p +5 x^{2} \left (c \,x^{2}+b x +a \right )^{p} b^{2} c^{2} d^{3} p +6 x^{2} \left (c \,x^{2}+b x +a \right )^{p} b^{2} c^{2} d^{3}+4 x \left (c \,x^{2}+b x +a \right )^{p} a b \,c^{2} d^{3} p +x \left (c \,x^{2}+b x +a \right )^{p} b^{3} c \,d^{3} p +2 x \left (c \,x^{2}+b x +a \right )^{p} b^{3} c \,d^{3}+\left (c \,x^{2}+b x +a \right )^{p} a \,b^{2} c \,d^{3} p -4 \left (c \,x^{2}+b x +a \right )^{p} a^{2} c^{2} d^{3}+2 \left (c \,x^{2}+b x +a \right )^{p} a \,b^{2} c \,d^{3}}{c \left (2+p \right ) \left (p +1\right )}\) | \(325\) |
Input:
int((2*c*d*x+b*d)^3*(c*x^2+b*x+a)^p,x,method=_RETURNVERBOSE)
Output:
-d^3/(p^2+3*p+2)*(c*x^2+b*x+a)^(p+1)*(-4*c^2*p*x^2-4*b*c*p*x-4*c^2*x^2-b^2 *p-4*b*c*x+4*a*c-2*b^2)
Leaf count of result is larger than twice the leaf count of optimal. 151 vs. \(2 (68) = 136\).
Time = 0.09 (sec) , antiderivative size = 151, normalized size of antiderivative = 2.22 \[ \int (b d+2 c d x)^3 \left (a+b x+c x^2\right )^p \, dx=\frac {{\left (a b^{2} d^{3} p + 4 \, {\left (c^{3} d^{3} p + c^{3} d^{3}\right )} x^{4} + 2 \, {\left (a b^{2} - 2 \, a^{2} c\right )} d^{3} + 8 \, {\left (b c^{2} d^{3} p + b c^{2} d^{3}\right )} x^{3} + {\left (6 \, b^{2} c d^{3} + {\left (5 \, b^{2} c + 4 \, a c^{2}\right )} d^{3} p\right )} x^{2} + {\left (2 \, b^{3} d^{3} + {\left (b^{3} + 4 \, a b c\right )} d^{3} p\right )} x\right )} {\left (c x^{2} + b x + a\right )}^{p}}{p^{2} + 3 \, p + 2} \] Input:
integrate((2*c*d*x+b*d)^3*(c*x^2+b*x+a)^p,x, algorithm="fricas")
Output:
(a*b^2*d^3*p + 4*(c^3*d^3*p + c^3*d^3)*x^4 + 2*(a*b^2 - 2*a^2*c)*d^3 + 8*( b*c^2*d^3*p + b*c^2*d^3)*x^3 + (6*b^2*c*d^3 + (5*b^2*c + 4*a*c^2)*d^3*p)*x ^2 + (2*b^3*d^3 + (b^3 + 4*a*b*c)*d^3*p)*x)*(c*x^2 + b*x + a)^p/(p^2 + 3*p + 2)
Leaf count of result is larger than twice the leaf count of optimal. 877 vs. \(2 (60) = 120\).
Time = 99.38 (sec) , antiderivative size = 877, normalized size of antiderivative = 12.90 \[ \int (b d+2 c d x)^3 \left (a+b x+c x^2\right )^p \, dx =\text {Too large to display} \] Input:
integrate((2*c*d*x+b*d)**3*(c*x**2+b*x+a)**p,x)
Output:
Piecewise((4*a*c*d**3*log(b/(2*c) + x - sqrt(-4*a*c + b**2)/(2*c))/(a + b* x + c*x**2) + 4*a*c*d**3*log(b/(2*c) + x + sqrt(-4*a*c + b**2)/(2*c))/(a + b*x + c*x**2) + 4*a*c*d**3/(a + b*x + c*x**2) - b**2*d**3/(a + b*x + c*x* *2) + 4*b*c*d**3*x*log(b/(2*c) + x - sqrt(-4*a*c + b**2)/(2*c))/(a + b*x + c*x**2) + 4*b*c*d**3*x*log(b/(2*c) + x + sqrt(-4*a*c + b**2)/(2*c))/(a + b*x + c*x**2) + 4*c**2*d**3*x**2*log(b/(2*c) + x - sqrt(-4*a*c + b**2)/(2* c))/(a + b*x + c*x**2) + 4*c**2*d**3*x**2*log(b/(2*c) + x + sqrt(-4*a*c + b**2)/(2*c))/(a + b*x + c*x**2), Eq(p, -2)), (-4*a*c*d**3*log(b/(2*c) + x - sqrt(-4*a*c + b**2)/(2*c)) - 4*a*c*d**3*log(b/(2*c) + x + sqrt(-4*a*c + b**2)/(2*c)) + b**2*d**3*log(b/(2*c) + x - sqrt(-4*a*c + b**2)/(2*c)) + b* *2*d**3*log(b/(2*c) + x + sqrt(-4*a*c + b**2)/(2*c)) + 4*b*c*d**3*x + 4*c* *2*d**3*x**2, Eq(p, -1)), (-4*a**2*c*d**3*(a + b*x + c*x**2)**p/(p**2 + 3* p + 2) + a*b**2*d**3*p*(a + b*x + c*x**2)**p/(p**2 + 3*p + 2) + 2*a*b**2*d **3*(a + b*x + c*x**2)**p/(p**2 + 3*p + 2) + 4*a*b*c*d**3*p*x*(a + b*x + c *x**2)**p/(p**2 + 3*p + 2) + 4*a*c**2*d**3*p*x**2*(a + b*x + c*x**2)**p/(p **2 + 3*p + 2) + b**3*d**3*p*x*(a + b*x + c*x**2)**p/(p**2 + 3*p + 2) + 2* b**3*d**3*x*(a + b*x + c*x**2)**p/(p**2 + 3*p + 2) + 5*b**2*c*d**3*p*x**2* (a + b*x + c*x**2)**p/(p**2 + 3*p + 2) + 6*b**2*c*d**3*x**2*(a + b*x + c*x **2)**p/(p**2 + 3*p + 2) + 8*b*c**2*d**3*p*x**3*(a + b*x + c*x**2)**p/(p** 2 + 3*p + 2) + 8*b*c**2*d**3*x**3*(a + b*x + c*x**2)**p/(p**2 + 3*p + 2...
Time = 0.09 (sec) , antiderivative size = 123, normalized size of antiderivative = 1.81 \[ \int (b d+2 c d x)^3 \left (a+b x+c x^2\right )^p \, dx=\frac {{\left (4 \, c^{3} d^{3} {\left (p + 1\right )} x^{4} + 8 \, b c^{2} d^{3} {\left (p + 1\right )} x^{3} + a b^{2} d^{3} {\left (p + 2\right )} - 4 \, a^{2} c d^{3} + {\left (b^{2} c d^{3} {\left (5 \, p + 6\right )} + 4 \, a c^{2} d^{3} p\right )} x^{2} + {\left (b^{3} d^{3} {\left (p + 2\right )} + 4 \, a b c d^{3} p\right )} x\right )} {\left (c x^{2} + b x + a\right )}^{p}}{p^{2} + 3 \, p + 2} \] Input:
integrate((2*c*d*x+b*d)^3*(c*x^2+b*x+a)^p,x, algorithm="maxima")
Output:
(4*c^3*d^3*(p + 1)*x^4 + 8*b*c^2*d^3*(p + 1)*x^3 + a*b^2*d^3*(p + 2) - 4*a ^2*c*d^3 + (b^2*c*d^3*(5*p + 6) + 4*a*c^2*d^3*p)*x^2 + (b^3*d^3*(p + 2) + 4*a*b*c*d^3*p)*x)*(c*x^2 + b*x + a)^p/(p^2 + 3*p + 2)
Time = 0.36 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.29 \[ \int (b d+2 c d x)^3 \left (a+b x+c x^2\right )^p \, dx=\frac {4 \, {\left (c x^{2} + b x + a\right )}^{2} {\left (c x^{2} + b x + a\right )}^{p} c d^{3}}{p + 2} + \frac {{\left (c x^{2} + b x + a\right )}^{p + 1} b^{2} d^{3}}{p + 1} - \frac {4 \, {\left (c x^{2} + b x + a\right )}^{p + 1} a c d^{3}}{p + 1} \] Input:
integrate((2*c*d*x+b*d)^3*(c*x^2+b*x+a)^p,x, algorithm="giac")
Output:
4*(c*x^2 + b*x + a)^2*(c*x^2 + b*x + a)^p*c*d^3/(p + 2) + (c*x^2 + b*x + a )^(p + 1)*b^2*d^3/(p + 1) - 4*(c*x^2 + b*x + a)^(p + 1)*a*c*d^3/(p + 1)
Time = 6.00 (sec) , antiderivative size = 160, normalized size of antiderivative = 2.35 \[ \int (b d+2 c d x)^3 \left (a+b x+c x^2\right )^p \, dx={\left (c\,x^2+b\,x+a\right )}^p\,\left (\frac {a\,d^3\,\left (b^2\,p-4\,a\,c+2\,b^2\right )}{p^2+3\,p+2}+\frac {c\,d^3\,x^2\,\left (5\,b^2\,p+6\,b^2+4\,a\,c\,p\right )}{p^2+3\,p+2}+\frac {4\,c^3\,d^3\,x^4\,\left (p+1\right )}{p^2+3\,p+2}+\frac {b\,d^3\,x\,\left (b^2\,p+2\,b^2+4\,a\,c\,p\right )}{p^2+3\,p+2}+\frac {8\,b\,c^2\,d^3\,x^3\,\left (p+1\right )}{p^2+3\,p+2}\right ) \] Input:
int((b*d + 2*c*d*x)^3*(a + b*x + c*x^2)^p,x)
Output:
(a + b*x + c*x^2)^p*((a*d^3*(b^2*p - 4*a*c + 2*b^2))/(3*p + p^2 + 2) + (c* d^3*x^2*(5*b^2*p + 6*b^2 + 4*a*c*p))/(3*p + p^2 + 2) + (4*c^3*d^3*x^4*(p + 1))/(3*p + p^2 + 2) + (b*d^3*x*(b^2*p + 2*b^2 + 4*a*c*p))/(3*p + p^2 + 2) + (8*b*c^2*d^3*x^3*(p + 1))/(3*p + p^2 + 2))
Time = 0.21 (sec) , antiderivative size = 129, normalized size of antiderivative = 1.90 \[ \int (b d+2 c d x)^3 \left (a+b x+c x^2\right )^p \, dx=\frac {\left (c \,x^{2}+b x +a \right )^{p} d^{3} \left (4 c^{3} p \,x^{4}+8 b \,c^{2} p \,x^{3}+4 c^{3} x^{4}+4 a \,c^{2} p \,x^{2}+5 b^{2} c p \,x^{2}+8 b \,c^{2} x^{3}+4 a b c p x +b^{3} p x +6 b^{2} c \,x^{2}+a \,b^{2} p +2 b^{3} x -4 a^{2} c +2 a \,b^{2}\right )}{p^{2}+3 p +2} \] Input:
int((2*c*d*x+b*d)^3*(c*x^2+b*x+a)^p,x)
Output:
((a + b*x + c*x**2)**p*d**3*( - 4*a**2*c + a*b**2*p + 2*a*b**2 + 4*a*b*c*p *x + 4*a*c**2*p*x**2 + b**3*p*x + 2*b**3*x + 5*b**2*c*p*x**2 + 6*b**2*c*x* *2 + 8*b*c**2*p*x**3 + 8*b*c**2*x**3 + 4*c**3*p*x**4 + 4*c**3*x**4))/(p**2 + 3*p + 2)