Integrand size = 38, antiderivative size = 45 \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=\frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^2}{2 B (b c-a d) n} \] Output:
1/2*(A+B*ln(e*(b*x+a)^n/((d*x+c)^n)))^2/B/(-a*d+b*c)/n
Time = 0.02 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.96 \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=\frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^2}{2 (b B c n-a B d n)} \] Input:
Integrate[(A + B*Log[(e*(a + b*x)^n)/(c + d*x)^n])/((a + b*x)*(c + d*x)),x ]
Output:
(A + B*Log[(e*(a + b*x)^n)/(c + d*x)^n])^2/(2*(b*B*c*n - a*B*d*n))
Time = 0.40 (sec) , antiderivative size = 44, normalized size of antiderivative = 0.98, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.079, Rules used = {2973, 2961, 2738}
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 {B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A}{(a+b x) (c+d x)} \, dx\) |
\(\Big \downarrow \) 2973 |
\(\displaystyle \int \frac {B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A}{(a+b x) (c+d x)}dx\) |
\(\Big \downarrow \) 2961 |
\(\displaystyle \frac {\int \frac {(c+d x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{a+b x}d\frac {a+b x}{c+d x}}{b c-a d}\) |
\(\Big \downarrow \) 2738 |
\(\displaystyle \frac {\left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^2}{2 B n (b c-a d)}\) |
Input:
Int[(A + B*Log[(e*(a + b*x)^n)/(c + d*x)^n])/((a + b*x)*(c + d*x)),x]
Output:
(A + B*Log[e*((a + b*x)/(c + d*x))^n])^2/(2*B*(b*c - a*d)*n)
Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))/(x_), x_Symbol] :> Simp[(a + b*Lo g[c*x^n])^2/(2*b*n), x] /; FreeQ[{a, b, c, n}, x]
Int[((A_.) + Log[(e_.)*(((a_.) + (b_.)*(x_))/((c_.) + (d_.)*(x_)))^(n_.)]*( B_.))^(p_.)*((f_.) + (g_.)*(x_))^(m_.)*((h_.) + (i_.)*(x_))^(q_.), x_Symbol ] :> Simp[(b*c - a*d)^(m + q + 1)*(g/b)^m*(i/d)^q Subst[Int[x^m*((A + B*L og[e*x^n])^p/(b - d*x)^(m + q + 2)), x], x, (a + b*x)/(c + d*x)], x] /; Fre eQ[{a, b, c, d, e, f, g, h, i, A, B, n, p}, x] && NeQ[b*c - a*d, 0] && EqQ[ b*f - a*g, 0] && EqQ[d*h - c*i, 0] && IntegersQ[m, q]
Int[((A_.) + Log[(e_.)*(u_)^(n_.)*(v_)^(mn_)]*(B_.))^(p_.)*(w_.), x_Symbol] :> Subst[Int[w*(A + B*Log[e*(u/v)^n])^p, x], e*(u/v)^n, e*(u^n/v^n)] /; Fr eeQ[{e, A, B, n, p}, x] && EqQ[n + mn, 0] && LinearQ[{u, v}, x] && !Intege rQ[n]
Time = 4.46 (sec) , antiderivative size = 62, normalized size of antiderivative = 1.38
method | result | size |
derivativedivides | \(-\frac {\frac {B \ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}}{2}+\ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) A}{n \left (d a -b c \right )}\) | \(62\) |
default | \(-\frac {\frac {B \ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}}{2}+\ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) A}{n \left (d a -b c \right )}\) | \(62\) |
parts | \(\frac {A \ln \left (d x +c \right )}{d a -b c}-\frac {\ln \left (b x +a \right ) A}{d a -b c}-\frac {B \ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}}{2 n \left (d a -b c \right )}\) | \(76\) |
parallelrisch | \(-\frac {B \,a^{2} c^{2} \ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}+2 A \ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) a^{2} c^{2}}{2 a^{2} c^{2} n \left (d a -b c \right )}\) | \(80\) |
risch | \(\text {Expression too large to display}\) | \(1153\) |
Input:
int((A+B*ln(e*(b*x+a)^n/((d*x+c)^n)))/(b*x+a)/(d*x+c),x,method=_RETURNVERB OSE)
Output:
-1/n/(a*d-b*c)*(1/2*B*ln(e*(b*x+a)^n/((d*x+c)^n))^2+ln(e*(b*x+a)^n/((d*x+c )^n))*A)
Time = 0.07 (sec) , antiderivative size = 72, normalized size of antiderivative = 1.60 \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=\frac {B n \log \left (b x + a\right )^{2} + B n \log \left (d x + c\right )^{2} + 2 \, {\left (B \log \left (e\right ) + A\right )} \log \left (b x + a\right ) - 2 \, {\left (B n \log \left (b x + a\right ) + B \log \left (e\right ) + A\right )} \log \left (d x + c\right )}{2 \, {\left (b c - a d\right )}} \] Input:
integrate((A+B*log(e*(b*x+a)^n/((d*x+c)^n)))/(b*x+a)/(d*x+c),x, algorithm= "fricas")
Output:
1/2*(B*n*log(b*x + a)^2 + B*n*log(d*x + c)^2 + 2*(B*log(e) + A)*log(b*x + a) - 2*(B*n*log(b*x + a) + B*log(e) + A)*log(d*x + c))/(b*c - a*d)
Timed out. \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=\text {Timed out} \] Input:
integrate((A+B*ln(e*(b*x+a)**n/((d*x+c)**n)))/(b*x+a)/(d*x+c),x)
Output:
Timed out
Leaf count of result is larger than twice the leaf count of optimal. 151 vs. \(2 (43) = 86\).
Time = 0.04 (sec) , antiderivative size = 151, normalized size of antiderivative = 3.36 \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=B {\left (\frac {\log \left (b x + a\right )}{b c - a d} - \frac {\log \left (d x + c\right )}{b c - a d}\right )} \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A {\left (\frac {\log \left (b x + a\right )}{b c - a d} - \frac {\log \left (d x + c\right )}{b c - a d}\right )} - \frac {{\left (e n \log \left (b x + a\right )^{2} - 2 \, e n \log \left (b x + a\right ) \log \left (d x + c\right ) + e n \log \left (d x + c\right )^{2}\right )} B}{2 \, {\left (b c - a d\right )} e} \] Input:
integrate((A+B*log(e*(b*x+a)^n/((d*x+c)^n)))/(b*x+a)/(d*x+c),x, algorithm= "maxima")
Output:
B*(log(b*x + a)/(b*c - a*d) - log(d*x + c)/(b*c - a*d))*log((b*x + a)^n*e/ (d*x + c)^n) + A*(log(b*x + a)/(b*c - a*d) - log(d*x + c)/(b*c - a*d)) - 1 /2*(e*n*log(b*x + a)^2 - 2*e*n*log(b*x + a)*log(d*x + c) + e*n*log(d*x + c )^2)*B/((b*c - a*d)*e)
\[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=\int { \frac {B \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A}{{\left (b x + a\right )} {\left (d x + c\right )}} \,d x } \] Input:
integrate((A+B*log(e*(b*x+a)^n/((d*x+c)^n)))/(b*x+a)/(d*x+c),x, algorithm= "giac")
Output:
integrate((B*log((b*x + a)^n*e/(d*x + c)^n) + A)/((b*x + a)*(d*x + c)), x)
Time = 26.30 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.58 \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=-\frac {B\,{\ln \left (\frac {e\,{\left (a+b\,x\right )}^n}{{\left (c+d\,x\right )}^n}\right )}^2-A\,n\,\mathrm {atan}\left (\frac {b\,c\,2{}\mathrm {i}+b\,d\,x\,2{}\mathrm {i}}{a\,d-b\,c}+1{}\mathrm {i}\right )\,4{}\mathrm {i}}{2\,n\,\left (a\,d-b\,c\right )} \] Input:
int((A + B*log((e*(a + b*x)^n)/(c + d*x)^n))/((a + b*x)*(c + d*x)),x)
Output:
-(B*log((e*(a + b*x)^n)/(c + d*x)^n)^2 - A*n*atan((b*c*2i + b*d*x*2i)/(a*d - b*c) + 1i)*4i)/(2*n*(a*d - b*c))
Time = 0.27 (sec) , antiderivative size = 60, normalized size of antiderivative = 1.33 \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=\frac {-2 \,\mathrm {log}\left (b x +a \right ) a n +2 \,\mathrm {log}\left (d x +c \right ) a n -\mathrm {log}\left (\frac {\left (b x +a \right )^{n} e}{\left (d x +c \right )^{n}}\right )^{2} b}{2 n \left (a d -b c \right )} \] Input:
int((A+B*log(e*(b*x+a)^n/((d*x+c)^n)))/(b*x+a)/(d*x+c),x)
Output:
( - 2*log(a + b*x)*a*n + 2*log(c + d*x)*a*n - log(((a + b*x)**n*e)/(c + d* x)**n)**2*b)/(2*n*(a*d - b*c))