Optimal. Leaf size=54 \[ -\frac {1}{2 (2+x)^2}+\frac {4}{2+x}+\frac {1}{3 (3+x)^3}+\frac {3}{2 (3+x)^2}+\frac {6}{3+x}+10 \log (2+x)-10 \log (3+x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {46}
\begin {gather*} \frac {4}{x+2}+\frac {6}{x+3}-\frac {1}{2 (x+2)^2}+\frac {3}{2 (x+3)^2}+\frac {1}{3 (x+3)^3}+10 \log (x+2)-10 \log (x+3) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rubi steps
\begin {align*} \int \frac {1}{(2+x)^3 (3+x)^4} \, dx &=\int \left (\frac {1}{(2+x)^3}-\frac {4}{(2+x)^2}+\frac {10}{2+x}-\frac {1}{(3+x)^4}-\frac {3}{(3+x)^3}-\frac {6}{(3+x)^2}-\frac {10}{3+x}\right ) \, dx\\ &=-\frac {1}{2 (2+x)^2}+\frac {4}{2+x}+\frac {1}{3 (3+x)^3}+\frac {3}{2 (3+x)^2}+\frac {6}{3+x}+10 \log (2+x)-10 \log (3+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 54, normalized size = 1.00 \begin {gather*} -\frac {1}{2 (2+x)^2}+\frac {4}{2+x}+\frac {1}{3 (3+x)^3}+\frac {3}{2 (3+x)^2}+\frac {6}{3+x}+10 \log (2+x)-10 \log (3+x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.00, size = 49, normalized size = 0.91
method | result | size |
norman | \(\frac {10 x^{4}+105 x^{3}+\frac {1225}{3} x^{2}+\frac {4175}{6} x +\frac {2627}{6}}{\left (2+x \right )^{2} \left (3+x \right )^{3}}+10 \ln \left (2+x \right )-10 \ln \left (3+x \right )\) | \(45\) |
risch | \(\frac {10 x^{4}+105 x^{3}+\frac {1225}{3} x^{2}+\frac {4175}{6} x +\frac {2627}{6}}{\left (2+x \right )^{2} \left (3+x \right )^{3}}+10 \ln \left (2+x \right )-10 \ln \left (3+x \right )\) | \(45\) |
default | \(-\frac {1}{2 \left (2+x \right )^{2}}+\frac {4}{2+x}+\frac {1}{3 \left (3+x \right )^{3}}+\frac {3}{2 \left (3+x \right )^{2}}+\frac {6}{3+x}+10 \ln \left (2+x \right )-10 \ln \left (3+x \right )\) | \(49\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 1.80, size = 60, normalized size = 1.11 \begin {gather*} \frac {60 \, x^{4} + 630 \, x^{3} + 2450 \, x^{2} + 4175 \, x + 2627}{6 \, {\left (x^{5} + 13 \, x^{4} + 67 \, x^{3} + 171 \, x^{2} + 216 \, x + 108\right )}} - 10 \, \log \left (x + 3\right ) + 10 \, \log \left (x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 105 vs.
\(2 (48) = 96\).
time = 0.39, size = 105, normalized size = 1.94 \begin {gather*} \frac {60 \, x^{4} + 630 \, x^{3} + 2450 \, x^{2} - 60 \, {\left (x^{5} + 13 \, x^{4} + 67 \, x^{3} + 171 \, x^{2} + 216 \, x + 108\right )} \log \left (x + 3\right ) + 60 \, {\left (x^{5} + 13 \, x^{4} + 67 \, x^{3} + 171 \, x^{2} + 216 \, x + 108\right )} \log \left (x + 2\right ) + 4175 \, x + 2627}{6 \, {\left (x^{5} + 13 \, x^{4} + 67 \, x^{3} + 171 \, x^{2} + 216 \, x + 108\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.06, size = 58, normalized size = 1.07 \begin {gather*} \frac {60 x^{4} + 630 x^{3} + 2450 x^{2} + 4175 x + 2627}{6 x^{5} + 78 x^{4} + 402 x^{3} + 1026 x^{2} + 1296 x + 648} + 10 \log {\left (x + 2 \right )} - 10 \log {\left (x + 3 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.76, size = 47, normalized size = 0.87 \begin {gather*} \frac {60 \, x^{4} + 630 \, x^{3} + 2450 \, x^{2} + 4175 \, x + 2627}{6 \, {\left (x + 3\right )}^{3} {\left (x + 2\right )}^{2}} - 10 \, \log \left ({\left | x + 3 \right |}\right ) + 10 \, \log \left ({\left | x + 2 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.00, size = 55, normalized size = 1.02 \begin {gather*} \frac {10\,x^4+105\,x^3+\frac {1225\,x^2}{3}+\frac {4175\,x}{6}+\frac {2627}{6}}{x^5+13\,x^4+67\,x^3+171\,x^2+216\,x+108}-20\,\mathrm {atanh}\left (2\,x+5\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________