3.283 \(\int \log (e^{a+b x^n}) \, dx\)

Optimal. Leaf size=27 \[ x \log \left (e^{a+b x^n}\right )-\frac {b n x^{n+1}}{n+1} \]

[Out]

-b*n*x^(1+n)/(1+n)+x*ln(exp(a+b*x^n))

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {2548, 12, 30} \[ x \log \left (e^{a+b x^n}\right )-\frac {b n x^{n+1}}{n+1} \]

Antiderivative was successfully verified.

[In]

Int[Log[E^(a + b*x^n)],x]

[Out]

-((b*n*x^(1 + n))/(1 + n)) + x*Log[E^(a + b*x^n)]

Rule 12

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

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 2548

Int[Log[u_], x_Symbol] :> Simp[x*Log[u], x] - Int[SimplifyIntegrand[(x*D[u, x])/u, x], x] /; InverseFunctionFr
eeQ[u, x]

Rubi steps

\begin {align*} \int \log \left (e^{a+b x^n}\right ) \, dx &=x \log \left (e^{a+b x^n}\right )-\int b n x^n \, dx\\ &=x \log \left (e^{a+b x^n}\right )-(b n) \int x^n \, dx\\ &=-\frac {b n x^{1+n}}{1+n}+x \log \left (e^{a+b x^n}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 25, normalized size = 0.93 \[ x \left (\log \left (e^{a+b x^n}\right )-\frac {b n x^n}{n+1}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Log[E^(a + b*x^n)],x]

[Out]

x*(-((b*n*x^n)/(1 + n)) + Log[E^(a + b*x^n)])

________________________________________________________________________________________

fricas [A]  time = 0.46, size = 20, normalized size = 0.74 \[ \frac {b x x^{n} + {\left (a n + a\right )} x}{n + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(exp(a+b*x^n)),x, algorithm="fricas")

[Out]

(b*x*x^n + (a*n + a)*x)/(n + 1)

________________________________________________________________________________________

giac [A]  time = 0.23, size = 16, normalized size = 0.59 \[ a x + \frac {b x^{n + 1}}{n + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(exp(a+b*x^n)),x, algorithm="giac")

[Out]

a*x + b*x^(n + 1)/(n + 1)

________________________________________________________________________________________

maple [A]  time = 0.16, size = 27, normalized size = 1.00 \[ -\frac {b n \,x^{n +1}}{n +1}+x \ln \left ({\mathrm e}^{b \,x^{n}+a}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(exp(b*x^n+a)),x)

[Out]

-b*n*x^(n+1)/(n+1)+x*ln(exp(b*x^n+a))

________________________________________________________________________________________

maxima [A]  time = 0.53, size = 16, normalized size = 0.59 \[ a x + \frac {b x^{n + 1}}{n + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(exp(a+b*x^n)),x, algorithm="maxima")

[Out]

a*x + b*x^(n + 1)/(n + 1)

________________________________________________________________________________________

mupad [B]  time = 0.60, size = 49, normalized size = 1.81 \[ \left \{\begin {array}{cl} x\,\ln \left ({\mathrm {e}}^{a+\frac {b}{x}}\right )+b\,\ln \relax (x) & \text {\ if\ \ }n=-1\\ x\,\ln \left ({\mathrm {e}}^{a+b\,x^n}\right )-\frac {b\,n\,x^{n+1}}{n+1} & \text {\ if\ \ }n\neq -1 \end {array}\right . \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(exp(a + b*x^n)),x)

[Out]

piecewise(n == -1, x*log(exp(a + b/x)) + b*log(x), n ~= -1, x*log(exp(a + b*x^n)) - (b*n*x^(n + 1))/(n + 1))

________________________________________________________________________________________

sympy [A]  time = 2.55, size = 34, normalized size = 1.26 \[ \begin {cases} \frac {a n x}{n + 1} + \frac {a x}{n + 1} + \frac {b x x^{n}}{n + 1} & \text {for}\: n \neq -1 \\a x + b \log {\relax (x )} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(exp(a+b*x**n)),x)

[Out]

Piecewise((a*n*x/(n + 1) + a*x/(n + 1) + b*x*x**n/(n + 1), Ne(n, -1)), (a*x + b*log(x), True))

________________________________________________________________________________________