Optimal. Leaf size=45 \[ \frac{47 x+67}{18 \left (x^2+4 x+13\right )}+\frac{1}{2} \log \left (x^2+4 x+13\right )-\frac{61}{54} \tan ^{-1}\left (\frac{x+2}{3}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0248464, antiderivative size = 45, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.312, Rules used = {1660, 634, 618, 204, 628} \[ \frac{47 x+67}{18 \left (x^2+4 x+13\right )}+\frac{1}{2} \log \left (x^2+4 x+13\right )-\frac{61}{54} \tan ^{-1}\left (\frac{x+2}{3}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1660
Rule 634
Rule 618
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{1+x^3}{\left (13+4 x+x^2\right )^2} \, dx &=\frac{67+47 x}{18 \left (13+4 x+x^2\right )}+\frac{1}{36} \int \frac{-50+36 x}{13+4 x+x^2} \, dx\\ &=\frac{67+47 x}{18 \left (13+4 x+x^2\right )}+\frac{1}{2} \int \frac{4+2 x}{13+4 x+x^2} \, dx-\frac{61}{18} \int \frac{1}{13+4 x+x^2} \, dx\\ &=\frac{67+47 x}{18 \left (13+4 x+x^2\right )}+\frac{1}{2} \log \left (13+4 x+x^2\right )+\frac{61}{9} \operatorname{Subst}\left (\int \frac{1}{-36-x^2} \, dx,x,4+2 x\right )\\ &=\frac{67+47 x}{18 \left (13+4 x+x^2\right )}-\frac{61}{54} \tan ^{-1}\left (\frac{2+x}{3}\right )+\frac{1}{2} \log \left (13+4 x+x^2\right )\\ \end{align*}
Mathematica [A] time = 0.0121463, size = 45, normalized size = 1. \[ \frac{47 x+67}{18 \left (x^2+4 x+13\right )}+\frac{1}{2} \log \left (x^2+4 x+13\right )-\frac{61}{54} \tan ^{-1}\left (\frac{x+2}{3}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 37, normalized size = 0.8 \begin{align*}{\frac{1}{{x}^{2}+4\,x+13} \left ({\frac{47\,x}{18}}+{\frac{67}{18}} \right ) }+{\frac{\ln \left ({x}^{2}+4\,x+13 \right ) }{2}}-{\frac{61}{54}\arctan \left ({\frac{2}{3}}+{\frac{x}{3}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.6549, size = 50, normalized size = 1.11 \begin{align*} \frac{47 \, x + 67}{18 \,{\left (x^{2} + 4 \, x + 13\right )}} - \frac{61}{54} \, \arctan \left (\frac{1}{3} \, x + \frac{2}{3}\right ) + \frac{1}{2} \, \log \left (x^{2} + 4 \, x + 13\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.40957, size = 165, normalized size = 3.67 \begin{align*} -\frac{61 \,{\left (x^{2} + 4 \, x + 13\right )} \arctan \left (\frac{1}{3} \, x + \frac{2}{3}\right ) - 27 \,{\left (x^{2} + 4 \, x + 13\right )} \log \left (x^{2} + 4 \, x + 13\right ) - 141 \, x - 201}{54 \,{\left (x^{2} + 4 \, x + 13\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.128042, size = 37, normalized size = 0.82 \begin{align*} \frac{47 x + 67}{18 x^{2} + 72 x + 234} + \frac{\log{\left (x^{2} + 4 x + 13 \right )}}{2} - \frac{61 \operatorname{atan}{\left (\frac{x}{3} + \frac{2}{3} \right )}}{54} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11191, size = 50, normalized size = 1.11 \begin{align*} \frac{47 \, x + 67}{18 \,{\left (x^{2} + 4 \, x + 13\right )}} - \frac{61}{54} \, \arctan \left (\frac{1}{3} \, x + \frac{2}{3}\right ) + \frac{1}{2} \, \log \left (x^{2} + 4 \, x + 13\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]