Integrand size = 29, antiderivative size = 134 \[ \int x^{-1-n (1+p)} \left (a+b x^n\right )^p \left (c+d x^n\right )^2 \, dx=\frac {d^2 x^{-n p} \left (a+b x^n\right )^{1+p}}{b n}-\frac {c^2 x^{-n (1+p)} \left (a+b x^n\right )^{1+p}}{a n (1+p)}-\frac {d (2 b c+a d p) x^{-n p} \left (a+b x^n\right )^p \left (1+\frac {b x^n}{a}\right )^{-p} \operatorname {Hypergeometric2F1}\left (-p,-p,1-p,-\frac {b x^n}{a}\right )}{b n p} \] Output:
d^2*(a+b*x^n)^(p+1)/b/n/(x^(n*p))-c^2*(a+b*x^n)^(p+1)/a/n/(p+1)/(x^(n*(p+1 )))-d*(a*d*p+2*b*c)*(a+b*x^n)^p*hypergeom([-p, -p],[1-p],-b*x^n/a)/b/n/p/( x^(n*p))/((1+b*x^n/a)^p)
Time = 5.21 (sec) , antiderivative size = 149, normalized size of antiderivative = 1.11 \[ \int x^{-1-n (1+p)} \left (a+b x^n\right )^p \left (c+d x^n\right )^2 \, dx=-\frac {x^{-n (1+p)} \left (a+b x^n\right )^p \left (1+\frac {b x^n}{a}\right )^{-p} \left (a d^2 p (1+p) x^{2 n} \operatorname {Hypergeometric2F1}\left (1-p,-p,2-p,-\frac {b x^n}{a}\right )+c (-1+p) \left (c p \left (a+b x^n\right ) \left (1+\frac {b x^n}{a}\right )^p+2 a d (1+p) x^n \operatorname {Hypergeometric2F1}\left (-p,-p,1-p,-\frac {b x^n}{a}\right )\right )\right )}{a n (-1+p) p (1+p)} \] Input:
Integrate[x^(-1 - n*(1 + p))*(a + b*x^n)^p*(c + d*x^n)^2,x]
Output:
-(((a + b*x^n)^p*(a*d^2*p*(1 + p)*x^(2*n)*Hypergeometric2F1[1 - p, -p, 2 - p, -((b*x^n)/a)] + c*(-1 + p)*(c*p*(a + b*x^n)*(1 + (b*x^n)/a)^p + 2*a*d* (1 + p)*x^n*Hypergeometric2F1[-p, -p, 1 - p, -((b*x^n)/a)])))/(a*n*(-1 + p )*p*(1 + p)*x^(n*(1 + p))*(1 + (b*x^n)/a)^p))
Time = 0.56 (sec) , antiderivative size = 154, normalized size of antiderivative = 1.15, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.138, Rules used = {1008, 954, 882, 74}
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^{-n (p+1)-1} \left (c+d x^n\right )^2 \left (a+b x^n\right )^p \, dx\) |
\(\Big \downarrow \) 1008 |
\(\displaystyle \frac {\int x^{-n (p+1)-1} \left (b x^n+a\right )^p \left (d n (2 b c+a d p) x^n+c n (b c+a d (p+1))\right )dx}{b n}+\frac {d x^{-n (p+1)} \left (c+d x^n\right ) \left (a+b x^n\right )^{p+1}}{b n}\) |
\(\Big \downarrow \) 954 |
\(\displaystyle \frac {\frac {d n (a d p+2 b c) \int x^{-n (p+1)-1} \left (b x^n+a\right )^{p+1}dx}{b}-\frac {x^{-n (p+1)} (b c-a d) (a d p+b c) \left (a+b x^n\right )^{p+1}}{a b (p+1)}}{b n}+\frac {d x^{-n (p+1)} \left (c+d x^n\right ) \left (a+b x^n\right )^{p+1}}{b n}\) |
\(\Big \downarrow \) 882 |
\(\displaystyle \frac {\frac {d x^{-n (p+1)} (a d p+2 b c) \left (\frac {x^n}{a+b x^n}\right )^{p+1} \left (a+b x^n\right )^{p+1} \int \frac {\left (\frac {x^n}{b x^n+a}\right )^{-p-2}}{1-\frac {b x^n}{b x^n+a}}d\frac {x^n}{b x^n+a}}{b}-\frac {x^{-n (p+1)} (b c-a d) (a d p+b c) \left (a+b x^n\right )^{p+1}}{a b (p+1)}}{b n}+\frac {d x^{-n (p+1)} \left (c+d x^n\right ) \left (a+b x^n\right )^{p+1}}{b n}\) |
\(\Big \downarrow \) 74 |
\(\displaystyle \frac {-\frac {d x^{-n (p+1)} (a d p+2 b c) \left (a+b x^n\right )^{p+1} \operatorname {Hypergeometric2F1}\left (1,-p-1,-p,\frac {b x^n}{b x^n+a}\right )}{b (p+1)}-\frac {x^{-n (p+1)} (b c-a d) (a d p+b c) \left (a+b x^n\right )^{p+1}}{a b (p+1)}}{b n}+\frac {d x^{-n (p+1)} \left (c+d x^n\right ) \left (a+b x^n\right )^{p+1}}{b n}\) |
Input:
Int[x^(-1 - n*(1 + p))*(a + b*x^n)^p*(c + d*x^n)^2,x]
Output:
(d*(a + b*x^n)^(1 + p)*(c + d*x^n))/(b*n*x^(n*(1 + p))) + (-(((b*c - a*d)* (b*c + a*d*p)*(a + b*x^n)^(1 + p))/(a*b*(1 + p)*x^(n*(1 + p)))) - (d*(2*b* c + a*d*p)*(a + b*x^n)^(1 + p)*Hypergeometric2F1[1, -1 - p, -p, (b*x^n)/(a + b*x^n)])/(b*(1 + p)*x^(n*(1 + p))))/(b*n)
Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[c^n*((b*x )^(m + 1)/(b*(m + 1)))*Hypergeometric2F1[-n, m + 1, m + 2, (-d)*(x/c)], x] /; FreeQ[{b, c, d, m, n}, x] && !IntegerQ[m] && (IntegerQ[n] || (GtQ[c, 0] && !(EqQ[n, -2^(-1)] && EqQ[c^2 - d^2, 0] && GtQ[-d/(b*c), 0])))
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^Simplify[ (m + 1)/n + p]*x^m*(a + b*x^n)^p*((x^n/(a + b*x^n))^p/(n*x^Simplify[m + n*p ])) Subst[Int[x^((m + 1)/n - 1)/(1 - b*x)^(Simplify[(m + 1)/n + p] + 1), x], x, x^n/(a + b*x^n)], x] /; FreeQ[{a, b, m, n, p}, x] && IntegerQ[Simpli fy[(m + 1)/n + p]]
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n _)), x_Symbol] :> Simp[(b*c - a*d)*(e*x)^(m + 1)*((a + b*x^n)^(p + 1)/(a*b* e*(m + 1))), x] + Simp[d/b Int[(e*x)^m*(a + b*x^n)^(p + 1), x], x] /; Fre eQ[{a, b, c, d, e, m, n, p}, x] && NeQ[b*c - a*d, 0] && EqQ[m + n*(p + 1) + 1, 0] && NeQ[m, -1]
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_ ))^(q_), x_Symbol] :> Simp[d*(e*x)^(m + 1)*(a + b*x^n)^(p + 1)*((c + d*x^n) ^(q - 1)/(b*e*(m + n*(p + q) + 1))), x] + Simp[1/(b*(m + n*(p + q) + 1)) Int[(e*x)^m*(a + b*x^n)^p*(c + d*x^n)^(q - 2)*Simp[c*((c*b - a*d)*(m + 1) + c*b*n*(p + q)) + (d*(c*b - a*d)*(m + 1) + d*n*(q - 1)*(b*c - a*d) + c*b*d* n*(p + q))*x^n, x], x], x] /; FreeQ[{a, b, c, d, e, m, n, p}, x] && NeQ[b*c - a*d, 0] && GtQ[q, 1] && IntBinomialQ[a, b, c, d, e, m, n, p, q, x]
\[\int x^{-1-n \left (p +1\right )} \left (a +b \,x^{n}\right )^{p} \left (c +d \,x^{n}\right )^{2}d x\]
Input:
int(x^(-1-n*(p+1))*(a+b*x^n)^p*(c+d*x^n)^2,x)
Output:
int(x^(-1-n*(p+1))*(a+b*x^n)^p*(c+d*x^n)^2,x)
\[ \int x^{-1-n (1+p)} \left (a+b x^n\right )^p \left (c+d x^n\right )^2 \, dx=\int { {\left (d x^{n} + c\right )}^{2} {\left (b x^{n} + a\right )}^{p} x^{-n {\left (p + 1\right )} - 1} \,d x } \] Input:
integrate(x^(-1-n*(p+1))*(a+b*x^n)^p*(c+d*x^n)^2,x, algorithm="fricas")
Output:
integral((d^2*x^(-n*p - n - 1)*x^(2*n) + 2*c*d*x^(-n*p - n - 1)*x^n + c^2* x^(-n*p - n - 1))*(b*x^n + a)^p, x)
Timed out. \[ \int x^{-1-n (1+p)} \left (a+b x^n\right )^p \left (c+d x^n\right )^2 \, dx=\text {Timed out} \] Input:
integrate(x**(-1-n*(p+1))*(a+b*x**n)**p*(c+d*x**n)**2,x)
Output:
Timed out
\[ \int x^{-1-n (1+p)} \left (a+b x^n\right )^p \left (c+d x^n\right )^2 \, dx=\int { {\left (d x^{n} + c\right )}^{2} {\left (b x^{n} + a\right )}^{p} x^{-n {\left (p + 1\right )} - 1} \,d x } \] Input:
integrate(x^(-1-n*(p+1))*(a+b*x^n)^p*(c+d*x^n)^2,x, algorithm="maxima")
Output:
integrate((d*x^n + c)^2*(b*x^n + a)^p*x^(-n*(p + 1) - 1), x)
Exception generated. \[ \int x^{-1-n (1+p)} \left (a+b x^n\right )^p \left (c+d x^n\right )^2 \, dx=\text {Exception raised: TypeError} \] Input:
integrate(x^(-1-n*(p+1))*(a+b*x^n)^p*(c+d*x^n)^2,x, algorithm="giac")
Output:
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:Unable to divide, perhaps due to ro unding error%%%{-1,[1,0,1,3,1,3,3,2,0]%%%}+%%%{-3,[1,0,1,3,1,3,2,2,0]%%%}+ %%%{-3,[1
Timed out. \[ \int x^{-1-n (1+p)} \left (a+b x^n\right )^p \left (c+d x^n\right )^2 \, dx=\int \frac {{\left (a+b\,x^n\right )}^p\,{\left (c+d\,x^n\right )}^2}{x^{n\,\left (p+1\right )+1}} \,d x \] Input:
int(((a + b*x^n)^p*(c + d*x^n)^2)/x^(n*(p + 1) + 1),x)
Output:
int(((a + b*x^n)^p*(c + d*x^n)^2)/x^(n*(p + 1) + 1), x)
\[ \int x^{-1-n (1+p)} \left (a+b x^n\right )^p \left (c+d x^n\right )^2 \, dx=\frac {x^{2 n} \left (x^{n} b +a \right )^{p} a \,d^{2} p^{2}+x^{2 n} \left (x^{n} b +a \right )^{p} a \,d^{2} p -2 x^{n} \left (x^{n} b +a \right )^{p} a c d p -2 x^{n} \left (x^{n} b +a \right )^{p} a c d -x^{n} \left (x^{n} b +a \right )^{p} b \,c^{2} p -\left (x^{n} b +a \right )^{p} a \,c^{2} p +x^{n p +n} \left (\int \frac {x^{n} \left (x^{n} b +a \right )^{p}}{x^{n p +n} b x +x^{n p} a x}d x \right ) a^{2} d^{2} n \,p^{3}+x^{n p +n} \left (\int \frac {x^{n} \left (x^{n} b +a \right )^{p}}{x^{n p +n} b x +x^{n p} a x}d x \right ) a^{2} d^{2} n \,p^{2}+2 x^{n p +n} \left (\int \frac {x^{n} \left (x^{n} b +a \right )^{p}}{x^{n p +n} b x +x^{n p} a x}d x \right ) a b c d n \,p^{2}+2 x^{n p +n} \left (\int \frac {x^{n} \left (x^{n} b +a \right )^{p}}{x^{n p +n} b x +x^{n p} a x}d x \right ) a b c d n p}{x^{n p +n} a n p \left (p +1\right )} \] Input:
int(x^(-1-n*(p+1))*(a+b*x^n)^p*(c+d*x^n)^2,x)
Output:
(x**(2*n)*(x**n*b + a)**p*a*d**2*p**2 + x**(2*n)*(x**n*b + a)**p*a*d**2*p - 2*x**n*(x**n*b + a)**p*a*c*d*p - 2*x**n*(x**n*b + a)**p*a*c*d - x**n*(x* *n*b + a)**p*b*c**2*p - (x**n*b + a)**p*a*c**2*p + x**(n*p + n)*int((x**n* (x**n*b + a)**p)/(x**(n*p + n)*b*x + x**(n*p)*a*x),x)*a**2*d**2*n*p**3 + x **(n*p + n)*int((x**n*(x**n*b + a)**p)/(x**(n*p + n)*b*x + x**(n*p)*a*x),x )*a**2*d**2*n*p**2 + 2*x**(n*p + n)*int((x**n*(x**n*b + a)**p)/(x**(n*p + n)*b*x + x**(n*p)*a*x),x)*a*b*c*d*n*p**2 + 2*x**(n*p + n)*int((x**n*(x**n* b + a)**p)/(x**(n*p + n)*b*x + x**(n*p)*a*x),x)*a*b*c*d*n*p)/(x**(n*p + n) *a*n*p*(p + 1))