Optimal. Leaf size=49 \[ \frac {1003 \log \left (x^2-10 x+26\right )}{1025}+\frac {22 \log \left (x^2-2 x+17\right )}{1025}-\frac {15033 \tan ^{-1}(5-x)}{1025}-\frac {4607 \tan ^{-1}\left (\frac {x-1}{4}\right )}{4100} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.16, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 5, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.139, Rules used = {6728, 634, 618, 204, 628} \[ \frac {1003 \log \left (x^2-10 x+26\right )}{1025}+\frac {22 \log \left (x^2-2 x+17\right )}{1025}-\frac {15033 \tan ^{-1}(5-x)}{1025}-\frac {4607 \tan ^{-1}\left (\frac {x-1}{4}\right )}{4100} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rule 6728
Rubi steps
\begin {align*} \int \frac {-35+70 x-4 x^2+2 x^3}{\left (26-10 x+x^2\right ) \left (17-2 x+x^2\right )} \, dx &=\int \left (\frac {5003+2006 x}{1025 \left (26-10 x+x^2\right )}+\frac {-4651+44 x}{1025 \left (17-2 x+x^2\right )}\right ) \, dx\\ &=\frac {\int \frac {5003+2006 x}{26-10 x+x^2} \, dx}{1025}+\frac {\int \frac {-4651+44 x}{17-2 x+x^2} \, dx}{1025}\\ &=\frac {22 \int \frac {-2+2 x}{17-2 x+x^2} \, dx}{1025}+\frac {1003 \int \frac {-10+2 x}{26-10 x+x^2} \, dx}{1025}-\frac {4607 \int \frac {1}{17-2 x+x^2} \, dx}{1025}+\frac {15033 \int \frac {1}{26-10 x+x^2} \, dx}{1025}\\ &=\frac {1003 \log \left (26-10 x+x^2\right )}{1025}+\frac {22 \log \left (17-2 x+x^2\right )}{1025}+\frac {9214 \operatorname {Subst}\left (\int \frac {1}{-64-x^2} \, dx,x,-2+2 x\right )}{1025}-\frac {30066 \operatorname {Subst}\left (\int \frac {1}{-4-x^2} \, dx,x,-10+2 x\right )}{1025}\\ &=-\frac {15033 \tan ^{-1}(5-x)}{1025}-\frac {4607 \tan ^{-1}\left (\frac {1}{4} (-1+x)\right )}{4100}+\frac {1003 \log \left (26-10 x+x^2\right )}{1025}+\frac {22 \log \left (17-2 x+x^2\right )}{1025}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 49, normalized size = 1.00 \[ \frac {1003 \log \left (x^2-10 x+26\right )}{1025}+\frac {22 \log \left (x^2-2 x+17\right )}{1025}-\frac {15033 \tan ^{-1}(5-x)}{1025}-\frac {4607 \tan ^{-1}\left (\frac {x-1}{4}\right )}{4100} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.62, size = 37, normalized size = 0.76 \[ \frac {15033}{1025} \, \arctan \left (x - 5\right ) - \frac {4607}{4100} \, \arctan \left (\frac {1}{4} \, x - \frac {1}{4}\right ) + \frac {22}{1025} \, \log \left (x^{2} - 2 \, x + 17\right ) + \frac {1003}{1025} \, \log \left (x^{2} - 10 \, x + 26\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.32, size = 37, normalized size = 0.76 \[ \frac {15033}{1025} \, \arctan \left (x - 5\right ) - \frac {4607}{4100} \, \arctan \left (\frac {1}{4} \, x - \frac {1}{4}\right ) + \frac {22}{1025} \, \log \left (x^{2} - 2 \, x + 17\right ) + \frac {1003}{1025} \, \log \left (x^{2} - 10 \, x + 26\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 38, normalized size = 0.78 \[ \frac {15033 \arctan \left (x -5\right )}{1025}-\frac {4607 \arctan \left (\frac {x}{4}-\frac {1}{4}\right )}{4100}+\frac {1003 \ln \left (x^{2}-10 x +26\right )}{1025}+\frac {22 \ln \left (x^{2}-2 x +17\right )}{1025} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.80, size = 37, normalized size = 0.76 \[ \frac {15033}{1025} \, \arctan \left (x - 5\right ) - \frac {4607}{4100} \, \arctan \left (\frac {1}{4} \, x - \frac {1}{4}\right ) + \frac {22}{1025} \, \log \left (x^{2} - 2 \, x + 17\right ) + \frac {1003}{1025} \, \log \left (x^{2} - 10 \, x + 26\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 41, normalized size = 0.84 \[ \ln \left (x-1-4{}\mathrm {i}\right )\,\left (\frac {22}{1025}+\frac {4607}{8200}{}\mathrm {i}\right )+\ln \left (x-1+4{}\mathrm {i}\right )\,\left (\frac {22}{1025}-\frac {4607}{8200}{}\mathrm {i}\right )+\ln \left (x-5-\mathrm {i}\right )\,\left (\frac {1003}{1025}-\frac {15033}{2050}{}\mathrm {i}\right )+\ln \left (x-5+1{}\mathrm {i}\right )\,\left (\frac {1003}{1025}+\frac {15033}{2050}{}\mathrm {i}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.23, size = 46, normalized size = 0.94 \[ \frac {1003 \log {\left (x^{2} - 10 x + 26 \right )}}{1025} + \frac {22 \log {\left (x^{2} - 2 x + 17 \right )}}{1025} - \frac {4607 \operatorname {atan}{\left (\frac {x}{4} - \frac {1}{4} \right )}}{4100} + \frac {15033 \operatorname {atan}{\left (x - 5 \right )}}{1025} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________