3.58.45 \(\int \frac {2 x^2+e^{\frac {-1+x+x^2+\log ^2(x)}{x}} (1+x^2+2 \log (x)-\log ^2(x))}{2 e^{\frac {-1+x+x^2+\log ^2(x)}{x}} x^2+4 x^3} \, dx\)

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

________________________________________________________________________________________

Rubi [F]  time = 5.01, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {2 x^2+e^{\frac {-1+x+x^2+\log ^2(x)}{x}} \left (1+x^2+2 \log (x)-\log ^2(x)\right )}{2 e^{\frac {-1+x+x^2+\log ^2(x)}{x}} x^2+4 x^3} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

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

[Out]

-1/2*1/x + x/2 + Log[x]^2/(2*x) + Defer[Int][E^x^(-1)/(E^(1 + x + Log[x]^2/x) + 2*E^x^(-1)*x), x] - Defer[Int]
[(E^x^(-1)*x)/(E^(1 + x + Log[x]^2/x) + 2*E^x^(-1)*x), x] - 2*Defer[Int][(E^x^(-1)*Log[x])/(x*(E^(1 + x + Log[
x]^2/x) + 2*E^x^(-1)*x)), x] + Defer[Int][(E^x^(-1)*Log[x]^2)/(x*(E^(1 + x + Log[x]^2/x) + 2*E^x^(-1)*x)), x]
+ E^(-1 - x - Log[x]^2/x)*Defer[Subst][Defer[Int][E^(E^(-1 - x - Log[x]^2/x)*(-2*E^x^(-1) + x))/x, x], x, (E^(
1 + x + Log[x]^2/x) + 2*E^x^(-1)*x)/x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 2.38, size = 34, normalized size = 1.17 \begin {gather*} \frac {-1+x \log \left (e^{1+x+\frac {\log ^2(x)}{x}}+2 e^{\frac {1}{x}} x\right )}{2 x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.55, size = 22, normalized size = 0.76 \begin {gather*} \frac {1}{2} \, \log \left (2 \, x + e^{\left (\frac {x^{2} + \log \relax (x)^{2} + x - 1}{x}\right )}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-log(x)^2+2*log(x)+x^2+1)*exp((log(x)^2+x^2+x-1)/x)+2*x^2)/(2*x^2*exp((log(x)^2+x^2+x-1)/x)+4*x^3)
,x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.23, size = 22, normalized size = 0.76 \begin {gather*} \frac {1}{2} \, \log \left (2 \, x + e^{\left (\frac {x^{2} + \log \relax (x)^{2} + x - 1}{x}\right )}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-log(x)^2+2*log(x)+x^2+1)*exp((log(x)^2+x^2+x-1)/x)+2*x^2)/(2*x^2*exp((log(x)^2+x^2+x-1)/x)+4*x^3)
,x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

maple [B]  time = 0.03, size = 58, normalized size = 2.00




method result size



risch \(\frac {\ln \relax (x )^{2}}{2 x}+\frac {x^{2}-1}{2 x}-\frac {\ln \relax (x )^{2}+x^{2}+x -1}{2 x}+\frac {\ln \left (2 x +{\mathrm e}^{\frac {\ln \relax (x )^{2}+x^{2}+x -1}{x}}\right )}{2}\) \(58\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((-ln(x)^2+2*ln(x)+x^2+1)*exp((ln(x)^2+x^2+x-1)/x)+2*x^2)/(2*x^2*exp((ln(x)^2+x^2+x-1)/x)+4*x^3),x,method=
_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.45, size = 41, normalized size = 1.41 \begin {gather*} \frac {x^{2} - 1}{2 \, x} + \frac {1}{2} \, \log \left ({\left (2 \, x e^{\frac {1}{x}} + e^{\left (x + \frac {\log \relax (x)^{2}}{x} + 1\right )}\right )} e^{\left (-x - 1\right )}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-log(x)^2+2*log(x)+x^2+1)*exp((log(x)^2+x^2+x-1)/x)+2*x^2)/(2*x^2*exp((log(x)^2+x^2+x-1)/x)+4*x^3)
,x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 3.84, size = 26, normalized size = 0.90 \begin {gather*} \frac {\ln \left (x+\frac {\mathrm {e}\,{\mathrm {e}}^{-\frac {1}{x}}\,{\mathrm {e}}^x\,{\mathrm {e}}^{\frac {{\ln \relax (x)}^2}{x}}}{2}\right )}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((exp((x + log(x)^2 + x^2 - 1)/x)*(2*log(x) - log(x)^2 + x^2 + 1) + 2*x^2)/(2*x^2*exp((x + log(x)^2 + x^2 -
 1)/x) + 4*x^3),x)

[Out]

log(x + (exp(1)*exp(-1/x)*exp(x)*exp(log(x)^2/x))/2)/2

________________________________________________________________________________________

sympy [A]  time = 0.35, size = 20, normalized size = 0.69 \begin {gather*} \frac {\log {\left (2 x + e^{\frac {x^{2} + x + \log {\relax (x )}^{2} - 1}{x}} \right )}}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-ln(x)**2+2*ln(x)+x**2+1)*exp((ln(x)**2+x**2+x-1)/x)+2*x**2)/(2*x**2*exp((ln(x)**2+x**2+x-1)/x)+4*
x**3),x)

[Out]

log(2*x + exp((x**2 + x + log(x)**2 - 1)/x))/2

________________________________________________________________________________________