Integrand size = 164, antiderivative size = 34 \[ \int \left (a+b x+c x^2\right )^m \left (d+e x+f x^2+g x^3\right )^n \left (b d+a e+b d m+a e n+(2 c d+2 b e+2 a f+2 c d m+b e m+b e n+2 a f n) x+(3 c e+3 b f+3 a g+2 c e m+b f m+c e n+2 b f n+3 a g n) x^2+(4 c f+4 b g+2 c f m+b g m+2 c f n+3 b g n) x^3+c g (5+2 m+3 n) x^4\right ) \, dx=\left (a+b x+c x^2\right )^{1+m} \left (d+e x+f x^2+g x^3\right )^{1+n} \]
Time = 6.96 (sec) , antiderivative size = 31, normalized size of antiderivative = 0.91 \[ \int \left (a+b x+c x^2\right )^m \left (d+e x+f x^2+g x^3\right )^n \left (b d+a e+b d m+a e n+(2 c d+2 b e+2 a f+2 c d m+b e m+b e n+2 a f n) x+(3 c e+3 b f+3 a g+2 c e m+b f m+c e n+2 b f n+3 a g n) x^2+(4 c f+4 b g+2 c f m+b g m+2 c f n+3 b g n) x^3+c g (5+2 m+3 n) x^4\right ) \, dx=(a+x (b+c x))^{1+m} (d+x (e+x (f+g x)))^{1+n} \]
Integrate[(a + b*x + c*x^2)^m*(d + e*x + f*x^2 + g*x^3)^n*(b*d + a*e + b*d *m + a*e*n + (2*c*d + 2*b*e + 2*a*f + 2*c*d*m + b*e*m + b*e*n + 2*a*f*n)*x + (3*c*e + 3*b*f + 3*a*g + 2*c*e*m + b*f*m + c*e*n + 2*b*f*n + 3*a*g*n)*x ^2 + (4*c*f + 4*b*g + 2*c*f*m + b*g*m + 2*c*f*n + 3*b*g*n)*x^3 + c*g*(5 + 2*m + 3*n)*x^4),x]
Time = 0.28 (sec) , antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.006, Rules used = {2023}
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 \left (a+b x+c x^2\right )^m \left (d+e x+f x^2+g x^3\right )^n \left (x (2 a f n+2 a f+b e m+b e n+2 b e+2 c d m+2 c d)+x^2 (3 a g n+3 a g+b f m+2 b f n+3 b f+2 c e m+c e n+3 c e)+a e n+a e+x^3 (b g m+3 b g n+4 b g+2 c f m+2 c f n+4 c f)+b d m+b d+c g x^4 (2 m+3 n+5)\right ) \, dx\) |
\(\Big \downarrow \) 2023 |
\(\displaystyle \left (a+b x+c x^2\right )^{m+1} \left (d+e x+f x^2+g x^3\right )^{n+1}\) |
Int[(a + b*x + c*x^2)^m*(d + e*x + f*x^2 + g*x^3)^n*(b*d + a*e + b*d*m + a *e*n + (2*c*d + 2*b*e + 2*a*f + 2*c*d*m + b*e*m + b*e*n + 2*a*f*n)*x + (3* c*e + 3*b*f + 3*a*g + 2*c*e*m + b*f*m + c*e*n + 2*b*f*n + 3*a*g*n)*x^2 + ( 4*c*f + 4*b*g + 2*c*f*m + b*g*m + 2*c*f*n + 3*b*g*n)*x^3 + c*g*(5 + 2*m + 3*n)*x^4),x]
3.7.15.3.1 Defintions of rubi rules used
Int[(Pp_)*(Qq_)^(m_.)*(Rr_)^(n_.), x_Symbol] :> With[{p = Expon[Pp, x], q = Expon[Qq, x], r = Expon[Rr, x]}, Simp[Coeff[Pp, x, p]*x^(p - q - r + 1)*Qq ^(m + 1)*(Rr^(n + 1)/((p + m*q + n*r + 1)*Coeff[Qq, x, q]*Coeff[Rr, x, r])) , x] /; NeQ[p + m*q + n*r + 1, 0] && EqQ[(p + m*q + n*r + 1)*Coeff[Qq, x, q ]*Coeff[Rr, x, r]*Pp, Coeff[Pp, x, p]*x^(p - q - r)*((p - q - r + 1)*Qq*Rr + (m + 1)*x*Rr*D[Qq, x] + (n + 1)*x*Qq*D[Rr, x])]] /; FreeQ[{m, n}, x] && P olyQ[Pp, x] && PolyQ[Qq, x] && PolyQ[Rr, x] && NeQ[m, -1] && NeQ[n, -1]
Time = 32.99 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.03
method | result | size |
gosper | \(\left (c \,x^{2}+b x +a \right )^{1+m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{1+n}\) | \(35\) |
risch | \(\left (c g \,x^{5}+b g \,x^{4}+c f \,x^{4}+a g \,x^{3}+b f \,x^{3}+c \,x^{3} e +a f \,x^{2}+e \,x^{2} b +x^{2} c d +a e x +b d x +a d \right ) \left (c \,x^{2}+b x +a \right )^{m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{n}\) | \(97\) |
parallelrisch | \(\frac {x^{5} \left (c \,x^{2}+b x +a \right )^{m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{n} c^{2} g^{2}+x^{4} \left (c \,x^{2}+b x +a \right )^{m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{n} b c \,g^{2}+x^{4} \left (c \,x^{2}+b x +a \right )^{m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{n} c^{2} f g +x^{3} \left (c \,x^{2}+b x +a \right )^{m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{n} a c \,g^{2}+x^{3} \left (c \,x^{2}+b x +a \right )^{m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{n} b c f g +x^{3} \left (c \,x^{2}+b x +a \right )^{m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{n} c^{2} e g +x^{2} \left (c \,x^{2}+b x +a \right )^{m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{n} a c f g +x^{2} \left (c \,x^{2}+b x +a \right )^{m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{n} b c e g +x^{2} \left (c \,x^{2}+b x +a \right )^{m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{n} c^{2} d g +x \left (c \,x^{2}+b x +a \right )^{m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{n} a c e g +x \left (c \,x^{2}+b x +a \right )^{m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{n} b c d g +\left (c \,x^{2}+b x +a \right )^{m} \left (g \,x^{3}+f \,x^{2}+e x +d \right )^{n} a c d g}{g c}\) | \(453\) |
int((c*x^2+b*x+a)^m*(g*x^3+f*x^2+e*x+d)^n*(b*d+a*e+b*d*m+a*e*n+(2*a*f*n+b* e*m+b*e*n+2*c*d*m+2*a*f+2*b*e+2*c*d)*x+(3*a*g*n+b*f*m+2*b*f*n+2*c*e*m+c*e* n+3*a*g+3*b*f+3*c*e)*x^2+(b*g*m+3*b*g*n+2*c*f*m+2*c*f*n+4*b*g+4*c*f)*x^3+c *g*(5+2*m+3*n)*x^4),x,method=_RETURNVERBOSE)
Timed out. \[ \int \left (a+b x+c x^2\right )^m \left (d+e x+f x^2+g x^3\right )^n \left (b d+a e+b d m+a e n+(2 c d+2 b e+2 a f+2 c d m+b e m+b e n+2 a f n) x+(3 c e+3 b f+3 a g+2 c e m+b f m+c e n+2 b f n+3 a g n) x^2+(4 c f+4 b g+2 c f m+b g m+2 c f n+3 b g n) x^3+c g (5+2 m+3 n) x^4\right ) \, dx=\text {Timed out} \]
integrate((c*x^2+b*x+a)^m*(g*x^3+f*x^2+e*x+d)^n*(b*d+a*e+b*d*m+a*e*n+(2*a* f*n+b*e*m+b*e*n+2*c*d*m+2*a*f+2*b*e+2*c*d)*x+(3*a*g*n+b*f*m+2*b*f*n+2*c*e* m+c*e*n+3*a*g+3*b*f+3*c*e)*x^2+(b*g*m+3*b*g*n+2*c*f*m+2*c*f*n+4*b*g+4*c*f) *x^3+c*g*(5+2*m+3*n)*x^4),x, algorithm="fricas")
Timed out. \[ \int \left (a+b x+c x^2\right )^m \left (d+e x+f x^2+g x^3\right )^n \left (b d+a e+b d m+a e n+(2 c d+2 b e+2 a f+2 c d m+b e m+b e n+2 a f n) x+(3 c e+3 b f+3 a g+2 c e m+b f m+c e n+2 b f n+3 a g n) x^2+(4 c f+4 b g+2 c f m+b g m+2 c f n+3 b g n) x^3+c g (5+2 m+3 n) x^4\right ) \, dx=\text {Timed out} \]
integrate((c*x**2+b*x+a)**m*(g*x**3+f*x**2+e*x+d)**n*(b*d+a*e+b*d*m+a*e*n+ (2*a*f*n+b*e*m+b*e*n+2*c*d*m+2*a*f+2*b*e+2*c*d)*x+(3*a*g*n+b*f*m+2*b*f*n+2 *c*e*m+c*e*n+3*a*g+3*b*f+3*c*e)*x**2+(b*g*m+3*b*g*n+2*c*f*m+2*c*f*n+4*b*g+ 4*c*f)*x**3+c*g*(5+2*m+3*n)*x**4),x)
Leaf count of result is larger than twice the leaf count of optimal. 92 vs. \(2 (34) = 68\).
Time = 0.27 (sec) , antiderivative size = 92, normalized size of antiderivative = 2.71 \[ \int \left (a+b x+c x^2\right )^m \left (d+e x+f x^2+g x^3\right )^n \left (b d+a e+b d m+a e n+(2 c d+2 b e+2 a f+2 c d m+b e m+b e n+2 a f n) x+(3 c e+3 b f+3 a g+2 c e m+b f m+c e n+2 b f n+3 a g n) x^2+(4 c f+4 b g+2 c f m+b g m+2 c f n+3 b g n) x^3+c g (5+2 m+3 n) x^4\right ) \, dx={\left (c g x^{5} + {\left (c f + b g\right )} x^{4} + {\left (c e + b f + a g\right )} x^{3} + {\left (c d + b e + a f\right )} x^{2} + a d + {\left (b d + a e\right )} x\right )} e^{\left (n \log \left (g x^{3} + f x^{2} + e x + d\right ) + m \log \left (c x^{2} + b x + a\right )\right )} \]
integrate((c*x^2+b*x+a)^m*(g*x^3+f*x^2+e*x+d)^n*(b*d+a*e+b*d*m+a*e*n+(2*a* f*n+b*e*m+b*e*n+2*c*d*m+2*a*f+2*b*e+2*c*d)*x+(3*a*g*n+b*f*m+2*b*f*n+2*c*e* m+c*e*n+3*a*g+3*b*f+3*c*e)*x^2+(b*g*m+3*b*g*n+2*c*f*m+2*c*f*n+4*b*g+4*c*f) *x^3+c*g*(5+2*m+3*n)*x^4),x, algorithm="maxima")
(c*g*x^5 + (c*f + b*g)*x^4 + (c*e + b*f + a*g)*x^3 + (c*d + b*e + a*f)*x^2 + a*d + (b*d + a*e)*x)*e^(n*log(g*x^3 + f*x^2 + e*x + d) + m*log(c*x^2 + b*x + a))
Timed out. \[ \int \left (a+b x+c x^2\right )^m \left (d+e x+f x^2+g x^3\right )^n \left (b d+a e+b d m+a e n+(2 c d+2 b e+2 a f+2 c d m+b e m+b e n+2 a f n) x+(3 c e+3 b f+3 a g+2 c e m+b f m+c e n+2 b f n+3 a g n) x^2+(4 c f+4 b g+2 c f m+b g m+2 c f n+3 b g n) x^3+c g (5+2 m+3 n) x^4\right ) \, dx=\text {Timed out} \]
integrate((c*x^2+b*x+a)^m*(g*x^3+f*x^2+e*x+d)^n*(b*d+a*e+b*d*m+a*e*n+(2*a* f*n+b*e*m+b*e*n+2*c*d*m+2*a*f+2*b*e+2*c*d)*x+(3*a*g*n+b*f*m+2*b*f*n+2*c*e* m+c*e*n+3*a*g+3*b*f+3*c*e)*x^2+(b*g*m+3*b*g*n+2*c*f*m+2*c*f*n+4*b*g+4*c*f) *x^3+c*g*(5+2*m+3*n)*x^4),x, algorithm="giac")
Time = 27.14 (sec) , antiderivative size = 148, normalized size of antiderivative = 4.35 \[ \int \left (a+b x+c x^2\right )^m \left (d+e x+f x^2+g x^3\right )^n \left (b d+a e+b d m+a e n+(2 c d+2 b e+2 a f+2 c d m+b e m+b e n+2 a f n) x+(3 c e+3 b f+3 a g+2 c e m+b f m+c e n+2 b f n+3 a g n) x^2+(4 c f+4 b g+2 c f m+b g m+2 c f n+3 b g n) x^3+c g (5+2 m+3 n) x^4\right ) \, dx={\left (g\,x^3+f\,x^2+e\,x+d\right )}^n\,\left (x^4\,\left (b\,g+c\,f\right )\,{\left (c\,x^2+b\,x+a\right )}^m+x^2\,{\left (c\,x^2+b\,x+a\right )}^m\,\left (a\,f+b\,e+c\,d\right )+x^3\,{\left (c\,x^2+b\,x+a\right )}^m\,\left (a\,g+b\,f+c\,e\right )+a\,d\,{\left (c\,x^2+b\,x+a\right )}^m+x\,\left (a\,e+b\,d\right )\,{\left (c\,x^2+b\,x+a\right )}^m+c\,g\,x^5\,{\left (c\,x^2+b\,x+a\right )}^m\right ) \]
int((a + b*x + c*x^2)^m*(d + e*x + f*x^2 + g*x^3)^n*(a*e + b*d + x^3*(4*b* g + 4*c*f + b*g*m + 2*c*f*m + 3*b*g*n + 2*c*f*n) + x^2*(3*a*g + 3*b*f + 3* c*e + b*f*m + 2*c*e*m + 3*a*g*n + 2*b*f*n + c*e*n) + x*(2*a*f + 2*b*e + 2* c*d + b*e*m + 2*c*d*m + 2*a*f*n + b*e*n) + b*d*m + a*e*n + c*g*x^4*(2*m + 3*n + 5)),x)