Optimal. Leaf size=23 \[ \log \left (16 x \left (-3+\frac {3 \left (3+x+x^2\right )^2}{12-x}\right )\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 32, normalized size of antiderivative = 1.39, number of steps used = 3, number of rules used = 2, integrand size = 55, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.036, Rules used = {2074, 1587} \begin {gather*} \log \left (-x^4-2 x^3-7 x^2-7 x+3\right )-\log (12-x)+\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1587
Rule 2074
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {1}{12-x}+\frac {1}{x}+\frac {7+14 x+6 x^2+4 x^3}{-3+7 x+7 x^2+2 x^3+x^4}\right ) \, dx\\ &=-\log (12-x)+\log (x)+\int \frac {7+14 x+6 x^2+4 x^3}{-3+7 x+7 x^2+2 x^3+x^4} \, dx\\ &=-\log (12-x)+\log (x)+\log \left (3-7 x-7 x^2-2 x^3-x^4\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 32, normalized size = 1.39 \begin {gather*} -\log (12-x)+\log (x)+\log \left (3-7 x-7 x^2-2 x^3-x^4\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.67, size = 30, normalized size = 1.30 \begin {gather*} \log \left (x^{5} + 2 \, x^{4} + 7 \, x^{3} + 7 \, x^{2} - 3 \, x\right ) - \log \left (x - 12\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 2.73, size = 31, normalized size = 1.35 \begin {gather*} \log \left ({\left | x^{4} + 2 \, x^{3} + 7 \, x^{2} + 7 \, x - 3 \right |}\right ) - \log \left ({\left | x - 12 \right |}\right ) + \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 29, normalized size = 1.26
method | result | size |
default | \(\ln \relax (x )+\ln \left (x^{4}+2 x^{3}+7 x^{2}+7 x -3\right )-\ln \left (x -12\right )\) | \(29\) |
norman | \(\ln \relax (x )+\ln \left (x^{4}+2 x^{3}+7 x^{2}+7 x -3\right )-\ln \left (x -12\right )\) | \(29\) |
risch | \(-\ln \left (x -12\right )+\ln \left (x^{5}+2 x^{4}+7 x^{3}+7 x^{2}-3 x \right )\) | \(31\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.38, size = 28, normalized size = 1.22 \begin {gather*} \log \left (x^{4} + 2 \, x^{3} + 7 \, x^{2} + 7 \, x - 3\right ) - \log \left (x - 12\right ) + \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.14, size = 28, normalized size = 1.22 \begin {gather*} \ln \left (x\,\left (x^4+2\,x^3+7\,x^2+7\,x-3\right )\right )-\ln \left (x-12\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.12, size = 27, normalized size = 1.17 \begin {gather*} - \log {\left (x - 12 \right )} + \log {\left (x^{5} + 2 x^{4} + 7 x^{3} + 7 x^{2} - 3 x \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________