Integrand size = 25, antiderivative size = 74 \[ \int \frac {5-x}{(3+2 x)^2 \left (2+5 x+3 x^2\right )^3} \, dx=\frac {3}{(1+x)^2}+\frac {29}{1+x}-\frac {208}{125 (3+2 x)}-\frac {459}{50 (2+3 x)^2}+\frac {8856}{125 (2+3 x)}-175 \log (1+x)+\frac {4912}{625} \log (3+2 x)+\frac {104463}{625} \log (2+3 x) \] Output:
3/(1+x)^2+29/(1+x)-208/(375+250*x)-459/50/(2+3*x)^2+8856/(250+375*x)-175*l n(1+x)+4912/625*ln(3+2*x)+104463/625*ln(2+3*x)
Time = 0.05 (sec) , antiderivative size = 78, normalized size of antiderivative = 1.05 \[ \int \frac {5-x}{(3+2 x)^2 \left (2+5 x+3 x^2\right )^3} \, dx=\frac {1}{625} \left (-\frac {1040}{3+2 x}-\frac {75 (151+201 x)}{2 \left (2+5 x+3 x^2\right )^2}+\frac {5 (33697+39462 x)}{4+10 x+6 x^2}+104463 \log (-4-6 x)-109375 \log (-2 (1+x))+4912 \log (3+2 x)\right ) \] Input:
Integrate[(5 - x)/((3 + 2*x)^2*(2 + 5*x + 3*x^2)^3),x]
Output:
(-1040/(3 + 2*x) - (75*(151 + 201*x))/(2*(2 + 5*x + 3*x^2)^2) + (5*(33697 + 39462*x))/(4 + 10*x + 6*x^2) + 104463*Log[-4 - 6*x] - 109375*Log[-2*(1 + x)] + 4912*Log[3 + 2*x])/625
Time = 0.40 (sec) , antiderivative size = 82, normalized size of antiderivative = 1.11, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {1207, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {5-x}{(2 x+3)^2 \left (3 x^2+5 x+2\right )^3} \, dx\) |
\(\Big \downarrow \) 1207 |
\(\displaystyle 27 \int \left (\frac {9824}{16875 (2 x+3)}+\frac {11607}{625 (3 x+2)}+\frac {416}{3375 (2 x+3)^2}-\frac {984}{125 (3 x+2)^2}+\frac {51}{25 (3 x+2)^3}-\frac {175}{27 (x+1)}-\frac {29}{27 (x+1)^2}-\frac {2}{9 (x+1)^3}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle 27 \left (\frac {29}{27 (x+1)}-\frac {208}{3375 (2 x+3)}+\frac {328}{125 (3 x+2)}+\frac {1}{9 (x+1)^2}-\frac {17}{50 (3 x+2)^2}-\frac {175}{27} \log (x+1)+\frac {4912 \log (2 x+3)}{16875}+\frac {3869}{625} \log (3 x+2)\right )\) |
Input:
Int[(5 - x)/((3 + 2*x)^2*(2 + 5*x + 3*x^2)^3),x]
Output:
27*(1/(9*(1 + x)^2) + 29/(27*(1 + x)) - 208/(3375*(3 + 2*x)) - 17/(50*(2 + 3*x)^2) + 328/(125*(2 + 3*x)) - (175*Log[1 + x])/27 + (4912*Log[3 + 2*x]) /16875 + (3869*Log[2 + 3*x])/625)
Int[((d_.) + (e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))^(n_.)*((a_) + (b_.)*(x_ ) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Simp[1 /c^p Int[ExpandIntegrand[(d + e*x)^m*(f + g*x)^n*(b/2 - q/2 + c*x)^p*(b/2 + q/2 + c*x)^p, x], x], x] /; !FractionalPowerFactorQ[q]] /; FreeQ[{a, b, c, d, e, f, g}, x] && ILtQ[p, -1] && IntegersQ[m, n] && NiceSqrtQ[b^2 - 4* a*c]
Time = 1.23 (sec) , antiderivative size = 64, normalized size of antiderivative = 0.86
method | result | size |
norman | \(\frac {\frac {85512}{25} x +\frac {93948}{25} x^{3}+\frac {116514}{125} x^{4}+\frac {1368599}{250} x^{2}+\frac {193723}{250}}{\left (2 x +3\right ) \left (3 x^{2}+5 x +2\right )^{2}}-175 \ln \left (x +1\right )+\frac {4912 \ln \left (2 x +3\right )}{625}+\frac {104463 \ln \left (3 x +2\right )}{625}\) | \(64\) |
default | \(-\frac {459}{50 \left (3 x +2\right )^{2}}+\frac {8856}{125 \left (3 x +2\right )}+\frac {104463 \ln \left (3 x +2\right )}{625}+\frac {3}{\left (x +1\right )^{2}}+\frac {29}{x +1}-175 \ln \left (x +1\right )-\frac {208}{125 \left (2 x +3\right )}+\frac {4912 \ln \left (2 x +3\right )}{625}\) | \(65\) |
risch | \(\frac {\frac {85512}{25} x +\frac {93948}{25} x^{3}+\frac {116514}{125} x^{4}+\frac {1368599}{250} x^{2}+\frac {193723}{250}}{\left (2 x +3\right ) \left (3 x^{2}+5 x +2\right )^{2}}-175 \ln \left (x +1\right )+\frac {4912 \ln \left (2 x +3\right )}{625}+\frac {104463 \ln \left (3 x +2\right )}{625}\) | \(65\) |
parallelrisch | \(-\frac {14558620 x +102484060 x^{3}-1414656 \ln \left (x +\frac {3}{2}\right )+396375000 \ln \left (x +1\right ) x^{2}+70287825 x^{4}+64144925 x^{2}+17435070 x^{5}+178500000 \ln \left (x +1\right ) x +31500000 \ln \left (x +1\right )-30085344 \ln \left (x +\frac {2}{3}\right )-8016384 \ln \left (x +\frac {3}{2}\right ) x -170483616 \ln \left (x +\frac {2}{3}\right ) x +430500000 \ln \left (x +1\right ) x^{3}-411166368 \ln \left (x +\frac {2}{3}\right ) x^{3}-19333632 \ln \left (x +\frac {3}{2}\right ) x^{3}-378573912 \ln \left (x +\frac {2}{3}\right ) x^{2}-17801088 \ln \left (x +\frac {3}{2}\right ) x^{2}+228375000 \ln \left (x +1\right ) x^{4}-218118744 \ln \left (x +\frac {2}{3}\right ) x^{4}-10256256 \ln \left (x +\frac {3}{2}\right ) x^{4}+47250000 \ln \left (x +1\right ) x^{5}-45128016 \ln \left (x +\frac {2}{3}\right ) x^{5}-2121984 \ln \left (x +\frac {3}{2}\right ) x^{5}}{15000 \left (2 x +3\right ) \left (3 x^{2}+5 x +2\right )^{2}}\) | \(193\) |
Input:
int((5-x)/(2*x+3)^2/(3*x^2+5*x+2)^3,x,method=_RETURNVERBOSE)
Output:
(85512/25*x+93948/25*x^3+116514/125*x^4+1368599/250*x^2+193723/250)/(2*x+3 )/(3*x^2+5*x+2)^2-175*ln(x+1)+4912/625*ln(2*x+3)+104463/625*ln(3*x+2)
Leaf count of result is larger than twice the leaf count of optimal. 146 vs. \(2 (64) = 128\).
Time = 0.20 (sec) , antiderivative size = 146, normalized size of antiderivative = 1.97 \[ \int \frac {5-x}{(3+2 x)^2 \left (2+5 x+3 x^2\right )^3} \, dx=\frac {1165140 \, x^{4} + 4697400 \, x^{3} + 6842995 \, x^{2} + 208926 \, {\left (18 \, x^{5} + 87 \, x^{4} + 164 \, x^{3} + 151 \, x^{2} + 68 \, x + 12\right )} \log \left (3 \, x + 2\right ) + 9824 \, {\left (18 \, x^{5} + 87 \, x^{4} + 164 \, x^{3} + 151 \, x^{2} + 68 \, x + 12\right )} \log \left (2 \, x + 3\right ) - 218750 \, {\left (18 \, x^{5} + 87 \, x^{4} + 164 \, x^{3} + 151 \, x^{2} + 68 \, x + 12\right )} \log \left (x + 1\right ) + 4275600 \, x + 968615}{1250 \, {\left (18 \, x^{5} + 87 \, x^{4} + 164 \, x^{3} + 151 \, x^{2} + 68 \, x + 12\right )}} \] Input:
integrate((5-x)/(3+2*x)^2/(3*x^2+5*x+2)^3,x, algorithm="fricas")
Output:
1/1250*(1165140*x^4 + 4697400*x^3 + 6842995*x^2 + 208926*(18*x^5 + 87*x^4 + 164*x^3 + 151*x^2 + 68*x + 12)*log(3*x + 2) + 9824*(18*x^5 + 87*x^4 + 16 4*x^3 + 151*x^2 + 68*x + 12)*log(2*x + 3) - 218750*(18*x^5 + 87*x^4 + 164* x^3 + 151*x^2 + 68*x + 12)*log(x + 1) + 4275600*x + 968615)/(18*x^5 + 87*x ^4 + 164*x^3 + 151*x^2 + 68*x + 12)
Time = 0.11 (sec) , antiderivative size = 73, normalized size of antiderivative = 0.99 \[ \int \frac {5-x}{(3+2 x)^2 \left (2+5 x+3 x^2\right )^3} \, dx=- \frac {- 233028 x^{4} - 939480 x^{3} - 1368599 x^{2} - 855120 x - 193723}{4500 x^{5} + 21750 x^{4} + 41000 x^{3} + 37750 x^{2} + 17000 x + 3000} + \frac {104463 \log {\left (x + \frac {2}{3} \right )}}{625} - 175 \log {\left (x + 1 \right )} + \frac {4912 \log {\left (x + \frac {3}{2} \right )}}{625} \] Input:
integrate((5-x)/(3+2*x)**2/(3*x**2+5*x+2)**3,x)
Output:
-(-233028*x**4 - 939480*x**3 - 1368599*x**2 - 855120*x - 193723)/(4500*x** 5 + 21750*x**4 + 41000*x**3 + 37750*x**2 + 17000*x + 3000) + 104463*log(x + 2/3)/625 - 175*log(x + 1) + 4912*log(x + 3/2)/625
Time = 0.03 (sec) , antiderivative size = 72, normalized size of antiderivative = 0.97 \[ \int \frac {5-x}{(3+2 x)^2 \left (2+5 x+3 x^2\right )^3} \, dx=\frac {233028 \, x^{4} + 939480 \, x^{3} + 1368599 \, x^{2} + 855120 \, x + 193723}{250 \, {\left (18 \, x^{5} + 87 \, x^{4} + 164 \, x^{3} + 151 \, x^{2} + 68 \, x + 12\right )}} + \frac {104463}{625} \, \log \left (3 \, x + 2\right ) + \frac {4912}{625} \, \log \left (2 \, x + 3\right ) - 175 \, \log \left (x + 1\right ) \] Input:
integrate((5-x)/(3+2*x)^2/(3*x^2+5*x+2)^3,x, algorithm="maxima")
Output:
1/250*(233028*x^4 + 939480*x^3 + 1368599*x^2 + 855120*x + 193723)/(18*x^5 + 87*x^4 + 164*x^3 + 151*x^2 + 68*x + 12) + 104463/625*log(3*x + 2) + 4912 /625*log(2*x + 3) - 175*log(x + 1)
Time = 0.20 (sec) , antiderivative size = 95, normalized size of antiderivative = 1.28 \[ \int \frac {5-x}{(3+2 x)^2 \left (2+5 x+3 x^2\right )^3} \, dx=-\frac {208}{125 \, {\left (2 \, x + 3\right )}} - \frac {2 \, {\left (\frac {168231}{2 \, x + 3} - \frac {211036}{{\left (2 \, x + 3\right )}^{2}} + \frac {82447}{{\left (2 \, x + 3\right )}^{3}} - 42642\right )}}{125 \, {\left (\frac {5}{2 \, x + 3} - 3\right )}^{2} {\left (\frac {1}{2 \, x + 3} - 1\right )}^{2}} - 175 \, \log \left ({\left | -\frac {1}{2 \, x + 3} + 1 \right |}\right ) + \frac {104463}{625} \, \log \left ({\left | -\frac {5}{2 \, x + 3} + 3 \right |}\right ) \] Input:
integrate((5-x)/(3+2*x)^2/(3*x^2+5*x+2)^3,x, algorithm="giac")
Output:
-208/125/(2*x + 3) - 2/125*(168231/(2*x + 3) - 211036/(2*x + 3)^2 + 82447/ (2*x + 3)^3 - 42642)/((5/(2*x + 3) - 3)^2*(1/(2*x + 3) - 1)^2) - 175*log(a bs(-1/(2*x + 3) + 1)) + 104463/625*log(abs(-5/(2*x + 3) + 3))
Time = 0.05 (sec) , antiderivative size = 65, normalized size of antiderivative = 0.88 \[ \int \frac {5-x}{(3+2 x)^2 \left (2+5 x+3 x^2\right )^3} \, dx=\frac {104463\,\ln \left (x+\frac {2}{3}\right )}{625}-175\,\ln \left (x+1\right )+\frac {4912\,\ln \left (x+\frac {3}{2}\right )}{625}+\frac {\frac {6473\,x^4}{125}+\frac {15658\,x^3}{75}+\frac {1368599\,x^2}{4500}+\frac {14252\,x}{75}+\frac {193723}{4500}}{x^5+\frac {29\,x^4}{6}+\frac {82\,x^3}{9}+\frac {151\,x^2}{18}+\frac {34\,x}{9}+\frac {2}{3}} \] Input:
int(-(x - 5)/((2*x + 3)^2*(5*x + 3*x^2 + 2)^3),x)
Output:
(104463*log(x + 2/3))/625 - 175*log(x + 1) + (4912*log(x + 3/2))/625 + ((1 4252*x)/75 + (1368599*x^2)/4500 + (15658*x^3)/75 + (6473*x^4)/125 + 193723 /4500)/((34*x)/9 + (151*x^2)/18 + (82*x^3)/9 + (29*x^4)/6 + x^5 + 2/3)
Time = 0.25 (sec) , antiderivative size = 219, normalized size of antiderivative = 2.96 \[ \int \frac {5-x}{(3+2 x)^2 \left (2+5 x+3 x^2\right )^3} \, dx=\frac {109059372 \,\mathrm {log}\left (3 x +2\right ) x^{5}+527120298 \,\mathrm {log}\left (3 x +2\right ) x^{4}+993652056 \,\mathrm {log}\left (3 x +2\right ) x^{3}+914886954 \,\mathrm {log}\left (3 x +2\right ) x^{2}+412002072 \,\mathrm {log}\left (3 x +2\right ) x +72706248 \,\mathrm {log}\left (3 x +2\right )+5128128 \,\mathrm {log}\left (2 x +3\right ) x^{5}+24785952 \,\mathrm {log}\left (2 x +3\right ) x^{4}+46722944 \,\mathrm {log}\left (2 x +3\right ) x^{3}+43019296 \,\mathrm {log}\left (2 x +3\right ) x^{2}+19372928 \,\mathrm {log}\left (2 x +3\right ) x +3418752 \,\mathrm {log}\left (2 x +3\right )-114187500 \,\mathrm {log}\left (x +1\right ) x^{5}-551906250 \,\mathrm {log}\left (x +1\right ) x^{4}-1040375000 \,\mathrm {log}\left (x +1\right ) x^{3}-957906250 \,\mathrm {log}\left (x +1\right ) x^{2}-431375000 \,\mathrm {log}\left (x +1\right ) x -76125000 \,\mathrm {log}\left (x +1\right )-6990840 x^{5}+72530280 x^{3}+139801475 x^{2}+97582560 x +23429275}{652500 x^{5}+3153750 x^{4}+5945000 x^{3}+5473750 x^{2}+2465000 x +435000} \] Input:
int((5-x)/(3+2*x)^2/(3*x^2+5*x+2)^3,x)
Output:
(109059372*log(3*x + 2)*x**5 + 527120298*log(3*x + 2)*x**4 + 993652056*log (3*x + 2)*x**3 + 914886954*log(3*x + 2)*x**2 + 412002072*log(3*x + 2)*x + 72706248*log(3*x + 2) + 5128128*log(2*x + 3)*x**5 + 24785952*log(2*x + 3)* x**4 + 46722944*log(2*x + 3)*x**3 + 43019296*log(2*x + 3)*x**2 + 19372928* log(2*x + 3)*x + 3418752*log(2*x + 3) - 114187500*log(x + 1)*x**5 - 551906 250*log(x + 1)*x**4 - 1040375000*log(x + 1)*x**3 - 957906250*log(x + 1)*x* *2 - 431375000*log(x + 1)*x - 76125000*log(x + 1) - 6990840*x**5 + 7253028 0*x**3 + 139801475*x**2 + 97582560*x + 23429275)/(36250*(18*x**5 + 87*x**4 + 164*x**3 + 151*x**2 + 68*x + 12))