3.2.46 \(\int x^3 \tanh (a+2 \log (x)) \, dx\) [146]

Optimal. Leaf size=29 \[ \frac {x^4}{4}-\frac {1}{2} e^{-2 a} \log \left (1+e^{2 a} x^4\right ) \]

[Out]

1/4*x^4-1/2*ln(1+exp(2*a)*x^4)/exp(2*a)

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {5656, 455, 45} \begin {gather*} \frac {x^4}{4}-\frac {1}{2} e^{-2 a} \log \left (e^{2 a} x^4+1\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^3*Tanh[a + 2*Log[x]],x]

[Out]

x^4/4 - Log[1 + E^(2*a)*x^4]/(2*E^(2*a))

Rule 45

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 455

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

Rule 5656

Int[((e_.)*(x_))^(m_.)*Tanh[((a_.) + Log[x_]*(b_.))*(d_.)]^(p_.), x_Symbol] :> Int[(e*x)^m*((-1 + E^(2*a*d)*x^
(2*b*d))^p/(1 + E^(2*a*d)*x^(2*b*d))^p), x] /; FreeQ[{a, b, d, e, m, p}, x]

Rubi steps

\begin {align*} \int x^3 \tanh (a+2 \log (x)) \, dx &=\int x^3 \tanh (a+2 \log (x)) \, dx\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(64\) vs. \(2(29)=58\).
time = 0.02, size = 64, normalized size = 2.21 \begin {gather*} \frac {x^4}{4}-\frac {1}{2} \cosh (2 a) \log \left (\cosh (a)+x^4 \cosh (a)-\sinh (a)+x^4 \sinh (a)\right )+\frac {1}{2} \log \left (\cosh (a)+x^4 \cosh (a)-\sinh (a)+x^4 \sinh (a)\right ) \sinh (2 a) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^3*Tanh[a + 2*Log[x]],x]

[Out]

x^4/4 - (Cosh[2*a]*Log[Cosh[a] + x^4*Cosh[a] - Sinh[a] + x^4*Sinh[a]])/2 + (Log[Cosh[a] + x^4*Cosh[a] - Sinh[a
] + x^4*Sinh[a]]*Sinh[2*a])/2

________________________________________________________________________________________

Maple [A]
time = 0.49, size = 24, normalized size = 0.83

method result size
risch \(\frac {x^{4}}{4}-\frac {{\mathrm e}^{-2 a} \ln \left (1+{\mathrm e}^{2 a} x^{4}\right )}{2}\) \(24\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^3*tanh(a+2*ln(x)),x,method=_RETURNVERBOSE)

[Out]

1/4*x^4-1/2*exp(-2*a)*ln(1+exp(2*a)*x^4)

________________________________________________________________________________________

Maxima [A]
time = 0.28, size = 23, normalized size = 0.79 \begin {gather*} \frac {1}{4} \, x^{4} - \frac {1}{2} \, e^{\left (-2 \, a\right )} \log \left (x^{4} e^{\left (2 \, a\right )} + 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*tanh(a+2*log(x)),x, algorithm="maxima")

[Out]

1/4*x^4 - 1/2*e^(-2*a)*log(x^4*e^(2*a) + 1)

________________________________________________________________________________________

Fricas [A]
time = 0.34, size = 28, normalized size = 0.97 \begin {gather*} \frac {1}{4} \, {\left (x^{4} e^{\left (2 \, a\right )} - 2 \, \log \left (x^{4} e^{\left (2 \, a\right )} + 1\right )\right )} e^{\left (-2 \, a\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*tanh(a+2*log(x)),x, algorithm="fricas")

[Out]

1/4*(x^4*e^(2*a) - 2*log(x^4*e^(2*a) + 1))*e^(-2*a)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x^{3} \tanh {\left (a + 2 \log {\left (x \right )} \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**3*tanh(a+2*ln(x)),x)

[Out]

Integral(x**3*tanh(a + 2*log(x)), x)

________________________________________________________________________________________

Giac [A]
time = 0.40, size = 23, normalized size = 0.79 \begin {gather*} \frac {1}{4} \, x^{4} - \frac {1}{2} \, e^{\left (-2 \, a\right )} \log \left (x^{4} e^{\left (2 \, a\right )} + 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*tanh(a+2*log(x)),x, algorithm="giac")

[Out]

1/4*x^4 - 1/2*e^(-2*a)*log(x^4*e^(2*a) + 1)

________________________________________________________________________________________

Mupad [B]
time = 1.08, size = 21, normalized size = 0.72 \begin {gather*} \frac {x^4}{4}-\frac {{\mathrm {e}}^{-2\,a}\,\ln \left (x^4+{\mathrm {e}}^{-2\,a}\right )}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^3*tanh(a + 2*log(x)),x)

[Out]

x^4/4 - (exp(-2*a)*log(exp(-2*a) + x^4))/2

________________________________________________________________________________________