Integrand size = 18, antiderivative size = 100 \[ \int x^2 (c+d x) \left (a+b x^2\right )^p \, dx=-\frac {a d \left (a+b x^2\right )^{1+p}}{2 b^2 (1+p)}+\frac {d \left (a+b x^2\right )^{2+p}}{2 b^2 (2+p)}+\frac {1}{3} c x^3 \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \operatorname {Hypergeometric2F1}\left (\frac {3}{2},-p,\frac {5}{2},-\frac {b x^2}{a}\right ) \] Output:
-1/2*a*d*(b*x^2+a)^(p+1)/b^2/(p+1)+1/2*d*(b*x^2+a)^(2+p)/b^2/(2+p)+1/3*c*x ^3*(b*x^2+a)^p*hypergeom([3/2, -p],[5/2],-b*x^2/a)/((1+b*x^2/a)^p)
Time = 0.07 (sec) , antiderivative size = 87, normalized size of antiderivative = 0.87 \[ \int x^2 (c+d x) \left (a+b x^2\right )^p \, dx=\frac {1}{6} \left (a+b x^2\right )^p \left (-\frac {3 d \left (a+b x^2\right ) \left (a-b (1+p) x^2\right )}{b^2 (1+p) (2+p)}+2 c x^3 \left (1+\frac {b x^2}{a}\right )^{-p} \operatorname {Hypergeometric2F1}\left (\frac {3}{2},-p,\frac {5}{2},-\frac {b x^2}{a}\right )\right ) \] Input:
Integrate[x^2*(c + d*x)*(a + b*x^2)^p,x]
Output:
((a + b*x^2)^p*((-3*d*(a + b*x^2)*(a - b*(1 + p)*x^2))/(b^2*(1 + p)*(2 + p )) + (2*c*x^3*Hypergeometric2F1[3/2, -p, 5/2, -((b*x^2)/a)])/(1 + (b*x^2)/ a)^p))/6
Time = 0.38 (sec) , antiderivative size = 99, normalized size of antiderivative = 0.99, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {542, 243, 53, 279, 278, 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 x^2 (c+d x) \left (a+b x^2\right )^p \, dx\) |
\(\Big \downarrow \) 542 |
\(\displaystyle c \int x^2 \left (b x^2+a\right )^pdx+d \int x^3 \left (b x^2+a\right )^pdx\) |
\(\Big \downarrow \) 243 |
\(\displaystyle c \int x^2 \left (b x^2+a\right )^pdx+\frac {1}{2} d \int x^2 \left (b x^2+a\right )^pdx^2\) |
\(\Big \downarrow \) 53 |
\(\displaystyle c \int x^2 \left (b x^2+a\right )^pdx+\frac {1}{2} d \int \left (\frac {\left (b x^2+a\right )^{p+1}}{b}-\frac {a \left (b x^2+a\right )^p}{b}\right )dx^2\) |
\(\Big \downarrow \) 279 |
\(\displaystyle c \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \int x^2 \left (\frac {b x^2}{a}+1\right )^pdx+\frac {1}{2} d \int \left (\frac {\left (b x^2+a\right )^{p+1}}{b}-\frac {a \left (b x^2+a\right )^p}{b}\right )dx^2\) |
\(\Big \downarrow \) 278 |
\(\displaystyle \frac {1}{2} d \int \left (\frac {\left (b x^2+a\right )^{p+1}}{b}-\frac {a \left (b x^2+a\right )^p}{b}\right )dx^2+\frac {1}{3} c x^3 \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \operatorname {Hypergeometric2F1}\left (\frac {3}{2},-p,\frac {5}{2},-\frac {b x^2}{a}\right )\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {1}{2} d \left (\frac {\left (a+b x^2\right )^{p+2}}{b^2 (p+2)}-\frac {a \left (a+b x^2\right )^{p+1}}{b^2 (p+1)}\right )+\frac {1}{3} c x^3 \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \operatorname {Hypergeometric2F1}\left (\frac {3}{2},-p,\frac {5}{2},-\frac {b x^2}{a}\right )\) |
Input:
Int[x^2*(c + d*x)*(a + b*x^2)^p,x]
Output:
(d*(-((a*(a + b*x^2)^(1 + p))/(b^2*(1 + p))) + (a + b*x^2)^(2 + p)/(b^2*(2 + p))))/2 + (c*x^3*(a + b*x^2)^p*Hypergeometric2F1[3/2, -p, 5/2, -((b*x^2 )/a)])/(3*(1 + (b*x^2)/a)^p)
Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int [ExpandIntegrand[(a + b*x)^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0] && LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[1/2 Subst[In t[x^((m - 1)/2)*(a + b*x)^p, x], x, x^2], x] /; FreeQ[{a, b, m, p}, x] && I ntegerQ[(m - 1)/2]
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[a^p*(( c*x)^(m + 1)/(c*(m + 1)))*Hypergeometric2F1[-p, (m + 1)/2, (m + 1)/2 + 1, ( -b)*(x^2/a)], x] /; FreeQ[{a, b, c, m, p}, x] && !IGtQ[p, 0] && (ILtQ[p, 0 ] || GtQ[a, 0])
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[a^IntP art[p]*((a + b*x^2)^FracPart[p]/(1 + b*(x^2/a))^FracPart[p]) Int[(c*x)^m* (1 + b*(x^2/a))^p, x], x] /; FreeQ[{a, b, c, m, p}, x] && !IGtQ[p, 0] && !(ILtQ[p, 0] || GtQ[a, 0])
Int[(x_)^(m_.)*((c_) + (d_.)*(x_))*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[c Int[x^m*(a + b*x^2)^p, x], x] + Simp[d Int[x^(m + 1)*(a + b*x^2 )^p, x], x] /; FreeQ[{a, b, c, d, p}, x] && IntegerQ[m] && !IntegerQ[2*p]
\[\int x^{2} \left (d x +c \right ) \left (b \,x^{2}+a \right )^{p}d x\]
Input:
int(x^2*(d*x+c)*(b*x^2+a)^p,x)
Output:
int(x^2*(d*x+c)*(b*x^2+a)^p,x)
\[ \int x^2 (c+d x) \left (a+b x^2\right )^p \, dx=\int { {\left (d x + c\right )} {\left (b x^{2} + a\right )}^{p} x^{2} \,d x } \] Input:
integrate(x^2*(d*x+c)*(b*x^2+a)^p,x, algorithm="fricas")
Output:
integral((d*x^3 + c*x^2)*(b*x^2 + a)^p, x)
Leaf count of result is larger than twice the leaf count of optimal. 335 vs. \(2 (82) = 164\).
Time = 4.42 (sec) , antiderivative size = 364, normalized size of antiderivative = 3.64 \[ \int x^2 (c+d x) \left (a+b x^2\right )^p \, dx=\frac {a^{p} c x^{3} {{}_{2}F_{1}\left (\begin {matrix} \frac {3}{2}, - p \\ \frac {5}{2} \end {matrix}\middle | {\frac {b x^{2} e^{i \pi }}{a}} \right )}}{3} + d \left (\begin {cases} \frac {a^{p} x^{4}}{4} & \text {for}\: b = 0 \\\frac {a \log {\left (x - \sqrt {- \frac {a}{b}} \right )}}{2 a b^{2} + 2 b^{3} x^{2}} + \frac {a \log {\left (x + \sqrt {- \frac {a}{b}} \right )}}{2 a b^{2} + 2 b^{3} x^{2}} + \frac {a}{2 a b^{2} + 2 b^{3} x^{2}} + \frac {b x^{2} \log {\left (x - \sqrt {- \frac {a}{b}} \right )}}{2 a b^{2} + 2 b^{3} x^{2}} + \frac {b x^{2} \log {\left (x + \sqrt {- \frac {a}{b}} \right )}}{2 a b^{2} + 2 b^{3} x^{2}} & \text {for}\: p = -2 \\- \frac {a \log {\left (x - \sqrt {- \frac {a}{b}} \right )}}{2 b^{2}} - \frac {a \log {\left (x + \sqrt {- \frac {a}{b}} \right )}}{2 b^{2}} + \frac {x^{2}}{2 b} & \text {for}\: p = -1 \\- \frac {a^{2} \left (a + b x^{2}\right )^{p}}{2 b^{2} p^{2} + 6 b^{2} p + 4 b^{2}} + \frac {a b p x^{2} \left (a + b x^{2}\right )^{p}}{2 b^{2} p^{2} + 6 b^{2} p + 4 b^{2}} + \frac {b^{2} p x^{4} \left (a + b x^{2}\right )^{p}}{2 b^{2} p^{2} + 6 b^{2} p + 4 b^{2}} + \frac {b^{2} x^{4} \left (a + b x^{2}\right )^{p}}{2 b^{2} p^{2} + 6 b^{2} p + 4 b^{2}} & \text {otherwise} \end {cases}\right ) \] Input:
integrate(x**2*(d*x+c)*(b*x**2+a)**p,x)
Output:
a**p*c*x**3*hyper((3/2, -p), (5/2,), b*x**2*exp_polar(I*pi)/a)/3 + d*Piece wise((a**p*x**4/4, Eq(b, 0)), (a*log(x - sqrt(-a/b))/(2*a*b**2 + 2*b**3*x* *2) + a*log(x + sqrt(-a/b))/(2*a*b**2 + 2*b**3*x**2) + a/(2*a*b**2 + 2*b** 3*x**2) + b*x**2*log(x - sqrt(-a/b))/(2*a*b**2 + 2*b**3*x**2) + b*x**2*log (x + sqrt(-a/b))/(2*a*b**2 + 2*b**3*x**2), Eq(p, -2)), (-a*log(x - sqrt(-a /b))/(2*b**2) - a*log(x + sqrt(-a/b))/(2*b**2) + x**2/(2*b), Eq(p, -1)), ( -a**2*(a + b*x**2)**p/(2*b**2*p**2 + 6*b**2*p + 4*b**2) + a*b*p*x**2*(a + b*x**2)**p/(2*b**2*p**2 + 6*b**2*p + 4*b**2) + b**2*p*x**4*(a + b*x**2)**p /(2*b**2*p**2 + 6*b**2*p + 4*b**2) + b**2*x**4*(a + b*x**2)**p/(2*b**2*p** 2 + 6*b**2*p + 4*b**2), True))
\[ \int x^2 (c+d x) \left (a+b x^2\right )^p \, dx=\int { {\left (d x + c\right )} {\left (b x^{2} + a\right )}^{p} x^{2} \,d x } \] Input:
integrate(x^2*(d*x+c)*(b*x^2+a)^p,x, algorithm="maxima")
Output:
integrate((d*x + c)*(b*x^2 + a)^p*x^2, x)
\[ \int x^2 (c+d x) \left (a+b x^2\right )^p \, dx=\int { {\left (d x + c\right )} {\left (b x^{2} + a\right )}^{p} x^{2} \,d x } \] Input:
integrate(x^2*(d*x+c)*(b*x^2+a)^p,x, algorithm="giac")
Output:
integrate((d*x + c)*(b*x^2 + a)^p*x^2, x)
Timed out. \[ \int x^2 (c+d x) \left (a+b x^2\right )^p \, dx=\int x^2\,{\left (b\,x^2+a\right )}^p\,\left (c+d\,x\right ) \,d x \] Input:
int(x^2*(a + b*x^2)^p*(c + d*x),x)
Output:
int(x^2*(a + b*x^2)^p*(c + d*x), x)
\[ \int x^2 (c+d x) \left (a+b x^2\right )^p \, dx=\frac {-4 \left (b \,x^{2}+a \right )^{p} a^{2} d \,p^{2}-8 \left (b \,x^{2}+a \right )^{p} a^{2} d p -3 \left (b \,x^{2}+a \right )^{p} a^{2} d +4 \left (b \,x^{2}+a \right )^{p} a b c \,p^{3} x +12 \left (b \,x^{2}+a \right )^{p} a b c \,p^{2} x +8 \left (b \,x^{2}+a \right )^{p} a b c p x +4 \left (b \,x^{2}+a \right )^{p} a b d \,p^{3} x^{2}+8 \left (b \,x^{2}+a \right )^{p} a b d \,p^{2} x^{2}+3 \left (b \,x^{2}+a \right )^{p} a b d p \,x^{2}+4 \left (b \,x^{2}+a \right )^{p} b^{2} c \,p^{3} x^{3}+14 \left (b \,x^{2}+a \right )^{p} b^{2} c \,p^{2} x^{3}+14 \left (b \,x^{2}+a \right )^{p} b^{2} c p \,x^{3}+4 \left (b \,x^{2}+a \right )^{p} b^{2} c \,x^{3}+4 \left (b \,x^{2}+a \right )^{p} b^{2} d \,p^{3} x^{4}+12 \left (b \,x^{2}+a \right )^{p} b^{2} d \,p^{2} x^{4}+11 \left (b \,x^{2}+a \right )^{p} b^{2} d p \,x^{4}+3 \left (b \,x^{2}+a \right )^{p} b^{2} d \,x^{4}-16 \left (\int \frac {\left (b \,x^{2}+a \right )^{p}}{4 b \,p^{2} x^{2}+8 b p \,x^{2}+4 a \,p^{2}+3 b \,x^{2}+8 a p +3 a}d x \right ) a^{2} b c \,p^{5}-80 \left (\int \frac {\left (b \,x^{2}+a \right )^{p}}{4 b \,p^{2} x^{2}+8 b p \,x^{2}+4 a \,p^{2}+3 b \,x^{2}+8 a p +3 a}d x \right ) a^{2} b c \,p^{4}-140 \left (\int \frac {\left (b \,x^{2}+a \right )^{p}}{4 b \,p^{2} x^{2}+8 b p \,x^{2}+4 a \,p^{2}+3 b \,x^{2}+8 a p +3 a}d x \right ) a^{2} b c \,p^{3}-100 \left (\int \frac {\left (b \,x^{2}+a \right )^{p}}{4 b \,p^{2} x^{2}+8 b p \,x^{2}+4 a \,p^{2}+3 b \,x^{2}+8 a p +3 a}d x \right ) a^{2} b c \,p^{2}-24 \left (\int \frac {\left (b \,x^{2}+a \right )^{p}}{4 b \,p^{2} x^{2}+8 b p \,x^{2}+4 a \,p^{2}+3 b \,x^{2}+8 a p +3 a}d x \right ) a^{2} b c p}{2 b^{2} \left (4 p^{4}+20 p^{3}+35 p^{2}+25 p +6\right )} \] Input:
int(x^2*(d*x+c)*(b*x^2+a)^p,x)
Output:
( - 4*(a + b*x**2)**p*a**2*d*p**2 - 8*(a + b*x**2)**p*a**2*d*p - 3*(a + b* x**2)**p*a**2*d + 4*(a + b*x**2)**p*a*b*c*p**3*x + 12*(a + b*x**2)**p*a*b* c*p**2*x + 8*(a + b*x**2)**p*a*b*c*p*x + 4*(a + b*x**2)**p*a*b*d*p**3*x**2 + 8*(a + b*x**2)**p*a*b*d*p**2*x**2 + 3*(a + b*x**2)**p*a*b*d*p*x**2 + 4* (a + b*x**2)**p*b**2*c*p**3*x**3 + 14*(a + b*x**2)**p*b**2*c*p**2*x**3 + 1 4*(a + b*x**2)**p*b**2*c*p*x**3 + 4*(a + b*x**2)**p*b**2*c*x**3 + 4*(a + b *x**2)**p*b**2*d*p**3*x**4 + 12*(a + b*x**2)**p*b**2*d*p**2*x**4 + 11*(a + b*x**2)**p*b**2*d*p*x**4 + 3*(a + b*x**2)**p*b**2*d*x**4 - 16*int((a + b* x**2)**p/(4*a*p**2 + 8*a*p + 3*a + 4*b*p**2*x**2 + 8*b*p*x**2 + 3*b*x**2), x)*a**2*b*c*p**5 - 80*int((a + b*x**2)**p/(4*a*p**2 + 8*a*p + 3*a + 4*b*p* *2*x**2 + 8*b*p*x**2 + 3*b*x**2),x)*a**2*b*c*p**4 - 140*int((a + b*x**2)** p/(4*a*p**2 + 8*a*p + 3*a + 4*b*p**2*x**2 + 8*b*p*x**2 + 3*b*x**2),x)*a**2 *b*c*p**3 - 100*int((a + b*x**2)**p/(4*a*p**2 + 8*a*p + 3*a + 4*b*p**2*x** 2 + 8*b*p*x**2 + 3*b*x**2),x)*a**2*b*c*p**2 - 24*int((a + b*x**2)**p/(4*a* p**2 + 8*a*p + 3*a + 4*b*p**2*x**2 + 8*b*p*x**2 + 3*b*x**2),x)*a**2*b*c*p) /(2*b**2*(4*p**4 + 20*p**3 + 35*p**2 + 25*p + 6))