Integrand size = 20, antiderivative size = 102 \[ \int x \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \, dx=\frac {b d^3 n \sqrt {x}}{2 e^3}-\frac {b d^2 n x}{4 e^2}+\frac {b d n x^{3/2}}{6 e}-\frac {1}{8} b n x^2-\frac {b d^4 n \log \left (d+e \sqrt {x}\right )}{2 e^4}+\frac {1}{2} x^2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \] Output:
1/2*b*d^3*n*x^(1/2)/e^3-1/4*b*d^2*n*x/e^2+1/6*b*d*n*x^(3/2)/e-1/8*b*n*x^2- 1/2*b*d^4*n*ln(d+e*x^(1/2))/e^4+1/2*x^2*(a+b*ln(c*(d+e*x^(1/2))^n))
Time = 0.07 (sec) , antiderivative size = 101, normalized size of antiderivative = 0.99 \[ \int x \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \, dx=\frac {a x^2}{2}-\frac {1}{4} b e n \left (-\frac {2 d^3 \sqrt {x}}{e^4}+\frac {d^2 x}{e^3}-\frac {2 d x^{3/2}}{3 e^2}+\frac {x^2}{2 e}+\frac {2 d^4 \log \left (d+e \sqrt {x}\right )}{e^5}\right )+\frac {1}{2} b x^2 \log \left (c \left (d+e \sqrt {x}\right )^n\right ) \] Input:
Integrate[x*(a + b*Log[c*(d + e*Sqrt[x])^n]),x]
Output:
(a*x^2)/2 - (b*e*n*((-2*d^3*Sqrt[x])/e^4 + (d^2*x)/e^3 - (2*d*x^(3/2))/(3* e^2) + x^2/(2*e) + (2*d^4*Log[d + e*Sqrt[x]])/e^5))/4 + (b*x^2*Log[c*(d + e*Sqrt[x])^n])/2
Time = 0.47 (sec) , antiderivative size = 100, normalized size of antiderivative = 0.98, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2904, 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 x \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \, dx\) |
\(\Big \downarrow \) 2904 |
\(\displaystyle 2 \int x^{3/2} \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )d\sqrt {x}\) |
\(\Big \downarrow \) 2842 |
\(\displaystyle 2 \left (\frac {1}{4} x^2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )-\frac {1}{4} b e n \int \frac {x^2}{d+e \sqrt {x}}d\sqrt {x}\right )\) |
\(\Big \downarrow \) 49 |
\(\displaystyle 2 \left (\frac {1}{4} x^2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )-\frac {1}{4} b e n \int \left (\frac {d^4}{e^4 \left (d+e \sqrt {x}\right )}-\frac {d^3}{e^4}+\frac {\sqrt {x} d^2}{e^3}-\frac {x d}{e^2}+\frac {x^{3/2}}{e}\right )d\sqrt {x}\right )\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle 2 \left (\frac {1}{4} x^2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )-\frac {1}{4} b e n \left (\frac {d^4 \log \left (d+e \sqrt {x}\right )}{e^5}-\frac {d^3 \sqrt {x}}{e^4}+\frac {d^2 x}{2 e^3}-\frac {d x^{3/2}}{3 e^2}+\frac {x^2}{4 e}\right )\right )\) |
Input:
Int[x*(a + b*Log[c*(d + e*Sqrt[x])^n]),x]
Output:
2*(-1/4*(b*e*n*(-((d^3*Sqrt[x])/e^4) + (d^2*x)/(2*e^3) - (d*x^(3/2))/(3*e^ 2) + x^2/(4*e) + (d^4*Log[d + e*Sqrt[x]])/e^5)) + (x^2*(a + b*Log[c*(d + e *Sqrt[x])^n]))/4)
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]
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m _.), x_Symbol] :> Simp[1/n Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a + b*L og[c*(d + e*x)^p])^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, e, m, n, p, q}, x] && IntegerQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0]) & & !(EqQ[q, 1] && ILtQ[n, 0] && IGtQ[m, 0])
\[\int x \left (a +b \ln \left (c \left (d +e \sqrt {x}\right )^{n}\right )\right )d x\]
Input:
int(x*(a+b*ln(c*(d+e*x^(1/2))^n)),x)
Output:
int(x*(a+b*ln(c*(d+e*x^(1/2))^n)),x)
Time = 0.13 (sec) , antiderivative size = 95, normalized size of antiderivative = 0.93 \[ \int x \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \, dx=\frac {12 \, b e^{4} x^{2} \log \left (c\right ) - 6 \, b d^{2} e^{2} n x - 3 \, {\left (b e^{4} n - 4 \, a e^{4}\right )} x^{2} + 12 \, {\left (b e^{4} n x^{2} - b d^{4} n\right )} \log \left (e \sqrt {x} + d\right ) + 4 \, {\left (b d e^{3} n x + 3 \, b d^{3} e n\right )} \sqrt {x}}{24 \, e^{4}} \] Input:
integrate(x*(a+b*log(c*(d+e*x^(1/2))^n)),x, algorithm="fricas")
Output:
1/24*(12*b*e^4*x^2*log(c) - 6*b*d^2*e^2*n*x - 3*(b*e^4*n - 4*a*e^4)*x^2 + 12*(b*e^4*n*x^2 - b*d^4*n)*log(e*sqrt(x) + d) + 4*(b*d*e^3*n*x + 3*b*d^3*e *n)*sqrt(x))/e^4
Time = 1.22 (sec) , antiderivative size = 100, normalized size of antiderivative = 0.98 \[ \int x \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \, dx=\frac {a x^{2}}{2} + b \left (- \frac {e n \left (\frac {2 d^{4} \left (\begin {cases} \frac {\sqrt {x}}{d} & \text {for}\: e = 0 \\\frac {\log {\left (d + e \sqrt {x} \right )}}{e} & \text {otherwise} \end {cases}\right )}{e^{4}} - \frac {2 d^{3} \sqrt {x}}{e^{4}} + \frac {d^{2} x}{e^{3}} - \frac {2 d x^{\frac {3}{2}}}{3 e^{2}} + \frac {x^{2}}{2 e}\right )}{4} + \frac {x^{2} \log {\left (c \left (d + e \sqrt {x}\right )^{n} \right )}}{2}\right ) \] Input:
integrate(x*(a+b*ln(c*(d+e*x**(1/2))**n)),x)
Output:
a*x**2/2 + b*(-e*n*(2*d**4*Piecewise((sqrt(x)/d, Eq(e, 0)), (log(d + e*sqr t(x))/e, True))/e**4 - 2*d**3*sqrt(x)/e**4 + d**2*x/e**3 - 2*d*x**(3/2)/(3 *e**2) + x**2/(2*e))/4 + x**2*log(c*(d + e*sqrt(x))**n)/2)
Time = 0.03 (sec) , antiderivative size = 84, normalized size of antiderivative = 0.82 \[ \int x \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \, dx=-\frac {1}{24} \, b e n {\left (\frac {12 \, d^{4} \log \left (e \sqrt {x} + d\right )}{e^{5}} + \frac {3 \, e^{3} x^{2} - 4 \, d e^{2} x^{\frac {3}{2}} + 6 \, d^{2} e x - 12 \, d^{3} \sqrt {x}}{e^{4}}\right )} + \frac {1}{2} \, b x^{2} \log \left ({\left (e \sqrt {x} + d\right )}^{n} c\right ) + \frac {1}{2} \, a x^{2} \] Input:
integrate(x*(a+b*log(c*(d+e*x^(1/2))^n)),x, algorithm="maxima")
Output:
-1/24*b*e*n*(12*d^4*log(e*sqrt(x) + d)/e^5 + (3*e^3*x^2 - 4*d*e^2*x^(3/2) + 6*d^2*e*x - 12*d^3*sqrt(x))/e^4) + 1/2*b*x^2*log((e*sqrt(x) + d)^n*c) + 1/2*a*x^2
Leaf count of result is larger than twice the leaf count of optimal. 180 vs. \(2 (82) = 164\).
Time = 0.13 (sec) , antiderivative size = 180, normalized size of antiderivative = 1.76 \[ \int x \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \, dx=\frac {12 \, b e x^{2} \log \left (c\right ) + 12 \, a e x^{2} + {\left (\frac {12 \, {\left (e \sqrt {x} + d\right )}^{4} \log \left (e \sqrt {x} + d\right )}{e^{3}} - \frac {48 \, {\left (e \sqrt {x} + d\right )}^{3} d \log \left (e \sqrt {x} + d\right )}{e^{3}} + \frac {72 \, {\left (e \sqrt {x} + d\right )}^{2} d^{2} \log \left (e \sqrt {x} + d\right )}{e^{3}} - \frac {48 \, {\left (e \sqrt {x} + d\right )} d^{3} \log \left (e \sqrt {x} + d\right )}{e^{3}} - \frac {3 \, {\left (e \sqrt {x} + d\right )}^{4}}{e^{3}} + \frac {16 \, {\left (e \sqrt {x} + d\right )}^{3} d}{e^{3}} - \frac {36 \, {\left (e \sqrt {x} + d\right )}^{2} d^{2}}{e^{3}} + \frac {48 \, {\left (e \sqrt {x} + d\right )} d^{3}}{e^{3}}\right )} b n}{24 \, e} \] Input:
integrate(x*(a+b*log(c*(d+e*x^(1/2))^n)),x, algorithm="giac")
Output:
1/24*(12*b*e*x^2*log(c) + 12*a*e*x^2 + (12*(e*sqrt(x) + d)^4*log(e*sqrt(x) + d)/e^3 - 48*(e*sqrt(x) + d)^3*d*log(e*sqrt(x) + d)/e^3 + 72*(e*sqrt(x) + d)^2*d^2*log(e*sqrt(x) + d)/e^3 - 48*(e*sqrt(x) + d)*d^3*log(e*sqrt(x) + d)/e^3 - 3*(e*sqrt(x) + d)^4/e^3 + 16*(e*sqrt(x) + d)^3*d/e^3 - 36*(e*sqr t(x) + d)^2*d^2/e^3 + 48*(e*sqrt(x) + d)*d^3/e^3)*b*n)/e
Time = 15.17 (sec) , antiderivative size = 85, normalized size of antiderivative = 0.83 \[ \int x \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \, dx=\frac {a\,x^2}{2}-\frac {b\,n\,x^2}{8}+\frac {b\,x^2\,\ln \left (c\,{\left (d+e\,\sqrt {x}\right )}^n\right )}{2}-\frac {b\,d^2\,n\,x}{4\,e^2}+\frac {b\,d\,n\,x^{3/2}}{6\,e}-\frac {b\,d^4\,n\,\ln \left (d+e\,\sqrt {x}\right )}{2\,e^4}+\frac {b\,d^3\,n\,\sqrt {x}}{2\,e^3} \] Input:
int(x*(a + b*log(c*(d + e*x^(1/2))^n)),x)
Output:
(a*x^2)/2 - (b*n*x^2)/8 + (b*x^2*log(c*(d + e*x^(1/2))^n))/2 - (b*d^2*n*x) /(4*e^2) + (b*d*n*x^(3/2))/(6*e) - (b*d^4*n*log(d + e*x^(1/2)))/(2*e^4) + (b*d^3*n*x^(1/2))/(2*e^3)
Time = 0.16 (sec) , antiderivative size = 94, normalized size of antiderivative = 0.92 \[ \int x \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \, dx=\frac {12 \sqrt {x}\, b \,d^{3} e n +4 \sqrt {x}\, b d \,e^{3} n x -12 \,\mathrm {log}\left (\left (\sqrt {x}\, e +d \right )^{n} c \right ) b \,d^{4}+12 \,\mathrm {log}\left (\left (\sqrt {x}\, e +d \right )^{n} c \right ) b \,e^{4} x^{2}+12 a \,e^{4} x^{2}-6 b \,d^{2} e^{2} n x -3 b \,e^{4} n \,x^{2}}{24 e^{4}} \] Input:
int(x*(a+b*log(c*(d+e*x^(1/2))^n)),x)
Output:
(12*sqrt(x)*b*d**3*e*n + 4*sqrt(x)*b*d*e**3*n*x - 12*log((sqrt(x)*e + d)** n*c)*b*d**4 + 12*log((sqrt(x)*e + d)**n*c)*b*e**4*x**2 + 12*a*e**4*x**2 - 6*b*d**2*e**2*n*x - 3*b*e**4*n*x**2)/(24*e**4)