Optimal. Leaf size=63 \[ \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} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, 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 = {2099, 648, 632,
210, 642} \begin {gather*} \frac {3988 \text {ArcTan}\left (\frac {2 x+1}{\sqrt {19}}\right )}{13685 \sqrt {19}}+\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} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 632
Rule 642
Rule 648
Rule 2099
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 \text {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.02, size = 57, normalized size = 0.90 \begin {gather*} \frac {163508 \sqrt {19} \tan ^{-1}\left (\frac {1+2 x}{\sqrt {19}}\right )-418418 \log (7-3 x)-11023670 \log (1+2 x)+10536070 \log (2+5 x)+453009 \log \left (5+x+x^2\right )}{10660615} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 51, normalized size = 0.81
method | result | size |
default | \(-\frac {334 \ln \left (2 x +1\right )}{323}-\frac {3146 \ln \left (3 x -7\right )}{80155}+\frac {11049 \ln \left (x^{2}+x +5\right )}{260015}+\frac {3988 \arctan \left (\frac {\left (2 x +1\right ) \sqrt {19}}{19}\right ) \sqrt {19}}{260015}+\frac {4822 \ln \left (5 x +2\right )}{4879}\) | \(51\) |
risch | \(\frac {4822 \ln \left (5 x +2\right )}{4879}-\frac {334 \ln \left (2 x +1\right )}{323}+\frac {11049 \ln \left (15904144 x^{2}+15904144 x +79520720\right )}{260015}+\frac {3988 \sqrt {19}\, \arctan \left (\frac {\left (3988 x +1994\right ) \sqrt {19}}{37886}\right )}{260015}-\frac {3146 \ln \left (3 x -7\right )}{80155}\) | \(55\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 50, normalized size = 0.79 \begin {gather*} \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 ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 50, normalized size = 0.79 \begin {gather*} \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 ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.19, size = 68, normalized size = 1.08 \begin {gather*} - \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} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.46, size = 53, normalized size = 0.84 \begin {gather*} \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 ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.21, size = 58, normalized size = 0.92 \begin {gather*} \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 ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________