Optimal. Leaf size=36 \[ \frac {13+7 x}{9 \left (4+5 x+x^2\right )}+\frac {7}{27} \log (1+x)-\frac {7}{27} \log (4+x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {652, 630, 31}
\begin {gather*} \frac {7 x+13}{9 \left (x^2+5 x+4\right )}+\frac {7}{27} \log (x+1)-\frac {7}{27} \log (x+4) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 630
Rule 652
Rubi steps
\begin {align*} \int \frac {-1+x}{\left (4+5 x+x^2\right )^2} \, dx &=\frac {13+7 x}{9 \left (4+5 x+x^2\right )}+\frac {7}{9} \int \frac {1}{4+5 x+x^2} \, dx\\ &=\frac {13+7 x}{9 \left (4+5 x+x^2\right )}+\frac {7}{27} \int \frac {1}{1+x} \, dx-\frac {7}{27} \int \frac {1}{4+x} \, dx\\ &=\frac {13+7 x}{9 \left (4+5 x+x^2\right )}+\frac {7}{27} \log (1+x)-\frac {7}{27} \log (4+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 33, normalized size = 0.92 \begin {gather*} \frac {1}{27} \left (\frac {39+21 x}{4+5 x+x^2}+7 \log (1+x)-7 \log (4+x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 28, normalized size = 0.78
method | result | size |
default | \(\frac {5}{9 \left (4+x \right )}-\frac {7 \ln \left (4+x \right )}{27}+\frac {2}{9 \left (1+x \right )}+\frac {7 \ln \left (1+x \right )}{27}\) | \(28\) |
norman | \(\frac {\frac {7 x}{9}+\frac {13}{9}}{x^{2}+5 x +4}+\frac {7 \ln \left (1+x \right )}{27}-\frac {7 \ln \left (4+x \right )}{27}\) | \(30\) |
risch | \(\frac {\frac {7 x}{9}+\frac {13}{9}}{x^{2}+5 x +4}+\frac {7 \ln \left (1+x \right )}{27}-\frac {7 \ln \left (4+x \right )}{27}\) | \(30\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.14, size = 30, normalized size = 0.83 \begin {gather*} \frac {7 \, x + 13}{9 \, {\left (x^{2} + 5 \, x + 4\right )}} - \frac {7}{27} \, \log \left (x + 4\right ) + \frac {7}{27} \, \log \left (x + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 45, normalized size = 1.25 \begin {gather*} -\frac {7 \, {\left (x^{2} + 5 \, x + 4\right )} \log \left (x + 4\right ) - 7 \, {\left (x^{2} + 5 \, x + 4\right )} \log \left (x + 1\right ) - 21 \, x - 39}{27 \, {\left (x^{2} + 5 \, x + 4\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.04, size = 31, normalized size = 0.86 \begin {gather*} \frac {7 x + 13}{9 x^{2} + 45 x + 36} + \frac {7 \log {\left (x + 1 \right )}}{27} - \frac {7 \log {\left (x + 4 \right )}}{27} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.37, size = 32, normalized size = 0.89 \begin {gather*} \frac {7 \, x + 13}{9 \, {\left (x^{2} + 5 \, x + 4\right )}} - \frac {7}{27} \, \log \left ({\left | x + 4 \right |}\right ) + \frac {7}{27} \, \log \left ({\left | x + 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 25, normalized size = 0.69 \begin {gather*} \frac {\frac {7\,x}{9}+\frac {13}{9}}{x^2+5\,x+4}-\frac {14\,\mathrm {atanh}\left (\frac {2\,x}{3}+\frac {5}{3}\right )}{27} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________