Integrand size = 20, antiderivative size = 203 \[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x^3 (c+d x)^2} \, dx=\frac {(a c+b d (3+n)) \left (a+\frac {b}{x}\right )^{1+n}}{b^2 c^3 (1+n) (2+n)}+\frac {d^2 (a c-b d (3+n)) \left (a+\frac {b}{x}\right )^{1+n}}{b c^3 (a c-b d) (2+n) \left (d+\frac {c}{x}\right )}-\frac {\left (a+\frac {b}{x}\right )^{1+n}}{b c (2+n) \left (d+\frac {c}{x}\right ) x^2}+\frac {d^2 (3 a c-b d (3+n)) \left (a+\frac {b}{x}\right )^{1+n} \operatorname {Hypergeometric2F1}\left (1,1+n,2+n,\frac {c \left (a+\frac {b}{x}\right )}{a c-b d}\right )}{c^3 (a c-b d)^2 (1+n)} \] Output:
(a*c+b*d*(3+n))*(a+b/x)^(1+n)/b^2/c^3/(1+n)/(2+n)+d^2*(a*c-b*d*(3+n))*(a+b /x)^(1+n)/b/c^3/(a*c-b*d)/(2+n)/(d+c/x)-(a+b/x)^(1+n)/b/c/(2+n)/(d+c/x)/x^ 2+d^2*(3*a*c-b*d*(3+n))*(a+b/x)^(1+n)*hypergeom([1, 1+n],[2+n],c*(a+b/x)/( a*c-b*d))/c^3/(a*c-b*d)^2/(1+n)
Time = 0.28 (sec) , antiderivative size = 182, normalized size of antiderivative = 0.90 \[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x^3 (c+d x)^2} \, dx=\frac {\left (a+\frac {b}{x}\right )^{1+n} \left (-\frac {1}{x (c+d x)}+\frac {-a^2 c^2 (c+d x)+b^2 d^2 (3+n) (c+d (2+n) x)-a b c d (c (2+n)+d (3+2 n) x)}{b c^2 (-a c+b d) (1+n) (c+d x)}-\frac {b d^2 (2+n) (-3 a c+b d (3+n)) \operatorname {Hypergeometric2F1}\left (1,1+n,2+n,\frac {c \left (a+\frac {b}{x}\right )}{a c-b d}\right )}{c^2 (a c-b d)^2 (1+n)}\right )}{b c (2+n)} \] Input:
Integrate[(a + b/x)^n/(x^3*(c + d*x)^2),x]
Output:
((a + b/x)^(1 + n)*(-(1/(x*(c + d*x))) + (-(a^2*c^2*(c + d*x)) + b^2*d^2*( 3 + n)*(c + d*(2 + n)*x) - a*b*c*d*(c*(2 + n) + d*(3 + 2*n)*x))/(b*c^2*(-( a*c) + b*d)*(1 + n)*(c + d*x)) - (b*d^2*(2 + n)*(-3*a*c + b*d*(3 + n))*Hyp ergeometric2F1[1, 1 + n, 2 + n, (c*(a + b/x))/(a*c - b*d)])/(c^2*(a*c - b* d)^2*(1 + n))))/(b*c*(2 + n))
Time = 0.68 (sec) , antiderivative size = 229, normalized size of antiderivative = 1.13, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {1016, 948, 111, 25, 163, 78}
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 {\left (a+\frac {b}{x}\right )^n}{x^3 (c+d x)^2} \, dx\) |
\(\Big \downarrow \) 1016 |
\(\displaystyle \int \frac {\left (a+\frac {b}{x}\right )^n}{x^5 \left (\frac {c}{x}+d\right )^2}dx\) |
\(\Big \downarrow \) 948 |
\(\displaystyle -\int \frac {\left (a+\frac {b}{x}\right )^n}{\left (\frac {c}{x}+d\right )^2 x^3}d\frac {1}{x}\) |
\(\Big \downarrow \) 111 |
\(\displaystyle -\frac {\int -\frac {\left (a+\frac {b}{x}\right )^n \left (2 a d+\frac {a c+b d (n+3)}{x}\right )}{\left (\frac {c}{x}+d\right )^2 x}d\frac {1}{x}}{b c (n+2)}-\frac {\left (a+\frac {b}{x}\right )^{n+1}}{b c (n+2) x^2 \left (\frac {c}{x}+d\right )}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {\int \frac {\left (a+\frac {b}{x}\right )^n \left (2 a d+\frac {a c+b d (n+3)}{x}\right )}{\left (\frac {c}{x}+d\right )^2 x}d\frac {1}{x}}{b c (n+2)}-\frac {\left (a+\frac {b}{x}\right )^{n+1}}{b c (n+2) x^2 \left (\frac {c}{x}+d\right )}\) |
\(\Big \downarrow \) 163 |
\(\displaystyle \frac {-\frac {b d^2 (n+2) (3 a c-b d (n+3)) \int \frac {\left (a+\frac {b}{x}\right )^n}{\frac {c}{x}+d}d\frac {1}{x}}{c^2 (a c-b d)}-\frac {\left (a+\frac {b}{x}\right )^{n+1} \left (d (b d (n+2) (a c+b d (n+3))-a c (a c+b d (3 n+5)))-\frac {c (a c-b d) (a c+b d (n+3))}{x}\right )}{b c^2 (n+1) \left (\frac {c}{x}+d\right ) (a c-b d)}}{b c (n+2)}-\frac {\left (a+\frac {b}{x}\right )^{n+1}}{b c (n+2) x^2 \left (\frac {c}{x}+d\right )}\) |
\(\Big \downarrow \) 78 |
\(\displaystyle \frac {\frac {b d^2 (n+2) \left (a+\frac {b}{x}\right )^{n+1} (3 a c-b d (n+3)) \operatorname {Hypergeometric2F1}\left (1,n+1,n+2,\frac {c \left (a+\frac {b}{x}\right )}{a c-b d}\right )}{c^2 (n+1) (a c-b d)^2}-\frac {\left (a+\frac {b}{x}\right )^{n+1} \left (d (b d (n+2) (a c+b d (n+3))-a c (a c+b d (3 n+5)))-\frac {c (a c-b d) (a c+b d (n+3))}{x}\right )}{b c^2 (n+1) \left (\frac {c}{x}+d\right ) (a c-b d)}}{b c (n+2)}-\frac {\left (a+\frac {b}{x}\right )^{n+1}}{b c (n+2) x^2 \left (\frac {c}{x}+d\right )}\) |
Input:
Int[(a + b/x)^n/(x^3*(c + d*x)^2),x]
Output:
-((a + b/x)^(1 + n)/(b*c*(2 + n)*(d + c/x)*x^2)) + (-(((a + b/x)^(1 + n)*( d*(b*d*(2 + n)*(a*c + b*d*(3 + n)) - a*c*(a*c + b*d*(5 + 3*n))) - (c*(a*c - b*d)*(a*c + b*d*(3 + n)))/x))/(b*c^2*(a*c - b*d)*(1 + n)*(d + c/x))) + ( b*d^2*(2 + n)*(3*a*c - b*d*(3 + n))*(a + b/x)^(1 + n)*Hypergeometric2F1[1, 1 + n, 2 + n, (c*(a + b/x))/(a*c - b*d)])/(c^2*(a*c - b*d)^2*(1 + n)))/(b *c*(2 + n))
Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(b *c - a*d)^n*((a + b*x)^(m + 1)/(b^(n + 1)*(m + 1)))*Hypergeometric2F1[-n, m + 1, m + 2, (-d)*((a + b*x)/(b*c - a*d))], x] /; FreeQ[{a, b, c, d, m}, x] && !IntegerQ[m] && IntegerQ[n]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_) )^(p_), x_] :> Simp[b*(a + b*x)^(m - 1)*(c + d*x)^(n + 1)*((e + f*x)^(p + 1 )/(d*f*(m + n + p + 1))), x] + Simp[1/(d*f*(m + n + p + 1)) Int[(a + b*x) ^(m - 2)*(c + d*x)^n*(e + f*x)^p*Simp[a^2*d*f*(m + n + p + 1) - b*(b*c*e*(m - 1) + a*(d*e*(n + 1) + c*f*(p + 1))) + b*(a*d*f*(2*m + n + p) - b*(d*e*(m + n) + c*f*(m + p)))*x, x], x], x] /; FreeQ[{a, b, c, d, e, f, n, p}, x] & & GtQ[m, 1] && NeQ[m + n + p + 1, 0] && IntegerQ[m]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_.)*((e_) + (f_.)*(x_) )*((g_.) + (h_.)*(x_)), x_] :> Simp[((a^2*d*f*h*(n + 2) + b^2*d*e*g*(m + n + 3) + a*b*(c*f*h*(m + 1) - d*(f*g + e*h)*(m + n + 3)) + b*f*h*(b*c - a*d)* (m + 1)*x)/(b^2*d*(b*c - a*d)*(m + 1)*(m + n + 3)))*(a + b*x)^(m + 1)*(c + d*x)^(n + 1), x] - Simp[(a^2*d^2*f*h*(n + 1)*(n + 2) + a*b*d*(n + 1)*(2*c*f *h*(m + 1) - d*(f*g + e*h)*(m + n + 3)) + b^2*(c^2*f*h*(m + 1)*(m + 2) - c* d*(f*g + e*h)*(m + 1)*(m + n + 3) + d^2*e*g*(m + n + 2)*(m + n + 3)))/(b^2* d*(b*c - a*d)*(m + 1)*(m + n + 3)) Int[(a + b*x)^(m + 1)*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d, e, f, g, h, m, n}, x] && ((GeQ[m, -2] && LtQ[m, - 1]) || SumSimplerQ[m, 1]) && NeQ[m, -1] && NeQ[m + n + 3, 0]
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_. ), x_Symbol] :> Simp[1/n Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a + b*x)^ p*(c + d*x)^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p, q}, x] && NeQ [b*c - a*d, 0] && IntegerQ[Simplify[(m + 1)/n]]
Int[(x_)^(m_.)*((c_) + (d_.)*(x_)^(mn_.))^(q_.)*((a_) + (b_.)*(x_)^(n_.))^( p_.), x_Symbol] :> Int[x^(m - n*q)*(a + b*x^n)^p*(d + c*x^n)^q, x] /; FreeQ [{a, b, c, d, m, n, p}, x] && EqQ[mn, -n] && IntegerQ[q] && (PosQ[n] || !I ntegerQ[p])
\[\int \frac {\left (a +\frac {b}{x}\right )^{n}}{x^{3} \left (d x +c \right )^{2}}d x\]
Input:
int((a+b/x)^n/x^3/(d*x+c)^2,x)
Output:
int((a+b/x)^n/x^3/(d*x+c)^2,x)
\[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x^3 (c+d x)^2} \, dx=\int { \frac {{\left (a + \frac {b}{x}\right )}^{n}}{{\left (d x + c\right )}^{2} x^{3}} \,d x } \] Input:
integrate((a+b/x)^n/x^3/(d*x+c)^2,x, algorithm="fricas")
Output:
integral(((a*x + b)/x)^n/(d^2*x^5 + 2*c*d*x^4 + c^2*x^3), x)
\[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x^3 (c+d x)^2} \, dx=\int \frac {\left (a + \frac {b}{x}\right )^{n}}{x^{3} \left (c + d x\right )^{2}}\, dx \] Input:
integrate((a+b/x)**n/x**3/(d*x+c)**2,x)
Output:
Integral((a + b/x)**n/(x**3*(c + d*x)**2), x)
\[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x^3 (c+d x)^2} \, dx=\int { \frac {{\left (a + \frac {b}{x}\right )}^{n}}{{\left (d x + c\right )}^{2} x^{3}} \,d x } \] Input:
integrate((a+b/x)^n/x^3/(d*x+c)^2,x, algorithm="maxima")
Output:
integrate((a + b/x)^n/((d*x + c)^2*x^3), x)
\[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x^3 (c+d x)^2} \, dx=\int { \frac {{\left (a + \frac {b}{x}\right )}^{n}}{{\left (d x + c\right )}^{2} x^{3}} \,d x } \] Input:
integrate((a+b/x)^n/x^3/(d*x+c)^2,x, algorithm="giac")
Output:
integrate((a + b/x)^n/((d*x + c)^2*x^3), x)
Timed out. \[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x^3 (c+d x)^2} \, dx=\int \frac {{\left (a+\frac {b}{x}\right )}^n}{x^3\,{\left (c+d\,x\right )}^2} \,d x \] Input:
int((a + b/x)^n/(x^3*(c + d*x)^2),x)
Output:
int((a + b/x)^n/(x^3*(c + d*x)^2), x)
\[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x^3 (c+d x)^2} \, dx=\text {too large to display} \] Input:
int((a+b/x)^n/x^3/(d*x+c)^2,x)
Output:
((a*x + b)**n*a**3*c**3*n*x**2 + (a*x + b)**n*a**3*c**2*d*n*x**3 - (a*x + b)**n*a**2*b*c**3*n**2*x + 4*(a*x + b)**n*a**2*b*c**2*d*n*x**2 + (a*x + b) **n*a**2*b*c*d**2*n**2*x**3 + 4*(a*x + b)**n*a**2*b*c*d**2*n*x**3 - (a*x + b)**n*a*b**2*c**3*n**2 - (a*x + b)**n*a*b**2*c**3*n + (a*x + b)**n*a*b**2 *c**2*d*n**3*x + (a*x + b)**n*a*b**2*c**2*d*n**2*x + 3*(a*x + b)**n*a*b**2 *c**2*d*n*x - (a*x + b)**n*a*b**2*c*d**2*n**3*x**2 - 5*(a*x + b)**n*a*b**2 *c*d**2*n**2*x**2 - 5*(a*x + b)**n*a*b**2*c*d**2*n*x**2 - 6*(a*x + b)**n*a *b**2*c*d**2*x**2 - (a*x + b)**n*a*b**2*d**3*n**2*x**3 - 5*(a*x + b)**n*a* b**2*d**3*n*x**3 - 6*(a*x + b)**n*a*b**2*d**3*x**3 + (a*x + b)**n*b**3*c** 2*d*n**3 + (a*x + b)**n*b**3*c**2*d*n**2 - (a*x + b)**n*b**3*c*d**2*n**3*x - 3*(a*x + b)**n*b**3*c*d**2*n**2*x + (a*x + b)**n*b**3*d**3*n**3*x**2 + 5*(a*x + b)**n*b**3*d**3*n**2*x**2 + 6*(a*x + b)**n*b**3*d**3*n*x**2 + 3*x **n*int((a*x + b)**n/(x**n*a**2*c**3*x + 2*x**n*a**2*c**2*d*x**2 + x**n*a* *2*c*d**2*x**3 + x**n*a*b*c**3 - x**n*a*b*c**2*d*n*x + 2*x**n*a*b*c**2*d*x - 2*x**n*a*b*c*d**2*n*x**2 + x**n*a*b*c*d**2*x**2 - x**n*a*b*d**3*n*x**3 - x**n*b**2*c**2*d*n - 2*x**n*b**2*c*d**2*n*x - x**n*b**2*d**3*n*x**2),x)* a**3*b**2*c**4*d**2*n**3*x**2 + 9*x**n*int((a*x + b)**n/(x**n*a**2*c**3*x + 2*x**n*a**2*c**2*d*x**2 + x**n*a**2*c*d**2*x**3 + x**n*a*b*c**3 - x**n*a *b*c**2*d*n*x + 2*x**n*a*b*c**2*d*x - 2*x**n*a*b*c*d**2*n*x**2 + x**n*a*b* c*d**2*x**2 - x**n*a*b*d**3*n*x**3 - x**n*b**2*c**2*d*n - 2*x**n*b**2*c...