4.2 Problem number 811

(f+gx)n(a+2cdx+cex2)(d+ex)3dx

Optimal antiderivative (acd2e)(gx+f)1+n2(dg+ef)(ex+d)2(cd2ae)g(1n)(gx+f)1+n2e(dg+ef)2(ex+d)+(aeg2(1n)nc(2e2f24defg+d2g2(n2+n+2)))(gx+f)1+nhypergeom([1,1+n],[2+n],e(gx+f)dg+ef)2e(dg+ef)3(1+n)

command

Integrate[((f + g*x)^n*(a + 2*c*d*x + c*e*x^2))/(d + e*x)^3,x]

Mathematica 13.1 output

(f+gx)n(a+2cdx+cex2)(d+ex)3dx

Mathematica 12.3 output

(f+gx)n+1(g2(aecd2)2F1(3,n+1;n+2;e(f+gx)efdg)+c(efdg)22F1(1,n+1;n+2;e(f+gx)efdg))e(n+1)(efdg)3