Optimal. Leaf size=20 \[ 3-x+\frac {(-12+x+\log (2)) (-1+\log (6+x))}{x} \]
[Out]
________________________________________________________________________________________
Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(84\) vs. \(2(20)=40\).
time = 0.38, antiderivative size = 84, normalized size of antiderivative = 4.20, number of steps
used = 9, number of rules used = 7, integrand size = 53, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.132, Rules used = {1607, 6874,
1634, 2442, 36, 29, 31} \begin {gather*} -x-\frac {1}{36} (72-\log (64)) \log (x)+\frac {1}{6} (12-\log (2)) \log (x)+\frac {1}{36} (108-\log (64)) \log (x+6)-\frac {1}{6} (12-\log (2)) \log (x+6)-\frac {(12-\log (2)) \log (x+6)}{x}+\frac {72-\log (64)}{6 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 1607
Rule 1634
Rule 2442
Rule 6874
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-72-24 x-5 x^2-x^3+(6+2 x) \log (2)+(72+12 x+(-6-x) \log (2)) \log (6+x)}{x^2 (6+x)} \, dx\\ &=\int \left (\frac {-72-5 x^2-x^3-x (24-\log (4))+\log (64)}{x^2 (6+x)}-\frac {(-12+\log (2)) \log (6+x)}{x^2}\right ) \, dx\\ &=(12-\log (2)) \int \frac {\log (6+x)}{x^2} \, dx+\int \frac {-72-5 x^2-x^3-x (24-\log (4))+\log (64)}{x^2 (6+x)} \, dx\\ &=-\frac {(12-\log (2)) \log (6+x)}{x}+(12-\log (2)) \int \frac {1}{x (6+x)} \, dx+\int \left (-1+\frac {108-\log (64)}{36 (6+x)}+\frac {-72+\log (64)}{6 x^2}+\frac {-72+\log (64)}{36 x}\right ) \, dx\\ &=-x+\frac {72-\log (64)}{6 x}-\frac {1}{36} (72-\log (64)) \log (x)-\frac {(12-\log (2)) \log (6+x)}{x}+\frac {1}{36} (108-\log (64)) \log (6+x)+\frac {1}{6} (12-\log (2)) \int \frac {1}{x} \, dx+\frac {1}{6} (-12+\log (2)) \int \frac {1}{6+x} \, dx\\ &=-x+\frac {72-\log (64)}{6 x}+\frac {1}{6} (12-\log (2)) \log (x)-\frac {1}{36} (72-\log (64)) \log (x)-\frac {1}{6} (12-\log (2)) \log (6+x)-\frac {(12-\log (2)) \log (6+x)}{x}+\frac {1}{36} (108-\log (64)) \log (6+x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 27, normalized size = 1.35 \begin {gather*} -\frac {-72+6 x^2+\log (64)-6 (-12+x+\log (2)) \log (6+x)}{6 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(57\) vs.
\(2(20)=40\).
time = 1.49, size = 58, normalized size = 2.90
method | result | size |
norman | \(\frac {\left (\ln \left (2\right )-12\right ) \ln \left (x +6\right )+x \ln \left (x +6\right )-x^{2}-\ln \left (2\right )+12}{x}\) | \(31\) |
risch | \(\frac {\left (\ln \left (2\right )-12\right ) \ln \left (x +6\right )}{x}-\frac {-x \ln \left (x +6\right )+x^{2}+\ln \left (2\right )-12}{x}\) | \(33\) |
derivativedivides | \(\frac {\ln \left (2\right ) \ln \left (x +6\right ) \left (x +6\right )}{6 x}-\frac {\ln \left (2\right ) \ln \left (x +6\right )}{6}-\frac {\ln \left (2\right )}{x}-\frac {2 \ln \left (x +6\right ) \left (x +6\right )}{x}-x -6+3 \ln \left (x +6\right )+\frac {12}{x}\) | \(58\) |
default | \(\frac {\ln \left (2\right ) \ln \left (x +6\right ) \left (x +6\right )}{6 x}-\frac {\ln \left (2\right ) \ln \left (x +6\right )}{6}-\frac {\ln \left (2\right )}{x}-\frac {2 \ln \left (x +6\right ) \left (x +6\right )}{x}-x -6+3 \ln \left (x +6\right )+\frac {12}{x}\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 79 vs.
\(2 (20) = 40\).
time = 0.50, size = 79, normalized size = 3.95 \begin {gather*} -\frac {1}{6} \, {\left (\frac {6}{x} - \log \left (x + 6\right ) + \log \left (x\right )\right )} \log \left (2\right ) - \frac {1}{3} \, {\left (\log \left (x + 6\right ) - \log \left (x\right )\right )} \log \left (2\right ) - \frac {1}{6} \, {\left (\log \left (2\right ) - 12\right )} \log \left (x\right ) - x + \frac {{\left (x {\left (\log \left (2\right ) - 12\right )} + 6 \, \log \left (2\right ) - 72\right )} \log \left (x + 6\right )}{6 \, x} + \frac {12}{x} + 3 \, \log \left (x + 6\right ) - 2 \, \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 23, normalized size = 1.15 \begin {gather*} -\frac {x^{2} - {\left (x + \log \left (2\right ) - 12\right )} \log \left (x + 6\right ) + \log \left (2\right ) - 12}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.16, size = 24, normalized size = 1.20 \begin {gather*} - x + \log {\left (x + 6 \right )} + \frac {\left (-12 + \log {\left (2 \right )}\right ) \log {\left (x + 6 \right )}}{x} - \frac {-12 + \log {\left (2 \right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 29, normalized size = 1.45 \begin {gather*} -x + \frac {{\left (\log \left (2\right ) - 12\right )} \log \left (x + 6\right )}{x} - \frac {\log \left (2\right ) - 12}{x} + \log \left (x + 6\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.99, size = 22, normalized size = 1.10 \begin {gather*} \ln \left (x+6\right )-x+\frac {\left (\ln \left (x+6\right )-1\right )\,\left (\ln \left (2\right )-12\right )}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________