15.3 Problem number 295

(g+hx)2(A+Blog(e(a+bx)n(c+dx)n))dx

Optimal antiderivative B(ad+bc)h(adhbch+3bdg)nx3b2d2B(ad+bc)h2nx26bdB(ah+bg)3nln(bx+a)3b3h+B(ch+dg)3nln(dx+c)3d3h+(hx+g)3(A+Bln(e(bx+a)n(dx+c)n))3h

command

integrate((h*x+g)^2*(A+B*log(e*(b*x+a)^n/((d*x+c)^n))),x, algorithm="giac")

Giac 1.9.0-11 via sagemath 9.6 output

Timed out

Giac 1.7.0 via sagemath 9.3 output

13(Ah2+Bh2)x3+13(Bh2nx3+3Bghnx2+3Bg2nx)log(bx+a)13(Bh2nx3+3Bghnx2+3Bg2nx)log(dx+c)(Bbch2nBadh2n6Abdgh6Bbdgh)x26bd+(3Bab2g2n3Ba2bghn+Ba3h2n)log(bx+a)3b3(3Bcd2g2n3Bc2dghn+Bc3h2n)log(dxc)3d3(3Bb2cdghn3Babd2ghnBb2c2h2n+Ba2d2h2n3Ab2d2g23Bb2d2g2)x3b2d2