Integrand size = 22, antiderivative size = 52 \[ \int \frac {(e x)^m (a c-b c x)}{a+b x} \, dx=-\frac {c (e x)^{1+m}}{e (1+m)}+\frac {2 c (e x)^{1+m} \operatorname {Hypergeometric2F1}\left (1,1+m,2+m,-\frac {b x}{a}\right )}{e (1+m)} \] Output:
-c*(e*x)^(1+m)/e/(1+m)+2*c*(e*x)^(1+m)*hypergeom([1, 1+m],[2+m],-b*x/a)/e/ (1+m)
Time = 0.04 (sec) , antiderivative size = 32, normalized size of antiderivative = 0.62 \[ \int \frac {(e x)^m (a c-b c x)}{a+b x} \, dx=\frac {c x (e x)^m \left (-1+2 \operatorname {Hypergeometric2F1}\left (1,1+m,2+m,-\frac {b x}{a}\right )\right )}{1+m} \] Input:
Integrate[((e*x)^m*(a*c - b*c*x))/(a + b*x),x]
Output:
(c*x*(e*x)^m*(-1 + 2*Hypergeometric2F1[1, 1 + m, 2 + m, -((b*x)/a)]))/(1 + m)
Time = 0.16 (sec) , antiderivative size = 52, 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.091, Rules used = {90, 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 \frac {(e x)^m (a c-b c x)}{a+b x} \, dx\) |
\(\Big \downarrow \) 90 |
\(\displaystyle 2 a c \int \frac {(e x)^m}{a+b x}dx-\frac {c (e x)^{m+1}}{e (m+1)}\) |
\(\Big \downarrow \) 74 |
\(\displaystyle \frac {2 c (e x)^{m+1} \operatorname {Hypergeometric2F1}\left (1,m+1,m+2,-\frac {b x}{a}\right )}{e (m+1)}-\frac {c (e x)^{m+1}}{e (m+1)}\) |
Input:
Int[((e*x)^m*(a*c - b*c*x))/(a + b*x),x]
Output:
-((c*(e*x)^(1 + m))/(e*(1 + m))) + (2*c*(e*x)^(1 + m)*Hypergeometric2F1[1, 1 + m, 2 + m, -((b*x)/a)])/(e*(1 + m))
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[((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 (e x \right )^{m} \left (-b c x +a c \right )}{b x +a}d x\]
Input:
int((e*x)^m*(-b*c*x+a*c)/(b*x+a),x)
Output:
int((e*x)^m*(-b*c*x+a*c)/(b*x+a),x)
\[ \int \frac {(e x)^m (a c-b c x)}{a+b x} \, dx=\int { -\frac {{\left (b c x - a c\right )} \left (e x\right )^{m}}{b x + a} \,d x } \] Input:
integrate((e*x)^m*(-b*c*x+a*c)/(b*x+a),x, algorithm="fricas")
Output:
integral(-(b*c*x - a*c)*(e*x)^m/(b*x + a), x)
Result contains complex when optimal does not.
Time = 1.25 (sec) , antiderivative size = 146, normalized size of antiderivative = 2.81 \[ \int \frac {(e x)^m (a c-b c x)}{a+b x} \, dx=\frac {c e^{m} m x^{m + 1} \Phi \left (\frac {b x e^{i \pi }}{a}, 1, m + 1\right ) \Gamma \left (m + 1\right )}{\Gamma \left (m + 2\right )} + \frac {c e^{m} x^{m + 1} \Phi \left (\frac {b x e^{i \pi }}{a}, 1, m + 1\right ) \Gamma \left (m + 1\right )}{\Gamma \left (m + 2\right )} - \frac {b c e^{m} m x^{m + 2} \Phi \left (\frac {b x e^{i \pi }}{a}, 1, m + 2\right ) \Gamma \left (m + 2\right )}{a \Gamma \left (m + 3\right )} - \frac {2 b c e^{m} x^{m + 2} \Phi \left (\frac {b x e^{i \pi }}{a}, 1, m + 2\right ) \Gamma \left (m + 2\right )}{a \Gamma \left (m + 3\right )} \] Input:
integrate((e*x)**m*(-b*c*x+a*c)/(b*x+a),x)
Output:
c*e**m*m*x**(m + 1)*lerchphi(b*x*exp_polar(I*pi)/a, 1, m + 1)*gamma(m + 1) /gamma(m + 2) + c*e**m*x**(m + 1)*lerchphi(b*x*exp_polar(I*pi)/a, 1, m + 1 )*gamma(m + 1)/gamma(m + 2) - b*c*e**m*m*x**(m + 2)*lerchphi(b*x*exp_polar (I*pi)/a, 1, m + 2)*gamma(m + 2)/(a*gamma(m + 3)) - 2*b*c*e**m*x**(m + 2)* lerchphi(b*x*exp_polar(I*pi)/a, 1, m + 2)*gamma(m + 2)/(a*gamma(m + 3))
\[ \int \frac {(e x)^m (a c-b c x)}{a+b x} \, dx=\int { -\frac {{\left (b c x - a c\right )} \left (e x\right )^{m}}{b x + a} \,d x } \] Input:
integrate((e*x)^m*(-b*c*x+a*c)/(b*x+a),x, algorithm="maxima")
Output:
-integrate((b*c*x - a*c)*(e*x)^m/(b*x + a), x)
\[ \int \frac {(e x)^m (a c-b c x)}{a+b x} \, dx=\int { -\frac {{\left (b c x - a c\right )} \left (e x\right )^{m}}{b x + a} \,d x } \] Input:
integrate((e*x)^m*(-b*c*x+a*c)/(b*x+a),x, algorithm="giac")
Output:
integrate(-(b*c*x - a*c)*(e*x)^m/(b*x + a), x)
Timed out. \[ \int \frac {(e x)^m (a c-b c x)}{a+b x} \, dx=\int \frac {\left (a\,c-b\,c\,x\right )\,{\left (e\,x\right )}^m}{a+b\,x} \,d x \] Input:
int(((a*c - b*c*x)*(e*x)^m)/(a + b*x),x)
Output:
int(((a*c - b*c*x)*(e*x)^m)/(a + b*x), x)
\[ \int \frac {(e x)^m (a c-b c x)}{a+b x} \, dx=\frac {e^{m} c \left (2 x^{m} a m +2 x^{m} a -x^{m} b m x -2 \left (\int \frac {x^{m}}{b \,x^{2}+a x}d x \right ) a^{2} m^{2}-2 \left (\int \frac {x^{m}}{b \,x^{2}+a x}d x \right ) a^{2} m \right )}{b m \left (m +1\right )} \] Input:
int((e*x)^m*(-b*c*x+a*c)/(b*x+a),x)
Output:
(e**m*c*(2*x**m*a*m + 2*x**m*a - x**m*b*m*x - 2*int(x**m/(a*x + b*x**2),x) *a**2*m**2 - 2*int(x**m/(a*x + b*x**2),x)*a**2*m))/(b*m*(m + 1))