3.59.39 \(\int \frac {132 \log (e^{-x} (-22+e^x))}{-22+e^x} \, dx\) [5839]

Optimal. Leaf size=14 \[ 3 \log ^2\left (1-22 e^{-x}\right ) \]

[Out]

3*ln(1-22/exp(x))^2

________________________________________________________________________________________

Rubi [C] Result contains higher order function than in optimal. Order 4 vs. order 3 in optimal.
time = 0.10, antiderivative size = 69, normalized size of antiderivative = 4.93, number of steps used = 12, number of rules used = 11, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.524, Rules used = {12, 2320, 2516, 2512, 266, 2463, 2437, 2338, 2441, 2352, 2438} \begin {gather*} -6 \text {PolyLog}\left (2,22 e^{-x}\right )+6 \text {PolyLog}\left (2,1-\frac {e^x}{22}\right )-3 \log ^2\left (e^x-22\right )+6 \log \left (\frac {e^x}{22}\right ) \log \left (e^x-22\right )+6 \log \left (1-22 e^{-x}\right ) \log \left (e^x-22\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(132*Log[(-22 + E^x)/E^x])/(-22 + E^x),x]

[Out]

6*Log[E^x/22]*Log[-22 + E^x] + 6*Log[1 - 22/E^x]*Log[-22 + E^x] - 3*Log[-22 + E^x]^2 - 6*PolyLog[2, 22/E^x] +
6*PolyLog[2, 1 - E^x/22]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 266

Int[(x_)^(m_.)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Simp[Log[RemoveContent[a + b*x^n, x]]/(b*n), x] /; FreeQ
[{a, b, m, n}, x] && EqQ[m, n - 1]

Rule 2320

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rule 2338

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))/(x_), x_Symbol] :> Simp[(a + b*Log[c*x^n])^2/(2*b*n), x] /; FreeQ[{a
, b, c, n}, x]

Rule 2352

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-e^(-1))*PolyLog[2, 1 - c*x], x] /; FreeQ[{c, d, e
}, x] && EqQ[e + c*d, 0]

Rule 2437

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_.)*(x_))^(q_.), x_Symbol] :> Dist[1/
e, Subst[Int[(f*(x/d))^q*(a + b*Log[c*x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p, q}, x]
 && EqQ[e*f - d*g, 0]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2441

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[Log[e*((f + g
*x)/(e*f - d*g))]*((a + b*Log[c*(d + e*x)^n])/g), x] - Dist[b*e*(n/g), Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2463

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((h_.)*(x_))^(m_.)*((f_) + (g_.)*(x_)^(r_.))^(q
_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*Log[c*(d + e*x)^n])^p, (h*x)^m*(f + g*x^r)^q, x], x] /; FreeQ[{a,
 b, c, d, e, f, g, h, m, n, p, q, r}, x] && IntegerQ[m] && IntegerQ[q]

Rule 2512

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

Rule 2516

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m_.)*((f_.) + (g_.)*(x_))^(r_.), x_S
ymbol] :> Int[ExpandIntegrand[(a + b*Log[c*(d + e*x^n)^p])^q, x^m*(f + g*x)^r, x], x] /; FreeQ[{a, b, c, d, e,
 f, g, n, p, q}, x] && IntegerQ[m] && IntegerQ[r]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=132 \int \frac {\log \left (e^{-x} \left (-22+e^x\right )\right )}{-22+e^x} \, dx\\ &=132 \text {Subst}\left (\int \frac {\log \left (1-\frac {22}{x}\right )}{(-22+x) x} \, dx,x,e^x\right )\\ &=132 \text {Subst}\left (\int \left (\frac {\log \left (1-\frac {22}{x}\right )}{22 (-22+x)}-\frac {\log \left (1-\frac {22}{x}\right )}{22 x}\right ) \, dx,x,e^x\right )\\ &=6 \text {Subst}\left (\int \frac {\log \left (1-\frac {22}{x}\right )}{-22+x} \, dx,x,e^x\right )-6 \text {Subst}\left (\int \frac {\log \left (1-\frac {22}{x}\right )}{x} \, dx,x,e^x\right )\\ &=6 \log \left (1-22 e^{-x}\right ) \log \left (-22+e^x\right )-6 \text {Li}_2\left (22 e^{-x}\right )-132 \text {Subst}\left (\int \frac {\log (-22+x)}{\left (1-\frac {22}{x}\right ) x^2} \, dx,x,e^x\right )\\ &=6 \log \left (1-22 e^{-x}\right ) \log \left (-22+e^x\right )-6 \text {Li}_2\left (22 e^{-x}\right )-132 \text {Subst}\left (\int \left (\frac {\log (-22+x)}{22 (-22+x)}-\frac {\log (-22+x)}{22 x}\right ) \, dx,x,e^x\right )\\ &=6 \log \left (1-22 e^{-x}\right ) \log \left (-22+e^x\right )-6 \text {Li}_2\left (22 e^{-x}\right )-6 \text {Subst}\left (\int \frac {\log (-22+x)}{-22+x} \, dx,x,e^x\right )+6 \text {Subst}\left (\int \frac {\log (-22+x)}{x} \, dx,x,e^x\right )\\ &=6 \log \left (\frac {e^x}{22}\right ) \log \left (-22+e^x\right )+6 \log \left (1-22 e^{-x}\right ) \log \left (-22+e^x\right )-6 \text {Li}_2\left (22 e^{-x}\right )-6 \text {Subst}\left (\int \frac {\log \left (\frac {x}{22}\right )}{-22+x} \, dx,x,e^x\right )-6 \text {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,-22+e^x\right )\\ &=6 \log \left (\frac {e^x}{22}\right ) \log \left (-22+e^x\right )+6 \log \left (1-22 e^{-x}\right ) \log \left (-22+e^x\right )-3 \log ^2\left (-22+e^x\right )-6 \text {Li}_2\left (22 e^{-x}\right )+6 \text {Li}_2\left (1-\frac {e^x}{22}\right )\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [C] Result contains higher order function than in optimal. Order 4 vs. order 3 in optimal.
time = 0.02, size = 122, normalized size = 8.71 \begin {gather*} 132 \left (\frac {1}{22} \log \left (22 e^{-x}\right ) \log \left (-e^{-x} \left (22-e^x\right )\right )+\frac {1}{22} \log \left (\frac {e^x}{22}\right ) \log \left (-22+e^x\right )+\frac {1}{22} \log \left (-e^{-x} \left (22-e^x\right )\right ) \log \left (-22+e^x\right )-\frac {1}{44} \log ^2\left (-22+e^x\right )+\frac {1}{22} \text {PolyLog}\left (2,\frac {1}{22} \left (22-e^x\right )\right )+\frac {1}{22} \text {PolyLog}\left (2,-e^{-x} \left (22-e^x\right )\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(132*Log[(-22 + E^x)/E^x])/(-22 + E^x),x]

[Out]

132*((Log[22/E^x]*Log[-((22 - E^x)/E^x)])/22 + (Log[E^x/22]*Log[-22 + E^x])/22 + (Log[-((22 - E^x)/E^x)]*Log[-
22 + E^x])/22 - Log[-22 + E^x]^2/44 + PolyLog[2, (22 - E^x)/22]/22 + PolyLog[2, -((22 - E^x)/E^x)]/22)

________________________________________________________________________________________

Maple [A]
time = 4.16, size = 14, normalized size = 1.00

method result size
derivativedivides \(3 \ln \left (1-22 \,{\mathrm e}^{-x}\right )^{2}\) \(14\)
default \(3 \ln \left (1-22 \,{\mathrm e}^{-x}\right )^{2}\) \(14\)
norman \(3 \ln \left ({\mathrm e}^{-x} \left ({\mathrm e}^{x}-22\right )\right )^{2}\) \(15\)
risch \(132 \left (\frac {x}{22}-\frac {\ln \left ({\mathrm e}^{x}-22\right )}{22}\right ) \ln \left ({\mathrm e}^{x}\right )+3 \ln \left ({\mathrm e}^{x}-22\right )^{2}-3 x^{2}+3 i \pi x \,\mathrm {csgn}\left (i {\mathrm e}^{-x}\right ) \mathrm {csgn}\left (i \left ({\mathrm e}^{x}-22\right )\right ) \mathrm {csgn}\left (i {\mathrm e}^{-x} \left ({\mathrm e}^{x}-22\right )\right )-3 i \pi x \,\mathrm {csgn}\left (i {\mathrm e}^{-x}\right ) \mathrm {csgn}\left (i {\mathrm e}^{-x} \left ({\mathrm e}^{x}-22\right )\right )^{2}-3 i \pi x \,\mathrm {csgn}\left (i \left ({\mathrm e}^{x}-22\right )\right ) \mathrm {csgn}\left (i {\mathrm e}^{-x} \left ({\mathrm e}^{x}-22\right )\right )^{2}+3 i \pi x \mathrm {csgn}\left (i {\mathrm e}^{-x} \left ({\mathrm e}^{x}-22\right )\right )^{3}-3 i \ln \left ({\mathrm e}^{x}-22\right ) \pi \,\mathrm {csgn}\left (i {\mathrm e}^{-x}\right ) \mathrm {csgn}\left (i \left ({\mathrm e}^{x}-22\right )\right ) \mathrm {csgn}\left (i {\mathrm e}^{-x} \left ({\mathrm e}^{x}-22\right )\right )+3 i \ln \left ({\mathrm e}^{x}-22\right ) \pi \,\mathrm {csgn}\left (i {\mathrm e}^{-x}\right ) \mathrm {csgn}\left (i {\mathrm e}^{-x} \left ({\mathrm e}^{x}-22\right )\right )^{2}+3 i \ln \left ({\mathrm e}^{x}-22\right ) \pi \,\mathrm {csgn}\left (i \left ({\mathrm e}^{x}-22\right )\right ) \mathrm {csgn}\left (i {\mathrm e}^{-x} \left ({\mathrm e}^{x}-22\right )\right )^{2}-3 i \ln \left ({\mathrm e}^{x}-22\right ) \pi \mathrm {csgn}\left (i {\mathrm e}^{-x} \left ({\mathrm e}^{x}-22\right )\right )^{3}\) \(260\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(132*ln((exp(x)-22)/exp(x))/(exp(x)-22),x,method=_RETURNVERBOSE)

[Out]

3*ln(1-22/exp(x))^2

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 44 vs. \(2 (13) = 26\).
time = 0.37, size = 44, normalized size = 3.14 \begin {gather*} -3 \, x^{2} - 6 \, {\left (x - \log \left (e^{x} - 22\right )\right )} \log \left ({\left (e^{x} - 22\right )} e^{\left (-x\right )}\right ) + 6 \, x \log \left (e^{x} - 22\right ) - 3 \, \log \left (e^{x} - 22\right )^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(132*log((exp(x)-22)/exp(x))/(exp(x)-22),x, algorithm="maxima")

[Out]

-3*x^2 - 6*(x - log(e^x - 22))*log((e^x - 22)*e^(-x)) + 6*x*log(e^x - 22) - 3*log(e^x - 22)^2

________________________________________________________________________________________

Fricas [A]
time = 0.37, size = 14, normalized size = 1.00 \begin {gather*} 3 \, \log \left ({\left (e^{x} - 22\right )} e^{\left (-x\right )}\right )^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(132*log((exp(x)-22)/exp(x))/(exp(x)-22),x, algorithm="fricas")

[Out]

3*log((e^x - 22)*e^(-x))^2

________________________________________________________________________________________

Sympy [A]
time = 0.05, size = 12, normalized size = 0.86 \begin {gather*} 3 \log {\left (\left (e^{x} - 22\right ) e^{- x} \right )}^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(132*ln((exp(x)-22)/exp(x))/(exp(x)-22),x)

[Out]

3*log((exp(x) - 22)*exp(-x))**2

________________________________________________________________________________________

Giac [A]
time = 0.39, size = 14, normalized size = 1.00 \begin {gather*} 3 \, \log \left ({\left (e^{x} - 22\right )} e^{\left (-x\right )}\right )^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(132*log((exp(x)-22)/exp(x))/(exp(x)-22),x, algorithm="giac")

[Out]

3*log((e^x - 22)*e^(-x))^2

________________________________________________________________________________________

Mupad [B]
time = 0.20, size = 13, normalized size = 0.93 \begin {gather*} 3\,{\ln \left (1-22\,{\mathrm {e}}^{-x}\right )}^2 \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((132*log(exp(-x)*(exp(x) - 22)))/(exp(x) - 22),x)

[Out]

3*log(1 - 22*exp(-x))^2

________________________________________________________________________________________