Integrand size = 16, antiderivative size = 56 \[ \int \frac {(a+b x)^n (c+d x)}{x} \, dx=\frac {d (a+b x)^{1+n}}{b (1+n)}-\frac {c (a+b x)^{1+n} \operatorname {Hypergeometric2F1}\left (1,1+n,2+n,1+\frac {b x}{a}\right )}{a (1+n)} \] Output:
d*(b*x+a)^(1+n)/b/(1+n)-c*(b*x+a)^(1+n)*hypergeom([1, 1+n],[2+n],1+b*x/a)/ a/(1+n)
Time = 0.04 (sec) , antiderivative size = 45, normalized size of antiderivative = 0.80 \[ \int \frac {(a+b x)^n (c+d x)}{x} \, dx=\frac {(a+b x)^{1+n} \left (a d-b c \operatorname {Hypergeometric2F1}\left (1,1+n,2+n,1+\frac {b x}{a}\right )\right )}{a b (1+n)} \] Input:
Integrate[((a + b*x)^n*(c + d*x))/x,x]
Output:
((a + b*x)^(1 + n)*(a*d - b*c*Hypergeometric2F1[1, 1 + n, 2 + n, 1 + (b*x) /a]))/(a*b*(1 + n))
Time = 0.17 (sec) , antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {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) (a+b x)^n}{x} \, dx\) |
\(\Big \downarrow \) 90 |
\(\displaystyle c \int \frac {(a+b x)^n}{x}dx+\frac {d (a+b x)^{n+1}}{b (n+1)}\) |
\(\Big \downarrow \) 75 |
\(\displaystyle \frac {d (a+b x)^{n+1}}{b (n+1)}-\frac {c (a+b x)^{n+1} \operatorname {Hypergeometric2F1}\left (1,n+1,n+2,\frac {b x}{a}+1\right )}{a (n+1)}\) |
Input:
Int[((a + b*x)^n*(c + d*x))/x,x]
Output:
(d*(a + b*x)^(1 + n))/(b*(1 + n)) - (c*(a + b*x)^(1 + n)*Hypergeometric2F1 [1, 1 + n, 2 + n, 1 + (b*x)/a])/(a*(1 + n))
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 \frac {\left (b x +a \right )^{n} \left (x d +c \right )}{x}d x\]
Input:
int((b*x+a)^n*(d*x+c)/x,x)
Output:
int((b*x+a)^n*(d*x+c)/x,x)
\[ \int \frac {(a+b x)^n (c+d x)}{x} \, dx=\int { \frac {{\left (d x + c\right )} {\left (b x + a\right )}^{n}}{x} \,d x } \] Input:
integrate((b*x+a)^n*(d*x+c)/x,x, algorithm="fricas")
Output:
integral((d*x + c)*(b*x + a)^n/x, x)
Time = 2.10 (sec) , antiderivative size = 104, normalized size of antiderivative = 1.86 \[ \int \frac {(a+b x)^n (c+d x)}{x} \, dx=d \left (\begin {cases} a^{n} x & \text {for}\: b = 0 \\\frac {\begin {cases} \frac {\left (a + b x\right )^{n + 1}}{n + 1} & \text {for}\: n \neq -1 \\\log {\left (a + b x \right )} & \text {otherwise} \end {cases}}{b} & \text {otherwise} \end {cases}\right ) - \frac {b^{n + 1} c n \left (\frac {a}{b} + x\right )^{n + 1} \Phi \left (1 + \frac {b x}{a}, 1, n + 1\right ) \Gamma \left (n + 1\right )}{a \Gamma \left (n + 2\right )} - \frac {b^{n + 1} c \left (\frac {a}{b} + x\right )^{n + 1} \Phi \left (1 + \frac {b x}{a}, 1, n + 1\right ) \Gamma \left (n + 1\right )}{a \Gamma \left (n + 2\right )} \] Input:
integrate((b*x+a)**n*(d*x+c)/x,x)
Output:
d*Piecewise((a**n*x, Eq(b, 0)), (Piecewise(((a + b*x)**(n + 1)/(n + 1), Ne (n, -1)), (log(a + b*x), True))/b, True)) - b**(n + 1)*c*n*(a/b + x)**(n + 1)*lerchphi(1 + b*x/a, 1, n + 1)*gamma(n + 1)/(a*gamma(n + 2)) - b**(n + 1)*c*(a/b + x)**(n + 1)*lerchphi(1 + b*x/a, 1, n + 1)*gamma(n + 1)/(a*gamm a(n + 2))
\[ \int \frac {(a+b x)^n (c+d x)}{x} \, dx=\int { \frac {{\left (d x + c\right )} {\left (b x + a\right )}^{n}}{x} \,d x } \] Input:
integrate((b*x+a)^n*(d*x+c)/x,x, algorithm="maxima")
Output:
c*integrate((b*x + a)^n/x, x) + (b*x + a)^(n + 1)*d/(b*(n + 1))
\[ \int \frac {(a+b x)^n (c+d x)}{x} \, dx=\int { \frac {{\left (d x + c\right )} {\left (b x + a\right )}^{n}}{x} \,d x } \] Input:
integrate((b*x+a)^n*(d*x+c)/x,x, algorithm="giac")
Output:
integrate((d*x + c)*(b*x + a)^n/x, x)
Timed out. \[ \int \frac {(a+b x)^n (c+d x)}{x} \, dx=\int \frac {{\left (a+b\,x\right )}^n\,\left (c+d\,x\right )}{x} \,d x \] Input:
int(((a + b*x)^n*(c + d*x))/x,x)
Output:
int(((a + b*x)^n*(c + d*x))/x, x)
\[ \int \frac {(a+b x)^n (c+d x)}{x} \, dx=\frac {\left (b x +a \right )^{n} a d n +\left (b x +a \right )^{n} b c n +\left (b x +a \right )^{n} b c +\left (b x +a \right )^{n} b d n x +\left (\int \frac {\left (b x +a \right )^{n}}{b \,x^{2}+a x}d x \right ) a b c \,n^{2}+\left (\int \frac {\left (b x +a \right )^{n}}{b \,x^{2}+a x}d x \right ) a b c n}{b n \left (n +1\right )} \] Input:
int((b*x+a)^n*(d*x+c)/x,x)
Output:
((a + b*x)**n*a*d*n + (a + b*x)**n*b*c*n + (a + b*x)**n*b*c + (a + b*x)**n *b*d*n*x + int((a + b*x)**n/(a*x + b*x**2),x)*a*b*c*n**2 + int((a + b*x)** n/(a*x + b*x**2),x)*a*b*c*n)/(b*n*(n + 1))