Optimal. Leaf size=63 \[ \frac {11049 \log \left (x^2+x+5\right )}{260015}-\frac {3146 \log (7-3 x)}{80155}-\frac {334}{323} \log (2 x+1)+\frac {4822 \log (5 x+2)}{4879}+\frac {3988 \tan ^{-1}\left (\frac {2 x+1}{\sqrt {19}}\right )}{13685 \sqrt {19}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.116, Rules used = {2074, 634, 618, 204, 628} \[ \frac {11049 \log \left (x^2+x+5\right )}{260015}-\frac {3146 \log (7-3 x)}{80155}-\frac {334}{323} \log (2 x+1)+\frac {4822 \log (5 x+2)}{4879}+\frac {3988 \tan ^{-1}\left (\frac {2 x+1}{\sqrt {19}}\right )}{13685 \sqrt {19}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rule 2074
Rubi steps
\begin {align*} \int \frac {-32+5 x-27 x^2+4 x^3}{-70-299 x-286 x^2+50 x^3-13 x^4+30 x^5} \, dx &=\int \left (-\frac {668}{323 (1+2 x)}-\frac {9438}{80155 (-7+3 x)}+\frac {24110}{4879 (2+5 x)}+\frac {48935+22098 x}{260015 \left (5+x+x^2\right )}\right ) \, dx\\ &=-\frac {3146 \log (7-3 x)}{80155}-\frac {334}{323} \log (1+2 x)+\frac {4822 \log (2+5 x)}{4879}+\frac {\int \frac {48935+22098 x}{5+x+x^2} \, dx}{260015}\\ &=-\frac {3146 \log (7-3 x)}{80155}-\frac {334}{323} \log (1+2 x)+\frac {4822 \log (2+5 x)}{4879}+\frac {11049 \int \frac {1+2 x}{5+x+x^2} \, dx}{260015}+\frac {1994 \int \frac {1}{5+x+x^2} \, dx}{13685}\\ &=-\frac {3146 \log (7-3 x)}{80155}-\frac {334}{323} \log (1+2 x)+\frac {4822 \log (2+5 x)}{4879}+\frac {11049 \log \left (5+x+x^2\right )}{260015}-\frac {3988 \operatorname {Subst}\left (\int \frac {1}{-19-x^2} \, dx,x,1+2 x\right )}{13685}\\ &=\frac {3988 \tan ^{-1}\left (\frac {1+2 x}{\sqrt {19}}\right )}{13685 \sqrt {19}}-\frac {3146 \log (7-3 x)}{80155}-\frac {334}{323} \log (1+2 x)+\frac {4822 \log (2+5 x)}{4879}+\frac {11049 \log \left (5+x+x^2\right )}{260015}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 57, normalized size = 0.90 \[ \frac {453009 \log \left (x^2+x+5\right )-418418 \log (7-3 x)-11023670 \log (2 x+1)+10536070 \log (5 x+2)+163508 \sqrt {19} \tan ^{-1}\left (\frac {2 x+1}{\sqrt {19}}\right )}{10660615} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 50, normalized size = 0.79 \[ \frac {3988}{260015} \, \sqrt {19} \arctan \left (\frac {1}{19} \, \sqrt {19} {\left (2 \, x + 1\right )}\right ) + \frac {11049}{260015} \, \log \left (x^{2} + x + 5\right ) + \frac {4822}{4879} \, \log \left (5 \, x + 2\right ) - \frac {3146}{80155} \, \log \left (3 \, x - 7\right ) - \frac {334}{323} \, \log \left (2 \, x + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.03, size = 53, normalized size = 0.84 \[ \frac {3988}{260015} \, \sqrt {19} \arctan \left (\frac {1}{19} \, \sqrt {19} {\left (2 \, x + 1\right )}\right ) + \frac {11049}{260015} \, \log \left (x^{2} + x + 5\right ) + \frac {4822}{4879} \, \log \left ({\left | 5 \, x + 2 \right |}\right ) - \frac {3146}{80155} \, \log \left ({\left | 3 \, x - 7 \right |}\right ) - \frac {334}{323} \, \log \left ({\left | 2 \, x + 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 51, normalized size = 0.81 \[ \frac {3988 \sqrt {19}\, \arctan \left (\frac {\left (2 x +1\right ) \sqrt {19}}{19}\right )}{260015}-\frac {334 \ln \left (2 x +1\right )}{323}+\frac {4822 \ln \left (5 x +2\right )}{4879}-\frac {3146 \ln \left (3 x -7\right )}{80155}+\frac {11049 \ln \left (x^{2}+x +5\right )}{260015} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.27, size = 50, normalized size = 0.79 \[ \frac {3988}{260015} \, \sqrt {19} \arctan \left (\frac {1}{19} \, \sqrt {19} {\left (2 \, x + 1\right )}\right ) + \frac {11049}{260015} \, \log \left (x^{2} + x + 5\right ) + \frac {4822}{4879} \, \log \left (5 \, x + 2\right ) - \frac {3146}{80155} \, \log \left (3 \, x - 7\right ) - \frac {334}{323} \, \log \left (2 \, x + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.28, size = 58, normalized size = 0.92 \[ \frac {4822\,\ln \left (x+\frac {2}{5}\right )}{4879}-\frac {334\,\ln \left (x+\frac {1}{2}\right )}{323}-\frac {3146\,\ln \left (x-\frac {7}{3}\right )}{80155}-\ln \left (x+\frac {1}{2}-\frac {\sqrt {19}\,1{}\mathrm {i}}{2}\right )\,\left (-\frac {11049}{260015}+\frac {\sqrt {19}\,1994{}\mathrm {i}}{260015}\right )+\ln \left (x+\frac {1}{2}+\frac {\sqrt {19}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {11049}{260015}+\frac {\sqrt {19}\,1994{}\mathrm {i}}{260015}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.37, size = 68, normalized size = 1.08 \[ - \frac {3146 \log {\left (x - \frac {7}{3} \right )}}{80155} + \frac {4822 \log {\left (x + \frac {2}{5} \right )}}{4879} - \frac {334 \log {\left (x + \frac {1}{2} \right )}}{323} + \frac {11049 \log {\left (x^{2} + x + 5 \right )}}{260015} + \frac {3988 \sqrt {19} \operatorname {atan}{\left (\frac {2 \sqrt {19} x}{19} + \frac {\sqrt {19}}{19} \right )}}{260015} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________