Optimal. Leaf size=36 \[ \frac{x^2}{4}+\frac{1}{2} x^2 \log \left (\frac{x+1}{x^2}\right )+\frac{x}{2}-\frac{1}{2} \log (x+1) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.014721, antiderivative size = 36, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {2495, 30, 43} \[ \frac{x^2}{4}+\frac{1}{2} x^2 \log \left (\frac{x+1}{x^2}\right )+\frac{x}{2}-\frac{1}{2} \log (x+1) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2495
Rule 30
Rule 43
Rubi steps
\begin{align*} \int x \log \left (\frac{1+x}{x^2}\right ) \, dx &=\frac{1}{2} x^2 \log \left (\frac{1+x}{x^2}\right )-\frac{1}{2} \int \frac{x^2}{1+x} \, dx+\int x \, dx\\ &=\frac{x^2}{2}+\frac{1}{2} x^2 \log \left (\frac{1+x}{x^2}\right )-\frac{1}{2} \int \left (-1+x+\frac{1}{1+x}\right ) \, dx\\ &=\frac{x}{2}+\frac{x^2}{4}-\frac{1}{2} \log (1+x)+\frac{1}{2} x^2 \log \left (\frac{1+x}{x^2}\right )\\ \end{align*}
Mathematica [A] time = 0.0094705, size = 27, normalized size = 0.75 \[ \frac{1}{4} \left (x \left (2 x \log \left (\frac{x+1}{x^2}\right )+x+2\right )-2 \log (x+1)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.014, size = 39, normalized size = 1.1 \begin{align*}{\frac{{x}^{2}}{2}\ln \left ({\frac{1+{x}^{-1}}{x}} \right ) }+{\frac{{x}^{2}}{4}}+{\frac{x}{2}}+{\frac{\ln \left ({x}^{-1} \right ) }{2}}-{\frac{\ln \left ( 1+{x}^{-1} \right ) }{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.10115, size = 38, normalized size = 1.06 \begin{align*} \frac{1}{2} \, x^{2} \log \left (\frac{x + 1}{x^{2}}\right ) + \frac{1}{4} \, x^{2} + \frac{1}{2} \, x - \frac{1}{2} \, \log \left (x + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.79942, size = 82, normalized size = 2.28 \begin{align*} \frac{1}{2} \, x^{2} \log \left (\frac{x + 1}{x^{2}}\right ) + \frac{1}{4} \, x^{2} + \frac{1}{2} \, x - \frac{1}{2} \, \log \left (x + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.131197, size = 27, normalized size = 0.75 \begin{align*} \frac{x^{2} \log{\left (\frac{x + 1}{x^{2}} \right )}}{2} + \frac{x^{2}}{4} + \frac{x}{2} - \frac{\log{\left (x + 1 \right )}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.33758, size = 39, normalized size = 1.08 \begin{align*} \frac{1}{2} \, x^{2} \log \left (\frac{x + 1}{x^{2}}\right ) + \frac{1}{4} \, x^{2} + \frac{1}{2} \, x - \frac{1}{2} \, \log \left ({\left | x + 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]