Integrand size = 16, antiderivative size = 84 \[ \int (d+e x) \log \left (c (a+b x)^p\right ) \, dx=-\frac {(b d-a e) p x}{2 b}-\frac {p (d+e x)^2}{4 e}-\frac {(b d-a e)^2 p \log (a+b x)}{2 b^2 e}+\frac {(d+e x)^2 \log \left (c (a+b x)^p\right )}{2 e} \] Output:
-1/2*(-a*e+b*d)*p*x/b-1/4*p*(e*x+d)^2/e-1/2*(-a*e+b*d)^2*p*ln(b*x+a)/b^2/e +1/2*(e*x+d)^2*ln(c*(b*x+a)^p)/e
Time = 0.05 (sec) , antiderivative size = 78, normalized size of antiderivative = 0.93 \[ \int (d+e x) \log \left (c (a+b x)^p\right ) \, dx=-d p x-\frac {1}{2} e p \left (-\frac {a x}{b}+\frac {x^2}{2}+\frac {a^2 \log (a+b x)}{b^2}\right )+\frac {1}{2} e x^2 \log \left (c (a+b x)^p\right )+\frac {d (a+b x) \log \left (c (a+b x)^p\right )}{b} \] Input:
Integrate[(d + e*x)*Log[c*(a + b*x)^p],x]
Output:
-(d*p*x) - (e*p*(-((a*x)/b) + x^2/2 + (a^2*Log[a + b*x])/b^2))/2 + (e*x^2* Log[c*(a + b*x)^p])/2 + (d*(a + b*x)*Log[c*(a + b*x)^p])/b
Time = 0.41 (sec) , antiderivative size = 83, normalized size of antiderivative = 0.99, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {2842, 49, 2009}
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 (d+e x) \log \left (c (a+b x)^p\right ) \, dx\) |
\(\Big \downarrow \) 2842 |
\(\displaystyle \frac {(d+e x)^2 \log \left (c (a+b x)^p\right )}{2 e}-\frac {b p \int \frac {(d+e x)^2}{a+b x}dx}{2 e}\) |
\(\Big \downarrow \) 49 |
\(\displaystyle \frac {(d+e x)^2 \log \left (c (a+b x)^p\right )}{2 e}-\frac {b p \int \left (\frac {(b d-a e)^2}{b^2 (a+b x)}+\frac {e (b d-a e)}{b^2}+\frac {e (d+e x)}{b}\right )dx}{2 e}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {(d+e x)^2 \log \left (c (a+b x)^p\right )}{2 e}-\frac {b p \left (\frac {(b d-a e)^2 \log (a+b x)}{b^3}+\frac {e x (b d-a e)}{b^2}+\frac {(d+e x)^2}{2 b}\right )}{2 e}\) |
Input:
Int[(d + e*x)*Log[c*(a + b*x)^p],x]
Output:
-1/2*(b*p*((e*(b*d - a*e)*x)/b^2 + (d + e*x)^2/(2*b) + ((b*d - a*e)^2*Log[ a + b*x])/b^3))/e + ((d + e*x)^2*Log[c*(a + b*x)^p])/(2*e)
Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int [ExpandIntegrand[(a + b*x)^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && IGtQ[m, 0] && IGtQ[m + n + 2, 0]
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((f_.) + (g_.)*(x_ ))^(q_.), x_Symbol] :> Simp[(f + g*x)^(q + 1)*((a + b*Log[c*(d + e*x)^n])/( g*(q + 1))), x] - Simp[b*e*(n/(g*(q + 1))) Int[(f + g*x)^(q + 1)/(d + e*x ), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, q}, x] && NeQ[e*f - d*g, 0] && NeQ[q, -1]
Time = 0.66 (sec) , antiderivative size = 77, normalized size of antiderivative = 0.92
method | result | size |
parts | \(\frac {\ln \left (c \left (b x +a \right )^{p}\right ) e \,x^{2}}{2}+d x \ln \left (c \left (b x +a \right )^{p}\right )-\frac {p b \left (-\frac {-\frac {1}{2} b e \,x^{2}+a e x -2 b d x}{b^{2}}+\frac {a \left (e a -2 b d \right ) \ln \left (b x +a \right )}{b^{3}}\right )}{2}\) | \(77\) |
norman | \(d x \ln \left (c \,{\mathrm e}^{p \ln \left (b x +a \right )}\right )-\frac {e p \,x^{2}}{4}+\frac {x^{2} e \ln \left (c \,{\mathrm e}^{p \ln \left (b x +a \right )}\right )}{2}+\frac {p \left (e a -2 b d \right ) x}{2 b}-\frac {p \left (a^{2} e -2 d a b \right ) \ln \left (b x +a \right )}{2 b^{2}}\) | \(80\) |
default | \(d x \ln \left (c \left (b x +a \right )^{p}\right )-x d p +\frac {d p a \ln \left (b x +a \right )}{b}+\frac {x^{2} e \ln \left (c \,{\mathrm e}^{p \ln \left (b x +a \right )}\right )}{2}-\frac {e p \,x^{2}}{4}-\frac {p \,a^{2} e \ln \left (b x +a \right )}{2 b^{2}}+\frac {e a p x}{2 b}\) | \(83\) |
parallelrisch | \(-\frac {-2 x^{2} \ln \left (c \left (b x +a \right )^{p}\right ) b^{2} e +b^{2} e p \,x^{2}+2 \ln \left (b x +a \right ) a^{2} e p -8 \ln \left (b x +a \right ) a b d p -4 x \ln \left (c \left (b x +a \right )^{p}\right ) b^{2} d -2 a b e p x +4 b^{2} d p x +4 \ln \left (c \left (b x +a \right )^{p}\right ) a b d +2 a^{2} e p -4 a b d p}{4 b^{2}}\) | \(120\) |
risch | \(\left (\frac {1}{2} e \,x^{2}+d x \right ) \ln \left (\left (b x +a \right )^{p}\right )-\frac {i \pi e \,x^{2} \operatorname {csgn}\left (i c \left (b x +a \right )^{p}\right )^{3}}{4}+\frac {i \pi d x \operatorname {csgn}\left (i c \left (b x +a \right )^{p}\right )^{2} \operatorname {csgn}\left (i c \right )}{2}+\frac {i \pi e \,x^{2} \operatorname {csgn}\left (i c \left (b x +a \right )^{p}\right )^{2} \operatorname {csgn}\left (i c \right )}{4}-\frac {i \pi d x \operatorname {csgn}\left (i c \left (b x +a \right )^{p}\right )^{3}}{2}-\frac {i \pi d x \,\operatorname {csgn}\left (i \left (b x +a \right )^{p}\right ) \operatorname {csgn}\left (i c \left (b x +a \right )^{p}\right ) \operatorname {csgn}\left (i c \right )}{2}-\frac {i \pi e \,x^{2} \operatorname {csgn}\left (i \left (b x +a \right )^{p}\right ) \operatorname {csgn}\left (i c \left (b x +a \right )^{p}\right ) \operatorname {csgn}\left (i c \right )}{4}+\frac {i \pi d x \,\operatorname {csgn}\left (i \left (b x +a \right )^{p}\right ) \operatorname {csgn}\left (i c \left (b x +a \right )^{p}\right )^{2}}{2}+\frac {i \pi e \,x^{2} \operatorname {csgn}\left (i \left (b x +a \right )^{p}\right ) \operatorname {csgn}\left (i c \left (b x +a \right )^{p}\right )^{2}}{4}+\frac {\ln \left (c \right ) e \,x^{2}}{2}-\frac {e p \,x^{2}}{4}+\ln \left (c \right ) d x -\frac {p \,a^{2} e \ln \left (b x +a \right )}{2 b^{2}}+\frac {d p a \ln \left (b x +a \right )}{b}+\frac {e a p x}{2 b}-x d p\) | \(312\) |
Input:
int((e*x+d)*ln(c*(b*x+a)^p),x,method=_RETURNVERBOSE)
Output:
1/2*ln(c*(b*x+a)^p)*e*x^2+d*x*ln(c*(b*x+a)^p)-1/2*p*b*(-1/b^2*(-1/2*b*e*x^ 2+a*e*x-2*b*d*x)+a*(a*e-2*b*d)/b^3*ln(b*x+a))
Time = 0.07 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.08 \[ \int (d+e x) \log \left (c (a+b x)^p\right ) \, dx=-\frac {b^{2} e p x^{2} + 2 \, {\left (2 \, b^{2} d - a b e\right )} p x - 2 \, {\left (b^{2} e p x^{2} + 2 \, b^{2} d p x + {\left (2 \, a b d - a^{2} e\right )} p\right )} \log \left (b x + a\right ) - 2 \, {\left (b^{2} e x^{2} + 2 \, b^{2} d x\right )} \log \left (c\right )}{4 \, b^{2}} \] Input:
integrate((e*x+d)*log(c*(b*x+a)^p),x, algorithm="fricas")
Output:
-1/4*(b^2*e*p*x^2 + 2*(2*b^2*d - a*b*e)*p*x - 2*(b^2*e*p*x^2 + 2*b^2*d*p*x + (2*a*b*d - a^2*e)*p)*log(b*x + a) - 2*(b^2*e*x^2 + 2*b^2*d*x)*log(c))/b ^2
Time = 0.35 (sec) , antiderivative size = 105, normalized size of antiderivative = 1.25 \[ \int (d+e x) \log \left (c (a+b x)^p\right ) \, dx=\begin {cases} - \frac {a^{2} e \log {\left (c \left (a + b x\right )^{p} \right )}}{2 b^{2}} + \frac {a d \log {\left (c \left (a + b x\right )^{p} \right )}}{b} + \frac {a e p x}{2 b} - d p x + d x \log {\left (c \left (a + b x\right )^{p} \right )} - \frac {e p x^{2}}{4} + \frac {e x^{2} \log {\left (c \left (a + b x\right )^{p} \right )}}{2} & \text {for}\: b \neq 0 \\\left (d x + \frac {e x^{2}}{2}\right ) \log {\left (a^{p} c \right )} & \text {otherwise} \end {cases} \] Input:
integrate((e*x+d)*ln(c*(b*x+a)**p),x)
Output:
Piecewise((-a**2*e*log(c*(a + b*x)**p)/(2*b**2) + a*d*log(c*(a + b*x)**p)/ b + a*e*p*x/(2*b) - d*p*x + d*x*log(c*(a + b*x)**p) - e*p*x**2/4 + e*x**2* log(c*(a + b*x)**p)/2, Ne(b, 0)), ((d*x + e*x**2/2)*log(a**p*c), True))
Time = 0.03 (sec) , antiderivative size = 74, normalized size of antiderivative = 0.88 \[ \int (d+e x) \log \left (c (a+b x)^p\right ) \, dx=-\frac {1}{4} \, b p {\left (\frac {b e x^{2} + 2 \, {\left (2 \, b d - a e\right )} x}{b^{2}} - \frac {2 \, {\left (2 \, a b d - a^{2} e\right )} \log \left (b x + a\right )}{b^{3}}\right )} + \frac {1}{2} \, {\left (e x^{2} + 2 \, d x\right )} \log \left ({\left (b x + a\right )}^{p} c\right ) \] Input:
integrate((e*x+d)*log(c*(b*x+a)^p),x, algorithm="maxima")
Output:
-1/4*b*p*((b*e*x^2 + 2*(2*b*d - a*e)*x)/b^2 - 2*(2*a*b*d - a^2*e)*log(b*x + a)/b^3) + 1/2*(e*x^2 + 2*d*x)*log((b*x + a)^p*c)
Time = 0.13 (sec) , antiderivative size = 136, normalized size of antiderivative = 1.62 \[ \int (d+e x) \log \left (c (a+b x)^p\right ) \, dx=\frac {{\left (b x + a\right )} d p \log \left (b x + a\right )}{b} + \frac {{\left (b x + a\right )}^{2} e p \log \left (b x + a\right )}{2 \, b^{2}} - \frac {{\left (b x + a\right )} a e p \log \left (b x + a\right )}{b^{2}} - \frac {{\left (b x + a\right )} d p}{b} - \frac {{\left (b x + a\right )}^{2} e p}{4 \, b^{2}} + \frac {{\left (b x + a\right )} a e p}{b^{2}} + \frac {{\left (b x + a\right )} d \log \left (c\right )}{b} + \frac {{\left (b x + a\right )}^{2} e \log \left (c\right )}{2 \, b^{2}} - \frac {{\left (b x + a\right )} a e \log \left (c\right )}{b^{2}} \] Input:
integrate((e*x+d)*log(c*(b*x+a)^p),x, algorithm="giac")
Output:
(b*x + a)*d*p*log(b*x + a)/b + 1/2*(b*x + a)^2*e*p*log(b*x + a)/b^2 - (b*x + a)*a*e*p*log(b*x + a)/b^2 - (b*x + a)*d*p/b - 1/4*(b*x + a)^2*e*p/b^2 + (b*x + a)*a*e*p/b^2 + (b*x + a)*d*log(c)/b + 1/2*(b*x + a)^2*e*log(c)/b^2 - (b*x + a)*a*e*log(c)/b^2
Time = 25.71 (sec) , antiderivative size = 68, normalized size of antiderivative = 0.81 \[ \int (d+e x) \log \left (c (a+b x)^p\right ) \, dx=\ln \left (c\,{\left (a+b\,x\right )}^p\right )\,\left (\frac {e\,x^2}{2}+d\,x\right )-x\,\left (d\,p-\frac {a\,e\,p}{2\,b}\right )-\frac {e\,p\,x^2}{4}-\frac {\ln \left (a+b\,x\right )\,\left (a^2\,e\,p-2\,a\,b\,d\,p\right )}{2\,b^2} \] Input:
int(log(c*(a + b*x)^p)*(d + e*x),x)
Output:
log(c*(a + b*x)^p)*(d*x + (e*x^2)/2) - x*(d*p - (a*e*p)/(2*b)) - (e*p*x^2) /4 - (log(a + b*x)*(a^2*e*p - 2*a*b*d*p))/(2*b^2)
Time = 0.15 (sec) , antiderivative size = 98, normalized size of antiderivative = 1.17 \[ \int (d+e x) \log \left (c (a+b x)^p\right ) \, dx=\frac {-2 \,\mathrm {log}\left (\left (b x +a \right )^{p} c \right ) a^{2} e +4 \,\mathrm {log}\left (\left (b x +a \right )^{p} c \right ) a b d +4 \,\mathrm {log}\left (\left (b x +a \right )^{p} c \right ) b^{2} d x +2 \,\mathrm {log}\left (\left (b x +a \right )^{p} c \right ) b^{2} e \,x^{2}+2 a b e p x -4 b^{2} d p x -b^{2} e p \,x^{2}}{4 b^{2}} \] Input:
int((e*x+d)*log(c*(b*x+a)^p),x)
Output:
( - 2*log((a + b*x)**p*c)*a**2*e + 4*log((a + b*x)**p*c)*a*b*d + 4*log((a + b*x)**p*c)*b**2*d*x + 2*log((a + b*x)**p*c)*b**2*e*x**2 + 2*a*b*e*p*x - 4*b**2*d*p*x - b**2*e*p*x**2)/(4*b**2)