\(\int (A+B x+C x^2) (c^2 x+3 c d x^2+3 d^2 x^3)^p \, dx\) [83]

Optimal result
Mathematica [A] (warning: unable to verify)
Rubi [A] (verified)
Maple [F]
Fricas [F]
Sympy [F]
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 34, antiderivative size = 302 \[ \int \left (A+B x+C x^2\right ) \left (c^2 x+3 c d x^2+3 d^2 x^3\right )^p \, dx=\frac {C \left (c^2 x+3 c d x^2+3 d^2 x^3\right )^{1+p}}{9 d^2 (1+p)}-\frac {(2 c C-3 B d) x^2 \left (1+\frac {6 d x}{3 c-\sqrt {3} \sqrt {-c^2}}\right )^{-p} \left (1+\frac {6 d x}{3 c+\sqrt {3} \sqrt {-c^2}}\right )^{-p} \left (c^2 x+3 c d x^2+3 d^2 x^3\right )^p \operatorname {AppellF1}\left (2+p,-p,-p,3+p,-\frac {6 d x}{3 c-\sqrt {3} \sqrt {-c^2}},-\frac {6 d x}{3 c+\sqrt {3} \sqrt {-c^2}}\right )}{3 d (2+p)}-\frac {\left (c^2 C-9 A d^2\right ) (c+3 d x) \left (c^2 x+3 c d x^2+3 d^2 x^3\right )^p \left (1-\frac {(c+3 d x)^3}{c^3}\right )^{-p} \operatorname {Hypergeometric2F1}\left (\frac {1}{3},-p,\frac {4}{3},\frac {(c+3 d x)^3}{c^3}\right )}{27 d^3} \] Output:

1/9*C*(3*d^2*x^3+3*c*d*x^2+c^2*x)^(p+1)/d^2/(p+1)-1/3*(-3*B*d+2*C*c)*x^2*( 
3*d^2*x^3+3*c*d*x^2+c^2*x)^p*AppellF1(2+p,-p,-p,3+p,-6*d*x/(3*c-3^(1/2)*(- 
c^2)^(1/2)),-6*d*x/(3*c+3^(1/2)*(-c^2)^(1/2)))/d/(2+p)/((1+6*d*x/(3*c-3^(1 
/2)*(-c^2)^(1/2)))^p)/((1+6*d*x/(3*c+3^(1/2)*(-c^2)^(1/2)))^p)-1/27*(-9*A* 
d^2+C*c^2)*(3*d*x+c)*(3*d^2*x^3+3*c*d*x^2+c^2*x)^p*hypergeom([1/3, -p],[4/ 
3],(3*d*x+c)^3/c^3)/d^3/((1-(3*d*x+c)^3/c^3)^p)
 

Mathematica [A] (warning: unable to verify)

Time = 0.81 (sec) , antiderivative size = 409, normalized size of antiderivative = 1.35 \[ \int \left (A+B x+C x^2\right ) \left (c^2 x+3 c d x^2+3 d^2 x^3\right )^p \, dx=\frac {x \left (\frac {-3 c d+\sqrt {3} \sqrt {-c^2 d^2}-6 d^2 x}{-3 c d+\sqrt {3} \sqrt {-c^2 d^2}}\right )^{-p} \left (\frac {3 c d+\sqrt {3} \sqrt {-c^2 d^2}+6 d^2 x}{3 c d+\sqrt {3} \sqrt {-c^2 d^2}}\right )^{-p} \left (x \left (c^2+3 c d x+3 d^2 x^2\right )\right )^p \left (A \left (6+5 p+p^2\right ) \operatorname {AppellF1}\left (1+p,-p,-p,2+p,-\frac {6 d^2 x}{3 c d+\sqrt {3} \sqrt {-c^2 d^2}},\frac {6 d^2 x}{-3 c d+\sqrt {3} \sqrt {-c^2 d^2}}\right )+(1+p) x \left (B (3+p) \operatorname {AppellF1}\left (2+p,-p,-p,3+p,-\frac {6 d^2 x}{3 c d+\sqrt {3} \sqrt {-c^2 d^2}},\frac {6 d^2 x}{-3 c d+\sqrt {3} \sqrt {-c^2 d^2}}\right )+C (2+p) x \operatorname {AppellF1}\left (3+p,-p,-p,4+p,-\frac {6 d^2 x}{3 c d+\sqrt {3} \sqrt {-c^2 d^2}},\frac {6 d^2 x}{-3 c d+\sqrt {3} \sqrt {-c^2 d^2}}\right )\right )\right )}{(1+p) (2+p) (3+p)} \] Input:

Integrate[(A + B*x + C*x^2)*(c^2*x + 3*c*d*x^2 + 3*d^2*x^3)^p,x]
 

Output:

(x*(x*(c^2 + 3*c*d*x + 3*d^2*x^2))^p*(A*(6 + 5*p + p^2)*AppellF1[1 + p, -p 
, -p, 2 + p, (-6*d^2*x)/(3*c*d + Sqrt[3]*Sqrt[-(c^2*d^2)]), (6*d^2*x)/(-3* 
c*d + Sqrt[3]*Sqrt[-(c^2*d^2)])] + (1 + p)*x*(B*(3 + p)*AppellF1[2 + p, -p 
, -p, 3 + p, (-6*d^2*x)/(3*c*d + Sqrt[3]*Sqrt[-(c^2*d^2)]), (6*d^2*x)/(-3* 
c*d + Sqrt[3]*Sqrt[-(c^2*d^2)])] + C*(2 + p)*x*AppellF1[3 + p, -p, -p, 4 + 
 p, (-6*d^2*x)/(3*c*d + Sqrt[3]*Sqrt[-(c^2*d^2)]), (6*d^2*x)/(-3*c*d + Sqr 
t[3]*Sqrt[-(c^2*d^2)])])))/((1 + p)*(2 + p)*(3 + p)*((-3*c*d + Sqrt[3]*Sqr 
t[-(c^2*d^2)] - 6*d^2*x)/(-3*c*d + Sqrt[3]*Sqrt[-(c^2*d^2)]))^p*((3*c*d + 
Sqrt[3]*Sqrt[-(c^2*d^2)] + 6*d^2*x)/(3*c*d + Sqrt[3]*Sqrt[-(c^2*d^2)]))^p)
 

Rubi [A] (verified)

Time = 0.85 (sec) , antiderivative size = 280, normalized size of antiderivative = 0.93, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.147, Rules used = {2459, 2425, 793, 2432, 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 \left (A+B x+C x^2\right ) \left (c^2 x+3 c d x^2+3 d^2 x^3\right )^p \, dx\)

\(\Big \downarrow \) 2459

\(\displaystyle \int \left (3 d^2 \left (\frac {c}{3 d}+x\right )^3-\frac {c^3}{9 d}\right )^p \left (\frac {1}{9} \left (9 A+\frac {c (c C-3 B d)}{d^2}\right )+\frac {1}{3} \left (\frac {c}{3 d}+x\right ) \left (3 B-\frac {2 c C}{d}\right )+C \left (\frac {c}{3 d}+x\right )^2\right )d\left (\frac {c}{3 d}+x\right )\)

\(\Big \downarrow \) 2425

\(\displaystyle \int \left (\frac {1}{9} \left (9 A+\frac {c (c C-3 B d)}{d^2}\right )+\frac {1}{3} \left (3 B-\frac {2 c C}{d}\right ) \left (\frac {c}{3 d}+x\right )\right ) \left (3 d^2 \left (\frac {c}{3 d}+x\right )^3-\frac {c^3}{9 d}\right )^pd\left (\frac {c}{3 d}+x\right )+C \int \left (\frac {c}{3 d}+x\right )^2 \left (3 d^2 \left (\frac {c}{3 d}+x\right )^3-\frac {c^3}{9 d}\right )^pd\left (\frac {c}{3 d}+x\right )\)

\(\Big \downarrow \) 793

\(\displaystyle \int \left (\frac {1}{9} \left (9 A+\frac {c (c C-3 B d)}{d^2}\right )+\frac {1}{3} \left (3 B-\frac {2 c C}{d}\right ) \left (\frac {c}{3 d}+x\right )\right ) \left (3 d^2 \left (\frac {c}{3 d}+x\right )^3-\frac {c^3}{9 d}\right )^pd\left (\frac {c}{3 d}+x\right )+\frac {C \left (3 d^2 \left (\frac {c}{3 d}+x\right )^3-\frac {c^3}{9 d}\right )^{p+1}}{9 d^2 (p+1)}\)

\(\Big \downarrow \) 2432

\(\displaystyle \int \left (\frac {\left (C c^2-3 B d c+9 A d^2\right ) \left (3 d^2 \left (\frac {c}{3 d}+x\right )^3-\frac {c^3}{9 d}\right )^p}{9 d^2}+\frac {(3 B d-2 c C) \left (\frac {c}{3 d}+x\right ) \left (3 d^2 \left (\frac {c}{3 d}+x\right )^3-\frac {c^3}{9 d}\right )^p}{3 d}\right )d\left (\frac {c}{3 d}+x\right )+\frac {C \left (3 d^2 \left (\frac {c}{3 d}+x\right )^3-\frac {c^3}{9 d}\right )^{p+1}}{9 d^2 (p+1)}\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {\left (\frac {c}{3 d}+x\right ) \left (3 d^2 \left (\frac {c}{3 d}+x\right )^3-\frac {c^3}{9 d}\right )^p \left (1-\frac {27 d^3 \left (\frac {c}{3 d}+x\right )^3}{c^3}\right )^{-p} \left (9 A d^2-3 B c d+c^2 C\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{3},-p,\frac {4}{3},\frac {27 d^3 \left (\frac {c}{3 d}+x\right )^3}{c^3}\right )}{9 d^2}-\frac {\left (\frac {c}{3 d}+x\right )^2 (2 c C-3 B d) \left (3 d^2 \left (\frac {c}{3 d}+x\right )^3-\frac {c^3}{9 d}\right )^p \left (1-\frac {27 d^3 \left (\frac {c}{3 d}+x\right )^3}{c^3}\right )^{-p} \operatorname {Hypergeometric2F1}\left (\frac {2}{3},-p,\frac {5}{3},\frac {27 d^3 \left (\frac {c}{3 d}+x\right )^3}{c^3}\right )}{6 d}+\frac {C \left (3 d^2 \left (\frac {c}{3 d}+x\right )^3-\frac {c^3}{9 d}\right )^{p+1}}{9 d^2 (p+1)}\)

Input:

Int[(A + B*x + C*x^2)*(c^2*x + 3*c*d*x^2 + 3*d^2*x^3)^p,x]
 

Output:

(C*(-1/9*c^3/d + 3*d^2*(c/(3*d) + x)^3)^(1 + p))/(9*d^2*(1 + p)) + ((c^2*C 
 - 3*B*c*d + 9*A*d^2)*(c/(3*d) + x)*(-1/9*c^3/d + 3*d^2*(c/(3*d) + x)^3)^p 
*Hypergeometric2F1[1/3, -p, 4/3, (27*d^3*(c/(3*d) + x)^3)/c^3])/(9*d^2*(1 
- (27*d^3*(c/(3*d) + x)^3)/c^3)^p) - ((2*c*C - 3*B*d)*(c/(3*d) + x)^2*(-1/ 
9*c^3/d + 3*d^2*(c/(3*d) + x)^3)^p*Hypergeometric2F1[2/3, -p, 5/3, (27*d^3 
*(c/(3*d) + x)^3)/c^3])/(6*d*(1 - (27*d^3*(c/(3*d) + x)^3)/c^3)^p)
 

Defintions of rubi rules used

rule 793
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(a + b*x^n) 
^(p + 1)/(b*n*(p + 1)), x] /; FreeQ[{a, b, m, n, p}, x] && EqQ[m, n - 1] && 
 NeQ[p, -1]
 

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 2425
Int[(Pq_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[Coeff[Pq, x, n - 
 1]   Int[x^(n - 1)*(a + b*x^n)^p, x], x] + Int[ExpandToSum[Pq - Coeff[Pq, 
x, n - 1]*x^(n - 1), x]*(a + b*x^n)^p, x] /; FreeQ[{a, b, p}, x] && PolyQ[P 
q, x] && IGtQ[n, 0] && Expon[Pq, x] == n - 1
 

rule 2432
Int[(Pq_)*((a_) + (b_.)*(x_)^(n_))^(p_.), x_Symbol] :> Int[ExpandIntegrand[ 
Pq*(a + b*x^n)^p, x], x] /; FreeQ[{a, b, n, p}, x] && (PolyQ[Pq, x] || Poly 
Q[Pq, x^n])
 

rule 2459
Int[(Pn_)^(p_.)*(Qx_), x_Symbol] :> With[{S = Coeff[Pn, x, Expon[Pn, x] - 1 
]/(Expon[Pn, x]*Coeff[Pn, x, Expon[Pn, x]])}, Subst[Int[ExpandToSum[Pn /. x 
 -> x - S, x]^p*ExpandToSum[Qx /. x -> x - S, x], x], x, x + S] /; Binomial 
Q[Pn /. x -> x - S, x] || (IntegerQ[Expon[Pn, x]/2] && TrinomialQ[Pn /. x - 
> x - S, x])] /; FreeQ[p, x] && PolyQ[Pn, x] && GtQ[Expon[Pn, x], 2] && NeQ 
[Coeff[Pn, x, Expon[Pn, x] - 1], 0] && PolyQ[Qx, x] &&  !(MonomialQ[Qx, x] 
&& IGtQ[p, 0])
 
Maple [F]

\[\int \left (C \,x^{2}+B x +A \right ) \left (3 d^{2} x^{3}+3 c d \,x^{2}+c^{2} x \right )^{p}d x\]

Input:

int((C*x^2+B*x+A)*(3*d^2*x^3+3*c*d*x^2+c^2*x)^p,x)
 

Output:

int((C*x^2+B*x+A)*(3*d^2*x^3+3*c*d*x^2+c^2*x)^p,x)
 

Fricas [F]

\[ \int \left (A+B x+C x^2\right ) \left (c^2 x+3 c d x^2+3 d^2 x^3\right )^p \, dx=\int { {\left (C x^{2} + B x + A\right )} {\left (3 \, d^{2} x^{3} + 3 \, c d x^{2} + c^{2} x\right )}^{p} \,d x } \] Input:

integrate((C*x^2+B*x+A)*(3*d^2*x^3+3*c*d*x^2+c^2*x)^p,x, algorithm="fricas 
")
 

Output:

integral((C*x^2 + B*x + A)*(3*d^2*x^3 + 3*c*d*x^2 + c^2*x)^p, x)
 

Sympy [F]

\[ \int \left (A+B x+C x^2\right ) \left (c^2 x+3 c d x^2+3 d^2 x^3\right )^p \, dx=\int \left (x \left (c^{2} + 3 c d x + 3 d^{2} x^{2}\right )\right )^{p} \left (A + B x + C x^{2}\right )\, dx \] Input:

integrate((C*x**2+B*x+A)*(3*d**2*x**3+3*c*d*x**2+c**2*x)**p,x)
 

Output:

Integral((x*(c**2 + 3*c*d*x + 3*d**2*x**2))**p*(A + B*x + C*x**2), x)
 

Maxima [F]

\[ \int \left (A+B x+C x^2\right ) \left (c^2 x+3 c d x^2+3 d^2 x^3\right )^p \, dx=\int { {\left (C x^{2} + B x + A\right )} {\left (3 \, d^{2} x^{3} + 3 \, c d x^{2} + c^{2} x\right )}^{p} \,d x } \] Input:

integrate((C*x^2+B*x+A)*(3*d^2*x^3+3*c*d*x^2+c^2*x)^p,x, algorithm="maxima 
")
 

Output:

integrate((C*x^2 + B*x + A)*(3*d^2*x^3 + 3*c*d*x^2 + c^2*x)^p, x)
 

Giac [F]

\[ \int \left (A+B x+C x^2\right ) \left (c^2 x+3 c d x^2+3 d^2 x^3\right )^p \, dx=\int { {\left (C x^{2} + B x + A\right )} {\left (3 \, d^{2} x^{3} + 3 \, c d x^{2} + c^{2} x\right )}^{p} \,d x } \] Input:

integrate((C*x^2+B*x+A)*(3*d^2*x^3+3*c*d*x^2+c^2*x)^p,x, algorithm="giac")
 

Output:

integrate((C*x^2 + B*x + A)*(3*d^2*x^3 + 3*c*d*x^2 + c^2*x)^p, x)
 

Mupad [F(-1)]

Timed out. \[ \int \left (A+B x+C x^2\right ) \left (c^2 x+3 c d x^2+3 d^2 x^3\right )^p \, dx=\int \left (C\,x^2+B\,x+A\right )\,{\left (c^2\,x+3\,c\,d\,x^2+3\,d^2\,x^3\right )}^p \,d x \] Input:

int((A + B*x + C*x^2)*(c^2*x + 3*d^2*x^3 + 3*c*d*x^2)^p,x)
 

Output:

int((A + B*x + C*x^2)*(c^2*x + 3*d^2*x^3 + 3*c*d*x^2)^p, x)
 

Reduce [F]

\[ \int \left (A+B x+C x^2\right ) \left (c^2 x+3 c d x^2+3 d^2 x^3\right )^p \, dx=\text {too large to display} \] Input:

int((C*x^2+B*x+A)*(3*d^2*x^3+3*c*d*x^2+c^2*x)^p,x)
 

Output:

(54*(c**2*x + 3*c*d*x**2 + 3*d**2*x**3)**p*a*c*d**2*p**2 + 90*(c**2*x + 3* 
c*d*x**2 + 3*d**2*x**3)**p*a*c*d**2*p + 36*(c**2*x + 3*c*d*x**2 + 3*d**2*x 
**3)**p*a*c*d**2 + 162*(c**2*x + 3*c*d*x**2 + 3*d**2*x**3)**p*a*d**3*p**2* 
x + 270*(c**2*x + 3*c*d*x**2 + 3*d**2*x**3)**p*a*d**3*p*x + 108*(c**2*x + 
3*c*d*x**2 + 3*d**2*x**3)**p*a*d**3*x - 9*(c**2*x + 3*c*d*x**2 + 3*d**2*x* 
*3)**p*b*c**2*d*p**2 - 18*(c**2*x + 3*c*d*x**2 + 3*d**2*x**3)**p*b*c**2*d* 
p - 9*(c**2*x + 3*c*d*x**2 + 3*d**2*x**3)**p*b*c**2*d + 54*(c**2*x + 3*c*d 
*x**2 + 3*d**2*x**3)**p*b*c*d**2*p**2*x + 54*(c**2*x + 3*c*d*x**2 + 3*d**2 
*x**3)**p*b*c*d**2*p*x + 162*(c**2*x + 3*c*d*x**2 + 3*d**2*x**3)**p*b*d**3 
*p**2*x**2 + 216*(c**2*x + 3*c*d*x**2 + 3*d**2*x**3)**p*b*d**3*p*x**2 + 54 
*(c**2*x + 3*c*d*x**2 + 3*d**2*x**3)**p*b*d**3*x**2 + 2*(c**2*x + 3*c*d*x* 
*2 + 3*d**2*x**3)**p*c**4*p + 2*(c**2*x + 3*c*d*x**2 + 3*d**2*x**3)**p*c** 
4 - 12*(c**2*x + 3*c*d*x**2 + 3*d**2*x**3)**p*c**3*d*p*x + 54*(c**2*x + 3* 
c*d*x**2 + 3*d**2*x**3)**p*c**2*d**2*p**2*x**2 + 18*(c**2*x + 3*c*d*x**2 + 
 3*d**2*x**3)**p*c**2*d**2*p*x**2 + 162*(c**2*x + 3*c*d*x**2 + 3*d**2*x**3 
)**p*c*d**3*p**2*x**3 + 162*(c**2*x + 3*c*d*x**2 + 3*d**2*x**3)**p*c*d**3* 
p*x**3 + 36*(c**2*x + 3*c*d*x**2 + 3*d**2*x**3)**p*c*d**3*x**3 - 486*int(( 
c**2*x + 3*c*d*x**2 + 3*d**2*x**3)**p/(9*c**2*p**2*x + 9*c**2*p*x + 2*c**2 
*x + 27*c*d*p**2*x**2 + 27*c*d*p*x**2 + 6*c*d*x**2 + 27*d**2*p**2*x**3 + 2 
7*d**2*p*x**3 + 6*d**2*x**3),x)*a*c**3*d**2*p**5 - 1296*int((c**2*x + 3...