Optimal. Leaf size=42 \[ \frac{x+4}{4 \left (x^2+2\right )}+\frac{1}{2} \log \left (x^2+2\right )+\frac{5 \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right )}{4 \sqrt{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0209896, antiderivative size = 42, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {1814, 635, 203, 260} \[ \frac{x+4}{4 \left (x^2+2\right )}+\frac{1}{2} \log \left (x^2+2\right )+\frac{5 \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right )}{4 \sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1814
Rule 635
Rule 203
Rule 260
Rubi steps
\begin{align*} \int \frac{3+x^2+x^3}{\left (2+x^2\right )^2} \, dx &=\frac{4+x}{4 \left (2+x^2\right )}-\frac{1}{4} \int \frac{-5-4 x}{2+x^2} \, dx\\ &=\frac{4+x}{4 \left (2+x^2\right )}+\frac{5}{4} \int \frac{1}{2+x^2} \, dx+\int \frac{x}{2+x^2} \, dx\\ &=\frac{4+x}{4 \left (2+x^2\right )}+\frac{5 \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right )}{4 \sqrt{2}}+\frac{1}{2} \log \left (2+x^2\right )\\ \end{align*}
Mathematica [A] time = 0.0360976, size = 42, normalized size = 1. \[ \frac{x+4}{4 \left (x^2+2\right )}+\frac{1}{2} \log \left (x^2+2\right )+\frac{5 \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right )}{4 \sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 35, normalized size = 0.8 \begin{align*}{\frac{1}{{x}^{2}+2} \left ({\frac{x}{4}}+1 \right ) }+{\frac{\ln \left ({x}^{2}+2 \right ) }{2}}+{\frac{5\,\sqrt{2}}{8}\arctan \left ({\frac{x\sqrt{2}}{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.46403, size = 45, normalized size = 1.07 \begin{align*} \frac{5}{8} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2} x\right ) + \frac{x + 4}{4 \,{\left (x^{2} + 2\right )}} + \frac{1}{2} \, \log \left (x^{2} + 2\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.47632, size = 130, normalized size = 3.1 \begin{align*} \frac{5 \, \sqrt{2}{\left (x^{2} + 2\right )} \arctan \left (\frac{1}{2} \, \sqrt{2} x\right ) + 4 \,{\left (x^{2} + 2\right )} \log \left (x^{2} + 2\right ) + 2 \, x + 8}{8 \,{\left (x^{2} + 2\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.122285, size = 36, normalized size = 0.86 \begin{align*} \frac{x + 4}{4 x^{2} + 8} + \frac{\log{\left (x^{2} + 2 \right )}}{2} + \frac{5 \sqrt{2} \operatorname{atan}{\left (\frac{\sqrt{2} x}{2} \right )}}{8} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1487, size = 45, normalized size = 1.07 \begin{align*} \frac{5}{8} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2} x\right ) + \frac{x + 4}{4 \,{\left (x^{2} + 2\right )}} + \frac{1}{2} \, \log \left (x^{2} + 2\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]