Optimal. Leaf size=29 \[ -4-x+(9-x)^2 x-x \log \left (7+\frac {3}{5-x}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 48, normalized size of antiderivative = 1.66, number of steps used = 24, number of rules used = 7, integrand size = 56, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {6728, 616, 31, 632, 703, 701, 2486} \begin {gather*} x^3-18 x^2+80 x-5 \log (38-7 x)+(5-x) \log \left (\frac {38-7 x}{5-x}\right )+5 \log (5-x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 616
Rule 632
Rule 701
Rule 703
Rule 2486
Rule 6728
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {15200}{190-73 x+7 x^2}-\frac {12683 x}{190-73 x+7 x^2}+\frac {3758 x^2}{190-73 x+7 x^2}-\frac {471 x^3}{190-73 x+7 x^2}+\frac {21 x^4}{190-73 x+7 x^2}-\log \left (\frac {-38+7 x}{-5+x}\right )\right ) \, dx\\ &=21 \int \frac {x^4}{190-73 x+7 x^2} \, dx-471 \int \frac {x^3}{190-73 x+7 x^2} \, dx+3758 \int \frac {x^2}{190-73 x+7 x^2} \, dx-12683 \int \frac {x}{190-73 x+7 x^2} \, dx+15200 \int \frac {1}{190-73 x+7 x^2} \, dx-\int \log \left (\frac {-38+7 x}{-5+x}\right ) \, dx\\ &=\frac {3758 x}{7}+(5-x) \log \left (\frac {38-7 x}{5-x}\right )+3 \int \frac {1}{-38+7 x} \, dx+21 \int \left (\frac {3999}{343}+\frac {73 x}{49}+\frac {x^2}{7}-\frac {759810-194837 x}{343 \left (190-73 x+7 x^2\right )}\right ) \, dx-471 \int \left (\frac {73}{49}+\frac {x}{7}-\frac {13870-3999 x}{49 \left (190-73 x+7 x^2\right )}\right ) \, dx+\frac {3758}{7} \int \frac {-190+73 x}{190-73 x+7 x^2} \, dx+\frac {106400}{3} \int \frac {1}{-38+7 x} \, dx-\frac {106400}{3} \int \frac {1}{-35+7 x} \, dx+\frac {443905}{3} \int \frac {1}{-35+7 x} \, dx-\frac {481954}{3} \int \frac {1}{-38+7 x} \, dx\\ &=80 x-18 x^2+x^3-\frac {375545}{21} \log (38-7 x)+(5-x) \log \left (\frac {38-7 x}{5-x}\right )+\frac {48215}{3} \log (5-x)-\frac {3}{49} \int \frac {759810-194837 x}{190-73 x+7 x^2} \, dx+\frac {471}{49} \int \frac {13870-3999 x}{190-73 x+7 x^2} \, dx-\frac {657650}{3} \int \frac {1}{-35+7 x} \, dx+\frac {5426552}{21} \int \frac {1}{-38+7 x} \, dx\\ &=80 x-18 x^2+x^3+\frac {932579}{49} \log (38-7 x)+(5-x) \log \left (\frac {38-7 x}{5-x}\right )-15245 \log (5-x)-30625 \int \frac {1}{-35+7 x} \, dx+\frac {2085136}{49} \int \frac {1}{-38+7 x} \, dx+137375 \int \frac {1}{-35+7 x} \, dx-\frac {8614904}{49} \int \frac {1}{-38+7 x} \, dx\\ &=80 x-18 x^2+x^3-5 \log (38-7 x)+(5-x) \log \left (\frac {38-7 x}{5-x}\right )+5 \log (5-x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 53, normalized size = 1.83 \begin {gather*} 80 x-18 x^2+x^3-\frac {38}{7} \log (38-7 x)+\frac {38}{7} \log (5-x)-\frac {1}{7} (-38+7 x) \log \left (\frac {-38+7 x}{-5+x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.50, size = 27, normalized size = 0.93 \begin {gather*} x^{3} - 18 \, x^{2} - x \log \left (\frac {7 \, x - 38}{x - 5}\right ) + 80 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.23, size = 117, normalized size = 4.03 \begin {gather*} \frac {3 \, {\left (\frac {25 \, {\left (7 \, x - 38\right )}^{2}}{{\left (x - 5\right )}^{2}} - \frac {359 \, {\left (7 \, x - 38\right )}}{x - 5} + 1279\right )}}{\frac {{\left (7 \, x - 38\right )}^{3}}{{\left (x - 5\right )}^{3}} - \frac {21 \, {\left (7 \, x - 38\right )}^{2}}{{\left (x - 5\right )}^{2}} + \frac {147 \, {\left (7 \, x - 38\right )}}{x - 5} - 343} + \frac {3 \, \log \left (\frac {7 \, x - 38}{x - 5}\right )}{\frac {7 \, x - 38}{x - 5} - 7} - 5 \, \log \left (\frac {7 \, x - 38}{x - 5}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.17, size = 28, normalized size = 0.97
method | result | size |
norman | \(x^{3}+80 x -18 x^{2}-\ln \left (\frac {7 x -38}{x -5}\right ) x\) | \(28\) |
risch | \(x^{3}+80 x -18 x^{2}-\ln \left (\frac {7 x -38}{x -5}\right ) x\) | \(28\) |
derivativedivides | \(-\frac {\ln \left (7-\frac {3}{x -5}\right ) \left (7-\frac {3}{x -5}\right ) \left (x -5\right )}{7}-\frac {38 \ln \left (7-\frac {3}{x -5}\right )}{7}+\left (x -5\right )^{3}-3 \left (x -5\right )^{2}-25 x +125\) | \(54\) |
default | \(-\frac {\ln \left (7-\frac {3}{x -5}\right ) \left (7-\frac {3}{x -5}\right ) \left (x -5\right )}{7}-\frac {38 \ln \left (7-\frac {3}{x -5}\right )}{7}+\left (x -5\right )^{3}-3 \left (x -5\right )^{2}-25 x +125\) | \(54\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.41, size = 115, normalized size = 3.97 \begin {gather*} x^{3} - 18 \, x^{2} - \frac {1}{21} \, {\left (21 \, x + 1330 \, \log \left (x - 5\right ) - 114\right )} \log \left (7 \, x - 38\right ) + \frac {190}{3} \, \log \left (7 \, x - 38\right )^{2} + {\left (x - 5\right )} \log \left (x - 5\right ) - \frac {190}{3} \, \log \left (7 \, x - 38\right ) \log \left (x - 5\right ) + \frac {190}{3} \, \log \left (x - 5\right )^{2} - \frac {190}{3} \, {\left (\log \left (7 \, x - 38\right ) - \log \left (x - 5\right )\right )} \log \left (\frac {7 \, x}{x - 5} - \frac {38}{x - 5}\right ) + 80 \, x - \frac {38}{7} \, \log \left (7 \, x - 38\right ) + 5 \, \log \left (x - 5\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.28, size = 27, normalized size = 0.93 \begin {gather*} 80\,x-x\,\ln \left (\frac {7\,x-38}{x-5}\right )-18\,x^2+x^3 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.17, size = 22, normalized size = 0.76 \begin {gather*} x^{3} - 18 x^{2} - x \log {\left (\frac {7 x - 38}{x - 5} \right )} + 80 x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________