Integrand size = 20, antiderivative size = 165 \[ \int \frac {(c+d x)^3 \left (a+b x^2\right )^p}{x} \, dx=\frac {3 c d^2 \left (a+b x^2\right )^{1+p}}{2 b (1+p)}+\frac {d^3 x \left (a+b x^2\right )^{1+p}}{b (3+2 p)}+d \left (3 c^2-\frac {a d^2}{3 b+2 b p}\right ) x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )-\frac {c^3 \left (a+b x^2\right )^{1+p} \operatorname {Hypergeometric2F1}\left (1,1+p,2+p,1+\frac {b x^2}{a}\right )}{2 a (1+p)} \] Output:
3/2*c*d^2*(b*x^2+a)^(p+1)/b/(p+1)+d^3*x*(b*x^2+a)^(p+1)/b/(3+2*p)+d*(3*c^2 -a*d^2/(2*b*p+3*b))*x*(b*x^2+a)^p*hypergeom([1/2, -p],[3/2],-b*x^2/a)/((1+ b*x^2/a)^p)-1/2*c^3*(b*x^2+a)^(p+1)*hypergeom([1, p+1],[2+p],1+b*x^2/a)/a/ (p+1)
Time = 0.08 (sec) , antiderivative size = 170, normalized size of antiderivative = 1.03 \[ \int \frac {(c+d x)^3 \left (a+b x^2\right )^p}{x} \, dx=\frac {\left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \left (18 a b c^2 d (1+p) x \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )-3 b c^3 \left (a+b x^2\right ) \left (1+\frac {b x^2}{a}\right )^p \operatorname {Hypergeometric2F1}\left (1,1+p,2+p,1+\frac {b x^2}{a}\right )+a d^2 \left (9 c \left (a+b x^2\right ) \left (1+\frac {b x^2}{a}\right )^p+2 b d (1+p) x^3 \operatorname {Hypergeometric2F1}\left (\frac {3}{2},-p,\frac {5}{2},-\frac {b x^2}{a}\right )\right )\right )}{6 a b (1+p)} \] Input:
Integrate[((c + d*x)^3*(a + b*x^2)^p)/x,x]
Output:
((a + b*x^2)^p*(18*a*b*c^2*d*(1 + p)*x*Hypergeometric2F1[1/2, -p, 3/2, -(( b*x^2)/a)] - 3*b*c^3*(a + b*x^2)*(1 + (b*x^2)/a)^p*Hypergeometric2F1[1, 1 + p, 2 + p, 1 + (b*x^2)/a] + a*d^2*(9*c*(a + b*x^2)*(1 + (b*x^2)/a)^p + 2* b*d*(1 + p)*x^3*Hypergeometric2F1[3/2, -p, 5/2, -((b*x^2)/a)])))/(6*a*b*(1 + p)*(1 + (b*x^2)/a)^p)
Time = 0.49 (sec) , antiderivative size = 166, normalized size of antiderivative = 1.01, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {543, 299, 238, 237, 354, 27, 90, 75}
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 \frac {(c+d x)^3 \left (a+b x^2\right )^p}{x} \, dx\) |
\(\Big \downarrow \) 543 |
\(\displaystyle \int \frac {\left (b x^2+a\right )^p \left (c^3+3 d^2 x^2 c\right )}{x}dx+\int \left (b x^2+a\right )^p \left (x^2 d^3+3 c^2 d\right )dx\) |
\(\Big \downarrow \) 299 |
\(\displaystyle \int \frac {\left (b x^2+a\right )^p \left (c^3+3 d^2 x^2 c\right )}{x}dx+d \left (3 c^2-\frac {a d^2}{2 b p+3 b}\right ) \int \left (b x^2+a\right )^pdx+\frac {d^3 x \left (a+b x^2\right )^{p+1}}{b (2 p+3)}\) |
\(\Big \downarrow \) 238 |
\(\displaystyle \int \frac {\left (b x^2+a\right )^p \left (c^3+3 d^2 x^2 c\right )}{x}dx+d \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (3 c^2-\frac {a d^2}{2 b p+3 b}\right ) \int \left (\frac {b x^2}{a}+1\right )^pdx+\frac {d^3 x \left (a+b x^2\right )^{p+1}}{b (2 p+3)}\) |
\(\Big \downarrow \) 237 |
\(\displaystyle \int \frac {\left (b x^2+a\right )^p \left (c^3+3 d^2 x^2 c\right )}{x}dx+d x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (3 c^2-\frac {a d^2}{2 b p+3 b}\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )+\frac {d^3 x \left (a+b x^2\right )^{p+1}}{b (2 p+3)}\) |
\(\Big \downarrow \) 354 |
\(\displaystyle \frac {1}{2} \int \frac {c \left (b x^2+a\right )^p \left (c^2+3 d^2 x^2\right )}{x^2}dx^2+d x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (3 c^2-\frac {a d^2}{2 b p+3 b}\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )+\frac {d^3 x \left (a+b x^2\right )^{p+1}}{b (2 p+3)}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{2} c \int \frac {\left (b x^2+a\right )^p \left (c^2+3 d^2 x^2\right )}{x^2}dx^2+d x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (3 c^2-\frac {a d^2}{2 b p+3 b}\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )+\frac {d^3 x \left (a+b x^2\right )^{p+1}}{b (2 p+3)}\) |
\(\Big \downarrow \) 90 |
\(\displaystyle \frac {1}{2} c \left (c^2 \int \frac {\left (b x^2+a\right )^p}{x^2}dx^2+\frac {3 d^2 \left (a+b x^2\right )^{p+1}}{b (p+1)}\right )+d x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (3 c^2-\frac {a d^2}{2 b p+3 b}\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )+\frac {d^3 x \left (a+b x^2\right )^{p+1}}{b (2 p+3)}\) |
\(\Big \downarrow \) 75 |
\(\displaystyle d x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (3 c^2-\frac {a d^2}{2 b p+3 b}\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )+\frac {1}{2} c \left (\frac {3 d^2 \left (a+b x^2\right )^{p+1}}{b (p+1)}-\frac {c^2 \left (a+b x^2\right )^{p+1} \operatorname {Hypergeometric2F1}\left (1,p+1,p+2,\frac {b x^2}{a}+1\right )}{a (p+1)}\right )+\frac {d^3 x \left (a+b x^2\right )^{p+1}}{b (2 p+3)}\) |
Input:
Int[((c + d*x)^3*(a + b*x^2)^p)/x,x]
Output:
(d^3*x*(a + b*x^2)^(1 + p))/(b*(3 + 2*p)) + (d*(3*c^2 - (a*d^2)/(3*b + 2*b *p))*x*(a + b*x^2)^p*Hypergeometric2F1[1/2, -p, 3/2, -((b*x^2)/a)])/(1 + ( b*x^2)/a)^p + (c*((3*d^2*(a + b*x^2)^(1 + p))/(b*(1 + p)) - (c^2*(a + b*x^ 2)^(1 + p)*Hypergeometric2F1[1, 1 + p, 2 + p, 1 + (b*x^2)/a])/(a*(1 + p))) )/2
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((c + d*x )^(n + 1)/(d*(n + 1)*(-d/(b*c))^m))*Hypergeometric2F1[-m, n + 1, n + 2, 1 + d*(x/c)], x] /; FreeQ[{b, c, d, m, n}, x] && !IntegerQ[n] && (IntegerQ[m] || GtQ[-d/(b*c), 0])
Int[((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p _.), x_] :> Simp[b*(c + d*x)^(n + 1)*((e + f*x)^(p + 1)/(d*f*(n + p + 2))), x] + Simp[(a*d*f*(n + p + 2) - b*(d*e*(n + 1) + c*f*(p + 1)))/(d*f*(n + p + 2)) Int[(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n, p}, x] && NeQ[n + p + 2, 0]
Int[((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[a^p*x*Hypergeometric2F1[- p, 1/2, 1/2 + 1, (-b)*(x^2/a)], x] /; FreeQ[{a, b, p}, x] && !IntegerQ[2*p ] && GtQ[a, 0]
Int[((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[a^IntPart[p]*((a + b*x^2) ^FracPart[p]/(1 + b*(x^2/a))^FracPart[p]) Int[(1 + b*(x^2/a))^p, x], x] / ; FreeQ[{a, b, p}, x] && !IntegerQ[2*p] && !GtQ[a, 0]
Int[((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2), x_Symbol] :> Simp[d*x *((a + b*x^2)^(p + 1)/(b*(2*p + 3))), x] - Simp[(a*d - b*c*(2*p + 3))/(b*(2 *p + 3)) Int[(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && NeQ[2*p + 3, 0]
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.)*((c_) + (d_.)*(x_)^2)^(q_.), x_S ymbol] :> Simp[1/2 Subst[Int[x^((m - 1)/2)*(a + b*x)^p*(c + d*x)^q, x], x , x^2], x] /; FreeQ[{a, b, c, d, p, q}, x] && NeQ[b*c - a*d, 0] && IntegerQ [(m - 1)/2]
Int[(x_)^(m_.)*((c_) + (d_.)*(x_))^(n_)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbo l] :> Module[{k}, Int[x^m*Sum[Binomial[n, 2*k]*c^(n - 2*k)*d^(2*k)*x^(2*k), {k, 0, n/2}]*(a + b*x^2)^p, x] + Int[x^(m + 1)*Sum[Binomial[n, 2*k + 1]*c^ (n - 2*k - 1)*d^(2*k + 1)*x^(2*k), {k, 0, (n - 1)/2}]*(a + b*x^2)^p, x]] /; FreeQ[{a, b, c, d, p}, x] && IGtQ[n, 1] && IntegerQ[m] && !IntegerQ[2*p] && !(EqQ[m, 1] && EqQ[b*c^2 + a*d^2, 0])
\[\int \frac {\left (d x +c \right )^{3} \left (b \,x^{2}+a \right )^{p}}{x}d x\]
Input:
int((d*x+c)^3*(b*x^2+a)^p/x,x)
Output:
int((d*x+c)^3*(b*x^2+a)^p/x,x)
\[ \int \frac {(c+d x)^3 \left (a+b x^2\right )^p}{x} \, dx=\int { \frac {{\left (d x + c\right )}^{3} {\left (b x^{2} + a\right )}^{p}}{x} \,d x } \] Input:
integrate((d*x+c)^3*(b*x^2+a)^p/x,x, algorithm="fricas")
Output:
integral((d^3*x^3 + 3*c*d^2*x^2 + 3*c^2*d*x + c^3)*(b*x^2 + a)^p/x, x)
Time = 6.46 (sec) , antiderivative size = 144, normalized size of antiderivative = 0.87 \[ \int \frac {(c+d x)^3 \left (a+b x^2\right )^p}{x} \, dx=3 a^{p} c^{2} d x {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, - p \\ \frac {3}{2} \end {matrix}\middle | {\frac {b x^{2} e^{i \pi }}{a}} \right )} + \frac {a^{p} d^{3} 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} - \frac {b^{p} c^{3} x^{2 p} \Gamma \left (- p\right ) {{}_{2}F_{1}\left (\begin {matrix} - p, - p \\ 1 - p \end {matrix}\middle | {\frac {a e^{i \pi }}{b x^{2}}} \right )}}{2 \Gamma \left (1 - p\right )} + 3 c d^{2} \left (\begin {cases} \frac {a^{p} x^{2}}{2} & \text {for}\: b = 0 \\\frac {\begin {cases} \frac {\left (a + b x^{2}\right )^{p + 1}}{p + 1} & \text {for}\: p \neq -1 \\\log {\left (a + b x^{2} \right )} & \text {otherwise} \end {cases}}{2 b} & \text {otherwise} \end {cases}\right ) \] Input:
integrate((d*x+c)**3*(b*x**2+a)**p/x,x)
Output:
3*a**p*c**2*d*x*hyper((1/2, -p), (3/2,), b*x**2*exp_polar(I*pi)/a) + a**p* d**3*x**3*hyper((3/2, -p), (5/2,), b*x**2*exp_polar(I*pi)/a)/3 - b**p*c**3 *x**(2*p)*gamma(-p)*hyper((-p, -p), (1 - p,), a*exp_polar(I*pi)/(b*x**2))/ (2*gamma(1 - p)) + 3*c*d**2*Piecewise((a**p*x**2/2, Eq(b, 0)), (Piecewise( ((a + b*x**2)**(p + 1)/(p + 1), Ne(p, -1)), (log(a + b*x**2), True))/(2*b) , True))
\[ \int \frac {(c+d x)^3 \left (a+b x^2\right )^p}{x} \, dx=\int { \frac {{\left (d x + c\right )}^{3} {\left (b x^{2} + a\right )}^{p}}{x} \,d x } \] Input:
integrate((d*x+c)^3*(b*x^2+a)^p/x,x, algorithm="maxima")
Output:
integrate((d*x + c)^3*(b*x^2 + a)^p/x, x)
\[ \int \frac {(c+d x)^3 \left (a+b x^2\right )^p}{x} \, dx=\int { \frac {{\left (d x + c\right )}^{3} {\left (b x^{2} + a\right )}^{p}}{x} \,d x } \] Input:
integrate((d*x+c)^3*(b*x^2+a)^p/x,x, algorithm="giac")
Output:
integrate((d*x + c)^3*(b*x^2 + a)^p/x, x)
Timed out. \[ \int \frac {(c+d x)^3 \left (a+b x^2\right )^p}{x} \, dx=\int \frac {{\left (b\,x^2+a\right )}^p\,{\left (c+d\,x\right )}^3}{x} \,d x \] Input:
int(((a + b*x^2)^p*(c + d*x)^3)/x,x)
Output:
int(((a + b*x^2)^p*(c + d*x)^3)/x, x)
\[ \int \frac {(c+d x)^3 \left (a+b x^2\right )^p}{x} \, dx =\text {Too large to display} \] Input:
int((d*x+c)^3*(b*x^2+a)^p/x,x)
Output:
(12*(a + b*x**2)**p*a*c*d**2*p**3 + 24*(a + b*x**2)**p*a*c*d**2*p**2 + 9*( a + b*x**2)**p*a*c*d**2*p + 4*(a + b*x**2)**p*a*d**3*p**3*x + 4*(a + b*x** 2)**p*a*d**3*p**2*x + 4*(a + b*x**2)**p*b*c**3*p**3 + 12*(a + b*x**2)**p*b *c**3*p**2 + 11*(a + b*x**2)**p*b*c**3*p + 3*(a + b*x**2)**p*b*c**3 + 12*( a + b*x**2)**p*b*c**2*d*p**3*x + 30*(a + b*x**2)**p*b*c**2*d*p**2*x + 18*( a + b*x**2)**p*b*c**2*d*p*x + 12*(a + b*x**2)**p*b*c*d**2*p**3*x**2 + 24*( a + b*x**2)**p*b*c*d**2*p**2*x**2 + 9*(a + b*x**2)**p*b*c*d**2*p*x**2 + 4* (a + b*x**2)**p*b*d**3*p**3*x**3 + 6*(a + b*x**2)**p*b*d**3*p**2*x**3 + 2* (a + b*x**2)**p*b*d**3*p*x**3 + 32*int((a + b*x**2)**p/(4*a*p**2*x + 8*a*p *x + 3*a*x + 4*b*p**2*x**3 + 8*b*p*x**3 + 3*b*x**3),x)*a*b*c**3*p**6 + 160 *int((a + b*x**2)**p/(4*a*p**2*x + 8*a*p*x + 3*a*x + 4*b*p**2*x**3 + 8*b*p *x**3 + 3*b*x**3),x)*a*b*c**3*p**5 + 304*int((a + b*x**2)**p/(4*a*p**2*x + 8*a*p*x + 3*a*x + 4*b*p**2*x**3 + 8*b*p*x**3 + 3*b*x**3),x)*a*b*c**3*p**4 + 272*int((a + b*x**2)**p/(4*a*p**2*x + 8*a*p*x + 3*a*x + 4*b*p**2*x**3 + 8*b*p*x**3 + 3*b*x**3),x)*a*b*c**3*p**3 + 114*int((a + b*x**2)**p/(4*a*p* *2*x + 8*a*p*x + 3*a*x + 4*b*p**2*x**3 + 8*b*p*x**3 + 3*b*x**3),x)*a*b*c** 3*p**2 + 18*int((a + b*x**2)**p/(4*a*p**2*x + 8*a*p*x + 3*a*x + 4*b*p**2*x **3 + 8*b*p*x**3 + 3*b*x**3),x)*a*b*c**3*p - 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*d**3*p* *5 - 48*int((a + b*x**2)**p/(4*a*p**2 + 8*a*p + 3*a + 4*b*p**2*x**2 + 8...