3.79.79 \(\int \frac {-5-32 e-2 e^{1+x}+3 x+(6+e^{1+x} (-6-2 x)+2 x) \log (3+x)}{3+x} \, dx\)

Optimal. Leaf size=19 \[ x+2 \left (-4-e \left (16+e^x\right )+x\right ) \log (3+x) \]

________________________________________________________________________________________

Rubi [B]  time = 0.38, antiderivative size = 47, normalized size of antiderivative = 2.47, number of steps used = 10, number of rules used = 6, integrand size = 42, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {6741, 6742, 2288, 43, 2389, 2295} \begin {gather*} x+2 (x+3) \log (x+3)-2 (7+16 e) \log (x+3)-\frac {2 e^{x+1} (x \log (x+3)+3 \log (x+3))}{x+3} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-5 - 32*E - 2*E^(1 + x) + 3*x + (6 + E^(1 + x)*(-6 - 2*x) + 2*x)*Log[3 + x])/(3 + x),x]

[Out]

x - 2*(7 + 16*E)*Log[3 + x] + 2*(3 + x)*Log[3 + x] - (2*E^(1 + x)*(3*Log[3 + x] + x*Log[3 + x]))/(3 + x)

Rule 43

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, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2288

Int[(y_.)*(F_)^(u_)*((v_) + (w_)), x_Symbol] :> With[{z = (v*y)/(Log[F]*D[u, x])}, Simp[F^u*z, x] /; EqQ[D[z,
x], w*y]] /; FreeQ[F, x]

Rule 2295

Int[Log[(c_.)*(x_)^(n_.)], x_Symbol] :> Simp[x*Log[c*x^n], x] - Simp[n*x, x] /; FreeQ[{c, n}, x]

Rule 2389

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.), x_Symbol] :> Dist[1/e, Subst[Int[(a + b*Log[c*
x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, n, p}, x]

Rule 6741

Int[u_, x_Symbol] :> With[{v = NormalizeIntegrand[u, x]}, Int[v, x] /; v =!= u]

Rule 6742

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-2 e^{1+x}-5 \left (1+\frac {32 e}{5}\right )+3 x+\left (6+e^{1+x} (-6-2 x)+2 x\right ) \log (3+x)}{3+x} \, dx\\ &=\int \left (-\frac {2 e^{1+x} (1+3 \log (3+x)+x \log (3+x))}{3+x}+\frac {-5 \left (1+\frac {32 e}{5}\right )+3 x+6 \log (3+x)+2 x \log (3+x)}{3+x}\right ) \, dx\\ &=-\left (2 \int \frac {e^{1+x} (1+3 \log (3+x)+x \log (3+x))}{3+x} \, dx\right )+\int \frac {-5 \left (1+\frac {32 e}{5}\right )+3 x+6 \log (3+x)+2 x \log (3+x)}{3+x} \, dx\\ &=-\frac {2 e^{1+x} (3 \log (3+x)+x \log (3+x))}{3+x}+\int \left (\frac {-5-32 e+3 x}{3+x}+2 \log (3+x)\right ) \, dx\\ &=-\frac {2 e^{1+x} (3 \log (3+x)+x \log (3+x))}{3+x}+2 \int \log (3+x) \, dx+\int \frac {-5-32 e+3 x}{3+x} \, dx\\ &=-\frac {2 e^{1+x} (3 \log (3+x)+x \log (3+x))}{3+x}+2 \operatorname {Subst}(\int \log (x) \, dx,x,3+x)+\int \left (3-\frac {2 (7+16 e)}{3+x}\right ) \, dx\\ &=x-2 (7+16 e) \log (3+x)+2 (3+x) \log (3+x)-\frac {2 e^{1+x} (3 \log (3+x)+x \log (3+x))}{3+x}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.14, size = 21, normalized size = 1.11 \begin {gather*} x-2 \left (4+16 e+e^{1+x}-x\right ) \log (3+x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-5 - 32*E - 2*E^(1 + x) + 3*x + (6 + E^(1 + x)*(-6 - 2*x) + 2*x)*Log[3 + x])/(3 + x),x]

[Out]

x - 2*(4 + 16*E + E^(1 + x) - x)*Log[3 + x]

________________________________________________________________________________________

fricas [A]  time = 0.52, size = 21, normalized size = 1.11 \begin {gather*} 2 \, {\left (x - 16 \, e - e^{\left (x + 1\right )} - 4\right )} \log \left (x + 3\right ) + x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((-2*x-6)*exp(1)*exp(x)+2*x+6)*log(3+x)-2*exp(1)*exp(x)-32*exp(1)+3*x-5)/(3+x),x, algorithm="fricas
")

[Out]

2*(x - 16*e - e^(x + 1) - 4)*log(x + 3) + x

________________________________________________________________________________________

giac [A]  time = 0.16, size = 33, normalized size = 1.74 \begin {gather*} 2 \, x \log \left (x + 3\right ) - 32 \, e \log \left (x + 3\right ) - 2 \, e^{\left (x + 1\right )} \log \left (x + 3\right ) + x - 8 \, \log \left (x + 3\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((-2*x-6)*exp(1)*exp(x)+2*x+6)*log(3+x)-2*exp(1)*exp(x)-32*exp(1)+3*x-5)/(3+x),x, algorithm="giac")

[Out]

2*x*log(x + 3) - 32*e*log(x + 3) - 2*e^(x + 1)*log(x + 3) + x - 8*log(x + 3)

________________________________________________________________________________________

maple [A]  time = 0.22, size = 31, normalized size = 1.63




method result size



norman \(x +\left (-8-32 \,{\mathrm e}\right ) \ln \left (3+x \right )+2 x \ln \left (3+x \right )-2 \,{\mathrm e} \,{\mathrm e}^{x} \ln \left (3+x \right )\) \(31\)
risch \(\left (-2 \,{\mathrm e}^{x +1}+2 x \right ) \ln \left (3+x \right )-32 \,{\mathrm e} \ln \left (3+x \right )-8 \ln \left (3+x \right )+x\) \(32\)
default \(-2 \,{\mathrm e} \,{\mathrm e}^{x} \ln \left (3+x \right )+x -32 \,{\mathrm e} \ln \left (3+x \right )-14 \ln \left (3+x \right )+2 \left (3+x \right ) \ln \left (3+x \right )-6\) \(37\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((((-2*x-6)*exp(1)*exp(x)+2*x+6)*ln(3+x)-2*exp(1)*exp(x)-32*exp(1)+3*x-5)/(3+x),x,method=_RETURNVERBOSE)

[Out]

x+(-8-32*exp(1))*ln(3+x)+2*x*ln(3+x)-2*exp(1)*exp(x)*ln(3+x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} 2 \, e^{\left (-2\right )} E_{1}\left (-x - 3\right ) + 2 \, {\left (x - 3 \, \log \left (x + 3\right )\right )} \log \left (x + 3\right ) - 32 \, e \log \left (x + 3\right ) - 2 \, e^{\left (x + 1\right )} \log \left (x + 3\right ) + 6 \, \log \left (x + 3\right )^{2} + x + 2 \, \int \frac {e^{\left (x + 1\right )}}{x + 3}\,{d x} - 8 \, \log \left (x + 3\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((-2*x-6)*exp(1)*exp(x)+2*x+6)*log(3+x)-2*exp(1)*exp(x)-32*exp(1)+3*x-5)/(3+x),x, algorithm="maxima
")

[Out]

2*e^(-2)*exp_integral_e(1, -x - 3) + 2*(x - 3*log(x + 3))*log(x + 3) - 32*e*log(x + 3) - 2*e^(x + 1)*log(x + 3
) + 6*log(x + 3)^2 + x + 2*integrate(e^(x + 1)/(x + 3), x) - 8*log(x + 3)

________________________________________________________________________________________

mupad [B]  time = 4.88, size = 33, normalized size = 1.74 \begin {gather*} x-8\,\ln \left (x+3\right )-32\,\ln \left (x+3\right )\,\mathrm {e}+2\,x\,\ln \left (x+3\right )-2\,\ln \left (x+3\right )\,{\mathrm {e}}^{x+1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(32*exp(1) - 3*x + 2*exp(1)*exp(x) - log(x + 3)*(2*x - exp(1)*exp(x)*(2*x + 6) + 6) + 5)/(x + 3),x)

[Out]

x - 8*log(x + 3) - 32*log(x + 3)*exp(1) + 2*x*log(x + 3) - 2*log(x + 3)*exp(x + 1)

________________________________________________________________________________________

sympy [A]  time = 0.48, size = 36, normalized size = 1.89 \begin {gather*} 2 x \log {\left (x + 3 \right )} + x - 2 e e^{x} \log {\left (x + 3 \right )} - 8 \left (1 + 4 e\right ) \log {\left (x + 3 \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((-2*x-6)*exp(1)*exp(x)+2*x+6)*ln(3+x)-2*exp(1)*exp(x)-32*exp(1)+3*x-5)/(3+x),x)

[Out]

2*x*log(x + 3) + x - 2*E*exp(x)*log(x + 3) - 8*(1 + 4*E)*log(x + 3)

________________________________________________________________________________________