text:
using Rubin
using Tests
using Elliptic
using HypergeometricFunctions
using Polylogarithms
using SpecialFunctions

@test integrate(log(c*(d+e*x))^4, x) == :(24x+e^-1*log(c*(d+e*x))^2*(12d+12*e*x)+e^-1*log(c*(d+e*x))^4*(d+e*x)+-1*e^-1*log(c*(d+e*x))^3*(4d+4*e*x)+-1*e^-1*(24d+24*e*x)*log(c*(d+e*x)))
@test integrate(log(c*(d+e*x))^3, x) == :(-6x+e^-1*log(c*(d+e*x))^3*(d+e*x)+e^-1*(6d+6*e*x)*log(c*(d+e*x))+-1*e^-1*log(c*(d+e*x))^2*(3d+3*e*x))
@test integrate(log(c*(d+e*x))^2, x) == :(2x+e^-1*log(c*(d+e*x))^2*(d+e*x)+-1*e^-1*(2d+2*e*x)*log(c*(d+e*x)))
@test integrate(log(c*(d+e*x)), x) == :(-1x+e^-1*(d+e*x)*log(c*(d+e*x)))
@test integrate(log(c*(d+e*x))^-1, x) == :(c^-1*e^-1*logintegral(c*(d+e*x)))
@test integrate(log(c*(d+e*x))^-2, x) == :(c^-1*e^-1*logintegral(c*(d+e*x))+-1*e^-1*log(c*(d+e*x))^-1*(d+e*x))
@test integrate(log(c*(d+e*x))^-3, x) == :((1/2)*c^-1*e^-1*logintegral(c*(d+e*x))+-1//2*e^-1*log(c*(d+e*x))^-1*(d+e*x)+-1//2*e^-1*log(c*(d+e*x))^-2*(d+e*x))
@test integrate(log(c*(d+e*x))^-4, x) == :(-1//3*e^-1*log(c*(d+e*x))^-3*(d+e*x)+-1//6*e^-1*log(c*(d+e*x))^-1*(d+e*x)+-1//6*e^-1*log(c*(d+e*x))^-2*(d+e*x)+1//6*c^-1*e^-1*logintegral(c*(d+e*x)))
@test integrate(log(c*(d+e*x))^5//2, x) == :(e^-1*log(c*(d+e*x))^5//2*(d+e*x)+-1//2*e^-1*log(c*(d+e*x))^3//2*(5d+5*e*x)+1//4*e^-1*log(c*(d+e*x))^(1/2)*(15d+15*e*x)+-15//8*pi^(1/2)*c^-1*e^-1*erfi(log(c*(d+e*x))^(1/2)))
@test integrate(log(c*(d+e*x))^3//2, x) == :(e^-1*log(c*(d+e*x))^3//2*(d+e*x)+-1//2*e^-1*log(c*(d+e*x))^(1/2)*(3d+3*e*x)+3//4*pi^(1/2)*c^-1*e^-1*erfi(log(c*(d+e*x))^(1/2)))
@test integrate(log(c*(d+e*x))^(1/2), x) == :(e^-1*log(c*(d+e*x))^(1/2)*(d+e*x)+-1//2*pi^(1/2)*c^-1*e^-1*erfi(log(c*(d+e*x))^(1/2)))
@test integrate(log(c*(d+e*x))^-1//2, x) == :(pi^(1/2)*c^-1*e^-1*erfi(log(c*(d+e*x))^(1/2)))
@test integrate(log(c*(d+e*x))^-3//2, x) == :(-1*e^-1*log(c*(d+e*x))^-1//2*(2d+2*e*x)+2*pi^(1/2)*c^-1*e^-1*erfi(log(c*(d+e*x))^(1/2)))
@test integrate(log(c*(d+e*x))^-5//2, x) == :(-1//3*e^-1*log(c*(d+e*x))^-3//2*(2d+2*e*x)+-1//3*e^-1*log(c*(d+e*x))^-1//2*(4d+4*e*x)+4//3*pi^(1/2)*c^-1*e^-1*erfi(log(c*(d+e*x))^(1/2)))
@test integrate(log(c*(d+e*x))^-7//2, x) == :(-1//5*e^-1*log(c*(d+e*x))^-5//2*(2d+2*e*x)+-1//15*e^-1*log(c*(d+e*x))^-3//2*(4d+4*e*x)+-1//15*e^-1*log(c*(d+e*x))^-1//2*(8d+8*e*x)+8//15*pi^(1/2)*c^-1*e^-1*erfi(log(c*(d+e*x))^(1/2)))
@test integrate(log(c*(d+e*x))^p, x) == :(c^-1*e^-1*(-1*log(c*(d+e*x)))^(-1p)*log(c*(d+e*x))^p*SpecialFunctions.gamma(1+p,-1*log(c*(d+e*x))))
@test integrate((a+b*log(c*(d+e*x)^n))^4, x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^4*(d+e*x)+24*x*b^4*n^4+-24*a*x*b^3*n^3+-24*b^4*e^-1*n^3*(d+e*x)*log(c*(d+e*x)^n)+-4*b*n*e^-1*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)+12*b^2*e^-1*n^2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x))
@test integrate((a+b*log(c*(d+e*x)^n))^3, x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)+-6*x*b^3*n^3+6*a*x*b^2*n^2+-3*b*n*e^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+6*b^3*e^-1*n^2*(d+e*x)*log(c*(d+e*x)^n))
@test integrate((a+b*log(c*(d+e*x)^n))^2, x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+2*x*b^2*n^2+-2*a*b*n*x+-2*n*b^2*e^-1*(d+e*x)*log(c*(d+e*x)^n))
@test integrate(a+b*log(c*(d+e*x)^n), x) == :(a*x+-1*b*n*x+b*e^-1*(d+e*x)*log(c*(d+e*x)^n))
@test integrate((a+b*log(c*(d+e*x)^n))^-1, x) == :(b^-1*e^-1*n^-1*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^-2, x) == :(-1*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-1*(d+e*x)+b^-2*e^-1*n^-2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^-3, x) == :(-1//2*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-2*(d+e*x)+-1//2*b^-2*e^-1*n^-2*(a+b*log(c*(d+e*x)^n))^-1*(d+e*x)+(1/2)*b^-3*e^-1*n^-3*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^5//2, x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^5//2*(d+e*x)+-5//2*b*n*e^-1*(a+b*log(c*(d+e*x)^n))^3//2*(d+e*x)+15//4*b^2*e^-1*n^2*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)+-15//8*pi^(1/2)*b^5//2*e^-1*n^5//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^3//2, x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^3//2*(d+e*x)+-3//2*b*n*e^-1*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)+3//4*pi^(1/2)*b^3//2*e^-1*n^3//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^(1/2), x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)+-1//2*pi^(1/2)*b^(1/2)*e^-1*n^(1/2)*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-1//2, x) == :(pi^(1/2)*b^-1//2*e^-1*n^-1//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-3//2, x) == :(-1*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-1//2*(2d+2*e*x)+2*pi^(1/2)*b^-3//2*e^-1*n^-3//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-5//2, x) == :(-1//3*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-3//2*(2d+2*e*x)+-1//3*b^-2*e^-1*n^-2*(a+b*log(c*(d+e*x)^n))^-1//2*(4d+4*e*x)+4//3*pi^(1/2)*b^-5//2*e^-1*n^-5//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-7//2, x) == :(-1//5*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-5//2*(2d+2*e*x)+-1//15*b^-3*e^-1*n^-3*(a+b*log(c*(d+e*x)^n))^-1//2*(8d+8*e*x)+-1//15*b^-2*e^-1*n^-2*(a+b*log(c*(d+e*x)^n))^-3//2*(4d+4*e*x)+8//15*pi^(1/2)*b^-7//2*e^-1*n^-7//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^p, x) == :(e^-1*(c*(d+e*x)^n)^(-1*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))^(-1p)*(a+b*log(c*(d+e*x)^n))^p*(d+e*x)*SpecialFunctions.gamma(1+p,-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))*exp(-1*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^(1/2)))^p, x) == :(2^(-1p)*c^-2*e^-1*(-1*b^-1*(a+b*log(c*(d+e*x)^(1/2))))^(-1p)*(a+b*log(c*(d+e*x)^(1/2)))^p*SpecialFunctions.gamma(1+p,-1*b^-1*(2a+2*b*log(c*(d+e*x)^(1/2))))*exp(-2*a*b^-1))
@test integrate((e+f*x)^(-1+p)*log(d*(e+f*x)^p)^-1, x) == :(d^-1*f^-1*p^-1*logintegral(d*(e+f*x)^p))
@test integrate((e*g+f*g*x)^(-1+p)*log(d*(e+f*x)^p)^-1, x) == :(d^-1*f^-1*p^-1*(g*(e+f*x))^(-1+p)*(e+f*x)^(1+-1p)*logintegral(d*(e+f*x)^p))
@test integrate((f+g*x)^4*(a+b*log(c*(d+e*x)^n)), x) == :(1//5*g^-1*(f+g*x)^5*(a+b*log(c*(d+e*x)^n))+-1//25*b*n*g^-1*(f+g*x)^5+-1//5*b*n*x*e^-4*(e*f+-1*d*g)^4+-1//5*b*n*e^-5*g^-1*(e*f+-1*d*g)^5*log(d+e*x)+-1//10*b*n*e^-3*g^-1*(f+g*x)^2*(e*f+-1*d*g)^3+-1//15*b*n*e^-2*g^-1*(f+g*x)^3*(e*f+-1*d*g)^2+-1//20*b*n*e^-1*g^-1*(f+g*x)^4*(e*f+-1*d*g))
@test integrate((f+g*x)^3*(a+b*log(c*(d+e*x)^n)), x) == :(1//4*g^-1*(f+g*x)^4*(a+b*log(c*(d+e*x)^n))+-1//16*b*n*g^-1*(f+g*x)^4+-1//4*b*n*x*e^-3*(e*f+-1*d*g)^3+-1//4*b*n*e^-4*g^-1*(e*f+-1*d*g)^4*log(d+e*x)+-1//8*b*n*e^-2*g^-1*(f+g*x)^2*(e*f+-1*d*g)^2+-1//12*b*n*e^-1*g^-1*(f+g*x)^3*(e*f+-1*d*g))
@test integrate((f+g*x)^2*(a+b*log(c*(d+e*x)^n)), x) == :(1//3*g^-1*(f+g*x)^3*(a+b*log(c*(d+e*x)^n))+-1//9*b*n*g^-1*(f+g*x)^3+-1//3*b*n*x*e^-2*(e*f+-1*d*g)^2+-1//3*b*n*e^-3*g^-1*(e*f+-1*d*g)^3*log(d+e*x)+-1//6*b*n*e^-1*g^-1*(f+g*x)^2*(e*f+-1*d*g))
@test integrate((a+b*log(c*(d+e*x)^n))*(f+g*x), x) == :((1/2)*g^-1*(f+g*x)^2*(a+b*log(c*(d+e*x)^n))+-1//4*b*n*g^-1*(f+g*x)^2+-1//2*b*n*x*e^-1*(e*f+-1*d*g)+-1//2*b*n*e^-2*g^-1*(e*f+-1*d*g)^2*log(d+e*x))
@test integrate(a+b*log(c*(d+e*x)^n), x) == :(a*x+-1*b*n*x+b*e^-1*(d+e*x)*log(c*(d+e*x)^n))
@test integrate((f+g*x)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(g^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+b*n*g^-1*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x)))
@test integrate((f+g*x)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(-1*g^-1*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n))+b*e*n*g^-1*(e*f+-1*d*g)^-1*log(d+e*x)+-1*b*e*n*g^-1*(e*f+-1*d*g)^-1*log(f+g*x))
@test integrate((f+g*x)^-3*(a+b*log(c*(d+e*x)^n)), x) == :(-1//2*g^-1*(f+g*x)^-2*(a+b*log(c*(d+e*x)^n))+(1/2)*b*e*n*g^-1*(f+g*x)^-1*(e*f+-1*d*g)^-1+(1/2)*b*n*e^2*g^-1*(e*f+-1*d*g)^-2*log(d+e*x)+-1//2*b*n*e^2*g^-1*(e*f+-1*d*g)^-2*log(f+g*x))
@test integrate((f+g*x)^-4*(a+b*log(c*(d+e*x)^n)), x) == :(-1//3*g^-1*(f+g*x)^-3*(a+b*log(c*(d+e*x)^n))+-1//3*b*n*e^3*g^-1*(e*f+-1*d*g)^-3*log(f+g*x)+1//3*b*n*e^2*g^-1*(f+g*x)^-1*(e*f+-1*d*g)^-2+1//3*b*n*e^3*g^-1*(e*f+-1*d*g)^-3*log(d+e*x)+1//6*b*e*n*g^-1*(f+g*x)^-2*(e*f+-1*d*g)^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))*log(d+e*x))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x), x) == :(e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)*(e*f+-1*d*g)+(1/2)*g*e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^2+2*x*b^2*e^-1*n^2*(e*f+-1*d*g)+1//4*g*b^2*e^-2*n^2*(d+e*x)^2+-2*a*b*n*x*e^-1*(e*f+-1*d*g)+-2*n*b^2*e^-2*(d+e*x)*(e*f+-1*d*g)*log(c*(d+e*x)^n)+-1//2*b*g*n*e^-2*(d+e*x)^2*(a+b*log(c*(d+e*x)^n)))
@test integrate((a+b*log(c*(d+e*x)^n))^2, x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+2*x*b^2*n^2+-2*a*b*n*x+-2*n*b^2*e^-1*(d+e*x)*log(c*(d+e*x)^n))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-1, x) == :(g^-1*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-2*b^2*g^-1*n^2*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+2*b*n*g^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x)))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-2, x) == :((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-1*(e*f+-1*d*g)^-1*(d+e*x)+-2*e*b^2*g^-1*n^2*(e*f+-1*d*g)^-1*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-2*b*e*n*g^-1*(e*f+-1*d*g)^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x)))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-3, x) == :(-1//2*g^-1*(a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-2+b^2*e^2*g^-1*n^2*(e*f+-1*d*g)^-2*Polylogarithms.polylog(2,-1*g^-1*(d+e*x)^-1*(e*f+-1*d*g))+b^2*e^2*g^-1*n^2*(e*f+-1*d*g)^-2*log(f+g*x)+-1*b*e*n*(f+g*x)^-1*(e*f+-1*d*g)^-2*(a+b*log(c*(d+e*x)^n))*(d+e*x)+-1*b*n*e^2*g^-1*(e*f+-1*d*g)^-2*(a+b*log(c*(d+e*x)^n))*log(1+g^-1*(d+e*x)^-1*(e*f+-1*d*g)))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-4, x) == :(-1//3*g^-1*(a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-3+b^2*e^3*g^-1*n^2*(e*f+-1*d*g)^-3*log(f+g*x)+-1//3*b^2*e^2*g^-1*n^2*(f+g*x)^-1*(e*f+-1*d*g)^-2+-1//3*b^2*e^3*g^-1*n^2*(e*f+-1*d*g)^-3*log(d+e*x)+2//3*b^2*e^3*g^-1*n^2*(e*f+-1*d*g)^-3*Polylogarithms.polylog(2,-1*g^-1*(d+e*x)^-1*(e*f+-1*d*g))+-2//3*b*n*e^2*(f+g*x)^-1*(e*f+-1*d*g)^-3*(a+b*log(c*(d+e*x)^n))*(d+e*x)+-2//3*b*n*e^3*g^-1*(e*f+-1*d*g)^-3*(a+b*log(c*(d+e*x)^n))*log(1+g^-1*(d+e*x)^-1*(e*f+-1*d*g))+1//3*b*e*n*g^-1*(f+g*x)^-2*(e*f+-1*d*g)^-1*(a+b*log(c*(d+e*x)^n)))
@test integrate((a+b*log(c*(d+e*x)^n))^3*(f+g*x)^3, x) == :(e^-4*(a+b*log(c*(d+e*x)^n))^3*(e*f+-1*d*g)^3*(d+e*x)+1//4*e^-4*g^3*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)^4+e^-4*g^2*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)^3*(e*f+-1*d*g)+-6*x*b^3*e^-3*n^3*(e*f+-1*d*g)^3+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*b^3*e^-3*n^2*(e*f+-1*d*g)^2*(d+e*x)*log(c*(d+e*x)^n)+-3//4*g*b^3*e^-3*n^3*(d+e*x)^2*(e*f+-1*d*g)+-1//3*b*n*e^-3*g^2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^3+2//9*b^2*e^-3*g^2*n^2*(d+e*x)^3*(a+b*log(c*(d+e*x)^n))+-3//2*b*g*n*e^-3*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^2*(e*f+-1*d*g)+3//2*g*b^2*e^-3*n^2*(d+e*x)^2*(a+b*log(c*(d+e*x)^n))*(e*f+-1*d*g))
@test integrate((a+b*log(c*(d+e*x)^n))^3*(f+g*x), x) == :(e^-2*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)*(e*f+-1*d*g)+(1/2)*g*e^-2*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)^2+-6*x*b^3*e^-1*n^3*(e*f+-1*d*g)+-3//8*g*b^3*e^-2*n^3*(d+e*x)^2+-3*b*n*e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)*(e*f+-1*d*g)+6*a*x*b^2*e^-1*n^2*(e*f+-1*d*g)+6*b^3*e^-2*n^2*(d+e*x)*(e*f+-1*d*g)*log(c*(d+e*x)^n)+-3//4*b*g*n*e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^2+3//4*g*b^2*e^-2*n^2*(d+e*x)^2*(a+b*log(c*(d+e*x)^n)))
@test integrate((a+b*log(c*(d+e*x)^n))^3, x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)+-6*x*b^3*n^3+6*a*x*b^2*n^2+-3*b*n*e^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+6*b^3*e^-1*n^2*(d+e*x)*log(c*(d+e*x)^n))
@test integrate((a+b*log(c*(d+e*x)^n))^3*(f+g*x)^-1, x) == :(g^-1*(a+b*log(c*(d+e*x)^n))^3*log(e*(e*f+-1*d*g)^-1*(f+g*x))+6*b^3*g^-1*n^3*Polylogarithms.polylog(4,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-6*b^2*g^-1*n^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+3*b*n*g^-1*(a+b*log(c*(d+e*x)^n))^2*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x)))
@test integrate((a+b*log(c*(d+e*x)^n))^3*(f+g*x)^-2, x) == :((a+b*log(c*(d+e*x)^n))^3*(f+g*x)^-1*(e*f+-1*d*g)^-1*(d+e*x)+6*e*b^3*g^-1*n^3*(e*f+-1*d*g)^-1*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-6*e*b^2*g^-1*n^2*(e*f+-1*d*g)^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-3*b*e*n*g^-1*(a+b*log(c*(d+e*x)^n))^2*(e*f+-1*d*g)^-1*log(e*(e*f+-1*d*g)^-1*(f+g*x)))
@test integrate((a+b*log(c*(d+e*x)^n))^3*(f+g*x)^-3, x) == :(-1//2*g^-1*(a+b*log(c*(d+e*x)^n))^3*(f+g*x)^-2+3*b^3*e^2*g^-1*n^3*(e*f+-1*d*g)^-2*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+3*b^3*e^2*g^-1*n^3*(e*f+-1*d*g)^-2*Polylogarithms.polylog(3,-1*g^-1*(d+e*x)^-1*(e*f+-1*d*g))+3*b^2*e^2*g^-1*n^2*(e*f+-1*d*g)^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^-1*(d+e*x)^-1*(e*f+-1*d*g))+3*b^2*e^2*g^-1*n^2*(e*f+-1*d*g)^-2*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-3//2*b*e*n*(a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-1*(e*f+-1*d*g)^-2*(d+e*x)+-3//2*b*n*e^2*g^-1*(a+b*log(c*(d+e*x)^n))^2*(e*f+-1*d*g)^-2*log(1+g^-1*(d+e*x)^-1*(e*f+-1*d*g)))
@test integrate((a+b*log(c*(d+e*x)^n))^3*(f+g*x)^-4, x) == :(-1//3*g^-1*(a+b*log(c*(d+e*x)^n))^3*(f+g*x)^-3+-1*b^3*e^3*g^-1*n^3*(e*f+-1*d*g)^-3*Polylogarithms.polylog(2,-1*g^-1*(d+e*x)^-1*(e*f+-1*d*g))+-1*b^3*e^3*g^-1*n^3*(e*f+-1*d*g)^-3*log(f+g*x)+2*b^3*e^3*g^-1*n^3*(e*f+-1*d*g)^-3*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+2*b^3*e^3*g^-1*n^3*(e*f+-1*d*g)^-3*Polylogarithms.polylog(3,-1*g^-1*(d+e*x)^-1*(e*f+-1*d*g))+b^2*e^2*n^2*(f+g*x)^-1*(e*f+-1*d*g)^-3*(a+b*log(c*(d+e*x)^n))*(d+e*x)+b^2*e^3*g^-1*n^2*(e*f+-1*d*g)^-3*(a+b*log(c*(d+e*x)^n))*log(1+g^-1*(d+e*x)^-1*(e*f+-1*d*g))+(1/2)*b*e*n*g^-1*(a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-2*(e*f+-1*d*g)^-1+-1*b*n*e^2*(a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-1*(e*f+-1*d*g)^-3*(d+e*x)+-1*b*n*e^3*g^-1*(a+b*log(c*(d+e*x)^n))^2*(e*f+-1*d*g)^-3*log(1+g^-1*(d+e*x)^-1*(e*f+-1*d*g))+2*b^2*e^3*g^-1*n^2*(e*f+-1*d*g)^-3*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^-1*(d+e*x)^-1*(e*f+-1*d*g))+2*b^2*e^3*g^-1*n^2*(e*f+-1*d*g)^-3*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x)))
@test integrate((a+b*log(c*(d+e*x)^n))^4*(f+g*x), x) == :(e^-2*(a+b*log(c*(d+e*x)^n))^4*(d+e*x)*(e*f+-1*d*g)+(1/2)*g*e^-2*(a+b*log(c*(d+e*x)^n))^4*(d+e*x)^2+24*x*b^4*e^-1*n^4*(e*f+-1*d*g)+3//4*g*b^4*e^-2*n^4*(d+e*x)^2+-1*b*g*n*e^-2*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)^2+-24*a*x*b^3*e^-1*n^3*(e*f+-1*d*g)+-24*b^4*e^-2*n^3*(d+e*x)*(e*f+-1*d*g)*log(c*(d+e*x)^n)+-4*b*n*e^-2*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)*(e*f+-1*d*g)+12*b^2*e^-2*n^2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)*(e*f+-1*d*g)+-3//2*g*b^3*e^-2*n^3*(d+e*x)^2*(a+b*log(c*(d+e*x)^n))+3//2*g*b^2*e^-2*n^2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^2)
@test integrate((a+b*log(c*(d+e*x)^n))^4, x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^4*(d+e*x)+24*x*b^4*n^4+-24*a*x*b^3*n^3+-24*b^4*e^-1*n^3*(d+e*x)*log(c*(d+e*x)^n)+-4*b*n*e^-1*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)+12*b^2*e^-1*n^2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x))
@test integrate((a+b*log(c*(d+e*x)^n))^4*(f+g*x)^-1, x) == :(g^-1*(a+b*log(c*(d+e*x)^n))^4*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-24*b^4*g^-1*n^4*Polylogarithms.polylog(5,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-12*b^2*g^-1*n^2*(a+b*log(c*(d+e*x)^n))^2*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+4*b*n*g^-1*(a+b*log(c*(d+e*x)^n))^3*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+24*b^3*g^-1*n^3*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(4,-1*g*(e*f+-1*d*g)^-1*(d+e*x)))
@test integrate((a+b*log(c*(d+e*x)^n))^4*(f+g*x)^-2, x) == :((a+b*log(c*(d+e*x)^n))^4*(f+g*x)^-1*(e*f+-1*d*g)^-1*(d+e*x)+-24*e*b^4*g^-1*n^4*(e*f+-1*d*g)^-1*Polylogarithms.polylog(4,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-12*e*b^2*g^-1*n^2*(a+b*log(c*(d+e*x)^n))^2*(e*f+-1*d*g)^-1*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-4*b*e*n*g^-1*(a+b*log(c*(d+e*x)^n))^3*(e*f+-1*d*g)^-1*log(e*(e*f+-1*d*g)^-1*(f+g*x))+24*e*b^3*g^-1*n^3*(e*f+-1*d*g)^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x)))
@test integrate(log(a+b*x), x) == :(-1x+b^-1*(a+b*x)*log(a+b*x))
@test integrate(log(a+b*x)^2, x) == :(2x+b^-1*log(a+b*x)^2*(a+b*x)+-1*b^-1*(2a+2*b*x)*log(a+b*x))
@test integrate(log(a+b*x)^3, x) == :(-6x+b^-1*log(a+b*x)^3*(a+b*x)+b^-1*(6a+6*b*x)*log(a+b*x)+-1*b^-1*log(a+b*x)^2*(3a+3*b*x))
@test integrate(log(a+b*x+c*x), x) == :(-1x+(b+c)^-1*(a+x*(b+c))*log(a+x*(b+c)))
@test integrate(log(a+b*x+c*x)^2, x) == :(2x+(b+c)^-1*log(a+x*(b+c))^2*(a+x*(b+c))+-1*(b+c)^-1*(2a+2*x*(b+c))*log(a+x*(b+c)))
@test integrate(log(a+b*x+c*x)^3, x) == :(-6x+(b+c)^-1*log(a+x*(b+c))^3*(a+x*(b+c))+(b+c)^-1*(6a+6*x*(b+c))*log(a+x*(b+c))+-1*(b+c)^-1*log(a+x*(b+c))^2*(3a+3*x*(b+c)))
@test integrate(log(c*(d+e*x)^n), x) == :(-1*n*x+e^-1*(d+e*x)*log(c*(d+e*x)^n))
@test integrate((f+g*x)^-1*log(-1*g*(e*f+-1*d*g)^-1*(d+e*x)), x) == :(-1*g^-1*Polylogarithms.polylog(2,e*(e*f+-1*d*g)^-1*(f+g*x)))
@test integrate(x^-1*(a+b*log(c*(c^-1+e*x))), x) == :(a*log(x)+-1*b*Polylogarithms.polylog(2,-1*c*e*x))
@test integrate(x^-1*log(3+e*x), x) == :(-1*Polylogarithms.polylog(2,-1//3*e*x)+log(3)*log(x))
@test integrate(x^-1*log(2+e*x), x) == :(-1*Polylogarithms.polylog(2,-1//2*e*x)+log(2)*log(x))
@test integrate(x^-1*log(1+e*x), x) == :(-1*Polylogarithms.polylog(2,-1*e*x))
@test integrate(x^-1*log(e*x), x) == :((1/2)*log(e*x)^2)
@test integrate(x^-1*log(-1+e*x), x) == :(log(e*x)*log(-1+e*x)+Polylogarithms.polylog(2,1+-1*e*x))
@test integrate(x^-1*log(-2+e*x), x) == :(log((1/2)*e*x)*log(-2+e*x)+Polylogarithms.polylog(2,1+-1//2*e*x))
@test integrate(x^-1*(a+b*log(3+e*x)), x) == :((a+b*log(3))*log(x)+-1*b*Polylogarithms.polylog(2,-1//3*e*x))
@test integrate(x^-1*(a+b*log(2+e*x)), x) == :((a+b*log(2))*log(x)+-1*b*Polylogarithms.polylog(2,-1//2*e*x))
@test integrate(x^-1*(a+b*log(1+e*x)), x) == :(a*log(x)+-1*b*Polylogarithms.polylog(2,-1*e*x))
@test integrate(x^-1*(a+b*log(e*x)), x) == :((1/2)*b^-1*(a+b*log(e*x))^2)
@test integrate(x^-1*(a+b*log(-1+e*x)), x) == :(b*Polylogarithms.polylog(2,1+-1*e*x)+(a+b*log(-1+e*x))*log(e*x))
@test integrate(x^-1*(a+b*log(-2+e*x)), x) == :(b*Polylogarithms.polylog(2,1+-1//2*e*x)+(a+b*log(-2+e*x))*log((1/2)*e*x))
@test integrate(x^2*log(c*(a+b*x)^n)^2, x) == :(1//3*x^3*log(c*(a+b*x)^n)^2+2//27*b^-3*n^2*(a+b*x)^3+2*x*a^2*b^-2*n^2+-2//9*n*b^-3*(a+b*x)^3*log(c*(a+b*x)^n)+-1//2*a*b^-3*n^2*(a+b*x)^2+-1//3*a^3*b^-3*n^2*log(a+b*x)^2+a*n*b^-3*(a+b*x)^2*log(c*(a+b*x)^n)+-2*n*a^2*b^-3*(a+b*x)*log(c*(a+b*x)^n)+2//3*n*a^3*b^-3*log(c*(a+b*x)^n)*log(a+b*x))
@test integrate(x^-4*log(c*(a+b*x)^n)^2, x) == :(-1//3*x^-3*log(c*(a+b*x)^n)^2+-1*a^-3*b^3*n^2*log(x)+-2//3*a^-3*b^3*n^2*Polylogarithms.polylog(2,a*(a+b*x)^-1)+-1//3*a^-2*b^2*n^2*x^-1+1//3*a^-3*b^3*n^2*log(a+b*x)+-1//3*b*n*a^-1*x^-2*log(c*(a+b*x)^n)+2//3*n*a^-3*b^3*log(c*(a+b*x)^n)*log(1+-1*a*(a+b*x)^-1)+2//3*n*a^-3*b^2*x^-1*(a+b*x)*log(c*(a+b*x)^n))
@test integrate(x^2*log(c*(a+b*x)^n)^3, x) == :(-2//27*b^-3*n^3*(a+b*x)^3+1//3*b^-3*(a+b*x)^3*log(c*(a+b*x)^n)^3+a^2*b^-3*log(c*(a+b*x)^n)^3*(a+b*x)+-1*a*b^-3*(a+b*x)^2*log(c*(a+b*x)^n)^3+-6*x*a^2*b^-2*n^3+-1//3*n*b^-3*(a+b*x)^3*log(c*(a+b*x)^n)^2+2//9*b^-3*n^2*(a+b*x)^3*log(c*(a+b*x)^n)+3//4*a*b^-3*n^3*(a+b*x)^2+-3*n*a^2*b^-3*log(c*(a+b*x)^n)^2*(a+b*x)+6*a^2*b^-3*n^2*(a+b*x)*log(c*(a+b*x)^n)+-3//2*a*b^-3*n^2*(a+b*x)^2*log(c*(a+b*x)^n)+3//2*a*n*b^-3*(a+b*x)^2*log(c*(a+b*x)^n)^2)
@test integrate((a+b*log(c*(d+e*x)^n))^-1*(f+g*x)^3, x) == :(b^-1*e^-4*g^3*n^-1*(c*(d+e*x)^n)^(-4*n^-1)*(d+e*x)^4*exp(-4*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(4a+4*b*log(c*(d+e*x)^n)))+b^-1*e^-4*n^-1*(c*(d+e*x)^n)^(-1*n^-1)*(e*f+-1*d*g)^3*(d+e*x)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))+3*g*b^-1*e^-4*n^-1*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*(e*f+-1*d*g)^2*exp(-2*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(2a+2*b*log(c*(d+e*x)^n)))+3*b^-1*e^-4*g^2*n^-1*(c*(d+e*x)^n)^(-3*n^-1)*(d+e*x)^3*(e*f+-1*d*g)*exp(-3*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(3a+3*b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^-1*(f+g*x)^2, x) == :(b^-1*e^-3*g^2*n^-1*(c*(d+e*x)^n)^(-3*n^-1)*(d+e*x)^3*exp(-3*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(3a+3*b*log(c*(d+e*x)^n)))+b^-1*e^-3*n^-1*(c*(d+e*x)^n)^(-1*n^-1)*(e*f+-1*d*g)^2*(d+e*x)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))+2*g*b^-1*e^-3*n^-1*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*(e*f+-1*d*g)*exp(-2*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(2a+2*b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^-1*(f+g*x), x) == :(g*b^-1*e^-2*n^-1*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*exp(-2*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(2a+2*b*log(c*(d+e*x)^n)))+b^-1*e^-2*n^-1*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*(e*f+-1*d*g)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^-1, x) == :(b^-1*e^-1*n^-1*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^-2*(f+g*x)^3, x) == :(-1*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-1*(f+g*x)^3*(d+e*x)+b^-2*e^-4*n^-2*(c*(d+e*x)^n)^(-1*n^-1)*(e*f+-1*d*g)^3*(d+e*x)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))+4*b^-2*e^-4*g^3*n^-2*(c*(d+e*x)^n)^(-4*n^-1)*(d+e*x)^4*exp(-4*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(4a+4*b*log(c*(d+e*x)^n)))+6*g*b^-2*e^-4*n^-2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*(e*f+-1*d*g)^2*exp(-2*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(2a+2*b*log(c*(d+e*x)^n)))+9*b^-2*e^-4*g^2*n^-2*(c*(d+e*x)^n)^(-3*n^-1)*(d+e*x)^3*(e*f+-1*d*g)*exp(-3*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(3a+3*b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^-2*(f+g*x)^2, x) == :(-1*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-1*(f+g*x)^2*(d+e*x)+b^-2*e^-3*n^-2*(c*(d+e*x)^n)^(-1*n^-1)*(e*f+-1*d*g)^2*(d+e*x)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))+3*b^-2*e^-3*g^2*n^-2*(c*(d+e*x)^n)^(-3*n^-1)*(d+e*x)^3*exp(-3*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(3a+3*b*log(c*(d+e*x)^n)))+4*g*b^-2*e^-3*n^-2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*(e*f+-1*d*g)*exp(-2*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(2a+2*b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^-2*(f+g*x), x) == :(-1*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-1*(d+e*x)*(f+g*x)+b^-2*e^-2*n^-2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*(e*f+-1*d*g)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))+2*g*b^-2*e^-2*n^-2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*exp(-2*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(2a+2*b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^-2, x) == :(-1*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-1*(d+e*x)+b^-2*e^-1*n^-2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^-3*(f+g*x)^2, x) == :(-1//2*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-2*(f+g*x)^2*(d+e*x)+-1//2*b^-2*e^-1*n^-2*(a+b*log(c*(d+e*x)^n))^-1*(f+g*x)^2*(3d+3*e*x)+b^-2*e^-2*n^-2*(a+b*log(c*(d+e*x)^n))^-1*(d+e*x)*(f+g*x)*(e*f+-1*d*g)+(1/2)*b^-3*e^-3*n^-3*(c*(d+e*x)^n)^(-1*n^-1)*(e*f+-1*d*g)^2*(d+e*x)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))+9//2*b^-3*e^-3*g^2*n^-3*(c*(d+e*x)^n)^(-3*n^-1)*(d+e*x)^3*exp(-3*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(3a+3*b*log(c*(d+e*x)^n)))+4*g*b^-3*e^-3*n^-3*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*(e*f+-1*d*g)*exp(-2*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(2a+2*b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^-3*(f+g*x), x) == :((1/2)*b^-2*e^-2*n^-2*(a+b*log(c*(d+e*x)^n))^-1*(d+e*x)*(e*f+-1*d*g)+-1*b^-2*e^-1*n^-2*(a+b*log(c*(d+e*x)^n))^-1*(d+e*x)*(f+g*x)+-1//2*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-2*(d+e*x)*(f+g*x)+(1/2)*b^-3*e^-2*n^-3*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*(e*f+-1*d*g)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))+2*g*b^-3*e^-2*n^-3*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*exp(-2*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(2a+2*b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^-3, x) == :(-1//2*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-2*(d+e*x)+-1//2*b^-2*e^-1*n^-2*(a+b*log(c*(d+e*x)^n))^-1*(d+e*x)+(1/2)*b^-3*e^-1*n^-3*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*exp(-1*a*b^-1*n^-1)*expintegralei(b^-1*n^-1*(a+b*log(c*(d+e*x)^n))))
@test integrate((a+b*log(c*(d+e*x)^n))^(1/2)*(f+g*x)^2, x) == :(e^-3*(a+b*log(c*(d+e*x)^n))^(1/2)*(e*f+-1*d*g)^2*(d+e*x)+1//3*e^-3*g^2*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)^3+g*e^-3*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)^2*(e*f+-1*d*g)+-1//2*pi^(1/2)*b^(1/2)*e^-3*n^(1/2)*(c*(d+e*x)^n)^(-1*n^-1)*(e*f+-1*d*g)^2*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1)+-1//18*3^(1/2)*pi^(1/2)*b^(1/2)*e^-3*g^2*n^(1/2)*(c*(d+e*x)^n)^(-3*n^-1)*(d+e*x)^3*erfi(3^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-3*a*b^-1*n^-1)+-1//4*g*2^(1/2)*pi^(1/2)*b^(1/2)*e^-3*n^(1/2)*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*(e*f+-1*d*g)*erfi(2^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^(1/2)*(f+g*x), x) == :(e^-2*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)*(e*f+-1*d*g)+(1/2)*g*e^-2*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)^2+-1//2*pi^(1/2)*b^(1/2)*e^-2*n^(1/2)*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*(e*f+-1*d*g)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1)+-1//8*g*2^(1/2)*pi^(1/2)*b^(1/2)*e^-2*n^(1/2)*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*erfi(2^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^(1/2), x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)+-1//2*pi^(1/2)*b^(1/2)*e^-1*n^(1/2)*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^3//2*(f+g*x)^2, x) == :(e^-3*(a+b*log(c*(d+e*x)^n))^3//2*(e*f+-1*d*g)^2*(d+e*x)+1//3*e^-3*g^2*(a+b*log(c*(d+e*x)^n))^3//2*(d+e*x)^3+g*e^-3*(a+b*log(c*(d+e*x)^n))^3//2*(d+e*x)^2*(e*f+-1*d*g)+-3//2*b*n*e^-3*(a+b*log(c*(d+e*x)^n))^(1/2)*(e*f+-1*d*g)^2*(d+e*x)+-1//6*b*n*e^-3*g^2*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)^3+-3//4*b*g*n*e^-3*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)^2*(e*f+-1*d*g)+3//4*pi^(1/2)*b^3//2*e^-3*n^3//2*(c*(d+e*x)^n)^(-1*n^-1)*(e*f+-1*d*g)^2*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1)+1//36*3^(1/2)*pi^(1/2)*b^3//2*e^-3*g^2*n^3//2*(c*(d+e*x)^n)^(-3*n^-1)*(d+e*x)^3*erfi(3^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-3*a*b^-1*n^-1)+3//16*g*2^(1/2)*pi^(1/2)*b^3//2*e^-3*n^3//2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*(e*f+-1*d*g)*erfi(2^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^3//2*(f+g*x), x) == :(e^-2*(a+b*log(c*(d+e*x)^n))^3//2*(d+e*x)*(e*f+-1*d*g)+(1/2)*g*e^-2*(a+b*log(c*(d+e*x)^n))^3//2*(d+e*x)^2+-3//2*b*n*e^-2*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)*(e*f+-1*d*g)+-3//8*b*g*n*e^-2*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)^2+3//4*pi^(1/2)*b^3//2*e^-2*n^3//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*(e*f+-1*d*g)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1)+3//32*g*2^(1/2)*pi^(1/2)*b^3//2*e^-2*n^3//2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*erfi(2^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^3//2, x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^3//2*(d+e*x)+-3//2*b*n*e^-1*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)+3//4*pi^(1/2)*b^3//2*e^-1*n^3//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^5//2*(f+g*x)^2, x) == :(e^-3*(a+b*log(c*(d+e*x)^n))^5//2*(e*f+-1*d*g)^2*(d+e*x)+1//3*e^-3*g^2*(a+b*log(c*(d+e*x)^n))^5//2*(d+e*x)^3+g*e^-3*(a+b*log(c*(d+e*x)^n))^5//2*(d+e*x)^2*(e*f+-1*d*g)+-5//2*b*n*e^-3*(a+b*log(c*(d+e*x)^n))^3//2*(e*f+-1*d*g)^2*(d+e*x)+-5//18*b*n*e^-3*g^2*(a+b*log(c*(d+e*x)^n))^3//2*(d+e*x)^3+5//36*b^2*e^-3*g^2*n^2*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)^3+15//4*b^2*e^-3*n^2*(a+b*log(c*(d+e*x)^n))^(1/2)*(e*f+-1*d*g)^2*(d+e*x)+-5//4*b*g*n*e^-3*(a+b*log(c*(d+e*x)^n))^3//2*(d+e*x)^2*(e*f+-1*d*g)+15//16*g*b^2*e^-3*n^2*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)^2*(e*f+-1*d*g)+-15//8*pi^(1/2)*b^5//2*e^-3*n^5//2*(c*(d+e*x)^n)^(-1*n^-1)*(e*f+-1*d*g)^2*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1)+-5//216*3^(1/2)*pi^(1/2)*b^5//2*e^-3*g^2*n^5//2*(c*(d+e*x)^n)^(-3*n^-1)*(d+e*x)^3*erfi(3^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-3*a*b^-1*n^-1)+-15//64*g*2^(1/2)*pi^(1/2)*b^5//2*e^-3*n^5//2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*(e*f+-1*d*g)*erfi(2^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^5//2*(f+g*x), x) == :(e^-2*(a+b*log(c*(d+e*x)^n))^5//2*(d+e*x)*(e*f+-1*d*g)+(1/2)*g*e^-2*(a+b*log(c*(d+e*x)^n))^5//2*(d+e*x)^2+-5//2*b*n*e^-2*(a+b*log(c*(d+e*x)^n))^3//2*(d+e*x)*(e*f+-1*d*g)+-5//8*b*g*n*e^-2*(a+b*log(c*(d+e*x)^n))^3//2*(d+e*x)^2+15//4*b^2*e^-2*n^2*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)*(e*f+-1*d*g)+15//32*g*b^2*e^-2*n^2*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)^2+-15//8*pi^(1/2)*b^5//2*e^-2*n^5//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*(e*f+-1*d*g)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1)+-15//128*g*2^(1/2)*pi^(1/2)*b^5//2*e^-2*n^5//2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*erfi(2^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^5//2, x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^5//2*(d+e*x)+-5//2*b*n*e^-1*(a+b*log(c*(d+e*x)^n))^3//2*(d+e*x)+15//4*b^2*e^-1*n^2*(a+b*log(c*(d+e*x)^n))^(1/2)*(d+e*x)+-15//8*pi^(1/2)*b^5//2*e^-1*n^5//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-1//2*(f+g*x)^3, x) == :(pi^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1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-1//2*(f+g*x), x) == :(pi^(1/2)*b^-1//2*e^-2*n^-1//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*(e*f+-1*d*g)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1)+(1/2)*g*2^(1/2)*pi^(1/2)*b^-1//2*e^-2*n^-1//2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*erfi(2^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-1//2, x) == :(pi^(1/2)*b^-1//2*e^-1*n^-1//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-3//2*(f+g*x)^3, x) == :(-1*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-1//2*(f+g*x)^3*(2d+2*e*x)+2*pi^(1/2)*b^-3//2*e^-4*n^-3//2*(c*(d+e*x)^n)^(-1*n^-1)*(e*f+-1*d*g)^3*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1)+4*pi^(1/2)*b^-3//2*e^-4*g^3*n^-3//2*(c*(d+e*x)^n)^(-4*n^-1)*(d+e*x)^4*erfi(2*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-4*a*b^-1*n^-1)+6*g*2^(1/2)*pi^(1/2)*b^-3//2*e^-4*n^-3//2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*(e*f+-1*d*g)^2*erfi(2^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1)+6*3^(1/2)*pi^(1/2)*b^-3//2*e^-4*g^2*n^-3//2*(c*(d+e*x)^n)^(-3*n^-1)*(d+e*x)^3*(e*f+-1*d*g)*erfi(3^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-3*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-3//2*(f+g*x)^2, x) == :(-1*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-1//2*(f+g*x)^2*(2d+2*e*x)+2*pi^(1/2)*b^-3//2*e^-3*n^-3//2*(c*(d+e*x)^n)^(-1*n^-1)*(e*f+-1*d*g)^2*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1)+2*3^(1/2)*pi^(1/2)*b^-3//2*e^-3*g^2*n^-3//2*(c*(d+e*x)^n)^(-3*n^-1)*(d+e*x)^3*erfi(3^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-3*a*b^-1*n^-1)+4*g*2^(1/2)*pi^(1/2)*b^-3//2*e^-3*n^-3//2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*(e*f+-1*d*g)*erfi(2^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-3//2*(f+g*x), x) == :(-1*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-1//2*(f+g*x)*(2d+2*e*x)+pi^(1/2)*b^-3//2*e^-2*n^-3//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*(-2*d*g+2*e*f)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1)+2*g*2^(1/2)*pi^(1/2)*b^-3//2*e^-2*n^-3//2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*erfi(2^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-3//2, x) == :(-1*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-1//2*(2d+2*e*x)+2*pi^(1/2)*b^-3//2*e^-1*n^-3//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-5//2*(f+g*x)^3, x) == :(-1//3*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-3//2*(f+g*x)^3*(2d+2*e*x)+-1//3*b^-2*e^-1*n^-2*(a+b*log(c*(d+e*x)^n))^-1//2*(f+g*x)^3*(16d+16*e*x)+b^-2*e^-2*n^-2*(a+b*log(c*(d+e*x)^n))^-1//2*(f+g*x)^2*(d+e*x)*(-4*d*g+4*e*f)+4//3*pi^(1/2)*b^-5//2*e^-4*n^-5//2*(c*(d+e*x)^n)^(-1*n^-1)*(e*f+-1*d*g)^3*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1)+32//3*pi^(1/2)*b^-5//2*e^-4*g^3*n^-5//2*(c*(d+e*x)^n)^(-4*n^-1)*(d+e*x)^4*erfi(2*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-4*a*b^-1*n^-1)+8*g*2^(1/2)*pi^(1/2)*b^-5//2*e^-4*n^-5//2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*(e*f+-1*d*g)^2*erfi(2^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1)+12*3^(1/2)*pi^(1/2)*b^-5//2*e^-4*g^2*n^-5//2*(c*(d+e*x)^n)^(-3*n^-1)*(d+e*x)^3*(e*f+-1*d*g)*erfi(3^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-3*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-5//2*(f+g*x)^2, x) == :(-1*b^-2*e^-1*n^-2*(a+b*log(c*(d+e*x)^n))^-1//2*(f+g*x)^2*(4d+4*e*x)+-1//3*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-3//2*(f+g*x)^2*(2d+2*e*x)+1//3*b^-2*e^-2*n^-2*(a+b*log(c*(d+e*x)^n))^-1//2*(d+e*x)*(f+g*x)*(-8*d*g+8*e*f)+4//3*pi^(1/2)*b^-5//2*e^-3*n^-5//2*(c*(d+e*x)^n)^(-1*n^-1)*(e*f+-1*d*g)^2*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1)+4*3^(1/2)*pi^(1/2)*b^-5//2*e^-3*g^2*n^-5//2*(c*(d+e*x)^n)^(-3*n^-1)*(d+e*x)^3*erfi(3^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-3*a*b^-1*n^-1)+16//3*g*2^(1/2)*pi^(1/2)*b^-5//2*e^-3*n^-5//2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*(e*f+-1*d*g)*erfi(2^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-5//2*(f+g*x), x) == :(-1//3*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-3//2*(f+g*x)*(2d+2*e*x)+-1//3*b^-2*e^-1*n^-2*(a+b*log(c*(d+e*x)^n))^-1//2*(f+g*x)*(8d+8*e*x)+1//3*b^-2*e^-2*n^-2*(a+b*log(c*(d+e*x)^n))^-1//2*(d+e*x)*(-4*d*g+4*e*f)+1//3*pi^(1/2)*b^-5//2*e^-2*n^-5//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*(-4*d*g+4*e*f)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1)+8//3*g*2^(1/2)*pi^(1/2)*b^-5//2*e^-2*n^-5//2*(c*(d+e*x)^n)^(-2*n^-1)*(d+e*x)^2*erfi(2^(1/2)*b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^-5//2, x) == :(-1//3*b^-1*e^-1*n^-1*(a+b*log(c*(d+e*x)^n))^-3//2*(2d+2*e*x)+-1//3*b^-2*e^-1*n^-2*(a+b*log(c*(d+e*x)^n))^-1//2*(4d+4*e*x)+4//3*pi^(1/2)*b^-5//2*e^-1*n^-5//2*(c*(d+e*x)^n)^(-1*n^-1)*(d+e*x)*erfi(b^-1//2*n^-1//2*(a+b*log(c*(d+e*x)^n))^(1/2))*exp(-1*a*b^-1*n^-1))
@test integrate((f+g*x)^3//2*(a+b*log(c*(d+e*x)^n)), x) == :(2//5*g^-1*(f+g*x)^5//2*(a+b*log(c*(d+e*x)^n))+-4//25*b*n*g^-1*(f+g*x)^5//2+-4//5*b*n*e^-2*g^-1*(f+g*x)^(1/2)*(e*f+-1*d*g)^2+-4//15*b*n*e^-1*g^-1*(f+g*x)^3//2*(e*f+-1*d*g)+4//5*b*n*e^-5//2*g^-1*(e*f+-1*d*g)^5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2))
@test integrate((f+g*x)^(1/2)*(a+b*log(c*(d+e*x)^n)), x) == :(2//3*g^-1*(f+g*x)^3//2*(a+b*log(c*(d+e*x)^n))+-4//9*b*n*g^-1*(f+g*x)^3//2+-4//3*b*n*e^-1*g^-1*(f+g*x)^(1/2)*(e*f+-1*d*g)+4//3*b*n*e^-3//2*g^-1*(e*f+-1*d*g)^3//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2))
@test integrate((f+g*x)^-1//2*(a+b*log(c*(d+e*x)^n)), x) == :(2*g^-1*(f+g*x)^(1/2)*(a+b*log(c*(d+e*x)^n))+-4*b*n*g^-1*(f+g*x)^(1/2)+4*b*n*e^-1//2*g^-1*(e*f+-1*d*g)^(1/2)*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2))
@test integrate((f+g*x)^-3//2*(a+b*log(c*(d+e*x)^n)), x) == :(-1*g^-1*(f+g*x)^-1//2*(2a+2*b*log(c*(d+e*x)^n))+-4*b*n*e^(1/2)*g^-1*(e*f+-1*d*g)^-1//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2))
@test integrate((f+g*x)^-5//2*(a+b*log(c*(d+e*x)^n)), x) == :(-1//3*g^-1*(f+g*x)^-3//2*(2a+2*b*log(c*(d+e*x)^n))+-4//3*b*n*e^3//2*g^-1*(e*f+-1*d*g)^-3//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+4//3*b*e*n*g^-1*(f+g*x)^-1//2*(e*f+-1*d*g)^-1)
@test integrate((f+g*x)^-7//2*(a+b*log(c*(d+e*x)^n)), x) == :(-1//5*g^-1*(f+g*x)^-5//2*(2a+2*b*log(c*(d+e*x)^n))+-4//5*b*n*e^5//2*g^-1*(e*f+-1*d*g)^-5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+4//5*b*n*e^2*g^-1*(f+g*x)^-1//2*(e*f+-1*d*g)^-2+4//15*b*e*n*g^-1*(f+g*x)^-3//2*(e*f+-1*d*g)^-1)
@test integrate((f+g*x)^-9//2*(a+b*log(c*(d+e*x)^n)), x) == :(-1//7*g^-1*(f+g*x)^-7//2*(2a+2*b*log(c*(d+e*x)^n))+-4//7*b*n*e^7//2*g^-1*(e*f+-1*d*g)^-7//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+4//7*b*n*e^3*g^-1*(f+g*x)^-1//2*(e*f+-1*d*g)^-3+4//21*b*n*e^2*g^-1*(f+g*x)^-3//2*(e*f+-1*d*g)^-2+4//35*b*e*n*g^-1*(f+g*x)^-5//2*(e*f+-1*d*g)^-1)
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^3//2, x) == :(2//5*g^-1*(a+b*log(c*(d+e*x)^n))^2*(f+g*x)^5//2+16//125*b^2*g^-1*n^2*(f+g*x)^5//2+-8//25*b*n*g^-1*(f+g*x)^5//2*(a+b*log(c*(d+e*x)^n))+-368//75*b^2*e^-5//2*g^-1*n^2*(e*f+-1*d*g)^5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+-8//5*b^2*e^-5//2*g^-1*n^2*(e*f+-1*d*g)^5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^2+8//5*b^2*e^-5//2*g^-1*n^2*(e*f+-1*d*g)^5//2*Polylogarithms.polylog(2,1+-2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1)+128//225*b^2*e^-1*g^-1*n^2*(f+g*x)^3//2*(e*f+-1*d*g)+368//75*b^2*e^-2*g^-1*n^2*(f+g*x)^(1/2)*(e*f+-1*d*g)^2+-8//5*b*n*e^-2*g^-1*(f+g*x)^(1/2)*(e*f+-1*d*g)^2*(a+b*log(c*(d+e*x)^n))+-8//15*b*n*e^-1*g^-1*(f+g*x)^3//2*(a+b*log(c*(d+e*x)^n))*(e*f+-1*d*g)+8//5*b*n*e^-5//2*g^-1*(e*f+-1*d*g)^5//2*(a+b*log(c*(d+e*x)^n))*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+16//5*b^2*e^-5//2*g^-1*n^2*(e*f+-1*d*g)^5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)*log(2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^(1/2), x) == :(2//3*g^-1*(a+b*log(c*(d+e*x)^n))^2*(f+g*x)^3//2+16//27*b^2*g^-1*n^2*(f+g*x)^3//2+-8//9*b*n*g^-1*(f+g*x)^3//2*(a+b*log(c*(d+e*x)^n))+-64//9*b^2*e^-3//2*g^-1*n^2*(e*f+-1*d*g)^3//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+-8//3*b^2*e^-3//2*g^-1*n^2*(e*f+-1*d*g)^3//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^2+8//3*b^2*e^-3//2*g^-1*n^2*(e*f+-1*d*g)^3//2*Polylogarithms.polylog(2,1+-2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1)+64//9*b^2*e^-1*g^-1*n^2*(f+g*x)^(1/2)*(e*f+-1*d*g)+-8//3*b*n*e^-1*g^-1*(f+g*x)^(1/2)*(a+b*log(c*(d+e*x)^n))*(e*f+-1*d*g)+8//3*b*n*e^-3//2*g^-1*(e*f+-1*d*g)^3//2*(a+b*log(c*(d+e*x)^n))*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+16//3*b^2*e^-3//2*g^-1*n^2*(e*f+-1*d*g)^3//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)*log(2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+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*(e*f+-1*d*g)^-1//2)*log(2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1)+-8*b*n*e^(1/2)*g^-1*(e*f+-1*d*g)^-1//2*(a+b*log(c*(d+e*x)^n))*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-5//2, x) == :(-2//3*g^-1*(a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-3//2+-8//3*b^2*e^3//2*g^-1*n^2*(e*f+-1*d*g)^-3//2*Polylogarithms.polylog(2,1+-2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1)+8//3*b^2*e^3//2*g^-1*n^2*(e*f+-1*d*g)^-3//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^2+16//3*b^2*e^3//2*g^-1*n^2*(e*f+-1*d*g)^-3//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+-16//3*b^2*e^3//2*g^-1*n^2*(e*f+-1*d*g)^-3//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)*log(2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1)+-8//3*b*n*e^3//2*g^-1*(e*f+-1*d*g)^-3//2*(a+b*log(c*(d+e*x)^n))*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+8//3*b*e*n*g^-1*(f+g*x)^-1//2*(e*f+-1*d*g)^-1*(a+b*log(c*(d+e*x)^n)))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-7//2, x) == :(-2//5*g^-1*(a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-5//2+-16//15*b^2*e^2*g^-1*n^2*(f+g*x)^-1//2*(e*f+-1*d*g)^-2+-8//5*b^2*e^5//2*g^-1*n^2*(e*f+-1*d*g)^-5//2*Polylogarithms.polylog(2,1+-2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1)+8//5*b^2*e^5//2*g^-1*n^2*(e*f+-1*d*g)^-5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^2+64//15*b^2*e^5//2*g^-1*n^2*(e*f+-1*d*g)^-5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+-16//5*b^2*e^5//2*g^-1*n^2*(e*f+-1*d*g)^-5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)*log(2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1)+-8//5*b*n*e^5//2*g^-1*(e*f+-1*d*g)^-5//2*(a+b*log(c*(d+e*x)^n))*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+8//5*b*n*e^2*g^-1*(f+g*x)^-1//2*(e*f+-1*d*g)^-2*(a+b*log(c*(d+e*x)^n))+8//15*b*e*n*g^-1*(f+g*x)^-3//2*(e*f+-1*d*g)^-1*(a+b*log(c*(d+e*x)^n)))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-9//2, x) == :(-2//7*g^-1*(a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-7//2+-128//105*b^2*e^3*g^-1*n^2*(f+g*x)^-1//2*(e*f+-1*d*g)^-3+-16//105*b^2*e^2*g^-1*n^2*(f+g*x)^-3//2*(e*f+-1*d*g)^-2+-8//7*b^2*e^7//2*g^-1*n^2*(e*f+-1*d*g)^-7//2*Polylogarithms.polylog(2,1+-2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1)+8//7*b^2*e^7//2*g^-1*n^2*(e*f+-1*d*g)^-7//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^2+368//105*b^2*e^7//2*g^-1*n^2*(e*f+-1*d*g)^-7//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+-16//7*b^2*e^7//2*g^-1*n^2*(e*f+-1*d*g)^-7//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)*log(2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1)+-8//7*b*n*e^7//2*g^-1*(e*f+-1*d*g)^-7//2*(a+b*log(c*(d+e*x)^n))*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+8//7*b*n*e^3*g^-1*(f+g*x)^-1//2*(e*f+-1*d*g)^-3*(a+b*log(c*(d+e*x)^n))+8//21*b*n*e^2*g^-1*(f+g*x)^-3//2*(e*f+-1*d*g)^-2*(a+b*log(c*(d+e*x)^n))+8//35*b*e*n*g^-1*(f+g*x)^-5//2*(e*f+-1*d*g)^-1*(a+b*log(c*(d+e*x)^n)))
@test integrate((a+b*log(c*(d+e*x)^n))^n*(f+g*x)^3, x) == :(e^-4*(c*(d+e*x)^n)^(-1*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))^(-1n)*(a+b*log(c*(d+e*x)^n))^n*(e*f+-1*d*g)^3*(d+e*x)*SpecialFunctions.gamma(1+n,-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))*exp(-1*a*b^-1*n^-1)+4^(-1+-1n)*e^-4*g^3*(c*(d+e*x)^n)^(-4*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))^(-1n)*(a+b*log(c*(d+e*x)^n))^n*(d+e*x)^4*SpecialFunctions.gamma(1+n,-1*b^-1*n^-1*(4a+4*b*log(c*(d+e*x)^n)))*exp(-4*a*b^-1*n^-1)+3^(-1n)*e^-4*g^2*(c*(d+e*x)^n)^(-3*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))^(-1n)*(a+b*log(c*(d+e*x)^n))^n*(d+e*x)^3*(e*f+-1*d*g)*SpecialFunctions.gamma(1+n,-1*b^-1*n^-1*(3a+3*b*log(c*(d+e*x)^n)))*exp(-3*a*b^-1*n^-1)+3*g*2^(-1+-1n)*e^-4*(c*(d+e*x)^n)^(-2*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))^(-1n)*(a+b*log(c*(d+e*x)^n))^n*(d+e*x)^2*(e*f+-1*d*g)^2*SpecialFunctions.gamma(1+n,-1*b^-1*n^-1*(2a+2*b*log(c*(d+e*x)^n)))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^n*(f+g*x)^2, x) == :(e^-3*(c*(d+e*x)^n)^(-1*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))^(-1n)*(a+b*log(c*(d+e*x)^n))^n*(e*f+-1*d*g)^2*(d+e*x)*SpecialFunctions.gamma(1+n,-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))*exp(-1*a*b^-1*n^-1)+3^(-1+-1n)*e^-3*g^2*(c*(d+e*x)^n)^(-3*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))^(-1n)*(a+b*log(c*(d+e*x)^n))^n*(d+e*x)^3*SpecialFunctions.gamma(1+n,-1*b^-1*n^-1*(3a+3*b*log(c*(d+e*x)^n)))*exp(-3*a*b^-1*n^-1)+g*2^(-1n)*e^-3*(c*(d+e*x)^n)^(-2*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))^(-1n)*(a+b*log(c*(d+e*x)^n))^n*(d+e*x)^2*(e*f+-1*d*g)*SpecialFunctions.gamma(1+n,-1*b^-1*n^-1*(2a+2*b*log(c*(d+e*x)^n)))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^n*(f+g*x), x) == :(e^-2*(c*(d+e*x)^n)^(-1*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))^(-1n)*(a+b*log(c*(d+e*x)^n))^n*(d+e*x)*(e*f+-1*d*g)*SpecialFunctions.gamma(1+n,-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))*exp(-1*a*b^-1*n^-1)+g*2^(-1+-1n)*e^-2*(c*(d+e*x)^n)^(-2*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))^(-1n)*(a+b*log(c*(d+e*x)^n))^n*(d+e*x)^2*SpecialFunctions.gamma(1+n,-1*b^-1*n^-1*(2a+2*b*log(c*(d+e*x)^n)))*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*(d+e*x)^n))^n, x) == :(e^-1*(c*(d+e*x)^n)^(-1*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))^(-1n)*(a+b*log(c*(d+e*x)^n))^n*(d+e*x)*SpecialFunctions.gamma(1+n,-1*b^-1*n^-1*(a+b*log(c*(d+e*x)^n)))*exp(-1*a*b^-1*n^-1))
@test integrate((h+i*x)^4*(d*e+d*f*x)^-1*(a+b*log(c*(e+f*x))), x) == :(d^-1*f^-5*(f*h+-1*e*i)^4*(a+b*log(c*(e+f*x)))*log(e+f*x)+-1//2*b*d^-1*f^-5*(f*h+-1*e*i)^4*log(e+f*x)^2+-1//16*b*d^-1*f^-5*i^4*(e+f*x)^4+1//4*d^-1*f^-5*i^4*(e+f*x)^4*(a+b*log(c*(e+f*x)))+-4*b*i*x*d^-1*f^-4*(f*h+-1*e*i)^3+3*d^-1*f^-5*i^2*(e+f*x)^2*(f*h+-1*e*i)^2*(a+b*log(c*(e+f*x)))+4*i*d^-1*f^-5*(f*h+-1*e*i)^3*(a+b*log(c*(e+f*x)))*(e+f*x)+-4//9*b*d^-1*f^-5*i^3*(e+f*x)^3*(f*h+-1*e*i)+-3//2*b*d^-1*f^-5*i^2*(e+f*x)^2*(f*h+-1*e*i)^2+4//3*d^-1*f^-5*i^3*(e+f*x)^3*(a+b*log(c*(e+f*x)))*(f*h+-1*e*i))
@test integrate((h+i*x)^3*(d*e+d*f*x)^-1*(a+b*log(c*(e+f*x))), x) == :(d^-1*f^-4*(f*h+-1*e*i)^3*(a+b*log(c*(e+f*x)))*log(e+f*x)+-1//2*b*d^-1*f^-4*(f*h+-1*e*i)^3*log(e+f*x)^2+-1//9*b*d^-1*f^-4*i^3*(e+f*x)^3+1//3*d^-1*f^-4*i^3*(e+f*x)^3*(a+b*log(c*(e+f*x)))+-3*b*i*x*d^-1*f^-3*(f*h+-1*e*i)^2+3*i*d^-1*f^-4*(f*h+-1*e*i)^2*(a+b*log(c*(e+f*x)))*(e+f*x)+-3//4*b*d^-1*f^-4*i^2*(e+f*x)^2*(f*h+-1*e*i)+3//2*d^-1*f^-4*i^2*(e+f*x)^2*(a+b*log(c*(e+f*x)))*(f*h+-1*e*i))
@test integrate((h+i*x)^2*(d*e+d*f*x)^-1*(a+b*log(c*(e+f*x))), x) == :(-1//4*b*d^-1*f^-3*(-3*e*i+4*f*h+f*i*x)^2+d^-1*f^-3*(f*h+-1*e*i)^2*(a+b*log(c*(e+f*x)))*log(e+f*x)+(1/2)*d^-1*f^-3*i^2*(e+f*x)^2*(a+b*log(c*(e+f*x)))+-1//2*b*d^-1*f^-3*(f*h+-1*e*i)^2*log(e+f*x)^2+2*i*d^-1*f^-3*(a+b*log(c*(e+f*x)))*(e+f*x)*(f*h+-1*e*i))
@test integrate((d*e+d*f*x)^-1*(a+b*log(c*(e+f*x)))*(h+i*x), x) == :(a*i*x*d^-1*f^-1+(1/2)*b^-1*d^-1*f^-2*(a+b*log(c*(e+f*x)))^2*(f*h+-1*e*i)+-1*b*i*x*d^-1*f^-1+b*i*d^-1*f^-2*(e+f*x)*log(c*(e+f*x)))
@test integrate((d*e+d*f*x)^-1*(a+b*log(c*(e+f*x))), x) == :((1/2)*b^-1*d^-1*f^-1*(a+b*log(c*(e+f*x)))^2)
@test integrate((h+i*x)^-1*(d*e+d*f*x)^-1*(a+b*log(c*(e+f*x))), x) == :(b*d^-1*(f*h+-1*e*i)^-1*Polylogarithms.polylog(2,-1*i^-1*(e+f*x)^-1*(f*h+-1*e*i))+-1*d^-1*(f*h+-1*e*i)^-1*(a+b*log(c*(e+f*x)))*log(1+i^-1*(e+f*x)^-1*(f*h+-1*e*i)))
@test integrate((h+i*x)^-2*(d*e+d*f*x)^-1*(a+b*log(c*(e+f*x))), x) == :(b*f*d^-1*(f*h+-1*e*i)^-2*Polylogarithms.polylog(2,-1*i^-1*(e+f*x)^-1*(f*h+-1*e*i))+b*f*d^-1*(f*h+-1*e*i)^-2*log(h+i*x)+-1*f*d^-1*(f*h+-1*e*i)^-2*(a+b*log(c*(e+f*x)))*log(1+i^-1*(e+f*x)^-1*(f*h+-1*e*i))+-1*i*d^-1*(h+i*x)^-1*(f*h+-1*e*i)^-2*(a+b*log(c*(e+f*x)))*(e+f*x))
@test integrate((h+i*x)^-3*(d*e+d*f*x)^-1*(a+b*log(c*(e+f*x))), x) == :((1/2)*d^-1*(h+i*x)^-2*(f*h+-1*e*i)^-1*(a+b*log(c*(e+f*x)))+b*d^-1*f^2*(f*h+-1*e*i)^-3*Polylogarithms.polylog(2,-1*i^-1*(e+f*x)^-1*(f*h+-1*e*i))+-1*d^-1*f^2*(f*h+-1*e*i)^-3*(a+b*log(c*(e+f*x)))*log(1+i^-1*(e+f*x)^-1*(f*h+-1*e*i))+-1//2*b*f*d^-1*(h+i*x)^-1*(f*h+-1*e*i)^-2+-1//2*b*d^-1*f^2*(f*h+-1*e*i)^-3*log(e+f*x)+3//2*b*d^-1*f^2*(f*h+-1*e*i)^-3*log(h+i*x)+-1*f*i*d^-1*(h+i*x)^-1*(f*h+-1*e*i)^-3*(a+b*log(c*(e+f*x)))*(e+f*x))
@test integrate((a+b*log(c*(e+f*x)))^2*(h+i*x)^4*(d*e+d*f*x)^-1, x) == :(1//4*d^-1*f^-1*(a+b*log(c*(e+f*x)))^2*(h+i*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+b*log(c*(e+f*x)))^2*(e+f*x)+2*i*x*b^2*d^-1*f^-1+1//3*b^-1*d^-1*f^-2*(a+b*log(c*(e+f*x)))^3*(f*h+-1*e*i)+-2*a*b*i*x*d^-1*f^-1+-2*i*b^2*d^-1*f^-2*(e+f*x)*log(c*(e+f*x)))
@test integrate((a+b*log(c*(e+f*x)))^2*(d*e+d*f*x)^-1, x) == :(1//3*b^-1*d^-1*f^-1*(a+b*log(c*(e+f*x)))^3)
@test integrate((a+b*log(c*(e+f*x)))^2*(h+i*x)^-1*(d*e+d*f*x)^-1, x) == :(-1*d^-1*(a+b*log(c*(e+f*x)))^2*(f*h+-1*e*i)^-1*log(1+i^-1*(e+f*x)^-1*(f*h+-1*e*i))+2*b^2*d^-1*(f*h+-1*e*i)^-1*Polylogarithms.polylog(3,-1*i^-1*(e+f*x)^-1*(f*h+-1*e*i))+2*b*d^-1*(f*h+-1*e*i)^-1*(a+b*log(c*(e+f*x)))*Polylogarithms.polylog(2,-1*i^-1*(e+f*x)^-1*(f*h+-1*e*i)))
@test integrate((a+b*log(c*(e+f*x)))^2*(h+i*x)^-2*(d*e+d*f*x)^-1, x) == :(-1*f*d^-1*(a+b*log(c*(e+f*x)))^2*(f*h+-1*e*i)^-2*log(1+i^-1*(e+f*x)^-1*(f*h+-1*e*i))+2*f*b^2*d^-1*(f*h+-1*e*i)^-2*Polylogarithms.polylog(2,-1*i*(f*h+-1*e*i)^-1*(e+f*x))+2*f*b^2*d^-1*(f*h+-1*e*i)^-2*Polylogarithms.polylog(3,-1*i^-1*(e+f*x)^-1*(f*h+-1*e*i))+-1*i*d^-1*(a+b*log(c*(e+f*x)))^2*(h+i*x)^-1*(f*h+-1*e*i)^-2*(e+f*x)+2*b*f*d^-1*(f*h+-1*e*i)^-2*(a+b*log(c*(e+f*x)))*Polylogarithms.polylog(2,-1*i^-1*(e+f*x)^-1*(f*h+-1*e*i))+2*b*f*d^-1*(f*h+-1*e*i)^-2*(a+b*log(c*(e+f*x)))*log(f*(f*h+-1*e*i)^-1*(h+i*x)))
@test integrate((a+b*log(c*(e+f*x)))^2*(h+i*x)^-3*(d*e+d*f*x)^-1, x) == :((1/2)*d^-1*(a+b*log(c*(e+f*x)))^2*(h+i*x)^-2*(f*h+-1*e*i)^-1+-1*b^2*d^-1*f^2*(f*h+-1*e*i)^-3*Polylogarithms.polylog(2,-1*i^-1*(e+f*x)^-1*(f*h+-1*e*i))+-1*b^2*d^-1*f^2*(f*h+-1*e*i)^-3*log(h+i*x)+-1*d^-1*f^2*(a+b*log(c*(e+f*x)))^2*(f*h+-1*e*i)^-3*log(1+i^-1*(e+f*x)^-1*(f*h+-1*e*i))+2*b^2*d^-1*f^2*(f*h+-1*e*i)^-3*Polylogarithms.polylog(2,-1*i*(f*h+-1*e*i)^-1*(e+f*x))+2*b^2*d^-1*f^2*(f*h+-1*e*i)^-3*Polylogarithms.polylog(3,-1*i^-1*(e+f*x)^-1*(f*h+-1*e*i))+b*d^-1*f^2*(f*h+-1*e*i)^-3*(a+b*log(c*(e+f*x)))*log(1+i^-1*(e+f*x)^-1*(f*h+-1*e*i))+2*b*d^-1*f^2*(f*h+-1*e*i)^-3*(a+b*log(c*(e+f*x)))*Polylogarithms.polylog(2,-1*i^-1*(e+f*x)^-1*(f*h+-1*e*i))+2*b*d^-1*f^2*(f*h+-1*e*i)^-3*(a+b*log(c*(e+f*x)))*log(f*(f*h+-1*e*i)^-1*(h+i*x))+-1*f*i*d^-1*(a+b*log(c*(e+f*x)))^2*(h+i*x)^-1*(f*h+-1*e*i)^-3*(e+f*x)+b*f*i*d^-1*(h+i*x)^-1*(f*h+-1*e*i)^-3*(a+b*log(c*(e+f*x)))*(e+f*x))
@test integrate((a+b*log(c*(e+f*x)))^-1*(h+i*x)^4*(d*e+d*f*x)^-1, x) == :(b^-1*d^-1*f^-5*(f*h+-1*e*i)^4*log(a+b*log(c*(e+f*x)))+b^-1*c^-4*d^-1*f^-5*i^4*exp(-4*a*b^-1)*expintegralei(b^-1*(4a+4*b*log(c*(e+f*x))))+4*i*b^-1*c^-1*d^-1*f^-5*(f*h+-1*e*i)^3*exp(-1*a*b^-1)*expintegralei(b^-1*(a+b*log(c*(e+f*x))))+4*b^-1*c^-3*d^-1*f^-5*i^3*(f*h+-1*e*i)*exp(-3*a*b^-1)*expintegralei(b^-1*(3a+3*b*log(c*(e+f*x))))+6*b^-1*c^-2*d^-1*f^-5*i^2*(f*h+-1*e*i)^2*exp(-2*a*b^-1)*expintegralei(b^-1*(2a+2*b*log(c*(e+f*x)))))
@test integrate((a+b*log(c*(e+f*x)))^-1*(h+i*x)^3*(d*e+d*f*x)^-1, x) == :(b^-1*d^-1*f^-4*(f*h+-1*e*i)^3*log(a+b*log(c*(e+f*x)))+b^-1*c^-3*d^-1*f^-4*i^3*exp(-3*a*b^-1)*expintegralei(b^-1*(3a+3*b*log(c*(e+f*x))))+3*i*b^-1*c^-1*d^-1*f^-4*(f*h+-1*e*i)^2*exp(-1*a*b^-1)*expintegralei(b^-1*(a+b*log(c*(e+f*x))))+3*b^-1*c^-2*d^-1*f^-4*i^2*(f*h+-1*e*i)*exp(-2*a*b^-1)*expintegralei(b^-1*(2a+2*b*log(c*(e+f*x)))))
@test integrate((a+b*log(c*(e+f*x)))^-1*(h+i*x)^2*(d*e+d*f*x)^-1, x) == :(b^-1*d^-1*f^-3*(f*h+-1*e*i)^2*log(a+b*log(c*(e+f*x)))+b^-1*c^-2*d^-1*f^-3*i^2*exp(-2*a*b^-1)*expintegralei(b^-1*(2a+2*b*log(c*(e+f*x))))+2*i*b^-1*c^-1*d^-1*f^-3*(f*h+-1*e*i)*exp(-1*a*b^-1)*expintegralei(b^-1*(a+b*log(c*(e+f*x)))))
@test integrate((a+b*log(c*(e+f*x)))^-1*(d*e+d*f*x)^-1*(h+i*x), x) == :(b^-1*d^-1*f^-2*(f*h+-1*e*i)*log(a+b*log(c*(e+f*x)))+i*b^-1*c^-1*d^-1*f^-2*exp(-1*a*b^-1)*expintegralei(b^-1*(a+b*log(c*(e+f*x)))))
@test integrate((a+b*log(c*(e+f*x)))^-1*(d*e+d*f*x)^-1, x) == :(b^-1*d^-1*f^-1*log(a+b*log(c*(e+f*x))))
@test integrate((d+e*x)^-1*(f+g*x)^5//2*(a+b*log(c*(d+e*x)^n)), x) == :(2//5*e^-1*(f+g*x)^5//2*(a+b*log(c*(d+e*x)^n))+-2*e^-7//2*(e*f+-1*d*g)^5//2*(a+b*log(c*(d+e*x)^n))*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+2*e^-3*(f+g*x)^(1/2)*(e*f+-1*d*g)^2*(a+b*log(c*(d+e*x)^n))+-4//25*b*n*e^-1*(f+g*x)^5//2+1//3*e^-2*(f+g*x)^3//2*(a+b*log(c*(d+e*x)^n))*(-2*d*g+2*e*f)+-2*b*n*e^-7//2*(e*f+-1*d*g)^5//2*Polylogarithms.polylog(2,1+-2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1)+2*b*n*e^-7//2*(e*f+-1*d*g)^5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^2+-92//15*b*n*e^-3*(f+g*x)^(1/2)*(e*f+-1*d*g)^2+-32//45*b*n*e^-2*(f+g*x)^3//2*(e*f+-1*d*g)+92//15*b*n*e^-7//2*(e*f+-1*d*g)^5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+-4*b*n*e^-7//2*(e*f+-1*d*g)^5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)*log(2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1))
@test integrate((d+e*x)^-1*(f+g*x)^3//2*(a+b*log(c*(d+e*x)^n)), x) == :(2//3*e^-1*(f+g*x)^3//2*(a+b*log(c*(d+e*x)^n))+e^-2*(f+g*x)^(1/2)*(a+b*log(c*(d+e*x)^n))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(e*f+-1*d*g)^-1//2)+-4*b*n*e^-3//2*(e*f+-1*d*g)^(1/2)*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)*log(2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1))
@test integrate((d+e*x)^-1*(f+g*x)^-1//2*(a+b*log(c*(d+e*x)^n)), x) == :(-2*e^-1//2*(e*f+-1*d*g)^-1//2*(a+b*log(c*(d+e*x)^n))*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+-2*b*n*e^-1//2*(e*f+-1*d*g)^-1//2*Polylogarithms.polylog(2,1+-2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1)+2*b*n*e^-1//2*(e*f+-1*d*g)^-1//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^2+-4*b*n*e^-1//2*(e*f+-1*d*g)^-1//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)*log(2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1))
@test integrate((d+e*x)^-1*(f+g*x)^-3//2*(a+b*log(c*(d+e*x)^n)), x) == :((f+g*x)^-1//2*(e*f+-1*d*g)^-1*(2a+2*b*log(c*(d+e*x)^n))+-2*e^(1/2)*(e*f+-1*d*g)^-3//2*(a+b*log(c*(d+e*x)^n))*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+-2*b*n*e^(1/2)*(e*f+-1*d*g)^-3//2*Polylogarithms.polylog(2,1+-2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1)+2*b*n*e^(1/2)*(e*f+-1*d*g)^-3//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^2+4*b*n*e^(1/2)*(e*f+-1*d*g)^-3//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+-4*b*n*e^(1/2)*(e*f+-1*d*g)^-3//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)*log(2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1))
@test integrate((d+e*x)^-1*(f+g*x)^-5//2*(a+b*log(c*(d+e*x)^n)), x) == :((f+g*x)^-3//2*(-3*d*g+3*e*f)^-1*(2a+2*b*log(c*(d+e*x)^n))+-2*e^3//2*(e*f+-1*d*g)^-5//2*(a+b*log(c*(d+e*x)^n))*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+2*e*(f+g*x)^-1//2*(e*f+-1*d*g)^-2*(a+b*log(c*(d+e*x)^n))+-2*b*n*e^3//2*(e*f+-1*d*g)^-5//2*Polylogarithms.polylog(2,1+-2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1)+2*b*n*e^3//2*(e*f+-1*d*g)^-5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^2+-4//3*b*e*n*(f+g*x)^-1//2*(e*f+-1*d*g)^-2+16//3*b*n*e^3//2*(e*f+-1*d*g)^-5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)+-4*b*n*e^3//2*(e*f+-1*d*g)^-5//2*arctanh(e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)*log(2*(1+-1*e^(1/2)*(f+g*x)^(1/2)*(e*f+-1*d*g)^-1//2)^-1))
@test integrate((a+b*x)^-1*(d+e*x)^3//2*log(a+b*x), x) == :(-4//9*b^-1*(d+e*x)^3//2+-2*b^-5//2*(b*d+-1*a*e)^3//2*Polylogarithms.polylog(2,1+-2*(1+-1*b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)^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(a+b*x))
@test integrate((a+b*x)^-1*(d+e*x)^-1//2*log(a+b*x), x) == :(-2*b^-1//2*(b*d+-1*a*e)^-1//2*Polylogarithms.polylog(2,1+-2*(1+-1*b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)^-1)+2*b^-1//2*(b*d+-1*a*e)^-1//2*arctanh(b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)^2+-4*b^-1//2*(b*d+-1*a*e)^-1//2*arctanh(b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)*log(2*(1+-1*b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)^-1)+-2*b^-1//2*(b*d+-1*a*e)^-1//2*arctanh(b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)*log(a+b*x))
@test integrate((a+b*x)^-1*(d+e*x)^-3//2*log(a+b*x), x) == :(-2*b^(1/2)*(b*d+-1*a*e)^-3//2*Polylogarithms.polylog(2,1+-2*(1+-1*b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)^-1)+2*b^(1/2)*(b*d+-1*a*e)^-3//2*arctanh(b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)^2+2*(d+e*x)^-1//2*(b*d+-1*a*e)^-1*log(a+b*x)+4*b^(1/2)*(b*d+-1*a*e)^-3//2*arctanh(b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)+-4*b^(1/2)*(b*d+-1*a*e)^-3//2*arctanh(b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)*log(2*(1+-1*b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)^-1)+-2*b^(1/2)*(b*d+-1*a*e)^-3//2*arctanh(b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)*log(a+b*x))
@test integrate((a+b*x)^-1*(d+e*x)^-5//2*log(a+b*x), x) == :(-2*b^3//2*(b*d+-1*a*e)^-5//2*Polylogarithms.polylog(2,1+-2*(1+-1*b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)^-1)+2*b^3//2*(b*d+-1*a*e)^-5//2*arctanh(b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)^2+2*(d+e*x)^-3//2*(-3*a*e+3*b*d)^-1*log(a+b*x)+-4//3*b*(d+e*x)^-1//2*(b*d+-1*a*e)^-2+16//3*b^3//2*(b*d+-1*a*e)^-5//2*arctanh(b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)+-4*b^3//2*(b*d+-1*a*e)^-5//2*arctanh(b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)*log(2*(1+-1*b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)^-1)+-2*b^3//2*(b*d+-1*a*e)^-5//2*arctanh(b^(1/2)*(d+e*x)^(1/2)*(b*d+-1*a*e)^-1//2)*log(a+b*x)+2*b*(d+e*x)^-1//2*(b*d+-1*a*e)^-2*log(a+b*x))
@test integrate((a+b*log(c*(e+f*x)))^p*(h+i*x)^3*(d*e+d*f*x)^-1, x) == :(b^-1*d^-1*f^-4*(1+p)^-1*(a+b*log(c*(e+f*x)))^(1+p)*(f*h+-1*e*i)^3+3^(-1+-1p)*c^-3*d^-1*f^-4*i^3*(-1*b^-1*(a+b*log(c*(e+f*x))))^(-1p)*(a+b*log(c*(e+f*x)))^p*SpecialFunctions.gamma(1+p,-1*b^-1*(3a+3*b*log(c*(e+f*x))))*exp(-3*a*b^-1)+3*i*c^-1*d^-1*f^-4*(-1*b^-1*(a+b*log(c*(e+f*x))))^(-1p)*(a+b*log(c*(e+f*x)))^p*(f*h+-1*e*i)^2*SpecialFunctions.gamma(1+p,-1*b^-1*(a+b*log(c*(e+f*x))))*exp(-1*a*b^-1)+3*2^(-1+-1p)*c^-2*d^-1*f^-4*i^2*(-1*b^-1*(a+b*log(c*(e+f*x))))^(-1p)*(a+b*log(c*(e+f*x)))^p*(f*h+-1*e*i)*SpecialFunctions.gamma(1+p,-1*b^-1*(2a+2*b*log(c*(e+f*x))))*exp(-2*a*b^-1))
@test integrate((a+b*log(c*(e+f*x)))^p*(h+i*x)^2*(d*e+d*f*x)^-1, x) == :(b^-1*d^-1*f^-3*(1+p)^-1*(a+b*log(c*(e+f*x)))^(1+p)*(f*h+-1*e*i)^2+2^(-1+-1p)*c^-2*d^-1*f^-3*i^2*(-1*b^-1*(a+b*log(c*(e+f*x))))^(-1p)*(a+b*log(c*(e+f*x)))^p*SpecialFunctions.gamma(1+p,-1*b^-1*(2a+2*b*log(c*(e+f*x))))*exp(-2*a*b^-1)+2*i*c^-1*d^-1*f^-3*(-1*b^-1*(a+b*log(c*(e+f*x))))^(-1p)*(a+b*log(c*(e+f*x)))^p*(f*h+-1*e*i)*SpecialFunctions.gamma(1+p,-1*b^-1*(a+b*log(c*(e+f*x))))*exp(-1*a*b^-1))
@test integrate((a+b*log(c*(e+f*x)))^p*(d*e+d*f*x)^-1*(h+i*x), x) == :(b^-1*d^-1*f^-2*(1+p)^-1*(a+b*log(c*(e+f*x)))^(1+p)*(f*h+-1*e*i)+i*c^-1*d^-1*f^-2*(-1*b^-1*(a+b*log(c*(e+f*x))))^(-1p)*(a+b*log(c*(e+f*x)))^p*SpecialFunctions.gamma(1+p,-1*b^-1*(a+b*log(c*(e+f*x))))*exp(-1*a*b^-1))
@test integrate((a+b*log(c*(e+f*x)))^p*(d*e+d*f*x)^-1, x) == :(b^-1*d^-1*f^-1*(1+p)^-1*(a+b*log(c*(e+f*x)))^(1+p))
@test integrate((f+g*x)^-1*(h+i*x)^3*(a+b*log(c*(d+e*x)^n)), x) == :(1//3*g^-1*(h+i*x)^3*(a+b*log(c*(d+e*x)^n))+g^-4*(g*h+-1*f*i)^3*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+(1/2)*g^-2*(h+i*x)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*f*i)*log(e*(e*f+-1*d*g)^-1*(f+g*x))+b*n*g^-2*(g*h+-1*f*i)*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-1*b*i*n*x*g^-1+b*i*e^-1*g^-1*(d+e*x)*log(c*(d+e*x)^n))
@test integrate((f+g*x)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(g^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+b*n*g^-1*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x)))
@test integrate((f+g*x)^-1*(h+i*x)^-1*(a+b*log(c*(d+e*x)^n)), x) == :((g*h+-1*f*i)^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-1*(g*h+-1*f*i)^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*h+-1*d*i)^-1*(h+i*x))+b*n*(g*h+-1*f*i)^-1*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-1*b*n*(g*h+-1*f*i)^-1*Polylogarithms.polylog(2,-1*i*(e*h+-1*d*i)^-1*(d+e*x)))
@test integrate((f+g*x)^-1*(h+i*x)^-2*(a+b*log(c*(d+e*x)^n)), x) == :((h+i*x)^-1*(g*h+-1*f*i)^-1*(a+b*log(c*(d+e*x)^n))+g*(g*h+-1*f*i)^-2*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-1*g*(g*h+-1*f*i)^-2*(a+b*log(c*(d+e*x)^n))*log(e*(e*h+-1*d*i)^-1*(h+i*x))+b*g*n*(g*h+-1*f*i)^-2*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-1*b*g*n*(g*h+-1*f*i)^-2*Polylogarithms.polylog(2,-1*i*(e*h+-1*d*i)^-1*(d+e*x))+b*e*n*(e*h+-1*d*i)^-1*(g*h+-1*f*i)^-1*log(h+i*x)+-1*b*e*n*(e*h+-1*d*i)^-1*(g*h+-1*f*i)^-1*log(d+e*x))
@test integrate((f+g*x)^-1*(h+i*x)^-3*(a+b*log(c*(d+e*x)^n)), x) == :((h+i*x)^-2*(-2*f*i+2*g*h)^-1*(a+b*log(c*(d+e*x)^n))+g*(h+i*x)^-1*(g*h+-1*f*i)^-2*(a+b*log(c*(d+e*x)^n))+g^2*(g*h+-1*f*i)^-3*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-1*g^2*(g*h+-1*f*i)^-3*(a+b*log(c*(d+e*x)^n))*log(e*(e*h+-1*d*i)^-1*(h+i*x))+b*n*g^2*(g*h+-1*f*i)^-3*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-1*b*n*g^2*(g*h+-1*f*i)^-3*Polylogarithms.polylog(2,-1*i*(e*h+-1*d*i)^-1*(d+e*x))+(1/2)*b*n*e^2*(e*h+-1*d*i)^-2*(g*h+-1*f*i)^-1*log(h+i*x)+-1*b*e*n*(h+i*x)^-1*(g*h+-1*f*i)^-1*(-2*d*i+2*e*h)^-1+-1//2*b*n*e^2*(e*h+-1*d*i)^-2*(g*h+-1*f*i)^-1*log(d+e*x)+b*e*g*n*(e*h+-1*d*i)^-1*(g*h+-1*f*i)^-2*log(h+i*x)+-1*b*e*g*n*(e*h+-1*d*i)^-1*(g*h+-1*f*i)^-2*log(d+e*x))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-1*(h+i*x)^2, x) == :(g^-3*(a+b*log(c*(d+e*x)^n))^2*(g*h+-1*f*i)^2*log(e*(e*f+-1*d*g)^-1*(f+g*x))+(1/2)*e^-2*g^-1*i^2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^2+-2*b^2*g^-3*n^2*(g*h+-1*f*i)^2*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+i*e^-1*g^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)*(g*h+-1*f*i)+i*e^-2*g^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)*(e*h+-1*d*i)+2*b*n*g^-3*(g*h+-1*f*i)^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+2*i*x*b^2*g^-2*n^2*(g*h+-1*f*i)+1//4*b^2*e^-2*g^-1*i^2*n^2*(d+e*x)^2+-2*a*b*i*n*x*g^-2*(g*h+-1*f*i)+2*i*x*b^2*e^-1*g^-1*n^2*(e*h+-1*d*i)+-1//2*b*n*e^-2*g^-1*i^2*(d+e*x)^2*(a+b*log(c*(d+e*x)^n))+-2*a*b*i*n*x*e^-1*g^-1*(e*h+-1*d*i)+-2*i*n*b^2*e^-1*g^-2*(d+e*x)*(g*h+-1*f*i)*log(c*(d+e*x)^n)+-2*i*n*b^2*e^-2*g^-1*(d+e*x)*(e*h+-1*d*i)*log(c*(d+e*x)^n))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-1*(h+i*x), x) == :(g^-2*(a+b*log(c*(d+e*x)^n))^2*(g*h+-1*f*i)*log(e*(e*f+-1*d*g)^-1*(f+g*x))+i*e^-1*g^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+-2*b^2*g^-2*n^2*(g*h+-1*f*i)*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+2*i*x*b^2*g^-1*n^2+-2*a*b*i*n*x*g^-1+2*b*n*g^-2*(a+b*log(c*(d+e*x)^n))*(g*h+-1*f*i)*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-2*i*n*b^2*e^-1*g^-1*(d+e*x)*log(c*(d+e*x)^n))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-1, x) == :(g^-1*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-2*b^2*g^-1*n^2*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+2*b*n*g^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x)))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-1*(h+i*x)^-1, x) == :((a+b*log(c*(d+e*x)^n))^2*(g*h+-1*f*i)^-1*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-1*(a+b*log(c*(d+e*x)^n))^2*(g*h+-1*f*i)^-1*log(e*(e*h+-1*d*i)^-1*(h+i*x))+-2*b^2*n^2*(g*h+-1*f*i)^-1*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+2*b^2*n^2*(g*h+-1*f*i)^-1*Polylogarithms.polylog(3,-1*i*(e*h+-1*d*i)^-1*(d+e*x))+-2*b*n*(g*h+-1*f*i)^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*i*(e*h+-1*d*i)^-1*(d+e*x))+2*b*n*(g*h+-1*f*i)^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x)))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x)^-1*(h+i*x)^-2, x) == :(g*(a+b*log(c*(d+e*x)^n))^2*(g*h+-1*f*i)^-2*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-1*g*(a+b*log(c*(d+e*x)^n))^2*(g*h+-1*f*i)^-2*log(e*(e*h+-1*d*i)^-1*(h+i*x))+-2*g*b^2*n^2*(g*h+-1*f*i)^-2*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+2*g*b^2*n^2*(g*h+-1*f*i)^-2*Polylogarithms.polylog(3,-1*i*(e*h+-1*d*i)^-1*(d+e*x))+-1*i*(a+b*log(c*(d+e*x)^n))^2*(h+i*x)^-1*(e*h+-1*d*i)^-1*(g*h+-1*f*i)^-1*(d+e*x)+-2*b*g*n*(g*h+-1*f*i)^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*i*(e*h+-1*d*i)^-1*(d+e*x))+2*b*g*n*(g*h+-1*f*i)^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+2*e*b^2*n^2*(e*h+-1*d*i)^-1*(g*h+-1*f*i)^-1*Polylogarithms.polylog(2,-1*i*(e*h+-1*d*i)^-1*(d+e*x))+2*b*e*n*(e*h+-1*d*i)^-1*(g*h+-1*f*i)^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*h+-1*d*i)^-1*(h+i*x)))
@test integrate((a+b*log(c*(d+e*x)^n))^3*(f+g*x)^-1*(h+i*x)^2, x) == :(g^-3*(a+b*log(c*(d+e*x)^n))^3*(g*h+-1*f*i)^2*log(e*(e*f+-1*d*g)^-1*(f+g*x))+(1/2)*e^-2*g^-1*i^2*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)^2+6*b^3*g^-3*n^3*(g*h+-1*f*i)^2*Polylogarithms.polylog(4,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+i*e^-1*g^-2*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)*(g*h+-1*f*i)+i*e^-2*g^-1*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)*(e*h+-1*d*i)+-6*i*x*b^3*g^-2*n^3*(g*h+-1*f*i)+-6*b^2*g^-3*n^2*(g*h+-1*f*i)^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+3*b*n*g^-3*(a+b*log(c*(d+e*x)^n))^2*(g*h+-1*f*i)^2*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-3//8*b^3*e^-2*g^-1*i^2*n^3*(d+e*x)^2+-6*i*x*b^3*e^-1*g^-1*n^3*(e*h+-1*d*i)+6*a*i*x*b^2*g^-2*n^2*(g*h+-1*f*i)+-3//4*b*n*e^-2*g^-1*i^2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^2+3//4*b^2*e^-2*g^-1*i^2*n^2*(d+e*x)^2*(a+b*log(c*(d+e*x)^n))+-3*b*i*n*e^-1*g^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)*(g*h+-1*f*i)+-3*b*i*n*e^-2*g^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)*(e*h+-1*d*i)+6*a*i*x*b^2*e^-1*g^-1*n^2*(e*h+-1*d*i)+6*i*b^3*e^-1*g^-2*n^2*(d+e*x)*(g*h+-1*f*i)*log(c*(d+e*x)^n)+6*i*b^3*e^-2*g^-1*n^2*(d+e*x)*(e*h+-1*d*i)*log(c*(d+e*x)^n))
@test integrate((a+b*log(c*(d+e*x)^n))^3*(f+g*x)^-1*(h+i*x), x) == :(g^-2*(a+b*log(c*(d+e*x)^n))^3*(g*h+-1*f*i)*log(e*(e*f+-1*d*g)^-1*(f+g*x))+i*e^-1*g^-1*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)+-6*i*x*b^3*g^-1*n^3+6*b^3*g^-2*n^3*(g*h+-1*f*i)*Polylogarithms.polylog(4,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-6*b^2*g^-2*n^2*(a+b*log(c*(d+e*x)^n))*(g*h+-1*f*i)*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+3*b*n*g^-2*(a+b*log(c*(d+e*x)^n))^2*(g*h+-1*f*i)*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+6*a*i*x*b^2*g^-1*n^2+-3*b*i*n*e^-1*g^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+6*i*b^3*e^-1*g^-1*n^2*(d+e*x)*log(c*(d+e*x)^n))
@test integrate((a+b*log(c*(d+e*x)^n))^3*(f+g*x)^-1, x) == :(g^-1*(a+b*log(c*(d+e*x)^n))^3*log(e*(e*f+-1*d*g)^-1*(f+g*x))+6*b^3*g^-1*n^3*Polylogarithms.polylog(4,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-6*b^2*g^-1*n^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+3*b*n*g^-1*(a+b*log(c*(d+e*x)^n))^2*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x)))
@test integrate((a+b*log(c*(d+e*x)^n))^3*(f+g*x)^-1*(h+i*x)^-1, x) == :((a+b*log(c*(d+e*x)^n))^3*(g*h+-1*f*i)^-1*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-1*(a+b*log(c*(d+e*x)^n))^3*(g*h+-1*f*i)^-1*log(e*(e*h+-1*d*i)^-1*(h+i*x))+-6*b^3*n^3*(g*h+-1*f*i)^-1*Polylogarithms.polylog(4,-1*i*(e*h+-1*d*i)^-1*(d+e*x))+6*b^3*n^3*(g*h+-1*f*i)^-1*Polylogarithms.polylog(4,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-6*b^2*n^2*(g*h+-1*f*i)^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-3*b*n*(a+b*log(c*(d+e*x)^n))^2*(g*h+-1*f*i)^-1*Polylogarithms.polylog(2,-1*i*(e*h+-1*d*i)^-1*(d+e*x))+3*b*n*(a+b*log(c*(d+e*x)^n))^2*(g*h+-1*f*i)^-1*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+6*b^2*n^2*(g*h+-1*f*i)^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(3,-1*i*(e*h+-1*d*i)^-1*(d+e*x)))
@test integrate((a+b*log(c*(d+e*x)^n))^3*(f+g*x)^-1*(h+i*x)^-2, x) == :(g*(a+b*log(c*(d+e*x)^n))^3*(g*h+-1*f*i)^-2*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-1*g*(a+b*log(c*(d+e*x)^n))^3*(g*h+-1*f*i)^-2*log(e*(e*h+-1*d*i)^-1*(h+i*x))+-6*g*b^3*n^3*(g*h+-1*f*i)^-2*Polylogarithms.polylog(4,-1*i*(e*h+-1*d*i)^-1*(d+e*x))+6*g*b^3*n^3*(g*h+-1*f*i)^-2*Polylogarithms.polylog(4,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-1*i*(a+b*log(c*(d+e*x)^n))^3*(h+i*x)^-1*(e*h+-1*d*i)^-1*(g*h+-1*f*i)^-1*(d+e*x)+-6*e*b^3*n^3*(e*h+-1*d*i)^-1*(g*h+-1*f*i)^-1*Polylogarithms.polylog(3,-1*i*(e*h+-1*d*i)^-1*(d+e*x))+-6*g*b^2*n^2*(g*h+-1*f*i)^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-3*b*g*n*(a+b*log(c*(d+e*x)^n))^2*(g*h+-1*f*i)^-2*Polylogarithms.polylog(2,-1*i*(e*h+-1*d*i)^-1*(d+e*x))+3*b*g*n*(a+b*log(c*(d+e*x)^n))^2*(g*h+-1*f*i)^-2*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+6*g*b^2*n^2*(g*h+-1*f*i)^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(3,-1*i*(e*h+-1*d*i)^-1*(d+e*x))+3*b*e*n*(a+b*log(c*(d+e*x)^n))^2*(e*h+-1*d*i)^-1*(g*h+-1*f*i)^-1*log(e*(e*h+-1*d*i)^-1*(h+i*x))+6*e*b^2*n^2*(e*h+-1*d*i)^-1*(g*h+-1*f*i)^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*i*(e*h+-1*d*i)^-1*(d+e*x)))
@test integrate(x^3*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(1//3*g^-1*x^3*(a+b*log(c*(d+e*x)^n))+a*x*f^2*g^-3+-1*f^3*g^-4*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-1//2*f*g^-2*x^2*(a+b*log(c*(d+e*x)^n))+-1//9*b*n*g^-1*x^3+-1*b*n*x*f^2*g^-3+-1*b*n*f^3*g^-4*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+1//4*b*f*n*g^-2*x^2+b*e^-1*f^2*g^-3*(d+e*x)*log(c*(d+e*x)^n)+-1//3*b*n*x*d^2*e^-2*g^-1+1//3*b*n*d^3*e^-3*g^-1*log(d+e*x)+1//6*b*d*n*e^-1*g^-1*x^2+(1/2)*b*f*n*d^2*e^-2*g^-2*log(d+e*x)+-1//2*b*d*f*n*x*e^-1*g^-2)
@test integrate(x^2*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n)), x) == :((1/2)*g^-1*x^2*(a+b*log(c*(d+e*x)^n))+f^2*g^-3*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-1*a*f*x*g^-2+-1//4*b*n*g^-1*x^2+b*f*n*x*g^-2+b*n*f^2*g^-3*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+(1/2)*b*d*n*x*e^-1*g^-1+-1*b*f*e^-1*g^-2*(d+e*x)*log(c*(d+e*x)^n)+-1//2*b*n*d^2*e^-2*g^-1*log(d+e*x))
@test integrate(x*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(a*x*g^-1+-1*b*n*x*g^-1+-1*f*g^-2*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+b*e^-1*g^-1*(d+e*x)*log(c*(d+e*x)^n)+-1*b*f*n*g^-2*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x)))
@test integrate((f+g*x)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(g^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+b*n*g^-1*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x)))
@test integrate(x^-1*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(f^-1*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+-1*f^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+b*n*f^-1*Polylogarithms.polylog(2,1+e*x*d^-1)+-1*b*n*f^-1*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x)))
@test integrate(x^-2*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(-1*f^-1*x^-1*(a+b*log(c*(d+e*x)^n))+g*f^-2*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-1*g*f^-2*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+b*g*n*f^-2*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+-1*b*g*n*f^-2*Polylogarithms.polylog(2,1+e*x*d^-1)+b*e*n*d^-1*f^-1*log(x)+-1*b*e*n*d^-1*f^-1*log(d+e*x))
@test integrate(x^-3*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(-1//2*f^-1*x^-2*(a+b*log(c*(d+e*x)^n))+g*f^-2*x^-1*(a+b*log(c*(d+e*x)^n))+f^-3*g^2*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+-1*f^-3*g^2*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+b*n*f^-3*g^2*Polylogarithms.polylog(2,1+e*x*d^-1)+-1*b*n*f^-3*g^2*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+(1/2)*b*n*d^-2*e^2*f^-1*log(d+e*x)+-1//2*b*e*n*d^-1*f^-1*x^-1+-1//2*b*n*d^-2*e^2*f^-1*log(x)+b*e*g*n*d^-1*f^-2*log(d+e*x)+-1*b*e*g*n*d^-1*f^-2*log(x))
@test integrate(x^3*(f+g*x)^-2*(a+b*log(c*(d+e*x)^n)), x) == :((1/2)*g^-2*x^2*(a+b*log(c*(d+e*x)^n))+f^3*g^-4*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n))+-2*a*f*x*g^-3+3*f^2*g^-4*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-1//4*b*n*g^-2*x^2+2*b*f*n*x*g^-3+3*b*n*f^2*g^-4*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+(1/2)*b*d*n*x*e^-1*g^-2+-2*b*f*e^-1*g^-3*(d+e*x)*log(c*(d+e*x)^n)+-1//2*b*n*d^2*e^-2*g^-2*log(d+e*x)+b*e*n*f^3*g^-4*(e*f+-1*d*g)^-1*log(f+g*x)+-1*b*e*n*f^3*g^-4*(e*f+-1*d*g)^-1*log(d+e*x))
@test integrate(x^2*(f+g*x)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(a*x*g^-2+-1*b*n*x*g^-2+-1*f^2*g^-3*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n))+-2*f*g^-3*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+b*e^-1*g^-2*(d+e*x)*log(c*(d+e*x)^n)+-2*b*f*n*g^-3*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+b*e*n*f^2*g^-3*(e*f+-1*d*g)^-1*log(d+e*x)+-1*b*e*n*f^2*g^-3*(e*f+-1*d*g)^-1*log(f+g*x))
@test integrate(x*(f+g*x)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(g^-2*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+b*n*g^-2*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+f*g^-2*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n))+b*e*f*n*g^-2*(e*f+-1*d*g)^-1*log(f+g*x)+-1*b*e*f*n*g^-2*(e*f+-1*d*g)^-1*log(d+e*x))
@test integrate((f+g*x)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(-1*g^-1*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n))+b*e*n*g^-1*(e*f+-1*d*g)^-1*log(d+e*x)+-1*b*e*n*g^-1*(e*f+-1*d*g)^-1*log(f+g*x))
@test integrate(x^-1*(f+g*x)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(f^-1*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n))+f^-2*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+-1*f^-2*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+b*n*f^-2*Polylogarithms.polylog(2,1+e*x*d^-1)+-1*b*n*f^-2*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+b*e*n*f^-1*(e*f+-1*d*g)^-1*log(f+g*x)+-1*b*e*n*f^-1*(e*f+-1*d*g)^-1*log(d+e*x))
@test integrate(x^-2*(f+g*x)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(-1*f^-2*x^-1*(a+b*log(c*(d+e*x)^n))+-1*g*f^-2*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n))+-2*g*f^-3*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+2*g*f^-3*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+-2*b*g*n*f^-3*Polylogarithms.polylog(2,1+e*x*d^-1)+2*b*g*n*f^-3*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+b*e*n*d^-1*f^-2*log(x)+-1*b*e*n*d^-1*f^-2*log(d+e*x)+b*e*g*n*f^-2*(e*f+-1*d*g)^-1*log(d+e*x)+-1*b*e*g*n*f^-2*(e*f+-1*d*g)^-1*log(f+g*x))
@test integrate(x^-3*(f+g*x)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(-1//2*f^-2*x^-2*(a+b*log(c*(d+e*x)^n))+f^-3*g^2*(f+g*x)^-1*(a+b*log(c*(d+e*x)^n))+-3*f^-4*g^2*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x))+2*g*f^-3*x^-1*(a+b*log(c*(d+e*x)^n))+3*f^-4*g^2*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+-3*b*n*f^-4*g^2*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+3*b*n*f^-4*g^2*Polylogarithms.polylog(2,1+e*x*d^-1)+(1/2)*b*n*d^-2*e^2*f^-2*log(d+e*x)+-1//2*b*e*n*d^-1*f^-2*x^-1+-1//2*b*n*d^-2*e^2*f^-2*log(x)+b*e*n*f^-3*g^2*(e*f+-1*d*g)^-1*log(f+g*x)+-1*b*e*n*f^-3*g^2*(e*f+-1*d*g)^-1*log(d+e*x)+-2*b*e*g*n*d^-1*f^-3*log(x)+2*b*e*g*n*d^-1*f^-3*log(d+e*x))
@test integrate(x^5*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(1//4*g^-1*x^4*(a+b*log(c*(d+e*x)^n))+(1/2)*f^2*g^-3*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+(1/2)*f^2*g^-3*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1//2*f*g^-2*x^2*(a+b*log(c*(d+e*x)^n))+-1//16*b*n*g^-1*x^4+(1/2)*b*n*f^2*g^-3*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+(1/2)*b*n*f^2*g^-3*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+1//4*b*f*n*g^-2*x^2+-1//4*b*n*d^4*e^-4*g^-1*log(d+e*x)+-1//8*b*n*d^2*e^-2*g^-1*x^2+1//4*b*n*x*d^3*e^-3*g^-1+1//12*b*d*n*e^-1*g^-1*x^3+(1/2)*b*f*n*d^2*e^-2*g^-2*log(d+e*x)+-1//2*b*d*f*n*x*e^-1*g^-2)
@test integrate(x^3*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n)), x) == :((1/2)*g^-1*x^2*(a+b*log(c*(d+e*x)^n))+-1//2*f*g^-2*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*f*g^-2*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1//4*b*n*g^-1*x^2+-1//2*b*f*n*g^-2*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*b*f*n*g^-2*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+(1/2)*b*d*n*x*e^-1*g^-1+-1//2*b*n*d^2*e^-2*g^-1*log(d+e*x))
@test integrate(x*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n)), x) == :((1/2)*g^-1*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+(1/2)*g^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+(1/2)*b*n*g^-1*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+(1/2)*b*n*g^-1*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x)))
@test integrate(x^-1*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(f^-1*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+-1//2*f^-1*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*f^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+b*n*f^-1*Polylogarithms.polylog(2,1+e*x*d^-1)+-1//2*b*n*f^-1*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*b*n*f^-1*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x)))
@test integrate(x^-3*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(-1//2*f^-1*x^-2*(a+b*log(c*(d+e*x)^n))+(1/2)*g*f^-2*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+(1/2)*g*f^-2*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1*g*f^-2*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+(1/2)*b*g*n*f^-2*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+(1/2)*b*g*n*f^-2*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1*b*g*n*f^-2*Polylogarithms.polylog(2,1+e*x*d^-1)+(1/2)*b*n*d^-2*e^2*f^-1*log(d+e*x)+-1//2*b*e*n*d^-1*f^-1*x^-1+-1//2*b*n*d^-2*e^2*f^-1*log(x))
@test integrate(x^4*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(1//3*g^-1*x^3*(a+b*log(c*(d+e*x)^n))+(1/2)*g^-5//2*(-1*f)^3//2*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1*a*f*x*g^-2+-1//2*g^-5//2*(-1*f)^3//2*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1//9*b*n*g^-1*x^3+b*f*n*x*g^-2+(1/2)*b*n*g^-5//2*(-1*f)^3//2*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*b*n*g^-5//2*(-1*f)^3//2*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1*b*f*e^-1*g^-2*(d+e*x)*log(c*(d+e*x)^n)+-1//3*b*n*x*d^2*e^-2*g^-1+1//3*b*n*d^3*e^-3*g^-1*log(d+e*x)+1//6*b*d*n*e^-1*g^-1*x^2)
@test integrate(x^2*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(a*x*g^-1+(1/2)*g^-3//2*(-1*f)^(1/2)*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1*b*n*x*g^-1+-1//2*g^-3//2*(-1*f)^(1/2)*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+b*e^-1*g^-1*(d+e*x)*log(c*(d+e*x)^n)+(1/2)*b*n*g^-3//2*(-1*f)^(1/2)*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*b*n*g^-3//2*(-1*f)^(1/2)*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x)))
@test integrate((f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n)), x) == :((1/2)*g^-1//2*(-1*f)^-1//2*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*g^-1//2*(-1*f)^-1//2*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+(1/2)*b*n*g^-1//2*(-1*f)^-1//2*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*b*n*g^-1//2*(-1*f)^-1//2*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x)))
@test integrate(x^-2*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(-1*f^-1*x^-1*(a+b*log(c*(d+e*x)^n))+(1/2)*g^(1/2)*(-1*f)^-3//2*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*g^(1/2)*(-1*f)^-3//2*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+(1/2)*b*n*g^(1/2)*(-1*f)^-3//2*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*b*n*g^(1/2)*(-1*f)^-3//2*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+b*e*n*d^-1*f^-1*log(x)+-1*b*e*n*d^-1*f^-1*log(d+e*x))
@test integrate(x^-4*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(-1//3*f^-1*x^-3*(a+b*log(c*(d+e*x)^n))+g*f^-2*x^-1*(a+b*log(c*(d+e*x)^n))+(1/2)*g^3//2*(-1*f)^-5//2*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*g^3//2*(-1*f)^-5//2*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+(1/2)*b*n*g^3//2*(-1*f)^-5//2*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*b*n*g^3//2*(-1*f)^-5//2*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1//3*b*n*d^-3*e^3*f^-1*log(d+e*x)+-1//6*b*e*n*d^-1*f^-1*x^-2+1//3*b*n*d^-3*e^3*f^-1*log(x)+1//3*b*n*d^-2*e^2*f^-1*x^-1+b*e*g*n*d^-1*f^-2*log(d+e*x)+-1*b*e*g*n*d^-1*f^-2*log(x))
@test integrate(x^5*(f+g*x^2)^-2*(a+b*log(c*(d+e*x)^n)), x) == :((1/2)*g^-2*x^2*(a+b*log(c*(d+e*x)^n))+-1*f*g^-3*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1*f*g^-3*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1//2*f^2*g^-3*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n))+-1//4*b*n*g^-2*x^2+-1*b*f*n*g^-3*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*b*f*n*g^-3*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+(1/2)*b*d*n*x*e^-1*g^-2+-1//2*b*n*d^2*e^-2*g^-2*log(d+e*x)+(1/2)*b*n*e^2*f^2*g^-3*(f*e^2+g*d^2)^-1*log(d+e*x)+-1//4*b*n*e^2*f^2*g^-3*(f*e^2+g*d^2)^-1*log(f+g*x^2)+(1/2)*b*d*e*n*f^3//2*g^-5//2*(f*e^2+g*d^2)^-1*arctan(x*f^-1//2*g^(1/2)))
@test integrate(x^3*(f+g*x^2)^-2*(a+b*log(c*(d+e*x)^n)), x) == :((1/2)*g^-2*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+(1/2)*g^-2*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+(1/2)*b*n*g^-2*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+(1/2)*b*n*g^-2*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+(1/2)*f*g^-2*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n))+-1//2*b*f*n*e^2*g^-2*(f*e^2+g*d^2)^-1*log(d+e*x)+1//4*b*f*n*e^2*g^-2*(f*e^2+g*d^2)^-1*log(f+g*x^2)+-1//2*b*d*e*n*f^(1/2)*g^-3//2*(f*e^2+g*d^2)^-1*arctan(x*f^-1//2*g^(1/2)))
@test integrate(x*(f+g*x^2)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(-1//2*g^-1*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n))+(1/2)*b*n*e^2*g^-1*(f*e^2+g*d^2)^-1*log(d+e*x)+-1//4*b*n*e^2*g^-1*(f*e^2+g*d^2)^-1*log(f+g*x^2)+(1/2)*b*d*e*n*f^-1//2*g^-1//2*(f*e^2+g*d^2)^-1*arctan(x*f^-1//2*g^(1/2)))
@test integrate(x^-1*(f+g*x^2)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(f^-2*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+(1/2)*f^-1*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n))+-1//2*f^-2*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*f^-2*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+b*n*f^-2*Polylogarithms.polylog(2,1+e*x*d^-1)+-1//2*b*n*f^-2*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*b*n*f^-2*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1//2*b*n*e^2*f^-1*(f*e^2+g*d^2)^-1*log(d+e*x)+1//4*b*n*e^2*f^-1*(f*e^2+g*d^2)^-1*log(f+g*x^2)+-1//2*b*d*e*n*f^-3//2*g^(1/2)*(f*e^2+g*d^2)^-1*arctan(x*f^-1//2*g^(1/2)))
@test integrate(x^-3*(f+g*x^2)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(-1//2*f^-2*x^-2*(a+b*log(c*(d+e*x)^n))+g*f^-3*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+g*f^-3*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-2*g*f^-3*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+-1//2*g*f^-2*(f+g*x^2)^-1*(a+b*log(c*(d+e*x)^n))+b*g*n*f^-3*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+b*g*n*f^-3*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-2*b*g*n*f^-3*Polylogarithms.polylog(2,1+e*x*d^-1)+(1/2)*b*n*d^-2*e^2*f^-2*log(d+e*x)+-1//2*b*e*n*d^-1*f^-2*x^-1+-1//2*b*n*d^-2*e^2*f^-2*log(x)+(1/2)*b*g*n*e^2*f^-2*(f*e^2+g*d^2)^-1*log(d+e*x)+-1//4*b*g*n*e^2*f^-2*(f*e^2+g*d^2)^-1*log(f+g*x^2)+(1/2)*b*d*e*n*f^-5//2*g^3//2*(f*e^2+g*d^2)^-1*arctan(x*f^-1//2*g^(1/2)))
@test integrate(x^4*(f+g*x^2)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(a*x*g^-2+-1*b*n*x*g^-2+-3//4*g^-5//2*(-1*f)^(1/2)*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1//4*f*g^-5//2*((-1*f)^(1/2)+-1*x*g^(1/2))^-1*(a+b*log(c*(d+e*x)^n))+1//4*f*g^-5//2*((-1*f)^(1/2)+x*g^(1/2))^-1*(a+b*log(c*(d+e*x)^n))+3//4*g^-5//2*(-1*f)^(1/2)*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+b*e^-1*g^-2*(d+e*x)*log(c*(d+e*x)^n)+-3//4*b*n*g^-5//2*(-1*f)^(1/2)*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+3//4*b*n*g^-5//2*(-1*f)^(1/2)*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+b*e*f*n*g^-5//2*(-4*d*g^(1/2)+4*e*(-1*f)^(1/2))^-1*log((-1*f)^(1/2)+x*g^(1/2))+b*e*f*n*g^-5//2*(4*d*g^(1/2)+4*e*(-1*f)^(1/2))^-1*log(d+e*x)+-1*b*e*f*n*g^-5//2*(-4*d*g^(1/2)+4*e*(-1*f)^(1/2))^-1*log(d+e*x)+-1*b*e*f*n*g^-5//2*(4*d*g^(1/2)+4*e*(-1*f)^(1/2))^-1*log((-1*f)^(1/2)+-1*x*g^(1/2)))
@test integrate(x^2*(f+g*x^2)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(-1//4*g^-3//2*((-1*f)^(1/2)+x*g^(1/2))^-1*(a+b*log(c*(d+e*x)^n))+1//4*g^-3//2*((-1*f)^(1/2)+-1*x*g^(1/2))^-1*(a+b*log(c*(d+e*x)^n))+-1//4*g^-3//2*(-1*f)^-1//2*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+1//4*g^-3//2*(-1*f)^-1//2*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//4*b*n*g^-3//2*(-1*f)^-1//2*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+1//4*b*n*g^-3//2*(-1*f)^-1//2*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+b*e*n*g^-3//2*(-4*d*g^(1/2)+4*e*(-1*f)^(1/2))^-1*log(d+e*x)+b*e*n*g^-3//2*(4*d*g^(1/2)+4*e*(-1*f)^(1/2))^-1*log((-1*f)^(1/2)+-1*x*g^(1/2))+-1*b*e*n*g^-3//2*(-4*d*g^(1/2)+4*e*(-1*f)^(1/2))^-1*log((-1*f)^(1/2)+x*g^(1/2))+-1*b*e*n*g^-3//2*(4*d*g^(1/2)+4*e*(-1*f)^(1/2))^-1*log(d+e*x))
@test integrate((f+g*x^2)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(-1//4*f^-1*g^-1//2*((-1*f)^(1/2)+-1*x*g^(1/2))^-1*(a+b*log(c*(d+e*x)^n))+-1//4*g^-1//2*(-1*f)^-3//2*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+1//4*f^-1*g^-1//2*((-1*f)^(1/2)+x*g^(1/2))^-1*(a+b*log(c*(d+e*x)^n))+1//4*g^-1//2*(-1*f)^-3//2*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1//4*b*n*g^-1//2*(-1*f)^-3//2*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+1//4*b*n*g^-1//2*(-1*f)^-3//2*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+b*e*n*g^-1//2*(4*e*(-1*f)^3//2+4*d*f*g^(1/2))^-1*log(d+e*x)+-1*b*e*n*g^-1//2*(4*e*(-1*f)^3//2+4*d*f*g^(1/2))^-1*log((-1*f)^(1/2)+x*g^(1/2))+-1//4*b*e*n*f^-1*g^-1//2*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*log((-1*f)^(1/2)+-1*x*g^(1/2))+1//4*b*e*n*f^-1*g^-1//2*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*log(d+e*x))
@test integrate(x^-2*(f+g*x^2)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(-1*f^-2*x^-1*(a+b*log(c*(d+e*x)^n))+-3//4*g^(1/2)*(-1*f)^-5//2*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//4*f^-2*g^(1/2)*((-1*f)^(1/2)+x*g^(1/2))^-1*(a+b*log(c*(d+e*x)^n))+1//4*f^-2*g^(1/2)*((-1*f)^(1/2)+-1*x*g^(1/2))^-1*(a+b*log(c*(d+e*x)^n))+3//4*g^(1/2)*(-1*f)^-5//2*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-3//4*b*n*g^(1/2)*(-1*f)^-5//2*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+3//4*b*n*g^(1/2)*(-1*f)^-5//2*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+b*e*n*d^-1*f^-2*log(x)+-1*b*e*n*d^-1*f^-2*log(d+e*x)+-1//4*b*e*n*f^-1*g^(1/2)*(e*(-1*f)^3//2+d*f*g^(1/2))^-1*log(d+e*x)+-1//4*b*e*n*f^-2*g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*log(d+e*x)+1//4*b*e*n*f^-1*g^(1/2)*(e*(-1*f)^3//2+d*f*g^(1/2))^-1*log((-1*f)^(1/2)+x*g^(1/2))+1//4*b*e*n*f^-2*g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*log((-1*f)^(1/2)+-1*x*g^(1/2)))
@test integrate((2+g*x^2)^-1//2*(a+b*log(c*(d+e*x)^n)), x) == :(g^-1//2*(a+b*log(c*(d+e*x)^n))*arcsinh((1/2)*x*2^(1/2)*g^(1/2))+(1/2)*b*n*g^-1//2*arcsinh((1/2)*x*2^(1/2)*g^(1/2))^2+-1*b*n*g^-1//2*Polylogarithms.polylog(2,-1*e*2^(1/2)*((2*e^2+g*d^2)^(1/2)+d*g^(1/2))^-1*exp(arcsinh((1/2)*x*2^(1/2)*g^(1/2))))+-1*b*n*g^-1//2*Polylogarithms.polylog(2,-1*e*2^(1/2)*(-1*(2*e^2+g*d^2)^(1/2)+d*g^(1/2))^-1*exp(arcsinh((1/2)*x*2^(1/2)*g^(1/2))))+-1*b*n*g^-1//2*arcsinh((1/2)*x*2^(1/2)*g^(1/2))*log(1+e*2^(1/2)*((2*e^2+g*d^2)^(1/2)+d*g^(1/2))^-1*exp(arcsinh((1/2)*x*2^(1/2)*g^(1/2))))+-1*b*n*g^-1//2*arcsinh((1/2)*x*2^(1/2)*g^(1/2))*log(1+e*2^(1/2)*(-1*(2*e^2+g*d^2)^(1/2)+d*g^(1/2))^-1*exp(arcsinh((1/2)*x*2^(1/2)*g^(1/2)))))
@test integrate((f+g*x^2)^-1//2*(a+b*log(c*(d+e*x)^n)), x) == :(f^(1/2)*g^-1//2*(1+g*f^-1*x^2)^(1/2)*(f+g*x^2)^-1//2*(a+b*log(c*(d+e*x)^n))*arcsinh(x*f^-1//2*g^(1/2))+(1/2)*b*n*f^(1/2)*g^-1//2*(1+g*f^-1*x^2)^(1/2)*(f+g*x^2)^-1//2*arcsinh(x*f^-1//2*g^(1/2))^2+-1*b*n*f^(1/2)*g^-1//2*(1+g*f^-1*x^2)^(1/2)*(f+g*x^2)^-1//2*Polylogarithms.polylog(2,-1*e*f^(1/2)*((f*e^2+g*d^2)^(1/2)+d*g^(1/2))^-1*exp(arcsinh(x*f^-1//2*g^(1/2))))+-1*b*n*f^(1/2)*g^-1//2*(1+g*f^-1*x^2)^(1/2)*(f+g*x^2)^-1//2*Polylogarithms.polylog(2,-1*e*f^(1/2)*(-1*(f*e^2+g*d^2)^(1/2)+d*g^(1/2))^-1*exp(arcsinh(x*f^-1//2*g^(1/2))))+-1*b*n*f^(1/2)*g^-1//2*(1+g*f^-1*x^2)^(1/2)*(f+g*x^2)^-1//2*arcsinh(x*f^-1//2*g^(1/2))*log(1+e*f^(1/2)*((f*e^2+g*d^2)^(1/2)+d*g^(1/2))^-1*exp(arcsinh(x*f^-1//2*g^(1/2))))+-1*b*n*f^(1/2)*g^-1//2*(1+g*f^-1*x^2)^(1/2)*(f+g*x^2)^-1//2*arcsinh(x*f^-1//2*g^(1/2))*log(1+e*f^(1/2)*(-1*(f*e^2+g*d^2)^(1/2)+d*g^(1/2))^-1*exp(arcsinh(x*f^-1//2*g^(1/2)))))
@test integrate((2+g*x)^-1//2*(2+-1*g*x)^-1//2*(a+b*log(c*(d+e*x)^n)), x) == :(g^-1*(a+b*log(c*(d+e*x)^n))*arcsin((1/2)*g*x)+im*b*n*g^-1*Polylogarithms.polylog(2,-2*e*((4*e^2+-1*d^2*g^2)^(1/2)+im*d*g)^-1*exp(im*arcsin((1/2)*g*x)))+im*b*n*g^-1*Polylogarithms.polylog(2,-2*e*(-1*(4*e^2+-1*d^2*g^2)^(1/2)+im*d*g)^-1*exp(im*arcsin((1/2)*g*x)))+(1/2)*im*b*n*g^-1*arcsin((1/2)*g*x)^2+-1*b*n*g^-1*arcsin((1/2)*g*x)*log(1+2*e*((4*e^2+-1*d^2*g^2)^(1/2)+im*d*g)^-1*exp(im*arcsin((1/2)*g*x)))+-1*b*n*g^-1*arcsin((1/2)*g*x)*log(1+2*e*(-1*(4*e^2+-1*d^2*g^2)^(1/2)+im*d*g)^-1*exp(im*arcsin((1/2)*g*x))))
@test integrate((f+g*x)^-1//2*(f+-1*g*x)^-1//2*(a+b*log(c*(d+e*x)^n)), x) == :(f*g^-1*(1+-1*f^-2*g^2*x^2)^(1/2)*(f+g*x)^-1//2*(f+-1*g*x)^-1//2*(a+b*log(c*(d+e*x)^n))*arcsin(g*x*f^-1)+im*b*f*n*g^-1*(1+-1*f^-2*g^2*x^2)^(1/2)*(f+g*x)^-1//2*(f+-1*g*x)^-1//2*Polylogarithms.polylog(2,-1*e*f*((e^2*f^2+-1*d^2*g^2)^(1/2)+im*d*g)^-1*exp(im*arcsin(g*x*f^-1)))+im*b*f*n*g^-1*(1+-1*f^-2*g^2*x^2)^(1/2)*(f+g*x)^-1//2*(f+-1*g*x)^-1//2*Polylogarithms.polylog(2,-1*e*f*(-1*(e^2*f^2+-1*d^2*g^2)^(1/2)+im*d*g)^-1*exp(im*arcsin(g*x*f^-1)))+(1/2)*im*b*f*n*g^-1*(1+-1*f^-2*g^2*x^2)^(1/2)*(f+g*x)^-1//2*(f+-1*g*x)^-1//2*arcsin(g*x*f^-1)^2+-1*b*f*n*g^-1*(1+-1*f^-2*g^2*x^2)^(1/2)*(f+g*x)^-1//2*(f+-1*g*x)^-1//2*arcsin(g*x*f^-1)*log(1+e*f*((e^2*f^2+-1*d^2*g^2)^(1/2)+im*d*g)^-1*exp(im*arcsin(g*x*f^-1)))+-1*b*f*n*g^-1*(1+-1*f^-2*g^2*x^2)^(1/2)*(f+g*x)^-1//2*(f+-1*g*x)^-1//2*arcsin(g*x*f^-1)*log(1+e*f*(-1*(e^2*f^2+-1*d^2*g^2)^(1/2)+im*d*g)^-1*exp(im*arcsin(g*x*f^-1))))
@test integrate((e^2+-1*f^2*x^2)^-1*log(2*e*(e+f*x)^-1), x) == :((1/2)*e^-1*f^-1*Polylogarithms.polylog(2,1+-2*e*(e+f*x)^-1))
@test integrate((e^2+-1*f^2*x^2)^-1*log(e*(e+f*x)^-1), x) == :((1/2)*e^-1*f^-1*Polylogarithms.polylog(2,1+-2*e*(e+f*x)^-1)+-1*e^-1*f^-1*arctanh(f*x*e^-1)*log(2))
@test integrate((e^2+-1*f^2*x^2)^-1*(a+b*log(2*e*(e+f*x)^-1)), x) == :(a*e^-1*f^-1*arctanh(f*x*e^-1)+(1/2)*b*e^-1*f^-1*Polylogarithms.polylog(2,1+-2*e*(e+f*x)^-1))
@test integrate((e^2+-1*f^2*x^2)^-1*(a+b*log(e*(e+f*x)^-1)), x) == :(e^-1*f^-1*(a+-1*b*log(2))*arctanh(f*x*e^-1)+(1/2)*b*e^-1*f^-1*Polylogarithms.polylog(2,1+-2*e*(e+f*x)^-1))
@test integrate(x^5*(a+b*x^3)^-1*log(c+d*x), x) == :(-1//9*b^-1*x^3+-1//3*a*b^-2*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*a^1//3)^-1*(c+d*x))+-1//3*a*b^-2*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+d*(-1)^1//3*a^1//3)^-1*(c+d*x))+-1//3*a*b^-2*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*(-1)^2//3*a^1//3)^-1*(c+d*x))+1//3*b^-1*x^3*log(c+d*x)+-1//3*a*b^-2*log(-1*d*(c*b^1//3+-1*d*a^1//3)^-1*(a^1//3+x*b^1//3))*log(c+d*x)+-1//3*a*b^-2*log(-1*d*(c*b^1//3+-1*d*(-1)^2//3*a^1//3)^-1*(x*b^1//3+(-1)^2//3*a^1//3))*log(c+d*x)+-1//3*a*b^-2*log(d*(-1)^1//3*(c*b^1//3+d*(-1)^1//3*a^1//3)^-1*(a^1//3+x*(-1)^2//3*b^1//3))*log(c+d*x)+-1//3*x*b^-1*c^2*d^-2+1//3*b^-1*c^3*d^-3*log(c+d*x)+1//6*c*b^-1*d^-1*x^2)
@test integrate(x^2*(a+b*x^3)^-1*log(c+d*x), x) == :(1//3*b^-1*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*a^1//3)^-1*(c+d*x))+1//3*b^-1*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+d*(-1)^1//3*a^1//3)^-1*(c+d*x))+1//3*b^-1*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*(-1)^2//3*a^1//3)^-1*(c+d*x))+1//3*b^-1*log(-1*d*(c*b^1//3+-1*d*a^1//3)^-1*(a^1//3+x*b^1//3))*log(c+d*x)+1//3*b^-1*log(-1*d*(c*b^1//3+-1*d*(-1)^2//3*a^1//3)^-1*(x*b^1//3+(-1)^2//3*a^1//3))*log(c+d*x)+1//3*b^-1*log(d*(-1)^1//3*(c*b^1//3+d*(-1)^1//3*a^1//3)^-1*(a^1//3+x*(-1)^2//3*b^1//3))*log(c+d*x))
@test integrate(x^-1*(a+b*x^3)^-1*log(c+d*x), x) == :(a^-1*Polylogarithms.polylog(2,1+d*x*c^-1)+-1//3*a^-1*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*a^1//3)^-1*(c+d*x))+-1//3*a^-1*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+d*(-1)^1//3*a^1//3)^-1*(c+d*x))+-1//3*a^-1*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*(-1)^2//3*a^1//3)^-1*(c+d*x))+a^-1*log(-1*d*x*c^-1)*log(c+d*x)+-1//3*a^-1*log(-1*d*(c*b^1//3+-1*d*a^1//3)^-1*(a^1//3+x*b^1//3))*log(c+d*x)+-1//3*a^-1*log(-1*d*(c*b^1//3+-1*d*(-1)^2//3*a^1//3)^-1*(x*b^1//3+(-1)^2//3*a^1//3))*log(c+d*x)+-1//3*a^-1*log(d*(-1)^1//3*(c*b^1//3+d*(-1)^1//3*a^1//3)^-1*(a^1//3+x*(-1)^2//3*b^1//3))*log(c+d*x))
@test integrate(x^-4*(a+b*x^3)^-1*log(c+d*x), x) == :(-1*b*a^-2*Polylogarithms.polylog(2,1+d*x*c^-1)+-1//3*a^-1*x^-3*log(c+d*x)+1//3*b*a^-2*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*a^1//3)^-1*(c+d*x))+1//3*b*a^-2*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+d*(-1)^1//3*a^1//3)^-1*(c+d*x))+1//3*b*a^-2*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*(-1)^2//3*a^1//3)^-1*(c+d*x))+-1*b*a^-2*log(-1*d*x*c^-1)*log(c+d*x)+-1//3*a^-1*c^-3*d^3*log(c+d*x)+-1//6*d*a^-1*c^-1*x^-2+1//3*b*a^-2*log(-1*d*(c*b^1//3+-1*d*a^1//3)^-1*(a^1//3+x*b^1//3))*log(c+d*x)+1//3*b*a^-2*log(-1*d*(c*b^1//3+-1*d*(-1)^2//3*a^1//3)^-1*(x*b^1//3+(-1)^2//3*a^1//3))*log(c+d*x)+1//3*b*a^-2*log(d*(-1)^1//3*(c*b^1//3+d*(-1)^1//3*a^1//3)^-1*(a^1//3+x*(-1)^2//3*b^1//3))*log(c+d*x)+1//3*a^-1*c^-3*d^3*log(x)+1//3*a^-1*c^-2*d^2*x^-1)
@test integrate(x^4*(a+b*x^3)^-1*log(c+d*x), x) == :(-1//4*b^-1*x^2+(1/2)*b^-1*x^2*log(c+d*x)+1//3*a^2//3*b^-5//3*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*a^1//3)^-1*(c+d*x))+(1/2)*c*x*b^-1*d^-1+-1//2*b^-1*c^2*d^-2*log(c+d*x)+-1//3*(-1)^1//3*a^2//3*b^-5//3*Polylogarithms.polylog(2,(-1)^1//3*b^1//3*(d*a^1//3+c*(-1)^1//3*b^1//3)^-1*(c+d*x))+1//3*(-1)^2//3*a^2//3*b^-5//3*Polylogarithms.polylog(2,(-1)^2//3*b^1//3*(-1*d*a^1//3+c*(-1)^2//3*b^1//3)^-1*(c+d*x))+1//3*a^2//3*b^-5//3*log(-1*d*(c*b^1//3+-1*d*a^1//3)^-1*(a^1//3+x*b^1//3))*log(c+d*x)+-1//3*(-1)^1//3*a^2//3*b^-5//3*log(d*(d*a^1//3+c*(-1)^1//3*b^1//3)^-1*(a^1//3+-1*x*(-1)^1//3*b^1//3))*log(c+d*x)+1//3*(-1)^2//3*a^2//3*b^-5//3*log(-1*d*(-1*d*a^1//3+c*(-1)^2//3*b^1//3)^-1*(a^1//3+x*(-1)^2//3*b^1//3))*log(c+d*x))
@test integrate(x^3*(a+b*x^3)^-1*log(c+d*x), x) == :(-1*x*b^-1+-1//3*a^1//3*b^-4//3*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*a^1//3)^-1*(c+d*x))+b^-1*d^-1*(c+d*x)*log(c+d*x)+-1//3*(-1)^2//3*a^1//3*b^-4//3*Polylogarithms.polylog(2,(-1)^1//3*b^1//3*(d*a^1//3+c*(-1)^1//3*b^1//3)^-1*(c+d*x))+-1//3*a^1//3*b^-4//3*log(-1*d*(c*b^1//3+-1*d*a^1//3)^-1*(a^1//3+x*b^1//3))*log(c+d*x)+1//3*(-1)^1//3*a^1//3*b^-4//3*Polylogarithms.polylog(2,(-1)^2//3*b^1//3*(-1*d*a^1//3+c*(-1)^2//3*b^1//3)^-1*(c+d*x))+-1//3*(-1)^2//3*a^1//3*b^-4//3*log(d*(d*a^1//3+c*(-1)^1//3*b^1//3)^-1*(a^1//3+-1*x*(-1)^1//3*b^1//3))*log(c+d*x)+1//3*(-1)^1//3*a^1//3*b^-4//3*log(-1*d*(-1*d*a^1//3+c*(-1)^2//3*b^1//3)^-1*(a^1//3+x*(-1)^2//3*b^1//3))*log(c+d*x))
@test integrate(x*(a+b*x^3)^-1*log(c+d*x), x) == :(-1//3*a^-1//3*b^-2//3*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*a^1//3)^-1*(c+d*x))+-1//3*(-1)^2//3*a^-1//3*b^-2//3*Polylogarithms.polylog(2,(-1)^2//3*b^1//3*(-1*d*a^1//3+c*(-1)^2//3*b^1//3)^-1*(c+d*x))+-1//3*a^-1//3*b^-2//3*log(-1*d*(c*b^1//3+-1*d*a^1//3)^-1*(a^1//3+x*b^1//3))*log(c+d*x)+1//3*(-1)^1//3*a^-1//3*b^-2//3*Polylogarithms.polylog(2,(-1)^1//3*b^1//3*(d*a^1//3+c*(-1)^1//3*b^1//3)^-1*(c+d*x))+-1//3*(-1)^2//3*a^-1//3*b^-2//3*log(-1*d*(-1*d*a^1//3+c*(-1)^2//3*b^1//3)^-1*(a^1//3+x*(-1)^2//3*b^1//3))*log(c+d*x)+1//3*(-1)^1//3*a^-1//3*b^-2//3*log(d*(d*a^1//3+c*(-1)^1//3*b^1//3)^-1*(a^1//3+-1*x*(-1)^1//3*b^1//3))*log(c+d*x))
@test integrate((a+b*x^3)^-1*log(c+d*x), x) == :(1//3*a^-2//3*b^-1//3*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*a^1//3)^-1*(c+d*x))+-1//3*(-1)^1//3*a^-2//3*b^-1//3*Polylogarithms.polylog(2,(-1)^2//3*b^1//3*(-1*d*a^1//3+c*(-1)^2//3*b^1//3)^-1*(c+d*x))+1//3*(-1)^2//3*a^-2//3*b^-1//3*Polylogarithms.polylog(2,(-1)^1//3*b^1//3*(d*a^1//3+c*(-1)^1//3*b^1//3)^-1*(c+d*x))+1//3*a^-2//3*b^-1//3*log(-1*d*(c*b^1//3+-1*d*a^1//3)^-1*(a^1//3+x*b^1//3))*log(c+d*x)+-1//3*(-1)^1//3*a^-2//3*b^-1//3*log(-1*d*(-1*d*a^1//3+c*(-1)^2//3*b^1//3)^-1*(a^1//3+x*(-1)^2//3*b^1//3))*log(c+d*x)+1//3*(-1)^2//3*a^-2//3*b^-1//3*log(d*(d*a^1//3+c*(-1)^1//3*b^1//3)^-1*(a^1//3+-1*x*(-1)^1//3*b^1//3))*log(c+d*x))
@test integrate(x^-2*(a+b*x^3)^-1*log(c+d*x), x) == :(-1*a^-1*x^-1*log(c+d*x)+1//3*a^-4//3*b^1//3*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*a^1//3)^-1*(c+d*x))+d*a^-1*c^-1*log(x)+-1*d*a^-1*c^-1*log(c+d*x)+-1//3*(-1)^1//3*a^-4//3*b^1//3*Polylogarithms.polylog(2,(-1)^1//3*b^1//3*(d*a^1//3+c*(-1)^1//3*b^1//3)^-1*(c+d*x))+1//3*(-1)^2//3*a^-4//3*b^1//3*Polylogarithms.polylog(2,(-1)^2//3*b^1//3*(-1*d*a^1//3+c*(-1)^2//3*b^1//3)^-1*(c+d*x))+1//3*a^-4//3*b^1//3*log(-1*d*(c*b^1//3+-1*d*a^1//3)^-1*(a^1//3+x*b^1//3))*log(c+d*x)+-1//3*(-1)^1//3*a^-4//3*b^1//3*log(d*(d*a^1//3+c*(-1)^1//3*b^1//3)^-1*(a^1//3+-1*x*(-1)^1//3*b^1//3))*log(c+d*x)+1//3*(-1)^2//3*a^-4//3*b^1//3*log(-1*d*(-1*d*a^1//3+c*(-1)^2//3*b^1//3)^-1*(a^1//3+x*(-1)^2//3*b^1//3))*log(c+d*x))
@test integrate(x^-3*(a+b*x^3)^-1*log(c+d*x), x) == :(-1//2*a^-1*x^-2*log(c+d*x)+-1//3*a^-5//3*b^2//3*Polylogarithms.polylog(2,b^1//3*(c*b^1//3+-1*d*a^1//3)^-1*(c+d*x))+(1/2)*a^-1*c^-2*d^2*log(c+d*x)+-1//2*d*a^-1*c^-1*x^-1+-1//2*a^-1*c^-2*d^2*log(x)+-1//3*(-1)^2//3*a^-5//3*b^2//3*Polylogarithms.polylog(2,(-1)^1//3*b^1//3*(d*a^1//3+c*(-1)^1//3*b^1//3)^-1*(c+d*x))+-1//3*a^-5//3*b^2//3*log(-1*d*(c*b^1//3+-1*d*a^1//3)^-1*(a^1//3+x*b^1//3))*log(c+d*x)+1//3*(-1)^1//3*a^-5//3*b^2//3*Polylogarithms.polylog(2,(-1)^2//3*b^1//3*(-1*d*a^1//3+c*(-1)^2//3*b^1//3)^-1*(c+d*x))+-1//3*(-1)^2//3*a^-5//3*b^2//3*log(d*(d*a^1//3+c*(-1)^1//3*b^1//3)^-1*(a^1//3+-1*x*(-1)^1//3*b^1//3))*log(c+d*x)+1//3*(-1)^1//3*a^-5//3*b^2//3*log(-1*d*(-1*d*a^1//3+c*(-1)^2//3*b^1//3)^-1*(a^1//3+x*(-1)^2//3*b^1//3))*log(c+d*x))
@test integrate(x^7*(a+b*x^4)^-1*log(c+d*x), x) == :(-1//16*b^-1*x^4+-1//4*a*b^-2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1a)^1//4)^-1*(c+d*x))+-1//4*a*b^-2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+-1//4*a*b^-2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1a)^1//4)^-1*(c+d*x))+-1//4*a*b^-2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+1//4*b^-1*x^4*log(c+d*x)+-1//4*a*b^-2*log(d*(c*b^1//4+d*(-1a)^1//4)^-1*((-1a)^1//4+-1*x*b^1//4))*log(c+d*x)+-1//4*a*b^-2*log(d*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+-1*x*b^1//4))*log(c+d*x)+-1//4*a*b^-2*log(-1*d*(c*b^1//4+-1*d*(-1a)^1//4)^-1*((-1a)^1//4+x*b^1//4))*log(c+d*x)+-1//4*a*b^-2*log(-1*d*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+x*b^1//4))*log(c+d*x)+-1//4*b^-1*c^4*d^-4*log(c+d*x)+-1//8*b^-1*c^2*d^-2*x^2+1//4*x*b^-1*c^3*d^-3+1//12*c*b^-1*d^-1*x^3)
@test integrate(x^3*(a+b*x^4)^-1*log(c+d*x), x) == :(1//4*b^-1*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1a)^1//4)^-1*(c+d*x))+1//4*b^-1*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+1//4*b^-1*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1a)^1//4)^-1*(c+d*x))+1//4*b^-1*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+1//4*b^-1*log(d*(c*b^1//4+d*(-1a)^1//4)^-1*((-1a)^1//4+-1*x*b^1//4))*log(c+d*x)+1//4*b^-1*log(d*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+-1*x*b^1//4))*log(c+d*x)+1//4*b^-1*log(-1*d*(c*b^1//4+-1*d*(-1a)^1//4)^-1*((-1a)^1//4+x*b^1//4))*log(c+d*x)+1//4*b^-1*log(-1*d*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+x*b^1//4))*log(c+d*x))
@test integrate(x^-1*(a+b*x^4)^-1*log(c+d*x), x) == :(a^-1*Polylogarithms.polylog(2,1+d*x*c^-1)+-1//4*a^-1*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1a)^1//4)^-1*(c+d*x))+-1//4*a^-1*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+-1//4*a^-1*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1a)^1//4)^-1*(c+d*x))+-1//4*a^-1*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+a^-1*log(-1*d*x*c^-1)*log(c+d*x)+-1//4*a^-1*log(d*(c*b^1//4+d*(-1a)^1//4)^-1*((-1a)^1//4+-1*x*b^1//4))*log(c+d*x)+-1//4*a^-1*log(d*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+-1*x*b^1//4))*log(c+d*x)+-1//4*a^-1*log(-1*d*(c*b^1//4+-1*d*(-1a)^1//4)^-1*((-1a)^1//4+x*b^1//4))*log(c+d*x)+-1//4*a^-1*log(-1*d*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+x*b^1//4))*log(c+d*x))
@test integrate(x^5*(a+b*x^4)^-1*log(c+d*x), x) == :(-1//4*b^-1*x^2+(1/2)*b^-1*x^2*log(c+d*x)+-1//4*b^-3//2*(-1a)^(1/2)*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+-1//4*b^-3//2*(-1a)^(1/2)*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+1//4*b^-3//2*(-1a)^(1/2)*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1a)^1//4)^-1*(c+d*x))+1//4*b^-3//2*(-1a)^(1/2)*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1a)^1//4)^-1*(c+d*x))+(1/2)*c*x*b^-1*d^-1+-1//2*b^-1*c^2*d^-2*log(c+d*x)+-1//4*b^-3//2*(-1a)^(1/2)*log(d*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+-1*x*b^1//4))*log(c+d*x)+-1//4*b^-3//2*(-1a)^(1/2)*log(-1*d*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+x*b^1//4))*log(c+d*x)+1//4*b^-3//2*(-1a)^(1/2)*log(d*(c*b^1//4+d*(-1a)^1//4)^-1*((-1a)^1//4+-1*x*b^1//4))*log(c+d*x)+1//4*b^-3//2*(-1a)^(1/2)*log(-1*d*(c*b^1//4+-1*d*(-1a)^1//4)^-1*((-1a)^1//4+x*b^1//4))*log(c+d*x))
@test integrate(x*(a+b*x^4)^-1*log(c+d*x), x) == :(-1//4*b^-1//2*(-1a)^-1//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+-1//4*b^-1//2*(-1a)^-1//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+1//4*b^-1//2*(-1a)^-1//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1a)^1//4)^-1*(c+d*x))+1//4*b^-1//2*(-1a)^-1//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1a)^1//4)^-1*(c+d*x))+-1//4*b^-1//2*(-1a)^-1//2*log(d*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+-1*x*b^1//4))*log(c+d*x)+-1//4*b^-1//2*(-1a)^-1//2*log(-1*d*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+x*b^1//4))*log(c+d*x)+1//4*b^-1//2*(-1a)^-1//2*log(d*(c*b^1//4+d*(-1a)^1//4)^-1*((-1a)^1//4+-1*x*b^1//4))*log(c+d*x)+1//4*b^-1//2*(-1a)^-1//2*log(-1*d*(c*b^1//4+-1*d*(-1a)^1//4)^-1*((-1a)^1//4+x*b^1//4))*log(c+d*x))
@test integrate(x^-3*(a+b*x^4)^-1*log(c+d*x), x) == :(-1//2*a^-1*x^-2*log(c+d*x)+-1//4*b^(1/2)*(-1a)^-3//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+-1//4*b^(1/2)*(-1a)^-3//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+1//4*b^(1/2)*(-1a)^-3//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1a)^1//4)^-1*(c+d*x))+1//4*b^(1/2)*(-1a)^-3//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1a)^1//4)^-1*(c+d*x))+(1/2)*a^-1*c^-2*d^2*log(c+d*x)+-1//2*d*a^-1*c^-1*x^-1+-1//2*a^-1*c^-2*d^2*log(x)+-1//4*b^(1/2)*(-1a)^-3//2*log(d*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+-1*x*b^1//4))*log(c+d*x)+-1//4*b^(1/2)*(-1a)^-3//2*log(-1*d*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+x*b^1//4))*log(c+d*x)+1//4*b^(1/2)*(-1a)^-3//2*log(d*(c*b^1//4+d*(-1a)^1//4)^-1*((-1a)^1//4+-1*x*b^1//4))*log(c+d*x)+1//4*b^(1/2)*(-1a)^-3//2*log(-1*d*(c*b^1//4+-1*d*(-1a)^1//4)^-1*((-1a)^1//4+x*b^1//4))*log(c+d*x))
@test integrate(x^4*(a+b*x^4)^-1*log(c+d*x), x) == :(-1*x*b^-1+-1//4*b^-5//4*(-1a)^1//4*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1a)^1//4)^-1*(c+d*x))+-1//4*b^-5//4*(-1*(-1a)^(1/2))^(1/2)*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+1//4*b^-5//4*(-1a)^1//4*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1a)^1//4)^-1*(c+d*x))+1//4*b^-5//4*(-1*(-1a)^(1/2))^(1/2)*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+b^-1*d^-1*(c+d*x)*log(c+d*x)+-1//4*b^-5//4*(-1a)^1//4*log(-1*d*(c*b^1//4+-1*d*(-1a)^1//4)^-1*((-1a)^1//4+x*b^1//4))*log(c+d*x)+-1//4*b^-5//4*(-1*(-1a)^(1/2))^(1/2)*log(-1*d*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+x*b^1//4))*log(c+d*x)+1//4*b^-5//4*(-1a)^1//4*log(d*(c*b^1//4+d*(-1a)^1//4)^-1*((-1a)^1//4+-1*x*b^1//4))*log(c+d*x)+1//4*b^-5//4*(-1*(-1a)^(1/2))^(1/2)*log(d*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+-1*x*b^1//4))*log(c+d*x))
@test integrate(x^2*(a+b*x^4)^-1*log(c+d*x), x) == :(-1//4*b^-3//4*(-1a)^-1//4*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1a)^1//4)^-1*(c+d*x))+-1//4*b^-3//4*(-1*(-1a)^(1/2))^-1//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+1//4*b^-3//4*(-1a)^-1//4*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1a)^1//4)^-1*(c+d*x))+1//4*b^-3//4*(-1*(-1a)^(1/2))^-1//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+-1//4*b^-3//4*(-1a)^-1//4*log(-1*d*(c*b^1//4+-1*d*(-1a)^1//4)^-1*((-1a)^1//4+x*b^1//4))*log(c+d*x)+-1//4*b^-3//4*(-1*(-1a)^(1/2))^-1//2*log(-1*d*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+x*b^1//4))*log(c+d*x)+1//4*b^-3//4*(-1a)^-1//4*log(d*(c*b^1//4+d*(-1a)^1//4)^-1*((-1a)^1//4+-1*x*b^1//4))*log(c+d*x)+1//4*b^-3//4*(-1*(-1a)^(1/2))^-1//2*log(d*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+-1*x*b^1//4))*log(c+d*x))
@test integrate((a+b*x^4)^-1*log(c+d*x), x) == :(-1//4*b^-1//4*(-1a)^-3//4*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1a)^1//4)^-1*(c+d*x))+-1//4*b^-1//4*(-1*(-1a)^(1/2))^-3//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+1//4*b^-1//4*(-1a)^-3//4*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1a)^1//4)^-1*(c+d*x))+1//4*b^-1//4*(-1*(-1a)^(1/2))^-3//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+-1//4*b^-1//4*(-1a)^-3//4*log(-1*d*(c*b^1//4+-1*d*(-1a)^1//4)^-1*((-1a)^1//4+x*b^1//4))*log(c+d*x)+-1//4*b^-1//4*(-1*(-1a)^(1/2))^-3//2*log(-1*d*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+x*b^1//4))*log(c+d*x)+1//4*b^-1//4*(-1a)^-3//4*log(d*(c*b^1//4+d*(-1a)^1//4)^-1*((-1a)^1//4+-1*x*b^1//4))*log(c+d*x)+1//4*b^-1//4*(-1*(-1a)^(1/2))^-3//2*log(d*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+-1*x*b^1//4))*log(c+d*x))
@test integrate(x^-2*(a+b*x^4)^-1*log(c+d*x), x) == :(-1*a^-1*x^-1*log(c+d*x)+-1//4*b^1//4*(-1a)^-5//4*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1a)^1//4)^-1*(c+d*x))+-1//4*b^1//4*(-1*(-1a)^(1/2))^-5//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+1//4*b^1//4*(-1a)^-5//4*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1a)^1//4)^-1*(c+d*x))+1//4*b^1//4*(-1*(-1a)^(1/2))^-5//2*Polylogarithms.polylog(2,b^1//4*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*(c+d*x))+d*a^-1*c^-1*log(x)+-1*d*a^-1*c^-1*log(c+d*x)+-1//4*b^1//4*(-1a)^-5//4*log(-1*d*(c*b^1//4+-1*d*(-1a)^1//4)^-1*((-1a)^1//4+x*b^1//4))*log(c+d*x)+-1//4*b^1//4*(-1*(-1a)^(1/2))^-5//2*log(-1*d*(c*b^1//4+-1*d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+x*b^1//4))*log(c+d*x)+1//4*b^1//4*(-1a)^-5//4*log(d*(c*b^1//4+d*(-1a)^1//4)^-1*((-1a)^1//4+-1*x*b^1//4))*log(c+d*x)+1//4*b^1//4*(-1*(-1a)^(1/2))^-5//2*log(d*(c*b^1//4+d*(-1*(-1a)^(1/2))^(1/2))^-1*((-1*(-1a)^(1/2))^(1/2)+-1*x*b^1//4))*log(c+d*x))
@test integrate(x*(a+b*log(c*(d+e*x)^n))*(f+g*x^-1), x) == :((1/2)*f^-1*(g+f*x)^2*(a+b*log(c*(d+e*x)^n))+-1//4*b*n*f^-1*(g+f*x)^2+(1/2)*b*n*x*e^-1*(d*f+-1*e*g)+-1//2*b*n*e^-2*f^-1*(d*f+-1*e*g)^2*log(d+e*x))
@test integrate(x^2*(f+g*x^-1)^2*(a+b*log(c*(d+e*x)^n)), x) == :(1//3*f^-1*(g+f*x)^3*(a+b*log(c*(d+e*x)^n))+-1//9*b*n*f^-1*(g+f*x)^3+-1//3*b*n*x*e^-2*(d*f+-1*e*g)^2+1//3*b*n*e^-3*f^-1*(d*f+-1*e*g)^3*log(d+e*x)+1//6*b*n*e^-1*f^-1*(g+f*x)^2*(d*f+-1*e*g))
@test integrate(x^3*(f+g*x^-1)^3*(a+b*log(c*(d+e*x)^n)), x) == :(1//4*f^-1*(g+f*x)^4*(a+b*log(c*(d+e*x)^n))+-1//16*b*n*f^-1*(g+f*x)^4+1//4*b*n*x*e^-3*(d*f+-1*e*g)^3+-1//4*b*n*e^-4*f^-1*(d*f+-1*e*g)^4*log(d+e*x)+-1//8*b*n*e^-2*f^-1*(g+f*x)^2*(d*f+-1*e*g)^2+1//12*b*n*e^-1*f^-1*(g+f*x)^3*(d*f+-1*e*g))
@test integrate(x^-1*(f+g*x^-1)^-1*(a+b*log(c*(d+e*x)^n)), x) == :(f^-1*(a+b*log(c*(d+e*x)^n))*log(-1*e*(d*f+-1*e*g)^-1*(g+f*x))+b*n*f^-1*Polylogarithms.polylog(2,f*(d*f+-1*e*g)^-1*(d+e*x)))
@test integrate(x^-2*(f+g*x^-1)^-2*(a+b*log(c*(d+e*x)^n)), x) == :(-1*f^-1*(g+f*x)^-1*(a+b*log(c*(d+e*x)^n))+b*e*n*f^-1*(d*f+-1*e*g)^-1*log(g+f*x)+-1*b*e*n*f^-1*(d*f+-1*e*g)^-1*log(d+e*x))
@test integrate(x^-3*(f+g*x^-1)^-3*(a+b*log(c*(d+e*x)^n)), x) == :(-1//2*f^-1*(g+f*x)^-2*(a+b*log(c*(d+e*x)^n))+(1/2)*b*n*e^2*f^-1*(d*f+-1*e*g)^-2*log(d+e*x)+-1//2*b*e*n*f^-1*(g+f*x)^-1*(d*f+-1*e*g)^-1+-1//2*b*n*e^2*f^-1*(d*f+-1*e*g)^-2*log(g+f*x))
@test integrate((c+d*x^-2)^-1*log(a+b*x), x) == :(-1*x*c^-1+(1/2)*d^(1/2)*(-1c)^-3//2*Polylogarithms.polylog(2,(-1c)^(1/2)*(a*(-1c)^(1/2)+-1*b*d^(1/2))^-1*(a+b*x))+-1//2*d^(1/2)*(-1c)^-3//2*Polylogarithms.polylog(2,(-1c)^(1/2)*(a*(-1c)^(1/2)+b*d^(1/2))^-1*(a+b*x))+b^-1*c^-1*(a+b*x)*log(a+b*x)+(1/2)*d^(1/2)*(-1c)^-3//2*log(-1*b*(a*(-1c)^(1/2)+-1*b*d^(1/2))^-1*(d^(1/2)+x*(-1c)^(1/2)))*log(a+b*x)+-1//2*d^(1/2)*(-1c)^-3//2*log(b*(a*(-1c)^(1/2)+b*d^(1/2))^-1*(d^(1/2)+-1*x*(-1c)^(1/2)))*log(a+b*x))
@test integrate(x^5*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1, x) == :(1//4*g^-1*x^4*(a+b*log(c*(d+e*x)^n))^2+(1/2)*f^2*g^-3*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+(1/2)*f^2*g^-3*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1*b^2*f^2*g^-3*n^2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*b^2*f^2*g^-3*n^2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1//2*f*e^-2*g^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^2+1//32*b^2*e^-4*g^-1*n^2*(d+e*x)^4+b*n*f^2*g^-3*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2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))+f*b^2*g^-2*n^2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+f*b^2*g^-2*n^2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1*d*e^-2*g^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+1//4*b^2*e^-2*g^-1*n^2*(d+e*x)^2+-1*b*f*n*g^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*b*f*n*g^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-2*d*x*b^2*e^-1*g^-1*n^2+-1//2*b*n*e^-2*g^-1*(d+e*x)^2*(a+b*log(c*(d+e*x)^n))+2*a*b*d*n*x*e^-1*g^-1+2*d*n*b^2*e^-2*g^-1*(d+e*x)*log(c*(d+e*x)^n))
@test integrate(x*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1, x) == :((1/2)*g^-1*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+(1/2)*g^-1*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1*b^2*g^-1*n^2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*b^2*g^-1*n^2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+b*n*g^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+b*n*g^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x)))
@test integrate(x^-1*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1, x) == :(f^-1*(a+b*log(c*(d+e*x)^n))^2*log(-1*e*x*d^-1)+-1//2*f^-1*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*f^-1*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+b^2*f^-1*n^2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+b^2*f^-1*n^2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-2*b^2*f^-1*n^2*Polylogarithms.polylog(3,1+e*x*d^-1)+-1*b*n*f^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*b*n*f^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+2*b*n*f^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,1+e*x*d^-1))
@test integrate(x^-3*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1, x) == :(-1//2*f^-1*x^-2*(a+b*log(c*(d+e*x)^n))^2+(1/2)*g*f^-2*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+(1/2)*g*f^-2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1*g*f^-2*(a+b*log(c*(d+e*x)^n))^2*log(-1*e*x*d^-1)+-1*g*b^2*f^-2*n^2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*g*b^2*f^-2*n^2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+2*g*b^2*f^-2*n^2*Polylogarithms.polylog(3,1+e*x*d^-1)+b*g*n*f^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+b*g*n*f^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+b^2*d^-2*e^2*f^-1*n^2*Polylogarithms.polylog(2,d*(d+e*x)^-1)+b^2*d^-2*e^2*f^-1*n^2*log(x)+-2*b*g*n*f^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,1+e*x*d^-1)+-1*b*n*d^-2*e^2*f^-1*(a+b*log(c*(d+e*x)^n))*log(1+-1*d*(d+e*x)^-1)+-1*b*e*n*d^-2*f^-1*x^-1*(a+b*log(c*(d+e*x)^n))*(d+e*x))
@test integrate(x^4*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1, x) == :(1//3*g^-1*x^3*(a+b*log(c*(d+e*x)^n))^2+(1/2)*g^-5//2*(-1*f)^3//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*g^-5//2*(-1*f)^3//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+b^2*g^-5//2*n^2*(-1*f)^3//2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1*f*e^-1*g^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+-1*b^2*g^-5//2*n^2*(-1*f)^3//2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-2*f*x*b^2*g^-2*n^2+2//27*b^2*e^-3*g^-1*n^2*(d+e*x)^3+b*n*g^-5//2*(-1*f)^3//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*b*n*g^-5//2*(-1*f)^3//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+2*a*b*f*n*x*g^-2+2*x*b^2*d^2*e^-2*g^-1*n^2+-2//9*b*n*e^-3*g^-1*(d+e*x)^3*(a+b*log(c*(d+e*x)^n))+-1//2*d*b^2*e^-3*g^-1*n^2*(d+e*x)^2+-1//3*b^2*d^3*e^-3*g^-1*n^2*log(d+e*x)^2+b*d*n*e^-3*g^-1*(d+e*x)^2*(a+b*log(c*(d+e*x)^n))+-2*b*n*d^2*e^-3*g^-1*(a+b*log(c*(d+e*x)^n))*(d+e*x)+2*f*n*b^2*e^-1*g^-2*(d+e*x)*log(c*(d+e*x)^n)+2//3*b*n*d^3*e^-3*g^-1*(a+b*log(c*(d+e*x)^n))*log(d+e*x))
@test integrate(x^2*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1, x) == :(e^-1*g^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+(1/2)*g^-3//2*(-1*f)^(1/2)*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+2*x*b^2*g^-1*n^2+-1//2*g^-3//2*(-1*f)^(1/2)*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+b^2*g^-3//2*n^2*(-1*f)^(1/2)*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1*b^2*g^-3//2*n^2*(-1*f)^(1/2)*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-2*a*b*n*x*g^-1+b*n*g^-3//2*(-1*f)^(1/2)*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*b*n*g^-3//2*(-1*f)^(1/2)*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-2*n*b^2*e^-1*g^-1*(d+e*x)*log(c*(d+e*x)^n))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1, x) == :((1/2)*g^-1//2*(-1*f)^-1//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*g^-1//2*(-1*f)^-1//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+b^2*g^-1//2*n^2*(-1*f)^-1//2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1*b^2*g^-1//2*n^2*(-1*f)^-1//2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+b*n*g^-1//2*(-1*f)^-1//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*b*n*g^-1//2*(-1*f)^-1//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x)))
@test integrate(x^-2*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1, x) == :((1/2)*g^(1/2)*(-1*f)^-3//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*g^(1/2)*(-1*f)^-3//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+b^2*g^(1/2)*n^2*(-1*f)^-3//2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1*b^2*g^(1/2)*n^2*(-1*f)^-3//2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*d^-1*f^-1*x^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+b*n*g^(1/2)*(-1*f)^-3//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*b*n*g^(1/2)*(-1*f)^-3//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+2*e*b^2*d^-1*f^-1*n^2*Polylogarithms.polylog(2,1+e*x*d^-1)+2*b*e*n*d^-1*f^-1*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1))
@test integrate(x^-4*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1, x) == :(-1//3*f^-1*x^-3*(a+b*log(c*(d+e*x)^n))^2+(1/2)*g^3//2*(-1*f)^-5//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*g^3//2*(-1*f)^-5//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+b^2*g^3//2*n^2*(-1*f)^-5//2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1*b^2*g^3//2*n^2*(-1*f)^-5//2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+b*n*g^3//2*(-1*f)^-5//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+g*d^-1*f^-2*x^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+-1*b*n*g^3//2*(-1*f)^-5//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1*b^2*d^-3*e^3*f^-1*n^2*log(x)+-2//3*b^2*d^-3*e^3*f^-1*n^2*Polylogarithms.polylog(2,d*(d+e*x)^-1)+-1//3*b^2*d^-2*e^2*f^-1*n^2*x^-1+1//3*b^2*d^-3*e^3*f^-1*n^2*log(d+e*x)+-2*e*g*b^2*d^-1*f^-2*n^2*Polylogarithms.polylog(2,1+e*x*d^-1)+-1//3*b*e*n*d^-1*f^-1*x^-2*(a+b*log(c*(d+e*x)^n))+2//3*b*n*d^-3*e^3*f^-1*(a+b*log(c*(d+e*x)^n))*log(1+-1*d*(d+e*x)^-1)+-2*b*e*g*n*d^-1*f^-2*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+2//3*b*n*d^-3*e^2*f^-1*x^-1*(a+b*log(c*(d+e*x)^n))*(d+e*x))
@test integrate(x^5*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-2, x) == :((1/2)*e^-2*g^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^2+-1*f*g^-3*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1*f*g^-3*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1//2*f^2*g^-3*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1+(1/2)*e^2*f^2*g^-3*(a+b*log(c*(d+e*x)^n))^2*(f*e^2+g*d^2)^-1+-1*d*e^-2*g^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+2*f*b^2*g^-3*n^2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+2*f*b^2*g^-3*n^2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+1//4*b^2*e^-2*g^-2*n^2*(d+e*x)^2+-2*b*f*n*g^-3*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-2*b*f*n*g^-3*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-2*d*x*b^2*e^-1*g^-2*n^2+-1//2*b*n*e^-2*g^-2*(d+e*x)^2*(a+b*log(c*(d+e*x)^n))+2*a*b*d*n*x*e^-1*g^-2+2*d*n*b^2*e^-2*g^-2*(d+e*x)*log(c*(d+e*x)^n)+-1//2*e*b^2*g^-3*n^2*(-1*f)^3//2*(f*e^2+g*d^2)^-1*(d*g^(1/2)+e*(-1*f)^(1/2))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1//2*e*b^2*g^-3*n^2*(-1*f)^3//2*(f*e^2+g*d^2)^-1*(e*(-1*f)^(1/2)+-1*d*g^(1/2))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*b*e*f*n*g^-3*(f*e^2+g*d^2)^-1*(a+b*log(c*(d+e*x)^n))*(e*f+d*g^(1/2)*(-1*f)^(1/2))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*b*e*n*g^-3*(-1*f)^3//2*(f*e^2+g*d^2)^-1*(a+b*log(c*(d+e*x)^n))*(d*g^(1/2)+e*(-1*f)^(1/2))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2))))
@test integrate(x^3*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-2, x) == :((1/2)*g^-2*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+(1/2)*g^-2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+(1/2)*f*g^-2*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1+-1*b^2*g^-2*n^2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*b^2*g^-2*n^2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+b*n*g^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+b*n*g^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1//2*f*e^2*g^-2*(a+b*log(c*(d+e*x)^n))^2*(f*e^2+g*d^2)^-1+(1/2)*e*b^2*g^-2*n^2*(f*e^2+g*d^2)^-1*(e*f+d*g^(1/2)*(-1*f)^(1/2))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+(1/2)*b*e*n*g^-2*(f*e^2+g*d^2)^-1*(a+b*log(c*(d+e*x)^n))*(e*f+d*g^(1/2)*(-1*f)^(1/2))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+(1/2)*b*e*n*g^-2*(f*e^2+g*d^2)^-1*(a+b*log(c*(d+e*x)^n))*(e*f+-1*d*g^(1/2)*(-1*f)^(1/2))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1//2*e*b^2*g^-2*n^2*(-1*f)^(1/2)*(f*e^2+g*d^2)^-1*(d*g^(1/2)+e*(-1*f)^(1/2))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x)))
@test integrate(x*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-2, x) == :(-1//2*g^-1*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1+(1/2)*e^2*g^-1*(a+b*log(c*(d+e*x)^n))^2*(f*e^2+g*d^2)^-1+-1//2*e*b^2*f^-1*g^-1*n^2*(f*e^2+g*d^2)^-1*(e*f+d*g^(1/2)*(-1*f)^(1/2))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*e*b^2*g^-1*n^2*(-1*f)^-1//2*(f*e^2+g*d^2)^-1*(d*g^(1/2)+e*(-1*f)^(1/2))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1//2*b*e*n*f^-1*g^-1*(f*e^2+g*d^2)^-1*(a+b*log(c*(d+e*x)^n))*(e*f+d*g^(1/2)*(-1*f)^(1/2))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*b*e*n*f^-1*g^-1*(f*e^2+g*d^2)^-1*(a+b*log(c*(d+e*x)^n))*(e*f+-1*d*g^(1/2)*(-1*f)^(1/2))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2))))
@test integrate(x^-1*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-2, x) == :(f^-2*(a+b*log(c*(d+e*x)^n))^2*log(-1*e*x*d^-1)+(1/2)*f^-1*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1+-1//2*f^-2*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*f^-2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+b^2*f^-2*n^2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+b^2*f^-2*n^2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-2*b^2*f^-2*n^2*Polylogarithms.polylog(3,1+e*x*d^-1)+-1//2*e^2*f^-1*(a+b*log(c*(d+e*x)^n))^2*(f*e^2+g*d^2)^-1+-1*b*n*f^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*b*n*f^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+2*b*n*f^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,1+e*x*d^-1)+(1/2)*e*b^2*f^-2*n^2*(f*e^2+g*d^2)^-1*(e*f+d*g^(1/2)*(-1*f)^(1/2))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*e*b^2*n^2*(-1*f)^-3//2*(f*e^2+g*d^2)^-1*(d*g^(1/2)+e*(-1*f)^(1/2))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+(1/2)*b*e*n*f^-2*(f*e^2+g*d^2)^-1*(a+b*log(c*(d+e*x)^n))*(e*f+d*g^(1/2)*(-1*f)^(1/2))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+(1/2)*b*e*n*f^-2*(f*e^2+g*d^2)^-1*(a+b*log(c*(d+e*x)^n))*(e*f+-1*d*g^(1/2)*(-1*f)^(1/2))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2))))
@test integrate(x^-3*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-2, x) == :(-1//2*f^-2*x^-2*(a+b*log(c*(d+e*x)^n))^2+g*f^-3*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+g*f^-3*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-2*g*f^-3*(a+b*log(c*(d+e*x)^n))^2*log(-1*e*x*d^-1)+-1//2*g*f^-2*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-1+(1/2)*g*e^2*f^-2*(a+b*log(c*(d+e*x)^n))^2*(f*e^2+g*d^2)^-1+-2*g*b^2*f^-3*n^2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-2*g*b^2*f^-3*n^2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+4*g*b^2*f^-3*n^2*Polylogarithms.polylog(3,1+e*x*d^-1)+b^2*d^-2*e^2*f^-2*n^2*Polylogarithms.polylog(2,d*(d+e*x)^-1)+b^2*d^-2*e^2*f^-2*n^2*log(x)+-4*b*g*n*f^-3*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,1+e*x*d^-1)+2*b*g*n*f^-3*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+2*b*g*n*f^-3*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1*b*n*d^-2*e^2*f^-2*(a+b*log(c*(d+e*x)^n))*log(1+-1*d*(d+e*x)^-1)+-1*b*e*n*d^-2*f^-2*x^-1*(a+b*log(c*(d+e*x)^n))*(d+e*x)+-1//2*e*g*b^2*f^-3*n^2*(f*e^2+g*d^2)^-1*(e*f+d*g^(1/2)*(-1*f)^(1/2))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*e*g*b^2*n^2*(-1*f)^-5//2*(f*e^2+g*d^2)^-1*(d*g^(1/2)+e*(-1*f)^(1/2))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1//2*b*e*g*n*f^-3*(f*e^2+g*d^2)^-1*(a+b*log(c*(d+e*x)^n))*(e*f+d*g^(1/2)*(-1*f)^(1/2))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1//2*b*e*g*n*f^-3*(f*e^2+g*d^2)^-1*(a+b*log(c*(d+e*x)^n))*(e*f+-1*d*g^(1/2)*(-1*f)^(1/2))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2))))
@test integrate(x^4*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-2, x) == :(e^-1*g^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+2*x*b^2*g^-2*n^2+-3//4*g^-5//2*(-1*f)^(1/2)*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+3//4*g^-5//2*(-1*f)^(1/2)*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-2*a*b*n*x*g^-2+-3//2*b^2*g^-5//2*n^2*(-1*f)^(1/2)*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+3//2*b^2*g^-5//2*n^2*(-1*f)^(1/2)*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1*f*g^-2*(a+b*log(c*(d+e*x)^n))^2*((-1*f)^(1/2)+x*g^(1/2))^-1*(-4*d*g^(1/2)+4*e*(-1*f)^(1/2))^-1*(d+e*x)+-1*f*g^-2*(a+b*log(c*(d+e*x)^n))^2*((-1*f)^(1/2)+-1*x*g^(1/2))^-1*(4*d*g^(1/2)+4*e*(-1*f)^(1/2))^-1*(d+e*x)+-2*n*b^2*e^-1*g^-2*(d+e*x)*log(c*(d+e*x)^n)+-3//2*b*n*g^-5//2*(-1*f)^(1/2)*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+3//2*b*n*g^-5//2*(-1*f)^(1/2)*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+e*f*b^2*g^-5//2*n^2*(-2*d*g^(1/2)+2*e*(-1*f)^(1/2))^-1*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1*e*f*b^2*g^-5//2*n^2*(2*d*g^(1/2)+2*e*(-1*f)^(1/2))^-1*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+b*e*f*n*g^-5//2*(-2*d*g^(1/2)+2*e*(-1*f)^(1/2))^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1*b*e*f*n*g^-5//2*(2*d*g^(1/2)+2*e*(-1*f)^(1/2))^-1*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2))))
@test integrate(x^2*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-2, x) == :(-1//4*g^-3//2*(-1*f)^-1//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+1//4*g^-3//2*(-1*f)^-1//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+g^-1*(a+b*log(c*(d+e*x)^n))^2*((-1*f)^(1/2)+x*g^(1/2))^-1*(-4*d*g^(1/2)+4*e*(-1*f)^(1/2))^-1*(d+e*x)+g^-1*(a+b*log(c*(d+e*x)^n))^2*((-1*f)^(1/2)+-1*x*g^(1/2))^-1*(4*d*g^(1/2)+4*e*(-1*f)^(1/2))^-1*(d+e*x)+(1/2)*b^2*g^-3//2*n^2*(-1*f)^-1//2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1//2*b^2*g^-3//2*n^2*(-1*f)^-1//2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+e*b^2*g^-3//2*n^2*(2*d*g^(1/2)+2*e*(-1*f)^(1/2))^-1*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+(1/2)*b*n*g^-3//2*(-1*f)^-1//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*e*b^2*g^-3//2*n^2*(-2*d*g^(1/2)+2*e*(-1*f)^(1/2))^-1*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1//2*b*n*g^-3//2*(-1*f)^-1//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+b*e*n*g^-3//2*(2*d*g^(1/2)+2*e*(-1*f)^(1/2))^-1*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+-1*b*e*n*g^-3//2*(-2*d*g^(1/2)+2*e*(-1*f)^(1/2))^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2))))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-2, x) == :(-1//4*g^-1//2*(-1*f)^-3//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+1//4*g^-1//2*(-1*f)^-3//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+(1/2)*b^2*g^-1//2*n^2*(-1*f)^-3//2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*b^2*g^-1//2*n^2*(-1*f)^-3//2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1//4*f^-1*(a+b*log(c*(d+e*x)^n))^2*((-1*f)^(1/2)+x*g^(1/2))^-1*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x)+-1//4*f^-1*(a+b*log(c*(d+e*x)^n))^2*((-1*f)^(1/2)+-1*x*g^(1/2))^-1*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x)+(1/2)*b*n*g^-1//2*(-1*f)^-3//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1*e*b^2*g^-1//2*n^2*(2*e*(-1*f)^3//2+2*d*f*g^(1/2))^-1*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+-1//2*b*n*g^-1//2*(-1*f)^-3//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1*b*e*n*g^-1//2*(2*e*(-1*f)^3//2+2*d*f*g^(1/2))^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1//2*e*b^2*f^-1*g^-1//2*n^2*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+-1//2*b*e*n*f^-1*g^-1//2*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2))))
@test integrate(x^-2*(a+b*log(c*(d+e*x)^n))^2*(f+g*x^2)^-2, x) == :(-3//4*g^(1/2)*(-1*f)^-5//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2)))+3//4*g^(1/2)*(-1*f)^-5//2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+-1*d^-1*f^-2*x^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+-3//2*b^2*g^(1/2)*n^2*(-1*f)^-5//2*Polylogarithms.polylog(3,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+3//2*b^2*g^(1/2)*n^2*(-1*f)^-5//2*Polylogarithms.polylog(3,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+2*e*b^2*d^-1*f^-2*n^2*Polylogarithms.polylog(2,1+e*x*d^-1)+-3//2*b*n*g^(1/2)*(-1*f)^-5//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+1//4*g*f^-2*(a+b*log(c*(d+e*x)^n))^2*((-1*f)^(1/2)+x*g^(1/2))^-1*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x)+1//4*g*f^-2*(a+b*log(c*(d+e*x)^n))^2*((-1*f)^(1/2)+-1*x*g^(1/2))^-1*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x)+3//2*b*n*g^(1/2)*(-1*f)^-5//2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+(1/2)*e*b^2*f^-1*g^(1/2)*n^2*(e*(-1*f)^3//2+d*f*g^(1/2))^-1*Polylogarithms.polylog(2,-1*g^(1/2)*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*(d+e*x))+(1/2)*e*b^2*f^-2*g^(1/2)*n^2*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*Polylogarithms.polylog(2,g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(d+e*x))+2*b*e*n*d^-1*f^-2*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+(1/2)*b*e*n*f^-1*g^(1/2)*(e*(-1*f)^3//2+d*f*g^(1/2))^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*(-1*f)^(1/2)+-1*d*g^(1/2))^-1*((-1*f)^(1/2)+x*g^(1/2)))+(1/2)*b*e*n*f^-2*g^(1/2)*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*(a+b*log(c*(d+e*x)^n))*log(e*(d*g^(1/2)+e*(-1*f)^(1/2))^-1*((-1*f)^(1/2)+-1*x*g^(1/2))))
@test integrate((d+e*x^2)^-1*log(c*(a+b*x)^n)^3, x) == :((1/2)*e^-1//2*(-1d)^-1//2*log(c*(a+b*x)^n)^3*log(b*(a*e^(1/2)+b*(-1d)^(1/2))^-1*((-1d)^(1/2)+-1*x*e^(1/2)))+-3*e^-1//2*n^3*(-1d)^-1//2*Polylogarithms.polylog(4,-1*e^(1/2)*(b*(-1d)^(1/2)+-1*a*e^(1/2))^-1*(a+b*x))+3*e^-1//2*n^3*(-1d)^-1//2*Polylogarithms.polylog(4,e^(1/2)*(a*e^(1/2)+b*(-1d)^(1/2))^-1*(a+b*x))+-1//2*e^-1//2*(-1d)^-1//2*log(c*(a+b*x)^n)^3*log(b*(b*(-1d)^(1/2)+-1*a*e^(1/2))^-1*((-1d)^(1/2)+x*e^(1/2)))+-3*e^-1//2*n^2*(-1d)^-1//2*Polylogarithms.polylog(3,e^(1/2)*(a*e^(1/2)+b*(-1d)^(1/2))^-1*(a+b*x))*log(c*(a+b*x)^n)+3*e^-1//2*n^2*(-1d)^-1//2*Polylogarithms.polylog(3,-1*e^(1/2)*(b*(-1d)^(1/2)+-1*a*e^(1/2))^-1*(a+b*x))*log(c*(a+b*x)^n)+-3//2*n*e^-1//2*(-1d)^-1//2*log(c*(a+b*x)^n)^2*Polylogarithms.polylog(2,-1*e^(1/2)*(b*(-1d)^(1/2)+-1*a*e^(1/2))^-1*(a+b*x))+3//2*n*e^-1//2*(-1d)^-1//2*log(c*(a+b*x)^n)^2*Polylogarithms.polylog(2,e^(1/2)*(a*e^(1/2)+b*(-1d)^(1/2))^-1*(a+b*x)))
@test integrate((d+e*x^2)^-1*log(c*(a+b*x)^n)^2, x) == :(e^-1//2*n^2*(-1d)^-1//2*Polylogarithms.polylog(3,-1*e^(1/2)*(b*(-1d)^(1/2)+-1*a*e^(1/2))^-1*(a+b*x))+(1/2)*e^-1//2*(-1d)^-1//2*log(c*(a+b*x)^n)^2*log(b*(a*e^(1/2)+b*(-1d)^(1/2))^-1*((-1d)^(1/2)+-1*x*e^(1/2)))+-1*e^-1//2*n^2*(-1d)^-1//2*Polylogarithms.polylog(3,e^(1/2)*(a*e^(1/2)+b*(-1d)^(1/2))^-1*(a+b*x))+-1//2*e^-1//2*(-1d)^-1//2*log(c*(a+b*x)^n)^2*log(b*(b*(-1d)^(1/2)+-1*a*e^(1/2))^-1*((-1d)^(1/2)+x*e^(1/2)))+n*e^-1//2*(-1d)^-1//2*Polylogarithms.polylog(2,e^(1/2)*(a*e^(1/2)+b*(-1d)^(1/2))^-1*(a+b*x))*log(c*(a+b*x)^n)+-1*n*e^-1//2*(-1d)^-1//2*Polylogarithms.polylog(2,-1*e^(1/2)*(b*(-1d)^(1/2)+-1*a*e^(1/2))^-1*(a+b*x))*log(c*(a+b*x)^n))
@test integrate((d+e*x^2)^-1*log(c*(a+b*x)^n), x) == :((1/2)*n*e^-1//2*(-1d)^-1//2*Polylogarithms.polylog(2,e^(1/2)*(a*e^(1/2)+b*(-1d)^(1/2))^-1*(a+b*x))+(1/2)*e^-1//2*(-1d)^-1//2*log(c*(a+b*x)^n)*log(b*(a*e^(1/2)+b*(-1d)^(1/2))^-1*((-1d)^(1/2)+-1*x*e^(1/2)))+-1//2*n*e^-1//2*(-1d)^-1//2*Polylogarithms.polylog(2,-1*e^(1/2)*(b*(-1d)^(1/2)+-1*a*e^(1/2))^-1*(a+b*x))+-1//2*e^-1//2*(-1d)^-1//2*log(c*(a+b*x)^n)*log(b*(b*(-1d)^(1/2)+-1*a*e^(1/2))^-1*((-1d)^(1/2)+x*e^(1/2))))
@test integrate(x^-1*(a+b*x^m)^-1*log(c+-1*a*b^-1*x^(-1m)*(1+-1c)), x) == :(a^-1*m^-1*Polylogarithms.polylog(2,b^-1*(1+-1c)*(b+a*x^(-1m))))
@test integrate(x^-1*(a+b*x^m)^-1*log(b^-1*x^(-1m)*(-1a+a*c+b*c*x^m)), x) == :(a^-1*m^-1*Polylogarithms.polylog(2,b^-1*(1+-1c)*(b+a*x^(-1m))))
@test integrate(x^-1*(d+e*x^m)^-1*log(c*(a+-1*c^-1*e^-1*x^(-1m)*(d+-1*a*c*d))), x) == :(d^-1*m^-1*Polylogarithms.polylog(2,e^-1*(1+-1*a*c)*(e+d*x^(-1m))))
@test integrate(x^-1*(d+e*x^m)^-1*log(e^-1*x^(-1m)*(-1d+a*c*d+a*c*e*x^m)), x) == :(d^-1*m^-1*Polylogarithms.polylog(2,e^-1*(1+-1*a*c)*(e+d*x^(-1m))))
@test integrate((a^2+-1*b^2*x^2)^-1*log(2*a*(a+b*x)^-1), x) == :((1/2)*a^-1*b^-1*Polylogarithms.polylog(2,1+-2*a*(a+b*x)^-1))
@test integrate((a+b*x)^-1*(a+-1*b*x)^-1*log(2*a*(a+b*x)^-1), x) == :((1/2)*a^-1*b^-1*Polylogarithms.polylog(2,1+-2*a*(a+b*x)^-1))
@test integrate((a^2+-1*b^2*x^2)^-1*log((a+b*x)^-1*(a*(1+-1c)+b*x*(1+c))), x) == :((1/2)*a^-1*b^-1*Polylogarithms.polylog(2,1+-1*(a+b*x)^-1*(a*(1+-1c)+b*x*(1+c))))
@test integrate((a+b*x)^-1*(a+-1*b*x)^-1*log((a+b*x)^-1*(a*(1+-1c)+b*x*(1+c))), x) == :((1/2)*a^-1*b^-1*Polylogarithms.polylog(2,c*(a+b*x)^-1*(a+-1*b*x)))
@test integrate((a^2+-1*b^2*x^2)^-1*log(1+-1*c*(a+b*x)^-1*(a+-1*b*x)), x) == :((1/2)*a^-1*b^-1*Polylogarithms.polylog(2,c*(a+b*x)^-1*(a+-1*b*x)))
@test integrate((a+b*x)^-1*(a+-1*b*x)^-1*log(1+-1*c*(a+b*x)^-1*(a+-1*b*x)), x) == :((1/2)*a^-1*b^-1*Polylogarithms.polylog(2,c*(a+b*x)^-1*(a+-1*b*x)))
@test integrate((d*x+e*x^2)^-1*log(c*(a+b*x)^n)^3, x) == :(d^-1*log(c*(a+b*x)^n)^3*log(-1*b*x*a^-1)+-1*d^-1*log(c*(a+b*x)^n)^3*log(b*(b*d+-1*a*e)^-1*(d+e*x))+-6*d^-1*n^3*Polylogarithms.polylog(4,-1*e*(b*d+-1*a*e)^-1*(a+b*x))+6*d^-1*n^3*Polylogarithms.polylog(4,1+b*x*a^-1)+-6*d^-1*n^2*Polylogarithms.polylog(3,1+b*x*a^-1)*log(c*(a+b*x)^n)+-3*n*d^-1*log(c*(a+b*x)^n)^2*Polylogarithms.polylog(2,-1*e*(b*d+-1*a*e)^-1*(a+b*x))+3*n*d^-1*log(c*(a+b*x)^n)^2*Polylogarithms.polylog(2,1+b*x*a^-1)+6*d^-1*n^2*Polylogarithms.polylog(3,-1*e*(b*d+-1*a*e)^-1*(a+b*x))*log(c*(a+b*x)^n))
@test integrate((d*x+e*x^2)^-1*log(c*(a+b*x)^n)^2, x) == :(d^-1*log(c*(a+b*x)^n)^2*log(-1*b*x*a^-1)+-1*d^-1*log(c*(a+b*x)^n)^2*log(b*(b*d+-1*a*e)^-1*(d+e*x))+-2*d^-1*n^2*Polylogarithms.polylog(3,1+b*x*a^-1)+2*d^-1*n^2*Polylogarithms.polylog(3,-1*e*(b*d+-1*a*e)^-1*(a+b*x))+-2*n*d^-1*Polylogarithms.polylog(2,-1*e*(b*d+-1*a*e)^-1*(a+b*x))*log(c*(a+b*x)^n)+2*n*d^-1*Polylogarithms.polylog(2,1+b*x*a^-1)*log(c*(a+b*x)^n))
@test integrate((d*x+e*x^2)^-1*log(c*(a+b*x)^n), x) == :(n*d^-1*Polylogarithms.polylog(2,1+b*x*a^-1)+d^-1*log(c*(a+b*x)^n)*log(-1*b*x*a^-1)+-1*n*d^-1*Polylogarithms.polylog(2,-1*e*(b*d+-1*a*e)^-1*(a+b*x))+-1*d^-1*log(c*(a+b*x)^n)*log(b*(b*d+-1*a*e)^-1*(d+e*x)))
@test integrate((d+e*x+f*x^2)^-1*log(c*(a+b*x)^n)^3, x) == :((e^2+-4*d*f)^-1//2*log(c*(a+b*x)^n)^3*log(-1*b*(-1*b*(e+-1*(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(e+-1*(e^2+-4*d*f)^(1/2)+2*f*x))+-1*(e^2+-4*d*f)^-1//2*log(c*(a+b*x)^n)^3*log(-1*b*(-1*b*(e+(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(e+(e^2+-4*d*f)^(1/2)+2*f*x))+-6*n^3*(e^2+-4*d*f)^-1//2*Polylogarithms.polylog(4,2*f*(-1*b*(e+(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(a+b*x))+6*n^3*(e^2+-4*d*f)^-1//2*Polylogarithms.polylog(4,2*f*(-1*b*(e+-1*(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(a+b*x))+-6*n^2*(e^2+-4*d*f)^-1//2*Polylogarithms.polylog(3,2*f*(-1*b*(e+-1*(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(a+b*x))*log(c*(a+b*x)^n)+-3*n*(e^2+-4*d*f)^-1//2*log(c*(a+b*x)^n)^2*Polylogarithms.polylog(2,2*f*(-1*b*(e+(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(a+b*x))+3*n*(e^2+-4*d*f)^-1//2*log(c*(a+b*x)^n)^2*Polylogarithms.polylog(2,2*f*(-1*b*(e+-1*(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(a+b*x))+6*n^2*(e^2+-4*d*f)^-1//2*Polylogarithms.polylog(3,2*f*(-1*b*(e+(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(a+b*x))*log(c*(a+b*x)^n))
@test integrate((d+e*x+f*x^2)^-1*log(c*(a+b*x)^n)^2, x) == :((e^2+-4*d*f)^-1//2*log(c*(a+b*x)^n)^2*log(-1*b*(-1*b*(e+-1*(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(e+-1*(e^2+-4*d*f)^(1/2)+2*f*x))+-1*(e^2+-4*d*f)^-1//2*log(c*(a+b*x)^n)^2*log(-1*b*(-1*b*(e+(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(e+(e^2+-4*d*f)^(1/2)+2*f*x))+-2*n^2*(e^2+-4*d*f)^-1//2*Polylogarithms.polylog(3,2*f*(-1*b*(e+-1*(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(a+b*x))+2*n^2*(e^2+-4*d*f)^-1//2*Polylogarithms.polylog(3,2*f*(-1*b*(e+(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(a+b*x))+-2*n*(e^2+-4*d*f)^-1//2*Polylogarithms.polylog(2,2*f*(-1*b*(e+(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(a+b*x))*log(c*(a+b*x)^n)+2*n*(e^2+-4*d*f)^-1//2*Polylogarithms.polylog(2,2*f*(-1*b*(e+-1*(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(a+b*x))*log(c*(a+b*x)^n))
@test integrate((d+e*x+f*x^2)^-1*log(c*(a+b*x)^n), x) == :(n*(e^2+-4*d*f)^-1//2*Polylogarithms.polylog(2,2*f*(-1*b*(e+-1*(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(a+b*x))+(e^2+-4*d*f)^-1//2*log(c*(a+b*x)^n)*log(-1*b*(-1*b*(e+-1*(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(e+-1*(e^2+-4*d*f)^(1/2)+2*f*x))+-1*n*(e^2+-4*d*f)^-1//2*Polylogarithms.polylog(2,2*f*(-1*b*(e+(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(a+b*x))+-1*(e^2+-4*d*f)^-1//2*log(c*(a+b*x)^n)*log(-1*b*(-1*b*(e+(e^2+-4*d*f)^(1/2))+2*a*f)^-1*(e+(e^2+-4*d*f)^(1/2)+2*f*x)))
@test integrate(x^3*(a+b*x+c*x^2)^-1*log(x), x) == :(-1//4*c^-1*x^2+b*x*c^-2+(1/2)*c^-1*x^2*log(x)+(1/2)*c^-3*(b^2+-1*a*c+b*(b^2+-4*a*c)^-1//2*(b^2+-3*a*c))*Polylogarithms.polylog(2,-2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1)+(1/2)*c^-3*(b^2+-1*a*c+-1*b*(b^2+-4*a*c)^-1//2*(b^2+-3*a*c))*Polylogarithms.polylog(2,-2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1)+(1/2)*c^-3*(b^2+-1*a*c+b*(b^2+-4*a*c)^-1//2*(b^2+-3*a*c))*log(x)*log(1+2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1)+(1/2)*c^-3*(b^2+-1*a*c+-1*b*(b^2+-4*a*c)^-1//2*(b^2+-3*a*c))*log(x)*log(1+2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1)+-1*b*x*c^-2*log(x))
@test integrate(x^2*(a+b*x+c*x^2)^-1*log(x), x) == :(-1*x*c^-1+x*c^-1*log(x)+-1//2*c^-2*(b+(b^2+-4*a*c)^-1//2*(b^2+-2*a*c))*Polylogarithms.polylog(2,-2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1)+-1//2*c^-2*(b+-1*(b^2+-4*a*c)^-1//2*(b^2+-2*a*c))*Polylogarithms.polylog(2,-2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1)+-1//2*c^-2*(b+(b^2+-4*a*c)^-1//2*(b^2+-2*a*c))*log(x)*log(1+2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1)+-1//2*c^-2*(b+-1*(b^2+-4*a*c)^-1//2*(b^2+-2*a*c))*log(x)*log(1+2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1))
@test integrate(x*(a+b*x+c*x^2)^-1*log(x), x) == :((1/2)*c^-1*(1+b*(b^2+-4*a*c)^-1//2)*Polylogarithms.polylog(2,-2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1)+(1/2)*c^-1*(1+-1*b*(b^2+-4*a*c)^-1//2)*Polylogarithms.polylog(2,-2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1)+(1/2)*c^-1*(1+b*(b^2+-4*a*c)^-1//2)*log(x)*log(1+2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1)+(1/2)*c^-1*(1+-1*b*(b^2+-4*a*c)^-1//2)*log(x)*log(1+2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1))
@test integrate((a+b*x+c*x^2)^-1*log(x), x) == :((b^2+-4*a*c)^-1//2*Polylogarithms.polylog(2,-2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1)+-1*(b^2+-4*a*c)^-1//2*Polylogarithms.polylog(2,-2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1)+(b^2+-4*a*c)^-1//2*log(x)*log(1+2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1)+-1*(b^2+-4*a*c)^-1//2*log(x)*log(1+2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1))
@test integrate(x^-1*(a+b*x+c*x^2)^-1*log(x), x) == :((1/2)*a^-1*log(x)^2+-1//2*a^-1*(1+b*(b^2+-4*a*c)^-1//2)*Polylogarithms.polylog(2,-2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1)+-1//2*a^-1*(1+-1*b*(b^2+-4*a*c)^-1//2)*Polylogarithms.polylog(2,-2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1)+-1//2*a^-1*(1+b*(b^2+-4*a*c)^-1//2)*log(x)*log(1+2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1)+-1//2*a^-1*(1+-1*b*(b^2+-4*a*c)^-1//2)*log(x)*log(1+2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1))
@test integrate(x^-2*(a+b*x+c*x^2)^-1*log(x), x) == :(-1*a^-1*x^-1+(1/2)*a^-2*(b+(b^2+-4*a*c)^-1//2*(b^2+-2*a*c))*Polylogarithms.polylog(2,-2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1)+(1/2)*a^-2*(b+-1*(b^2+-4*a*c)^-1//2*(b^2+-2*a*c))*Polylogarithms.polylog(2,-2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1)+-1*a^-1*x^-1*log(x)+-1//2*b*a^-2*log(x)^2+(1/2)*a^-2*(b+(b^2+-4*a*c)^-1//2*(b^2+-2*a*c))*log(x)*log(1+2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1)+(1/2)*a^-2*(b+-1*(b^2+-4*a*c)^-1//2*(b^2+-2*a*c))*log(x)*log(1+2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1))
@test integrate(x^-3*(a+b*x+c*x^2)^-1*log(x), x) == :(-1//4*a^-1*x^-2+b*a^-2*x^-1+(1/2)*a^-3*log(x)^2*(b^2+-1*a*c)+-1//2*a^-1*x^-2*log(x)+-1//2*a^-3*(b^2+-1*a*c+b*(b^2+-4*a*c)^-1//2*(b^2+-3*a*c))*Polylogarithms.polylog(2,-2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1)+-1//2*a^-3*(b^2+-1*a*c+-1*b*(b^2+-4*a*c)^-1//2*(b^2+-3*a*c))*Polylogarithms.polylog(2,-2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1)+b*a^-2*x^-1*log(x)+-1//2*a^-3*(b^2+-1*a*c+b*(b^2+-4*a*c)^-1//2*(b^2+-3*a*c))*log(x)*log(1+2*c*x*(b+-1*(b^2+-4*a*c)^(1/2))^-1)+-1//2*a^-3*(b^2+-1*a*c+-1*b*(b^2+-4*a*c)^-1//2*(b^2+-3*a*c))*log(x)*log(1+2*c*x*(b+(b^2+-4*a*c)^(1/2))^-1))
@test integrate(x^3*(a+b*log(c*(d+e*x)^n))*log(f*x^m), x) == :(-1*(a+b*log(c*(d+e*x)^n))*(-1//4*x^4*log(f*x^m)+1//16*m*x^4)+-1//16*b*n*x^4*log(f*x^m)+1//32*b*m*n*x^4+-7//144*b*d*m*n*e^-1*x^3+-5//16*b*m*n*x*d^3*e^-3+-1//4*b*m*n*d^4*e^-4*Polylogarithms.polylog(2,-1*e*x*d^-1)+-1//4*b*n*d^4*e^-4*log(f*x^m)*log(1+e*x*d^-1)+-1//8*b*n*d^2*e^-2*x^2*log(f*x^m)+1//4*b*n*x*d^3*e^-3*log(f*x^m)+1//12*b*d*n*e^-1*x^3*log(f*x^m)+1//16*b*m*n*d^4*e^-4*log(d+e*x)+3//32*b*m*n*d^2*e^-2*x^2)
@test integrate(x^2*(a+b*log(c*(d+e*x)^n))*log(f*x^m), x) == :(-1*(a+b*log(c*(d+e*x)^n))*(-1//3*x^3*log(f*x^m)+1//9*m*x^3)+-1//9*b*n*x^3*log(f*x^m)+2//27*b*m*n*x^3+-5//36*b*d*m*n*e^-1*x^2+-1//3*b*n*x*d^2*e^-2*log(f*x^m)+-1//9*b*m*n*d^3*e^-3*log(d+e*x)+1//3*b*m*n*d^3*e^-3*Polylogarithms.polylog(2,-1*e*x*d^-1)+1//3*b*n*d^3*e^-3*log(f*x^m)*log(1+e*x*d^-1)+1//6*b*d*n*e^-1*x^2*log(f*x^m)+4//9*b*m*n*x*d^2*e^-2)
@test integrate(x*(a+b*log(c*(d+e*x)^n))*log(f*x^m), x) == :(-1*(a+b*log(c*(d+e*x)^n))*(-1//2*x^2*log(f*x^m)+1//4*m*x^2)+-1//4*b*n*x^2*log(f*x^m)+1//4*b*m*n*x^2+(1/2)*b*d*n*x*e^-1*log(f*x^m)+-3//4*b*d*m*n*x*e^-1+-1//2*b*m*n*d^2*e^-2*Polylogarithms.polylog(2,-1*e*x*d^-1)+-1//2*b*n*d^2*e^-2*log(f*x^m)*log(1+e*x*d^-1)+1//4*b*m*n*d^2*e^-2*log(d+e*x))
@test integrate((a+b*log(c*(d+e*x)^n))*log(f*x^m), x) == :(-1*x*(a+b*log(c*(d+e*x)^n))*(m+-1*log(f*x^m))+-1*b*n*x*log(f*x^m)+2*b*m*n*x+b*d*m*n*e^-1*Polylogarithms.polylog(2,-1*e*x*d^-1)+b*d*n*e^-1*log(f*x^m)*log(1+e*x*d^-1)+-1*b*d*m*n*e^-1*log(d+e*x))
@test integrate(x^-1*(a+b*log(c*(d+e*x)^n))*log(f*x^m), x) == :((1/2)*m^-1*log(f*x^m)^2*(a+b*log(c*(d+e*x)^n))+b*m*n*Polylogarithms.polylog(3,-1*e*x*d^-1)+-1*b*n*Polylogarithms.polylog(2,-1*e*x*d^-1)*log(f*x^m)+-1//2*b*n*m^-1*log(f*x^m)^2*log(1+e*x*d^-1))
@test integrate(x^-2*(a+b*log(c*(d+e*x)^n))*log(f*x^m), x) == :(-1*(a+b*log(c*(d+e*x)^n))*(m*x^-1+x^-1*log(f*x^m))+b*e*m*n*d^-1*Polylogarithms.polylog(2,-1*d*e^-1*x^-1)+b*e*m*n*d^-1*log(x)+-1*b*e*m*n*d^-1*log(d+e*x)+-1*b*e*n*d^-1*log(f*x^m)*log(1+d*e^-1*x^-1))
@test integrate(x^-3*(a+b*log(c*(d+e*x)^n))*log(f*x^m), x) == :(-1*(a+b*log(c*(d+e*x)^n))*((1/2)*x^-2*log(f*x^m)+1//4*m*x^-2)+(1/2)*b*n*d^-2*e^2*log(f*x^m)*log(1+d*e^-1*x^-1)+-3//4*b*e*m*n*d^-1*x^-1+-1//2*b*e*n*d^-1*x^-1*log(f*x^m)+-1//2*b*m*n*d^-2*e^2*Polylogarithms.polylog(2,-1*d*e^-1*x^-1)+-1//4*b*m*n*d^-2*e^2*log(x)+1//4*b*m*n*d^-2*e^2*log(d+e*x))
@test integrate(x^-4*(a+b*log(c*(d+e*x)^n))*log(f*x^m), x) == :(-1*(a+b*log(c*(d+e*x)^n))*(1//3*x^-3*log(f*x^m)+1//9*m*x^-3)+-5//36*b*e*m*n*d^-1*x^-2+-1//3*b*n*d^-3*e^3*log(f*x^m)*log(1+d*e^-1*x^-1)+-1//6*b*e*n*d^-1*x^-2*log(f*x^m)+-1//9*b*m*n*d^-3*e^3*log(d+e*x)+1//3*b*m*n*d^-3*e^3*Polylogarithms.polylog(2,-1*d*e^-1*x^-1)+1//3*b*n*d^-2*e^2*x^-1*log(f*x^m)+1//9*b*m*n*d^-3*e^3*log(x)+4//9*b*m*n*d^-2*e^2*x^-1)
@test integrate(x^-5*(a+b*log(c*(d+e*x)^n))*log(f*x^m), x) == :(-1*(a+b*log(c*(d+e*x)^n))*(1//4*x^-4*log(f*x^m)+1//16*m*x^-4)+-7//144*b*e*m*n*d^-1*x^-3+-5//16*b*m*n*d^-3*e^3*x^-1+-1//4*b*m*n*d^-4*e^4*Polylogarithms.polylog(2,-1*d*e^-1*x^-1)+-1//4*b*n*d^-3*e^3*x^-1*log(f*x^m)+-1//12*b*e*n*d^-1*x^-3*log(f*x^m)+-1//16*b*m*n*d^-4*e^4*log(x)+1//4*b*n*d^-4*e^4*log(f*x^m)*log(1+d*e^-1*x^-1)+1//8*b*n*d^-2*e^2*x^-2*log(f*x^m)+1//16*b*m*n*d^-4*e^4*log(d+e*x)+3//32*b*m*n*d^-2*e^2*x^-2)
@test integrate(x*(a+b*log(c*(d+e*x)^n))^2*log(f*x^m), x) == :((1/2)*e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^2*log(f*x^m)+-1//4*m*e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^2+-1//8*m*b^2*n^2*x^2+(1/2)*d*m*e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+(1/2)*m*d^2*e^-2*(a+b*log(c*(d+e*x)^n))^2*log(-1*e*x*d^-1)+-1*d*e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)*log(f*x^m)+-1//4*m*b^2*e^-2*n^2*(d+e*x)^2+1//4*b^2*e^-2*n^2*(d+e*x)^2*log(f*x^m)+(1/2)*b*m*n*e^-2*(d+e*x)^2*(a+b*log(c*(d+e*x)^n))+-1*m*b^2*d^2*e^-2*n^2*Polylogarithms.polylog(3,1+e*x*d^-1)+-2*d*x*b^2*e^-1*n^2*log(f*x^m)+2*d*m*x*b^2*e^-1*n^2+-3//2*m*b^2*d^2*e^-2*n^2*Polylogarithms.polylog(2,1+e*x*d^-1)+-1//2*b*n*e^-2*(d+e*x)^2*(a+b*log(c*(d+e*x)^n))*log(f*x^m)+-1//4*m*b^2*d^2*e^-2*n^2*log(x)+b*m*n*d^2*e^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,1+e*x*d^-1)+(1/2)*b*m*n*d^2*e^-2*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+-2*b*d*m*n*x*e^-1*(a+-1*b*n)+-2*m*n*b^2*d^2*e^-2*log(c*(d+e*x)^n)*log(-1*e*x*d^-1)+2*a*b*d*n*x*e^-1*log(f*x^m)+2*d*n*b^2*e^-2*(d+e*x)*log(c*(d+e*x)^n)*log(f*x^m)+-5//2*d*m*n*b^2*e^-2*(d+e*x)*log(c*(d+e*x)^n)+-1//2*a*b*d*m*n*x*e^-1)
@test integrate((a+b*log(c*(d+e*x)^n))^2*log(f*x^m), x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)*log(f*x^m)+-1*m*e^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+-4*m*x*b^2*n^2+2*x*b^2*n^2*log(f*x^m)+-1*d*m*e^-1*(a+b*log(c*(d+e*x)^n))^2*log(-1*e*x*d^-1)+-2*a*b*n*x*log(f*x^m)+2*a*b*m*n*x+2*b*m*n*x*(a+-1*b*n)+-2*n*b^2*e^-1*(d+e*x)*log(c*(d+e*x)^n)*log(f*x^m)+2*d*m*b^2*e^-1*n^2*Polylogarithms.polylog(2,1+e*x*d^-1)+2*d*m*b^2*e^-1*n^2*Polylogarithms.polylog(3,1+e*x*d^-1)+4*m*n*b^2*e^-1*(d+e*x)*log(c*(d+e*x)^n)+-2*b*d*m*n*e^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,1+e*x*d^-1)+2*d*m*n*b^2*e^-1*log(c*(d+e*x)^n)*log(-1*e*x*d^-1))
@test integrate(x^-1*(a+b*log(c*(d+e*x)^n))^2*log(f*x^m), x) == :((a+b*log(c*(d+e*x)^n)+-1*b*n*log(d+e*x))^2*(-1*m*log(x)+log(f*x^m))*log(x)+(1/2)*m*(a+b*log(c*(d+e*x)^n)+-1*b*n*log(d+e*x))^2*log(x)^2+-1*b^2*n^2*(-1*log(f*x^m)+m*log(x))*(-2*Polylogarithms.polylog(3,1+e*x*d^-1)+log(d+e*x)^2*log(-1*e*x*d^-1)+2*Polylogarithms.polylog(2,1+e*x*d^-1)*log(d+e*x))+1//12*m*b^2*n^2*(log(-1*e*x*d^-1)^4+log(-1*e*x*(d+e*x)^-1)^4+-24*Polylogarithms.polylog(4,e*x*(d+e*x)^-1)+-24*Polylogarithms.polylog(4,-1*e*x*d^-1)+24*Polylogarithms.polylog(4,1+e*x*d^-1)+(-24*log(x)+24*log(-1*e*x*(d+e*x)^-1))*Polylogarithms.polylog(3,1+e*x*d^-1)+(8*log(-1*e*x*d^-1)^3+-12*log(x)^2*log(d+e*x))*log(1+e*x*d^-1)+(24*log(-1*e*x*(d+e*x)^-1)+24*log(d+e*x))*Polylogarithms.polylog(3,-1*e*x*d^-1)+(12*log(-1*e*x*d^-1)^2+-24*(log(-1*e*x*(d+e*x)^-1)+log(1+e*x*d^-1))*log(-1*e*x*d^-1)+24*(-1*log(d+e*x)+log(1+e*x*d^-1))*log(x))*Polylogarithms.polylog(2,-1*e*x*d^-1)+-1*log(-1*e*x*(d+e*x)^-1)^3*(4*log(d*(d+e*x)^-1)+4*log(-1*e*x*d^-1))+-12*log(-1*e*x*(d+e*x)^-1)^2*Polylogarithms.polylog(2,e*x*(d+e*x)^-1)+6*log(x)^2*log(d+e*x)^2+6*log(-1*e*x*d^-1)^2*log(-1*e*x*(d+e*x)^-1)^2+12*(-1*log(-1*e*x*(d+e*x)^-1)+log(-1*e*x*d^-1))^2*Polylogarithms.polylog(2,1+e*x*d^-1)+24*Polylogarithms.polylog(3,e*x*(d+e*x)^-1)*log(-1*e*x*(d+e*x)^-1)+log(1+e*x*d^-1)^2*(-6*log(-1*e*x*d^-1)+6*log(x))*(3*log(-1*e*x*d^-1)+log(x))+(-24*log(-1*e*x*d^-1)+24*log(x))*Polylogarithms.polylog(2,1+e*x*d^-1)*log(1+e*x*d^-1)+-4*log(-1*e*x*d^-1)^2*(3*log(1+e*x*d^-1)+log(-1*e*x*d^-1))*log(-1*e*x*(d+e*x)^-1))+2*b*m*n*(a+b*log(c*(d+e*x)^n)+-1*b*n*log(d+e*x))*((1/2)*log(x)^2*(-1*log(1+e*x*d^-1)+log(d+e*x))+-1*Polylogarithms.polylog(2,-1*e*x*d^-1)*log(x)+Polylogarithms.polylog(3,-1*e*x*d^-1))+2*b*n*(-1*Polylogarithms.polylog(2,-1*e*x*d^-1)+(-1*log(1+e*x*d^-1)+log(d+e*x))*log(x))*(-1*m*log(x)+log(f*x^m))*(a+b*log(c*(d+e*x)^n)+-1*b*n*log(d+e*x)))
@test integrate(x^-2*(a+b*log(c*(d+e*x)^n))^2*log(f*x^m), x) == :(-1*x^-1*(a+b*log(c*(d+e*x)^n)+-1*b*n*log(d+e*x))^2*(m+-1*m*log(x)+log(f*x^m))+-1*m*x^-1*(a+b*log(c*(d+e*x)^n)+-1*b*n*log(d+e*x))^2*log(x)+-1*m*b^2*n^2*x^-1*log(d+e*x)^2+-1*b^2*n^2*x^-1*log(d+e*x)^2*log(f*x^m)+-1*e*m*b^2*d^-1*n^2*log(d+e*x)^2+-1*e*b^2*d^-1*n^2*log(d+e*x)^2*log(f*x^m)+-2*e*m*b^2*d^-1*n^2*Polylogarithms.polylog(3,1+e*x*d^-1)+-2*e*b^2*d^-1*n^2*Polylogarithms.polylog(2,-1*e*x*d^-1)*log(f*x^m)+2*e*m*b^2*d^-1*n^2*Polylogarithms.polylog(3,-1*e*x*d^-1)+b*m*n*d^-1*x^-1*(a+b*log(c*(d+e*x)^n)+-1*b*n*log(d+e*x))*(-1*(2d+2*e*x)*log(d+e*x)+e*x*(log(x)^2+-2*Polylogarithms.polylog(2,-1*e*x*d^-1)+-2*log(x)*log(1+e*x*d^-1))+-2*d*log(x)*log(d+e*x)+2*e*x*log(-1*e*x*d^-1))+e*m*b^2*d^-1*n^2*log(x)^2*log(1+e*x*d^-1)+e*m*b^2*d^-1*n^2*log(d+e*x)^2*log(-1*e*x*d^-1)+-1*e*m*b^2*d^-1*n^2*log(x)^2*log(d+e*x)+-2*b*n*d^-1*x^-1*(-1*log(f*x^m)+m*log(x))*(-1*(d+e*x)*log(d+e*x)+e*x*log(-1*e*x*d^-1))*(a+b*log(c*(d+e*x)^n)+-1*b*n*log(d+e*x))+-2*e*b^2*d^-1*n^2*log(x)*log(f*x^m)*log(1+e*x*d^-1)+2*e*m*b^2*d^-1*n^2*(1+log(d+e*x))*Polylogarithms.polylog(2,1+e*x*d^-1)+2*e*m*b^2*d^-1*n^2*log(-1*e*x*d^-1)*log(d+e*x)+2*e*b^2*d^-1*n^2*log(x)*log(f*x^m)*log(d+e*x))
@test integrate(x^-3*(a+b*log(c*(d+e*x)^n))^2*log(f*x^m), x) == :(-1//4*x^-2*(a+b*log(c*(d+e*x)^n)+-1*b*n*log(d+e*x))^2*(m+2*log(f*x^m)+-2*m*log(x))+-1//2*m*x^-2*(a+b*log(c*(d+e*x)^n)+-1*b*n*log(d+e*x))^2*log(x)+-1//2*b^2*n^2*x^-2*log(d+e*x)^2*log(f*x^m)+-1//4*m*b^2*n^2*x^-2*log(d+e*x)^2+m*b^2*d^-2*e^2*n^2*Polylogarithms.polylog(3,1+e*x*d^-1)+m*b^2*d^-2*e^2*n^2*log(x)+b^2*d^-2*e^2*n^2*log(x)*log(f*x^m)+(1/2)*m*b^2*d^-2*e^2*n^2*log(-1*e*x*d^-1)+(1/2)*b^2*d^-2*e^2*n^2*log(d+e*x)^2*log(f*x^m)+-1*m*b^2*d^-2*e^2*n^2*Polylogarithms.polylog(3,-1*e*x*d^-1)+-1*b^2*d^-2*e^2*n^2*(m+-1*log(f*x^m))*Polylogarithms.polylog(2,-1*e*x*d^-1)+-1*b^2*d^-2*e^2*n^2*log(f*x^m)*log(d+e*x)+-3//2*m*b^2*d^-2*e^2*n^2*log(d+e*x)+-1//2*m*b^2*d^-2*e^2*n^2*log(x)^2+1//4*m*b^2*d^-2*e^2*n^2*log(d+e*x)^2+b*n*d^-2*x^-2*(-1*log(f*x^m)+m*log(x))*((d+e*x)*(e*x+(d+-1*e*x)*log(d+e*x))+e^2*x^2*log(-1*e*x*d^-1))*(a+b*log(c*(d+e*x)^n)+-1*b*n*log(d+e*x))+m*b^2*d^-2*e^2*n^2*log(x)*log(d+e*x)+b^2*d^-2*e^2*n^2*log(x)*log(f*x^m)*log(1+e*x*d^-1)+(1/2)*m*b^2*d^-2*e^2*n^2*log(x)^2*log(d+e*x)+-1*e*b^2*d^-1*n^2*x^-1*log(f*x^m)*log(d+e*x)+-1*m*b^2*d^-2*e^2*n^2*log(x)*log(1+e*x*d^-1)+-1*b^2*d^-2*e^2*n^2*log(x)*log(f*x^m)*log(d+e*x)+-3//2*e*m*b^2*d^-1*n^2*x^-1*log(d+e*x)+-1//2*b*m*n*d^-2*x^-2*(a+b*log(c*(d+e*x)^n)+-1*b*n*log(d+e*x))*((d^2+-1*e^2*x^2)*log(d+e*x)+e*x*(d+e*x)+e*x*(2*d*(1+log(x))+e*x*log(x)^2+-2*e*x*(log(x)*log(1+e*x*d^-1)+Polylogarithms.polylog(2,-1*e*x*d^-1)))+e^2*x^2*log(-1*e*x*d^-1)+2*d^2*log(x)*log(d+e*x))+-1//2*m*b^2*d^-2*e^2*n^2*log(x)^2*log(1+e*x*d^-1)+-1//2*m*b^2*d^-2*e^2*n^2*log(d+e*x)^2*log(-1*e*x*d^-1)+-1//2*m*b^2*d^-2*e^2*n^2*(1+2*log(d+e*x))*Polylogarithms.polylog(2,1+e*x*d^-1)+-1//2*m*b^2*d^-2*e^2*n^2*log(-1*e*x*d^-1)*log(d+e*x))
@test integrate((a+b*log(c*(d+e*x)^n))^3*log(f*x^m), x) == :(e^-1*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)*log(f*x^m)+-1*m*e^-1*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)+-6*x*b^3*n^3*log(f*x^m)+18*m*x*b^3*n^3+-1*d*m*e^-1*(a+b*log(c*(d+e*x)^n))^3*log(-1*e*x*d^-1)+-12*a*m*x*b^2*n^2+-6*m*x*b^2*n^2*(a+-1*b*n)+6*a*x*b^2*n^2*log(f*x^m)+-18*m*b^3*e^-1*n^2*(d+e*x)*log(c*(d+e*x)^n)+-6*d*m*b^3*e^-1*n^3*Polylogarithms.polylog(2,1+e*x*d^-1)+-6*d*m*b^3*e^-1*n^3*Polylogarithms.polylog(3,1+e*x*d^-1)+-6*d*m*b^3*e^-1*n^3*Polylogarithms.polylog(4,1+e*x*d^-1)+-3*b*n*e^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)*log(f*x^m)+6*b*m*n*e^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+6*b^3*e^-1*n^2*(d+e*x)*log(c*(d+e*x)^n)*log(f*x^m)+-6*d*m*b^3*e^-1*n^2*log(c*(d+e*x)^n)*log(-1*e*x*d^-1)+-3*b*d*m*n*e^-1*(a+b*log(c*(d+e*x)^n))^2*Polylogarithms.polylog(2,1+e*x*d^-1)+3*b*d*m*n*e^-1*(a+b*log(c*(d+e*x)^n))^2*log(-1*e*x*d^-1)+6*d*m*b^2*e^-1*n^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,1+e*x*d^-1)+6*d*m*b^2*e^-1*n^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(3,1+e*x*d^-1))
@test integrate(x^-1*log(a+b*x)^2*log(x), x) == :(-2*Polylogarithms.polylog(4,b*x*(a+b*x)^-1)+-2*Polylogarithms.polylog(4,-1*b*x*a^-1)+2*Polylogarithms.polylog(4,1+b*x*a^-1)+1//12*log(-1*b*x*a^-1)^4+1//12*log(-1*b*x*(a+b*x)^-1)^4+(-1*log(-1*b*x*(a+b*x)^-1)+log(-1*b*x*a^-1))^2*Polylogarithms.polylog(2,1+b*x*a^-1)+(1/2)*log(x)^2*log(a+b*x)^2+(1/2)*log(-1*b*x*a^-1)^2*log(-1*b*x*(a+b*x)^-1)^2+-1*log(-1*b*x*(a+b*x)^-1)^2*Polylogarithms.polylog(2,b*x*(a+b*x)^-1)+2*Polylogarithms.polylog(3,b*x*(a+b*x)^-1)*log(-1*b*x*(a+b*x)^-1)+-1//12*log(-1*b*x*(a+b*x)^-1)^3*(4*log(a*(a+b*x)^-1)+4*log(-1*b*x*a^-1))+1//12*(-24*log(x)+24*log(-1*b*x*(a+b*x)^-1))*Polylogarithms.polylog(3,1+b*x*a^-1)+1//12*(8*log(-1*b*x*a^-1)^3+-12*log(x)^2*log(a+b*x))*log(1+b*x*a^-1)+1//12*(24*log(-1*b*x*(a+b*x)^-1)+24*log(a+b*x))*Polylogarithms.polylog(3,-1*b*x*a^-1)+1//12*(12*log(-1*b*x*a^-1)^2+-24*(log(-1*b*x*(a+b*x)^-1)+log(1+b*x*a^-1))*log(-1*b*x*a^-1)+24*(-1*log(a+b*x)+log(1+b*x*a^-1))*log(x))*Polylogarithms.polylog(2,-1*b*x*a^-1)+-1//3*log(-1*b*x*a^-1)^2*(3*log(1+b*x*a^-1)+log(-1*b*x*a^-1))*log(-1*b*x*(a+b*x)^-1)+1//12*log(1+b*x*a^-1)^2*(-6*log(-1*b*x*a^-1)+6*log(x))*(3*log(-1*b*x*a^-1)+log(x))+1//12*(-24*log(-1*b*x*a^-1)+24*log(x))*Polylogarithms.polylog(2,1+b*x*a^-1)*log(1+b*x*a^-1))
@test integrate(x^-1*log(a+b*x)*log(c+d*x), x) == :(-1*Polylogarithms.polylog(3,d*b^-1*(c+d*x)^-1*(a+b*x))+-1*Polylogarithms.polylog(3,1+b*x*a^-1)+-1*Polylogarithms.polylog(3,1+d*x*c^-1)+log(a*c^-1*(a+b*x)^-1*(c+d*x))^2*((1/2)*log(b^-1*(c+d*x)^-1*(b*c+-1*a*d))+(1/2)*log(-1*b*x*a^-1)+-1//2*log(-1*x*a^-1*(c+d*x)^-1*(b*c+-1*a*d)))+(-1*log(a*c^-1*(a+b*x)^-1*(c+d*x))+log(c+d*x))*Polylogarithms.polylog(2,1+b*x*a^-1)+(log(a*c^-1*(a+b*x)^-1*(c+d*x))+log(a+b*x))*Polylogarithms.polylog(2,1+d*x*c^-1)+Polylogarithms.polylog(2,c*a^-1*(c+d*x)^-1*(a+b*x))*log(a*c^-1*(a+b*x)^-1*(c+d*x))+-1*(log(a*c^-1*(a+b*x)^-1*(c+d*x))+log(a+b*x))^2*((1/2)*log(-1*b*x*a^-1)+-1//2*log(-1*d*x*c^-1))+-1*Polylogarithms.polylog(2,d*b^-1*(c+d*x)^-1*(a+b*x))*log(a*c^-1*(a+b*x)^-1*(c+d*x))+log(-1*b*x*a^-1)*log(a+b*x)*log(c+d*x)+Polylogarithms.polylog(3,c*a^-1*(c+d*x)^-1*(a+b*x)))
@test integrate(x^2*(a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n)), x) == :(1//3*x^3*(a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n))+-1//9*n*e^-3*(d+e*x)^3*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))+(1/2)*d*n*e^-3*(d+e*x)^2*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))+-1*n*d^2*e^-3*(d+e*x)*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))+1//3*n*d^3*e^-3*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))*log(d+e*x)+2//27*b*g*e^-3*n^2*(d+e*x)^3+2*b*g*x*d^2*e^-2*n^2+-1//2*b*d*g*e^-3*n^2*(d+e*x)^2+-1//3*b*g*d^3*e^-3*n^2*log(d+e*x)^2)
@test integrate(x*(a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n)), x) == :((1/2)*x^2*(a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n))+-1//4*n*e^-2*(d+e*x)^2*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))+d*n*e^-2*(d+e*x)*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))+-1//2*n*d^2*e^-2*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))*log(d+e*x)+1//4*b*g*e^-2*n^2*(d+e*x)^2+(1/2)*b*g*d^2*e^-2*n^2*log(d+e*x)^2+-2*b*d*g*x*e^-1*n^2)
@test integrate((a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n)), x) == :(x*(a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n))+-1*n*x*(a*g+b*f)+2*b*g*x*n^2+1//4*d*b^-1*e^-1*g^-1*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))^2+-2*b*g*n*e^-1*(d+e*x)*log(c*(d+e*x)^n))
@test integrate(x^-1*(a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n)), x) == :(n*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,1+e*x*d^-1)+(a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n))*log(x)+-2*b*g*n^2*Polylogarithms.polylog(3,1+e*x*d^-1)+-1//4*b^-1*g^-1*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))^2*log(x)+1//4*b^-1*g^-1*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))^2*log(-1*e*x*d^-1))
@test integrate(x^-2*(a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n)), x) == :(-1*x^-1*(a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n))+e*n*d^-1*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))*log(1+-1*d*(d+e*x)^-1)+-2*b*e*g*d^-1*n^2*Polylogarithms.polylog(2,d*(d+e*x)^-1))
@test integrate(x^-3*(a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n)), x) == :(-1//2*x^-2*(a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n))+-1//2*n*d^-2*e^2*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))*log(1+-1*d*(d+e*x)^-1)+b*g*d^-2*e^2*n^2*Polylogarithms.polylog(2,d*(d+e*x)^-1)+b*g*d^-2*e^2*n^2*log(x)+-1//2*e*n*d^-2*x^-1*(d+e*x)*(a*g+b*f+2*b*g*log(c*(d+e*x)^n)))
@test integrate(x^-4*(a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n)), x) == :(-1//3*x^-3*(a+b*log(c*(d+e*x)^n))*(f+g*log(c*(d+e*x)^n))+-1//6*e*n*d^-1*x^-2*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))+1//3*n*d^-3*e^3*(a*g+b*f+2*b*g*log(c*(d+e*x)^n))*log(1+-1*d*(d+e*x)^-1)+-1*b*g*d^-3*e^3*n^2*log(x)+-2//3*b*g*d^-3*e^3*n^2*Polylogarithms.polylog(2,d*(d+e*x)^-1)+-1//3*b*g*d^-2*e^2*n^2*x^-1+1//3*b*g*d^-3*e^3*n^2*log(d+e*x)+1//3*n*d^-3*e^2*x^-1*(d+e*x)*(a*g+b*f+2*b*g*log(c*(d+e*x)^n)))
@test integrate(x^3*(a+b*log(c*(d+e*x)^n))*(f+g*log(h*(i+j*x)^m)), x) == :(1//4*x^4*(a+b*log(c*(d+e*x)^n))*(f+g*log(h*(i+j*x)^m))+-1//16*b*n*x^4*(f+g*log(h*(i+j*x)^m))+-1//16*g*m*x^4*(a+b*log(c*(d+e*x)^n))+1//32*b*g*m*n*x^4+-1//4*b*n*d^4*e^-4*(f+g*log(h*(i+j*x)^m))*log(-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-1//4*g*m*i^4*j^-4*(a+b*log(c*(d+e*x)^n))*log(e*(e*i+-1*d*j)^-1*(i+j*x))+-1//8*b*n*d^2*e^-2*x^2*(f+g*log(h*(i+j*x)^m))+-1//8*g*m*i^2*j^-2*x^2*(a+b*log(c*(d+e*x)^n))+1//4*a*g*m*x*i^3*j^-3+1//4*b*f*n*x*d^3*e^-3+1//12*b*d*n*e^-1*x^3*(f+g*log(h*(i+j*x)^m))+1//12*g*i*m*j^-1*x^3*(a+b*log(c*(d+e*x)^n))+-7//144*b*d*g*m*n*e^-1*x^3+-7//144*b*g*i*m*n*j^-1*x^3+-5//16*b*g*m*n*x*d^3*e^-3+-5//16*b*g*m*n*x*i^3*j^-3+-1//4*b*g*m*n*d^4*e^-4*Polylogarithms.polylog(2,e*(e*i+-1*d*j)^-1*(i+j*x))+-1//4*b*g*m*n*i^4*j^-4*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+1//16*b*g*m*n*d^4*e^-4*log(d+e*x)+1//16*b*g*m*n*i^4*j^-4*log(i+j*x)+3//32*b*g*m*n*d^2*e^-2*x^2+3//32*b*g*m*n*i^2*j^-2*x^2+1//4*b*g*m*e^-1*i^3*j^-3*(d+e*x)*log(c*(d+e*x)^n)+1//4*b*g*n*d^3*e^-3*j^-1*(i+j*x)*log(h*(i+j*x)^m)+-5//24*b*d*g*m*n*x*e^-1*i^2*j^-2+-5//24*b*g*i*m*n*x*d^2*e^-2*j^-1+1//8*b*g*m*n*d^2*e^-2*i^2*j^-2*log(d+e*x)+1//8*b*g*m*n*d^2*e^-2*i^2*j^-2*log(i+j*x)+1//12*b*d*g*i*m*n*e^-1*j^-1*x^2+1//12*b*d*g*m*n*e^-1*i^3*j^-3*log(i+j*x)+1//12*b*g*i*m*n*d^3*e^-3*j^-1*log(d+e*x))
@test integrate(x^2*(a+b*log(c*(d+e*x)^n))*(f+g*log(h*(i+j*x)^m)), x) == :(1//3*x^3*(a+b*log(c*(d+e*x)^n))*(f+g*log(h*(i+j*x)^m))+-1//9*b*n*x^3*(f+g*log(h*(i+j*x)^m))+-1//9*g*m*x^3*(a+b*log(c*(d+e*x)^n))+2//27*b*g*m*n*x^3+-1//3*a*g*m*x*i^2*j^-2+-1//3*b*f*n*x*d^2*e^-2+1//3*b*n*d^3*e^-3*(f+g*log(h*(i+j*x)^m))*log(-1*j*(e*i+-1*d*j)^-1*(d+e*x))+1//3*g*m*i^3*j^-3*(a+b*log(c*(d+e*x)^n))*log(e*(e*i+-1*d*j)^-1*(i+j*x))+1//6*b*d*n*e^-1*x^2*(f+g*log(h*(i+j*x)^m))+1//6*g*i*m*j^-1*x^2*(a+b*log(c*(d+e*x)^n))+-5//36*b*d*g*m*n*e^-1*x^2+-5//36*b*g*i*m*n*j^-1*x^2+-1//9*b*g*m*n*d^3*e^-3*log(d+e*x)+-1//9*b*g*m*n*i^3*j^-3*log(i+j*x)+1//3*b*g*m*n*d^3*e^-3*Polylogarithms.polylog(2,e*(e*i+-1*d*j)^-1*(i+j*x))+1//3*b*g*m*n*i^3*j^-3*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+4//9*b*g*m*n*x*d^2*e^-2+4//9*b*g*m*n*x*i^2*j^-2+-1//3*b*g*m*e^-1*i^2*j^-2*(d+e*x)*log(c*(d+e*x)^n)+-1//3*b*g*n*d^2*e^-2*j^-1*(i+j*x)*log(h*(i+j*x)^m)+-1//6*b*d*g*m*n*e^-1*i^2*j^-2*log(i+j*x)+-1//6*b*g*i*m*n*d^2*e^-2*j^-1*log(d+e*x)+1//3*b*d*g*i*m*n*x*e^-1*j^-1)
@test integrate(x*(a+b*log(c*(d+e*x)^n))*(f+g*log(h*(i+j*x)^m)), x) == :((1/2)*x^2*(a+b*log(c*(d+e*x)^n))*(f+g*log(h*(i+j*x)^m))+-1//4*b*n*x^2*(f+g*log(h*(i+j*x)^m))+-1//4*g*m*x^2*(a+b*log(c*(d+e*x)^n))+1//4*b*g*m*n*x^2+(1/2)*a*g*i*m*x*j^-1+(1/2)*b*d*f*n*x*e^-1+-1//2*b*n*d^2*e^-2*(f+g*log(h*(i+j*x)^m))*log(-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-1//2*g*m*i^2*j^-2*(a+b*log(c*(d+e*x)^n))*log(e*(e*i+-1*d*j)^-1*(i+j*x))+-3//4*b*d*g*m*n*x*e^-1+-3//4*b*g*i*m*n*x*j^-1+-1//2*b*g*m*n*d^2*e^-2*Polylogarithms.polylog(2,e*(e*i+-1*d*j)^-1*(i+j*x))+-1//2*b*g*m*n*i^2*j^-2*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+1//4*b*g*m*n*d^2*e^-2*log(d+e*x)+1//4*b*g*m*n*i^2*j^-2*log(i+j*x)+(1/2)*b*d*g*n*e^-1*j^-1*(i+j*x)*log(h*(i+j*x)^m)+(1/2)*b*g*i*m*e^-1*j^-1*(d+e*x)*log(c*(d+e*x)^n))
@test integrate((a+b*log(c*(d+e*x)^n))*(f+g*log(h*(i+j*x)^m)), x) == :(x*(a+b*log(c*(d+e*x)^n))*(f+g*log(h*(i+j*x)^m))+-1*a*g*m*x+-1*b*f*n*x+2*b*g*m*n*x+b*d*n*e^-1*(f+g*log(h*(i+j*x)^m))*log(-1*j*(e*i+-1*d*j)^-1*(d+e*x))+g*i*m*j^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*i+-1*d*j)^-1*(i+j*x))+-1*b*g*m*e^-1*(d+e*x)*log(c*(d+e*x)^n)+-1*b*g*n*j^-1*(i+j*x)*log(h*(i+j*x)^m)+b*d*g*m*n*e^-1*Polylogarithms.polylog(2,e*(e*i+-1*d*j)^-1*(i+j*x))+b*g*i*m*n*j^-1*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x)))
@test integrate(x^-1*(a+b*log(c*(d+e*x)^n))*(f+g*log(h*(i+j*x)^m)), x) == :(f*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+a*g*m*Polylogarithms.polylog(2,1+j*x*i^-1)+a*g*log(h*(i+j*x)^m)*log(-1*j*x*i^-1)+b*f*n*Polylogarithms.polylog(2,1+e*x*d^-1)+b*g*m*n*Polylogarithms.polylog(3,i*d^-1*(i+j*x)^-1*(d+e*x))+-1*b*g*m*n*Polylogarithms.polylog(3,j*e^-1*(i+j*x)^-1*(d+e*x))+-1*b*g*m*n*Polylogarithms.polylog(3,1+e*x*d^-1)+-1*b*g*m*n*Polylogarithms.polylog(3,1+j*x*i^-1)+-1*b*g*m*(-1*log(c*(d+e*x)^n)+n*log(d+e*x))*Polylogarithms.polylog(2,1+j*x*i^-1)+-1*b*g*n*(-1*log(h*(i+j*x)^m)+m*log(i+j*x))*Polylogarithms.polylog(2,1+e*x*d^-1)+-1*b*g*(-1*log(h*(i+j*x)^m)+m*log(i+j*x))*log(c*(d+e*x)^n)*log(-1*e*x*d^-1)+b*g*m*n*(-1*log(d*i^-1*(d+e*x)^-1*(i+j*x))+log(i+j*x))*Polylogarithms.polylog(2,1+e*x*d^-1)+b*g*m*n*(log(d*i^-1*(d+e*x)^-1*(i+j*x))+log(d+e*x))*Polylogarithms.polylog(2,1+j*x*i^-1)+b*g*m*n*Polylogarithms.polylog(2,i*d^-1*(i+j*x)^-1*(d+e*x))*log(d*i^-1*(d+e*x)^-1*(i+j*x))+(1/2)*b*g*m*n*log(d*i^-1*(d+e*x)^-1*(i+j*x))^2*(-1*log(-1*x*d^-1*(i+j*x)^-1*(e*i+-1*d*j))+log(e^-1*(i+j*x)^-1*(e*i+-1*d*j))+log(-1*e*x*d^-1))+-1*b*g*m*n*Polylogarithms.polylog(2,j*e^-1*(i+j*x)^-1*(d+e*x))*log(d*i^-1*(d+e*x)^-1*(i+j*x))+-1*b*g*m*(-1*log(c*(d+e*x)^n)+n*log(d+e*x))*log(-1*j*x*i^-1)*log(i+j*x)+-1//2*b*g*m*n*(log(d*i^-1*(d+e*x)^-1*(i+j*x))+log(d+e*x))^2*(-1*log(-1*j*x*i^-1)+log(-1*e*x*d^-1))+b*g*m*n*log(-1*e*x*d^-1)*log(d+e*x)*log(i+j*x))
@test integrate(x^-2*(a+b*log(c*(d+e*x)^n))*(f+g*log(h*(i+j*x)^m)), x) == :(-1*x^-1*(a+b*log(c*(d+e*x)^n))*(f+g*log(h*(i+j*x)^m))+b*e*n*d^-1*(f+g*log(h*(i+j*x)^m))*log(-1*j*x*i^-1)+g*j*m*i^-1*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+-1*b*e*n*d^-1*(f+g*log(h*(i+j*x)^m))*log(-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-1*g*j*m*i^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*i+-1*d*j)^-1*(i+j*x))+b*e*g*m*n*d^-1*Polylogarithms.polylog(2,1+j*x*i^-1)+b*g*j*m*n*i^-1*Polylogarithms.polylog(2,1+e*x*d^-1)+-1*b*e*g*m*n*d^-1*Polylogarithms.polylog(2,e*(e*i+-1*d*j)^-1*(i+j*x))+-1*b*g*j*m*n*i^-1*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x)))
@test integrate(x^-3*(a+b*log(c*(d+e*x)^n))*(f+g*log(h*(i+j*x)^m)), x) == :(-1//2*x^-2*(a+b*log(c*(d+e*x)^n))*(f+g*log(h*(i+j*x)^m))+(1/2)*b*n*d^-2*e^2*(f+g*log(h*(i+j*x)^m))*log(-1*j*(e*i+-1*d*j)^-1*(d+e*x))+(1/2)*g*m*i^-2*j^2*(a+b*log(c*(d+e*x)^n))*log(e*(e*i+-1*d*j)^-1*(i+j*x))+-1//2*b*e*n*d^-1*x^-1*(f+g*log(h*(i+j*x)^m))+-1//2*b*n*d^-2*e^2*(f+g*log(h*(i+j*x)^m))*log(-1*j*x*i^-1)+-1//2*g*j*m*i^-1*x^-1*(a+b*log(c*(d+e*x)^n))+-1//2*g*m*i^-2*j^2*(a+b*log(c*(d+e*x)^n))*log(-1*e*x*d^-1)+(1/2)*b*g*m*n*d^-2*e^2*Polylogarithms.polylog(2,e*(e*i+-1*d*j)^-1*(i+j*x))+(1/2)*b*g*m*n*i^-2*j^2*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-1//2*b*g*m*n*d^-2*e^2*Polylogarithms.polylog(2,1+j*x*i^-1)+-1//2*b*g*m*n*i^-2*j^2*Polylogarithms.polylog(2,1+e*x*d^-1)+b*e*g*j*m*n*d^-1*i^-1*log(x)+-1//2*b*e*g*j*m*n*d^-1*i^-1*log(d+e*x)+-1//2*b*e*g*j*m*n*d^-1*i^-1*log(i+j*x))
@test integrate(x*(a+b*log(c*(d+e*x)^n))^2*(f+g*log(h*(i+j*x)^m)), x) == :((1/2)*x^2*(a+b*log(c*(d+e*x)^n))^2*(f+g*log(h*(i+j*x)^m))+-1//2*g*d^2*e^-2*(a+b*log(c*(d+e*x)^n))^2*log(h*(i+j*x)^m)+-1//4*g*m*b^2*n^2*x^2+-1//4*g*m*e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^2+1//4*f*b^2*e^-2*n^2*(d+e*x)^2+1//4*g*b^2*n^2*x^2*log(h*(i+j*x)^m)+(1/2)*d*g*m*e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+(1/2)*f*b^2*d^2*e^-2*n^2*log(d+e*x)^2+(1/2)*g*m*d^2*e^-2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*i+-1*d*j)^-1*(i+j*x))+-2*d*f*x*b^2*e^-1*n^2+-1//2*b*f*n*e^-2*(d+e*x)^2*(a+b*log(c*(d+e*x)^n))+-1//2*b*g*n*x^2*(a+b*log(c*(d+e*x)^n))*log(h*(i+j*x)^m)+-1//2*g*m*i^2*j^-2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*i+-1*d*j)^-1*(i+j*x))+-1//8*g*m*b^2*e^-2*n^2*(d+e*x)^2+1//4*b*g*m*n*x^2*(a+b*log(c*(d+e*x)^n))+g*m*b^2*i^2*j^-2*n^2*Polylogarithms.polylog(3,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+(1/2)*g*i*m*e^-1*j^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+(1/2)*g*m*b^2*i^2*j^-2*n^2*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-1*b*f*n*d^2*e^-2*(a+b*log(c*(d+e*x)^n))*log(d+e*x)+-1*g*m*b^2*d^2*e^-2*n^2*Polylogarithms.polylog(3,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+2*b*d*f*n*e^-2*(a+b*log(c*(d+e*x)^n))*(d+e*x)+-1//4*g*m*b^2*d^2*e^-2*n^2*log(d+e*x)+-1//4*g*m*b^2*i^2*j^-2*n^2*log(i+j*x)+1//4*b*g*m*n*e^-2*(d+e*x)^2*(a+b*log(c*(d+e*x)^n))+3//2*g*m*b^2*d^2*e^-2*n^2*Polylogarithms.polylog(2,e*(e*i+-1*d*j)^-1*(i+j*x))+3//2*g*b^2*d^2*e^-2*n^2*log(h*(i+j*x)^m)*log(-1*j*(e*i+-1*d*j)^-1*(d+e*x))+7//4*g*i*m*x*b^2*j^-1*n^2+15//4*d*g*m*x*b^2*e^-1*n^2+b*d*g*n*x*e^-1*(a+b*log(c*(d+e*x)^n))*log(h*(i+j*x)^m)+b*g*m*n*d^2*e^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+(1/2)*b*g*m*n*i^2*j^-2*(a+b*log(c*(d+e*x)^n))*log(e*(e*i+-1*d*j)^-1*(i+j*x))+-1*b*g*m*n*i^2*j^-2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-2*a*b*d*g*m*n*x*e^-1+-2*d*g*m*n*b^2*e^-2*(d+e*x)*log(c*(d+e*x)^n)+-3//2*a*b*g*i*m*n*x*j^-1+-3//2*d*g*b^2*e^-1*j^-1*n^2*(i+j*x)*log(h*(i+j*x)^m)+d*g*i*m*b^2*e^-1*j^-1*n^2*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-3//2*g*i*m*n*b^2*e^-1*j^-1*(d+e*x)*log(c*(d+e*x)^n)+b*d*g*i*m*n*e^-1*j^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*i+-1*d*j)^-1*(i+j*x)))
@test integrate((a+b*log(c*(d+e*x)^n))^2*(f+g*log(h*(i+j*x)^m)), x) == :(x*(a+b*log(c*(d+e*x)^n))^2*(f+g*log(h*(i+j*x)^m))+d*f*e^-1*(a+b*log(c*(d+e*x)^n))^2+2*f*x*b^2*n^2+d*g*e^-1*(a+b*log(c*(d+e*x)^n))^2*log(h*(i+j*x)^m)+-1*g*m*e^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+-6*g*m*x*b^2*n^2+-2*a*b*f*n*x+g*i*m*j^-1*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*i+-1*d*j)^-1*(i+j*x))+-1*d*g*m*e^-1*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*i+-1*d*j)^-1*(i+j*x))+-2*b*g*n*x*(a+b*log(c*(d+e*x)^n))*log(h*(i+j*x)^m)+-2*f*n*b^2*e^-1*(d+e*x)*log(c*(d+e*x)^n)+2*g*b^2*j^-1*n^2*(i+j*x)*log(h*(i+j*x)^m)+4*a*b*g*m*n*x+-2*d*g*m*b^2*e^-1*n^2*Polylogarithms.polylog(2,e*(e*i+-1*d*j)^-1*(i+j*x))+-2*d*g*b^2*e^-1*n^2*log(h*(i+j*x)^m)*log(-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-2*g*i*m*b^2*j^-1*n^2*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-2*g*i*m*b^2*j^-1*n^2*Polylogarithms.polylog(3,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+2*d*g*m*b^2*e^-1*n^2*Polylogarithms.polylog(3,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+4*g*m*n*b^2*e^-1*(d+e*x)*log(c*(d+e*x)^n)+-2*b*d*g*m*n*e^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-2*b*g*i*m*n*j^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*i+-1*d*j)^-1*(i+j*x))+2*b*g*i*m*n*j^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x)))
@test integrate(x*(a+b*log(c*(d+e*x)^n))^3*(f+g*log(h*(i+j*x)^m)), x) == :((1/2)*x^2*(a+b*log(c*(d+e*x)^n))^3*(f+g*log(h*(i+j*x)^m))+-1//2*f*d^2*e^-2*(a+b*log(c*(d+e*x)^n))^3+-3//8*f*b^3*e^-2*n^3*(d+e*x)^2+-3//8*g*b^3*n^3*x^2*log(h*(i+j*x)^m)+-1//2*g*d^2*e^-2*(a+b*log(c*(d+e*x)^n))^3*log(h*(i+j*x)^m)+-1//4*g*m*e^-2*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)^2+3//8*g*m*b^3*n^3*x^2+(1/2)*d*g*m*e^-2*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)+(1/2)*g*m*d^2*e^-2*(a+b*log(c*(d+e*x)^n))^3*log(e*(e*i+-1*d*j)^-1*(i+j*x))+6*d*f*x*b^3*e^-1*n^3+-3//4*b*f*n*e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^2+-3//4*b*g*n*x^2*(a+b*log(c*(d+e*x)^n))^2*log(h*(i+j*x)^m)+-3//8*g*m*b^2*n^2*x^2*(a+b*log(c*(d+e*x)^n))+-1//2*g*m*i^2*j^-2*(a+b*log(c*(d+e*x)^n))^3*log(e*(e*i+-1*d*j)^-1*(i+j*x))+3//4*f*b^2*e^-2*n^2*(d+e*x)^2*(a+b*log(c*(d+e*x)^n))+3//4*g*b^2*n^2*x^2*(a+b*log(c*(d+e*x)^n))*log(h*(i+j*x)^m)+3//8*g*m*b^3*e^-2*n^3*(d+e*x)^2+(1/2)*g*i*m*e^-1*j^-1*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)+-6*a*d*f*x*b^2*e^-1*n^2+-6*d*f*b^3*e^-2*n^2*(d+e*x)*log(c*(d+e*x)^n)+-3*g*m*b^3*i^2*j^-2*n^3*Polylogarithms.polylog(4,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+3*b*d*f*n*e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+3*g*m*b^3*d^2*e^-2*n^3*Polylogarithms.polylog(4,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-141//8*d*g*m*x*b^3*e^-1*n^3+-45//8*g*i*m*x*b^3*j^-1*n^3+-21//4*g*m*b^3*d^2*e^-2*n^3*Polylogarithms.polylog(2,e*(e*i+-1*d*j)^-1*(i+j*x))+-21//4*g*b^3*d^2*e^-2*n^3*log(h*(i+j*x)^m)*log(-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-3//2*g*m*b^3*i^2*j^-2*n^3*Polylogarithms.polylog(3,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-3//4*g*m*b^2*e^-2*n^2*(d+e*x)^2*(a+b*log(c*(d+e*x)^n))+-3//4*g*m*b^3*i^2*j^-2*n^3*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+3//4*b*g*m*n*e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)^2+3//8*g*m*b^3*d^2*e^-2*n^3*log(d+e*x)+3//8*g*m*b^3*i^2*j^-2*n^3*log(i+j*x)+9//2*g*m*b^3*d^2*e^-2*n^3*Polylogarithms.polylog(3,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+9//4*b*g*n*d^2*e^-2*(a+b*log(c*(d+e*x)^n))^2*log(h*(i+j*x)^m)+-3*g*m*b^2*d^2*e^-2*n^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(3,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+3*g*m*b^2*i^2*j^-2*n^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(3,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+12*a*d*g*m*x*b^2*e^-1*n^2+12*d*g*m*b^3*e^-2*n^2*(d+e*x)*log(c*(d+e*x)^n)+-15//4*b*d*g*m*n*e^-2*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+-9//2*d*g*x*b^2*e^-1*n^2*(a+b*log(c*(d+e*x)^n))*log(h*(i+j*x)^m)+-9//2*g*m*b^2*d^2*e^-2*n^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-9//4*b*g*m*n*d^2*e^-2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*i+-1*d*j)^-1*(i+j*x))+-3//2*b*g*m*n*i^2*j^-2*(a+b*log(c*(d+e*x)^n))^2*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-3//4*g*m*b^2*i^2*j^-2*n^2*(a+b*log(c*(d+e*x)^n))*log(e*(e*i+-1*d*j)^-1*(i+j*x))+3//2*b*d*g*n*x*e^-1*(a+b*log(c*(d+e*x)^n))^2*log(h*(i+j*x)^m)+3//2*b*g*m*n*d^2*e^-2*(a+b*log(c*(d+e*x)^n))^2*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+3//2*g*m*b^2*i^2*j^-2*n^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+3//4*b*g*m*n*i^2*j^-2*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*i+-1*d*j)^-1*(i+j*x))+21//4*a*g*i*m*x*b^2*j^-1*n^2+21//4*d*g*b^3*e^-1*j^-1*n^3*(i+j*x)*log(h*(i+j*x)^m)+-3*d*g*i*m*b^3*e^-1*j^-1*n^3*Polylogarithms.polylog(3,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-9//2*d*g*i*m*b^3*e^-1*j^-1*n^3*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-9//4*b*g*i*m*n*e^-1*j^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+21//4*g*i*m*b^3*e^-1*j^-1*n^2*(d+e*x)*log(c*(d+e*x)^n)+3*d*g*i*m*b^2*e^-1*j^-1*n^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-9//2*d*g*i*m*b^2*e^-1*j^-1*n^2*(a+b*log(c*(d+e*x)^n))*log(e*(e*i+-1*d*j)^-1*(i+j*x))+3//2*b*d*g*i*m*n*e^-1*j^-1*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*i+-1*d*j)^-1*(i+j*x)))
@test integrate((a+b*log(c*(d+e*x)^n))^3*(f+g*log(h*(i+j*x)^m)), x) == :(x*(a+b*log(c*(d+e*x)^n))^3*(f+g*log(h*(i+j*x)^m))+d*f*e^-1*(a+b*log(c*(d+e*x)^n))^3+-6*f*x*b^3*n^3+d*g*e^-1*(a+b*log(c*(d+e*x)^n))^3*log(h*(i+j*x)^m)+-1*g*m*e^-1*(a+b*log(c*(d+e*x)^n))^3*(d+e*x)+6*a*f*x*b^2*n^2+24*g*m*x*b^3*n^3+g*i*m*j^-1*(a+b*log(c*(d+e*x)^n))^3*log(e*(e*i+-1*d*j)^-1*(i+j*x))+-1*d*g*m*e^-1*(a+b*log(c*(d+e*x)^n))^3*log(e*(e*i+-1*d*j)^-1*(i+j*x))+-18*a*g*m*x*b^2*n^2+-6*g*b^3*j^-1*n^3*(i+j*x)*log(h*(i+j*x)^m)+-3*b*f*n*e^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+-3*b*g*n*x*(a+b*log(c*(d+e*x)^n))^2*log(h*(i+j*x)^m)+6*f*b^3*e^-1*n^2*(d+e*x)*log(c*(d+e*x)^n)+6*g*x*b^2*n^2*(a+b*log(c*(d+e*x)^n))*log(h*(i+j*x)^m)+-18*g*m*b^3*e^-1*n^2*(d+e*x)*log(c*(d+e*x)^n)+-6*d*g*m*b^3*e^-1*n^3*Polylogarithms.polylog(3,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-6*d*g*m*b^3*e^-1*n^3*Polylogarithms.polylog(4,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-3*b*d*g*n*e^-1*(a+b*log(c*(d+e*x)^n))^2*log(h*(i+j*x)^m)+6*b*g*m*n*e^-1*(a+b*log(c*(d+e*x)^n))^2*(d+e*x)+6*d*g*m*b^3*e^-1*n^3*Polylogarithms.polylog(2,e*(e*i+-1*d*j)^-1*(i+j*x))+6*d*g*b^3*e^-1*n^3*log(h*(i+j*x)^m)*log(-1*j*(e*i+-1*d*j)^-1*(d+e*x))+6*g*i*m*b^3*j^-1*n^3*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+6*g*i*m*b^3*j^-1*n^3*Polylogarithms.polylog(3,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+6*g*i*m*b^3*j^-1*n^3*Polylogarithms.polylog(4,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-6*g*i*m*b^2*j^-1*n^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-6*g*i*m*b^2*j^-1*n^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(3,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-3*b*d*g*m*n*e^-1*(a+b*log(c*(d+e*x)^n))^2*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+-3*b*g*i*m*n*j^-1*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*i+-1*d*j)^-1*(i+j*x))+3*b*d*g*m*n*e^-1*(a+b*log(c*(d+e*x)^n))^2*log(e*(e*i+-1*d*j)^-1*(i+j*x))+3*b*g*i*m*n*j^-1*(a+b*log(c*(d+e*x)^n))^2*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+6*d*g*m*b^2*e^-1*n^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+6*d*g*m*b^2*e^-1*n^2*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(3,-1*j*(e*i+-1*d*j)^-1*(d+e*x))+6*g*i*m*b^2*j^-1*n^2*(a+b*log(c*(d+e*x)^n))*log(e*(e*i+-1*d*j)^-1*(i+j*x)))
@test integrate((d+e*x)^-1*(a+b*log(c*(d+e*x)^n))*log(e*(e*f+-1*d*g)^-1*(f+g*x)), x) == :(-1*e^-1*(a+b*log(c*(d+e*x)^n))*Polylogarithms.polylog(2,-1*g*(e*f+-1*d*g)^-1*(d+e*x))+b*n*e^-1*Polylogarithms.polylog(3,-1*g*(e*f+-1*d*g)^-1*(d+e*x)))
@test integrate((d+e*x)^-2*(a+b*log(c*(d+e*x)))*log(c*(d+e*x)), x) == :(-1*b*e^-1*(d+e*x)^-1+-1*e^-1*(d+e*x)^-1*(a+b+b*log(c*(d+e*x)))+-1*b*e^-1*(d+e*x)^-1*log(c*(d+e*x))+-1*e^-1*(d+e*x)^-1*(a+b*log(c*(d+e*x)))*log(c*(d+e*x)))
@test integrate((d+e*x)^-2*(a+b*log(c*(d+e*x)))*(f+g*log(c*(d+e*x))), x) == :(-1*b*g*e^-1*(d+e*x)^-1+-1*b*e^-1*(d+e*x)^-1*(f+g*log(c*(d+e*x)))+-1*g*e^-1*(d+e*x)^-1*(a+b+b*log(c*(d+e*x)))+-1*e^-1*(d+e*x)^-1*(a+b*log(c*(d+e*x)))*(f+g*log(c*(d+e*x))))
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^4, x) == :(f^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^4*(e+f*x)+24*x*b^4*m^4*n^4+-24*a*x*b^3*m^3*n^3+-24*b^4*f^-1*m^3*n^3*(e+f*x)*log(c*(d*(e+f*x)^m)^n)+-4*b*m*n*f^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^3*(e+f*x)+12*b^2*f^-1*m^2*n^2*(a+b*log(c*(d*(e+f*x)^m)^n))^2*(e+f*x))
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^3, x) == :(f^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^3*(e+f*x)+-6*x*b^3*m^3*n^3+6*a*x*b^2*m^2*n^2+-3*b*m*n*f^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^2*(e+f*x)+6*b^3*f^-1*m^2*n^2*(e+f*x)*log(c*(d*(e+f*x)^m)^n))
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^2, x) == :(f^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^2*(e+f*x)+2*x*b^2*m^2*n^2+-2*a*b*m*n*x+-2*m*n*b^2*f^-1*(e+f*x)*log(c*(d*(e+f*x)^m)^n))
@test integrate(a+b*log(c*(d*(e+f*x)^m)^n), x) == :(a*x+b*f^-1*(e+f*x)*log(c*(d*(e+f*x)^m)^n)+-1*b*m*n*x)
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^-1, x) == :(b^-1*f^-1*m^-1*n^-1*(c*(d*(e+f*x)^m)^n)^(-1*m^-1*n^-1)*(e+f*x)*exp(-1*a*b^-1*m^-1*n^-1)*expintegralei(b^-1*m^-1*n^-1*(a+b*log(c*(d*(e+f*x)^m)^n))))
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^-2, x) == :(-1*b^-1*f^-1*m^-1*n^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^-1*(e+f*x)+b^-2*f^-1*m^-2*n^-2*(c*(d*(e+f*x)^m)^n)^(-1*m^-1*n^-1)*(e+f*x)*exp(-1*a*b^-1*m^-1*n^-1)*expintegralei(b^-1*m^-1*n^-1*(a+b*log(c*(d*(e+f*x)^m)^n))))
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^-3, x) == :(-1//2*b^-1*f^-1*m^-1*n^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^-2*(e+f*x)+-1//2*b^-2*f^-1*m^-2*n^-2*(a+b*log(c*(d*(e+f*x)^m)^n))^-1*(e+f*x)+(1/2)*b^-3*f^-1*m^-3*n^-3*(c*(d*(e+f*x)^m)^n)^(-1*m^-1*n^-1)*(e+f*x)*exp(-1*a*b^-1*m^-1*n^-1)*expintegralei(b^-1*m^-1*n^-1*(a+b*log(c*(d*(e+f*x)^m)^n))))
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^5//2, x) == :(f^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^5//2*(e+f*x)+-5//2*b*m*n*f^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^3//2*(e+f*x)+15//4*b^2*f^-1*m^2*n^2*(a+b*log(c*(d*(e+f*x)^m)^n))^(1/2)*(e+f*x)+-15//8*pi^(1/2)*b^5//2*f^-1*m^5//2*n^5//2*(c*(d*(e+f*x)^m)^n)^(-1*m^-1*n^-1)*(e+f*x)*erfi(b^-1//2*m^-1//2*n^-1//2*(a+b*log(c*(d*(e+f*x)^m)^n))^(1/2))*exp(-1*a*b^-1*m^-1*n^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^3//2, x) == :(f^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^3//2*(e+f*x)+-3//2*b*m*n*f^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^(1/2)*(e+f*x)+3//4*pi^(1/2)*b^3//2*f^-1*m^3//2*n^3//2*(c*(d*(e+f*x)^m)^n)^(-1*m^-1*n^-1)*(e+f*x)*erfi(b^-1//2*m^-1//2*n^-1//2*(a+b*log(c*(d*(e+f*x)^m)^n))^(1/2))*exp(-1*a*b^-1*m^-1*n^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^(1/2), x) == :(f^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^(1/2)*(e+f*x)+-1//2*pi^(1/2)*b^(1/2)*f^-1*m^(1/2)*n^(1/2)*(c*(d*(e+f*x)^m)^n)^(-1*m^-1*n^-1)*(e+f*x)*erfi(b^-1//2*m^-1//2*n^-1//2*(a+b*log(c*(d*(e+f*x)^m)^n))^(1/2))*exp(-1*a*b^-1*m^-1*n^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^-1//2, x) == :(pi^(1/2)*b^-1//2*f^-1*m^-1//2*n^-1//2*(c*(d*(e+f*x)^m)^n)^(-1*m^-1*n^-1)*(e+f*x)*erfi(b^-1//2*m^-1//2*n^-1//2*(a+b*log(c*(d*(e+f*x)^m)^n))^(1/2))*exp(-1*a*b^-1*m^-1*n^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^-3//2, x) == :(-1*b^-1*f^-1*m^-1*n^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^-1//2*(2*e+2*f*x)+2*pi^(1/2)*b^-3//2*f^-1*m^-3//2*n^-3//2*(c*(d*(e+f*x)^m)^n)^(-1*m^-1*n^-1)*(e+f*x)*erfi(b^-1//2*m^-1//2*n^-1//2*(a+b*log(c*(d*(e+f*x)^m)^n))^(1/2))*exp(-1*a*b^-1*m^-1*n^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^-5//2, x) == :(-1//3*b^-1*f^-1*m^-1*n^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^-3//2*(2*e+2*f*x)+-1//3*b^-2*f^-1*m^-2*n^-2*(a+b*log(c*(d*(e+f*x)^m)^n))^-1//2*(4*e+4*f*x)+4//3*pi^(1/2)*b^-5//2*f^-1*m^-5//2*n^-5//2*(c*(d*(e+f*x)^m)^n)^(-1*m^-1*n^-1)*(e+f*x)*erfi(b^-1//2*m^-1//2*n^-1//2*(a+b*log(c*(d*(e+f*x)^m)^n))^(1/2))*exp(-1*a*b^-1*m^-1*n^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^-7//2, x) == :(-1//5*b^-1*f^-1*m^-1*n^-1*(a+b*log(c*(d*(e+f*x)^m)^n))^-5//2*(2*e+2*f*x)+-1//15*b^-3*f^-1*m^-3*n^-3*(a+b*log(c*(d*(e+f*x)^m)^n))^-1//2*(8*e+8*f*x)+-1//15*b^-2*f^-1*m^-2*n^-2*(a+b*log(c*(d*(e+f*x)^m)^n))^-3//2*(4*e+4*f*x)+8//15*pi^(1/2)*b^-7//2*f^-1*m^-7//2*n^-7//2*(c*(d*(e+f*x)^m)^n)^(-1*m^-1*n^-1)*(e+f*x)*erfi(b^-1//2*m^-1//2*n^-1//2*(a+b*log(c*(d*(e+f*x)^m)^n))^(1/2))*exp(-1*a*b^-1*m^-1*n^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^m)^n))^p, x) == :(f^-1*(c*(d*(e+f*x)^m)^n)^(-1*m^-1*n^-1)*(-1*b^-1*m^-1*n^-1*(a+b*log(c*(d*(e+f*x)^m)^n)))^(-1p)*(a+b*log(c*(d*(e+f*x)^m)^n))^p*(e+f*x)*SpecialFunctions.gamma(1+p,-1*b^-1*m^-1*n^-1*(a+b*log(c*(d*(e+f*x)^m)^n)))*exp(-1*a*b^-1*m^-1*n^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^(1/2))^(1/2)))^p, x) == :(4^(-1p)*c^-4*d^-2*f^-1*(-1*b^-1*(a+b*log(c*(d*(e+f*x)^(1/2))^(1/2))))^(-1p)*(a+b*log(c*(d*(e+f*x)^(1/2))^(1/2)))^p*SpecialFunctions.gamma(1+p,-1*b^-1*(4a+4*b*log(c*(d*(e+f*x)^(1/2))^(1/2))))*exp(-4*a*b^-1))
@test integrate((g+h*x)^3*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(1//4*h^-1*(g+h*x)^4*(a+b*log(c*(d*(e+f*x)^p)^q))+-1//16*b*p*q*h^-1*(g+h*x)^4+-1//4*b*p*q*x*f^-3*(f*g+-1*e*h)^3+-1//4*b*p*q*f^-4*h^-1*(f*g+-1*e*h)^4*log(e+f*x)+-1//8*b*p*q*f^-2*h^-1*(g+h*x)^2*(f*g+-1*e*h)^2+-1//12*b*p*q*f^-1*h^-1*(g+h*x)^3*(f*g+-1*e*h))
@test integrate((g+h*x)^2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(1//3*h^-1*(g+h*x)^3*(a+b*log(c*(d*(e+f*x)^p)^q))+-1//9*b*p*q*h^-1*(g+h*x)^3+-1//3*b*p*q*x*f^-2*(f*g+-1*e*h)^2+-1//3*b*p*q*f^-3*h^-1*(f*g+-1*e*h)^3*log(e+f*x)+-1//6*b*p*q*f^-1*h^-1*(g+h*x)^2*(f*g+-1*e*h))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))*(g+h*x), x) == :((1/2)*h^-1*(g+h*x)^2*(a+b*log(c*(d*(e+f*x)^p)^q))+-1//4*b*p*q*h^-1*(g+h*x)^2+-1//2*b*p*q*x*f^-1*(f*g+-1*e*h)+-1//2*b*p*q*f^-2*h^-1*(f*g+-1*e*h)^2*log(e+f*x))
@test integrate(a+b*log(c*(d*(e+f*x)^p)^q), x) == :(a*x+b*f^-1*(e+f*x)*log(c*(d*(e+f*x)^p)^q)+-1*b*p*q*x)
@test integrate((g+h*x)^-1*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*log(f*(f*g+-1*e*h)^-1*(g+h*x))+b*p*q*h^-1*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x)))
@test integrate((g+h*x)^-2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(-1*h^-1*(g+h*x)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))+b*f*p*q*h^-1*(f*g+-1*e*h)^-1*log(e+f*x)+-1*b*f*p*q*h^-1*(f*g+-1*e*h)^-1*log(g+h*x))
@test integrate((g+h*x)^-3*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(-1//2*h^-1*(g+h*x)^-2*(a+b*log(c*(d*(e+f*x)^p)^q))+(1/2)*b*f*p*q*h^-1*(g+h*x)^-1*(f*g+-1*e*h)^-1+(1/2)*b*p*q*f^2*h^-1*(f*g+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*(g+h*x)^-1, x) == :(h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*log(f*(f*g+-1*e*h)^-1*(g+h*x))+-2*b^2*h^-1*p^2*q^2*Polylogarithms.polylog(3,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+2*b*p*q*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-2, x) == :((a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-1*(f*g+-1*e*h)^-1*(e+f*x)+-2*f*b^2*h^-1*p^2*q^2*(f*g+-1*e*h)^-1*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-2*b*f*p*q*h^-1*(f*g+-1*e*h)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*log(f*(f*g+-1*e*h)^-1*(g+h*x)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-3, x) == :(-1//2*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-2+b^2*f^2*h^-1*p^2*q^2*(f*g+-1*e*h)^-2*Polylogarithms.polylog(2,-1*h^-1*(e+f*x)^-1*(f*g+-1*e*h))+b^2*f^2*h^-1*p^2*q^2*(f*g+-1*e*h)^-2*log(g+h*x)+-1*b*f*p*q*(g+h*x)^-1*(f*g+-1*e*h)^-2*(a+b*log(c*(d*(e+f*x)^p)^q))*(e+f*x)+-1*b*p*q*f^2*h^-1*(f*g+-1*e*h)^-2*(a+b*log(c*(d*(e+f*x)^p)^q))*log(1+h^-1*(e+f*x)^-1*(f*g+-1*e*h)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^3*(g+h*x)^2, x) == :(f^-3*(a+b*log(c*(d*(e+f*x)^p)^q))^3*(f*g+-1*e*h)^2*(e+f*x)+1//3*f^-3*h^2*(a+b*log(c*(d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^-2*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(e+f*x)^2+3//4*h*b^2*f^-2*p^2*q^2*(e+f*x)^2*(a+b*log(c*(d*(e+f*x)^p)^q)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^3, x) == :(f^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^3*(e+f*x)+-6*x*b^3*p^3*q^3+6*a*x*b^2*p^2*q^2+-3*b*p*q*f^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(e+f*x)+6*b^3*f^-1*p^2*q^2*(e+f*x)*log(c*(d*(e+f*x)^p)^q))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^3*(g+h*x)^-1, x) == :(h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^3*log(f*(f*g+-1*e*h)^-1*(g+h*x))+6*b^3*h^-1*p^3*q^3*Polylogarithms.polylog(4,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-6*b^2*h^-1*p^2*q^2*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(3,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+3*b*p*q*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^3*(g+h*x)^-2, x) == :((a+b*log(c*(d*(e+f*x)^p)^q))^3*(g+h*x)^-1*(f*g+-1*e*h)^-1*(e+f*x)+6*f*b^3*h^-1*p^3*q^3*(f*g+-1*e*h)^-1*Polylogarithms.polylog(3,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-6*f*b^2*h^-1*p^2*q^2*(f*g+-1*e*h)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-3*b*f*p*q*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(f*g+-1*e*h)^-1*log(f*(f*g+-1*e*h)^-1*(g+h*x)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^3*(g+h*x)^-3, x) == :(-1//2*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^3*(g+h*x)^-2+3*b^3*f^2*h^-1*p^3*q^3*(f*g+-1*e*h)^-2*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+3*b^3*f^2*h^-1*p^3*q^3*(f*g+-1*e*h)^-2*Polylogarithms.polylog(3,-1*h^-1*(e+f*x)^-1*(f*g+-1*e*h))+3*b^2*f^2*h^-1*p^2*q^2*(f*g+-1*e*h)^-2*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(2,-1*h^-1*(e+f*x)^-1*(f*g+-1*e*h))+3*b^2*f^2*h^-1*p^2*q^2*(f*g+-1*e*h)^-2*(a+b*log(c*(d*(e+f*x)^p)^q))*log(f*(f*g+-1*e*h)^-1*(g+h*x))+-3//2*b*f*p*q*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-1*(f*g+-1*e*h)^-2*(e+f*x)+-3//2*b*p*q*f^2*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(f*g+-1*e*h)^-2*log(1+h^-1*(e+f*x)^-1*(f*g+-1*e*h)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^4, x) == :(f^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^4*(e+f*x)+24*x*b^4*p^4*q^4+-24*a*x*b^3*p^3*q^3+-24*b^4*f^-1*p^3*q^3*(e+f*x)*log(c*(d*(e+f*x)^p)^q)+-4*b*p*q*f^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^3*(e+f*x)+12*b^2*f^-1*p^2*q^2*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(e+f*x))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^4*(g+h*x)^-1, x) == :(h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^4*log(f*(f*g+-1*e*h)^-1*(g+h*x))+-24*b^4*h^-1*p^4*q^4*Polylogarithms.polylog(5,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-12*b^2*h^-1*p^2*q^2*(a+b*log(c*(d*(e+f*x)^p)^q))^2*Polylogarithms.polylog(3,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+4*b*p*q*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^3*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+24*b^3*h^-1*p^3*q^3*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(4,-1*h*(f*g+-1*e*h)^-1*(e+f*x)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^4*(g+h*x)^-2, x) == :((a+b*log(c*(d*(e+f*x)^p)^q))^4*(g+h*x)^-1*(f*g+-1*e*h)^-1*(e+f*x)+-24*f*b^4*h^-1*p^4*q^4*(f*g+-1*e*h)^-1*Polylogarithms.polylog(4,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-12*f*b^2*h^-1*p^2*q^2*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(f*g+-1*e*h)^-1*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-4*b*f*p*q*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^3*(f*g+-1*e*h)^-1*log(f*(f*g+-1*e*h)^-1*(g+h*x))+24*f*b^3*h^-1*p^3*q^3*(f*g+-1*e*h)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(3,-1*h*(f*g+-1*e*h)^-1*(e+f*x)))
@test integrate(log(c*(d*(e+f*x)^p)^q), x) == :(f^-1*(e+f*x)*log(c*(d*(e+f*x)^p)^q)+-1*p*q*x)
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-1*(g+h*x)^2, x) == :(b^-1*f^-3*h^2*p^-1*q^-1*(c*(d*(e+f*x)^p)^q)^(-3*p^-1*q^-1)*(e+f*x)^3*exp(-3*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(3a+3*b*log(c*(d*(e+f*x)^p)^q)))+b^-1*f^-3*p^-1*q^-1*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(f*g+-1*e*h)^2*(e+f*x)*exp(-1*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))+2*h*b^-1*f^-3*p^-1*q^-1*(c*(d*(e+f*x)^p)^q)^(-2*p^-1*q^-1)*(e+f*x)^2*(f*g+-1*e*h)*exp(-2*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(2a+2*b*log(c*(d*(e+f*x)^p)^q))))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-1*(g+h*x), x) == :(h*b^-1*f^-2*p^-1*q^-1*(c*(d*(e+f*x)^p)^q)^(-2*p^-1*q^-1)*(e+f*x)^2*exp(-2*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(2a+2*b*log(c*(d*(e+f*x)^p)^q)))+b^-1*f^-2*p^-1*q^-1*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(e+f*x)*(f*g+-1*e*h)*exp(-1*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q))))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-1, x) == :(b^-1*f^-1*p^-1*q^-1*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(e+f*x)*exp(-1*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q))))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-2*(g+h*x)^2, x) == :(-1*b^-1*f^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^-1*(g+h*x)^2*(e+f*x)+b^-2*f^-3*p^-2*q^-2*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(f*g+-1*e*h)^2*(e+f*x)*exp(-1*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))+3*b^-2*f^-3*h^2*p^-2*q^-2*(c*(d*(e+f*x)^p)^q)^(-3*p^-1*q^-1)*(e+f*x)^3*exp(-3*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(3a+3*b*log(c*(d*(e+f*x)^p)^q)))+4*h*b^-2*f^-3*p^-2*q^-2*(c*(d*(e+f*x)^p)^q)^(-2*p^-1*q^-1)*(e+f*x)^2*(f*g+-1*e*h)*exp(-2*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(2a+2*b*log(c*(d*(e+f*x)^p)^q))))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-2*(g+h*x), x) == :(-1*b^-1*f^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^-1*(e+f*x)*(g+h*x)+b^-2*f^-2*p^-2*q^-2*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(e+f*x)*(f*g+-1*e*h)*exp(-1*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))+2*h*b^-2*f^-2*p^-2*q^-2*(c*(d*(e+f*x)^p)^q)^(-2*p^-1*q^-1)*(e+f*x)^2*exp(-2*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(2a+2*b*log(c*(d*(e+f*x)^p)^q))))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-2, x) == :(-1*b^-1*f^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^-1*(e+f*x)+b^-2*f^-1*p^-2*q^-2*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(e+f*x)*exp(-1*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q))))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-3*(g+h*x)^2, x) == :(-1//2*b^-1*f^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^-2*(g+h*x)^2*(e+f*x)+-1//2*b^-2*f^-1*p^-2*q^-2*(a+b*log(c*(d*(e+f*x)^p)^q))^-1*(g+h*x)^2*(3*e+3*f*x)+b^-2*f^-2*p^-2*q^-2*(a+b*log(c*(d*(e+f*x)^p)^q))^-1*(e+f*x)*(g+h*x)*(f*g+-1*e*h)+(1/2)*b^-3*f^-3*p^-3*q^-3*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(f*g+-1*e*h)^2*(e+f*x)*exp(-1*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))+9//2*b^-3*f^-3*h^2*p^-3*q^-3*(c*(d*(e+f*x)^p)^q)^(-3*p^-1*q^-1)*(e+f*x)^3*exp(-3*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(3a+3*b*log(c*(d*(e+f*x)^p)^q)))+4*h*b^-3*f^-3*p^-3*q^-3*(c*(d*(e+f*x)^p)^q)^(-2*p^-1*q^-1)*(e+f*x)^2*(f*g+-1*e*h)*exp(-2*a*b^-1*p^-1*q^-1)*expintegralei(b^-1*p^-1*q^-1*(2a+2*b*log(c*(d*(e+f*x)^p)^q))))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-3*(g+h*x), x) == :((1/2)*b^-2*f^-2*p^-2*q^-2*(a+b*log(c*(d*(e+f*x)^p)^q))^-1*(e+f*x)*(f*g+-1*e*h)+-1*b^-2*f^-1*p^-2*q^-2*(a+b*log(c*(d*(e+f*x)^p)^q))^-1*(e+f*x)*(g+h*x)+-1//2*b^-1*f^-1*p^-1*q^-1*(a+b*log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^(-2*p^-1*q^-1)*(e+f*x)^2*(f*g+-1*e*h)*erfi(2^(1/2)*b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-2*a*b^-1*p^-1*q^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^3//2*(g+h*x), x) == :(f^-2*(a+b*log(c*(d*(e+f*x)^p)^q))^3//2*(e+f*x)*(f*g+-1*e*h)+(1/2)*h*f^-2*(a+b*log(c*(d*(e+f*x)^p)^q))^3//2*(e+f*x)^2+-3//2*b*p*q*f^-2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2)*(e+f*x)*(f*g+-1*e*h)+-3//8*b*h*p*q*f^-2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2)*(e+f*x)^2+3//4*pi^(1/2)*b^3//2*f^-2*p^3//2*q^3//2*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(e+f*x)*(f*g+-1*e*h)*erfi(b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-1*a*b^-1*p^-1*q^-1)+3//32*h*2^(1/2)*pi^(1/2)*b^3//2*f^-2*p^3//2*q^3//2*(c*(d*(e+f*x)^p)^q)^(-2*p^-1*q^-1)*(e+f*x)^2*erfi(2^(1/2)*b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-2*a*b^-1*p^-1*q^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^3//2, x) == :(f^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^3//2*(e+f*x)+-3//2*b*p*q*f^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2)*(e+f*x)+3//4*pi^(1/2)*b^3//2*f^-1*p^3//2*q^3//2*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(e+f*x)*erfi(b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-1*a*b^-1*p^-1*q^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-1//2*(g+h*x)^2, x) == :(pi^(1/2)*b^-1//2*f^-3*p^-1//2*q^-1//2*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(f*g+-1*e*h)^2*(e+f*x)*erfi(b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-1*a*b^-1*p^-1*q^-1)+1//3*3^(1/2)*pi^(1/2)*b^-1//2*f^-3*h^2*p^-1//2*q^-1//2*(c*(d*(e+f*x)^p)^q)^(-3*p^-1*q^-1)*(e+f*x)^3*erfi(3^(1/2)*b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-3*a*b^-1*p^-1*q^-1)+h*2^(1/2)*pi^(1/2)*b^-1//2*f^-3*p^-1//2*q^-1//2*(c*(d*(e+f*x)^p)^q)^(-2*p^-1*q^-1)*(e+f*x)^2*(f*g+-1*e*h)*erfi(2^(1/2)*b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-2*a*b^-1*p^-1*q^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-1//2*(g+h*x), x) == :(pi^(1/2)*b^-1//2*f^-2*p^-1//2*q^-1//2*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(e+f*x)*(f*g+-1*e*h)*erfi(b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-1*a*b^-1*p^-1*q^-1)+(1/2)*h*2^(1/2)*pi^(1/2)*b^-1//2*f^-2*p^-1//2*q^-1//2*(c*(d*(e+f*x)^p)^q)^(-2*p^-1*q^-1)*(e+f*x)^2*erfi(2^(1/2)*b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-2*a*b^-1*p^-1*q^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-1//2, x) == :(pi^(1/2)*b^-1//2*f^-1*p^-1//2*q^-1//2*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(e+f*x)*erfi(b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-1*a*b^-1*p^-1*q^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-3//2*(g+h*x)^2, x) == :(-1*b^-1*f^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^-1//2*(g+h*x)^2*(2*e+2*f*x)+2*pi^(1/2)*b^-3//2*f^-3*p^-3//2*q^-3//2*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(f*g+-1*e*h)^2*(e+f*x)*erfi(b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-1*a*b^-1*p^-1*q^-1)+2*3^(1/2)*pi^(1/2)*b^-3//2*f^-3*h^2*p^-3//2*q^-3//2*(c*(d*(e+f*x)^p)^q)^(-3*p^-1*q^-1)*(e+f*x)^3*erfi(3^(1/2)*b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-3*a*b^-1*p^-1*q^-1)+4*h*2^(1/2)*pi^(1/2)*b^-3//2*f^-3*p^-3//2*q^-3//2*(c*(d*(e+f*x)^p)^q)^(-2*p^-1*q^-1)*(e+f*x)^2*(f*g+-1*e*h)*erfi(2^(1/2)*b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-2*a*b^-1*p^-1*q^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-3//2*(g+h*x), x) == :(-1*b^-1*f^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^-1//2*(g+h*x)*(2*e+2*f*x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*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-2*a*b^-1*p^-1*q^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^-5//2, x) == :(-1//3*b^-1*f^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^-3//2*(2*e+2*f*x)+-1//3*b^-2*f^-1*p^-2*q^-2*(a+b*log(c*(d*(e+f*x)^p)^q))^-1//2*(4*e+4*f*x)+4//3*pi^(1/2)*b^-5//2*f^-1*p^-5//2*q^-5//2*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(e+f*x)*erfi(b^-1//2*p^-1//2*q^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))^(1/2))*exp(-1*a*b^-1*p^-1*q^-1))
@test integrate((g+h*x)^3//2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(2//5*h^-1*(g+h*x)^5//2*(a+b*log(c*(d*(e+f*x)^p)^q))+-4//25*b*p*q*h^-1*(g+h*x)^5//2+-4//5*b*p*q*f^-2*h^-1*(g+h*x)^(1/2)*(f*g+-1*e*h)^2+-4//15*b*p*q*f^-1*h^-1*(g+h*x)^3//2*(f*g+-1*e*h)+4//5*b*p*q*f^-5//2*h^-1*(f*g+-1*e*h)^5//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2))
@test integrate((g+h*x)^(1/2)*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(2//3*h^-1*(g+h*x)^3//2*(a+b*log(c*(d*(e+f*x)^p)^q))+-4//9*b*p*q*h^-1*(g+h*x)^3//2+-4//3*b*p*q*f^-1*h^-1*(g+h*x)^(1/2)*(f*g+-1*e*h)+4//3*b*p*q*f^-3//2*h^-1*(f*g+-1*e*h)^3//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2))
@test integrate((g+h*x)^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(2*h^-1*(g+h*x)^(1/2)*(a+b*log(c*(d*(e+f*x)^p)^q))+-4*b*p*q*h^-1*(g+h*x)^(1/2)+4*b*p*q*f^-1//2*h^-1*(f*g+-1*e*h)^(1/2)*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2))
@test integrate((g+h*x)^-3//2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(-1*h^-1*(g+h*x)^-1//2*(2a+2*b*log(c*(d*(e+f*x)^p)^q))+-4*b*p*q*f^(1/2)*h^-1*(f*g+-1*e*h)^-1//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2))
@test integrate((g+h*x)^-5//2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(-1//3*h^-1*(g+h*x)^-3//2*(2a+2*b*log(c*(d*(e+f*x)^p)^q))+-4//3*b*p*q*f^3//2*h^-1*(f*g+-1*e*h)^-3//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)+4//3*b*f*p*q*h^-1*(g+h*x)^-1//2*(f*g+-1*e*h)^-1)
@test integrate((g+h*x)^-7//2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(-1//5*h^-1*(g+h*x)^-5//2*(2a+2*b*log(c*(d*(e+f*x)^p)^q))+-4//5*b*p*q*f^5//2*h^-1*(f*g+-1*e*h)^-5//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)+4//5*b*p*q*f^2*h^-1*(g+h*x)^-1//2*(f*g+-1*e*h)^-2+4//15*b*f*p*q*h^-1*(g+h*x)^-3//2*(f*g+-1*e*h)^-1)
@test integrate((g+h*x)^-9//2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(-1//7*h^-1*(g+h*x)^-7//2*(2a+2*b*log(c*(d*(e+f*x)^p)^q))+-4//7*b*p*q*f^7//2*h^-1*(f*g+-1*e*h)^-7//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)+4//7*b*p*q*f^3*h^-1*(g+h*x)^-1//2*(f*g+-1*e*h)^-3+4//21*b*p*q*f^2*h^-1*(g+h*x)^-3//2*(f*g+-1*e*h)^-2+4//35*b*f*p*q*h^-1*(g+h*x)^-5//2*(f*g+-1*e*h)^-1)
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^3//2, x) == :(2//5*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^5//2+16//125*b^2*h^-1*p^2*q^2*(g+h*x)^5//2+-8//25*b*p*q*h^-1*(g+h*x)^5//2*(a+b*log(c*(d*(e+f*x)^p)^q))+-368//75*b^2*f^-5//2*h^-1*p^2*q^2*(f*g+-1*e*h)^5//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)+-8//5*b^2*f^-5//2*h^-1*p^2*q^2*(f*g+-1*e*h)^5//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^2+8//5*b^2*f^-5//2*h^-1*p^2*q^2*(f*g+-1*e*h)^5//2*Polylogarithms.polylog(2,1+-2*(1+-1*f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^-1)+128//225*b^2*f^-1*h^-1*p^2*q^2*(g+h*x)^3//2*(f*g+-1*e*h)+368//75*b^2*f^-2*h^-1*p^2*q^2*(g+h*x)^(1/2)*(f*g+-1*e*h)^2+-8//5*b*p*q*f^-2*h^-1*(g+h*x)^(1/2)*(f*g+-1*e*h)^2*(a+b*log(c*(d*(e+f*x)^p)^q))+-8//15*b*p*q*f^-1*h^-1*(g+h*x)^3//2*(a+b*log(c*(d*(e+f*x)^p)^q))*(f*g+-1*e*h)+8//5*b*p*q*f^-5//2*h^-1*(f*g+-1*e*h)^5//2*(a+b*log(c*(d*(e+f*x)^p)^q))*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)+16//5*b^2*f^-5//2*h^-1*p^2*q^2*(f*g+-1*e*h)^5//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)*log(2*(1+-1*f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^(1/2), x) == :(2//3*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^3//2+16//27*b^2*h^-1*p^2*q^2*(g+h*x)^3//2+-8//9*b*p*q*h^-1*(g+h*x)^3//2*(a+b*log(c*(d*(e+f*x)^p)^q))+-64//9*b^2*f^-3//2*h^-1*p^2*q^2*(f*g+-1*e*h)^3//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)+-8//3*b^2*f^-3//2*h^-1*p^2*q^2*(f*g+-1*e*h)^3//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^2+8//3*b^2*f^-3//2*h^-1*p^2*q^2*(f*g+-1*e*h)^3//2*Polylogarithms.polylog(2,1+-2*(1+-1*f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^-1)+64//9*b^2*f^-1*h^-1*p^2*q^2*(g+h*x)^(1/2)*(f*g+-1*e*h)+-8//3*b*p*q*f^-1*h^-1*(g+h*x)^(1/2)*(a+b*log(c*(d*(e+f*x)^p)^q))*(f*g+-1*e*h)+8//3*b*p*q*f^-3//2*h^-1*(f*g+-1*e*h)^3//2*(a+b*log(c*(d*(e+f*x)^p)^q))*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)+16//3*b^2*f^-3//2*h^-1*p^2*q^2*(f*g+-1*e*h)^3//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)*log(2*(1+-1*f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^-1))
@test integrate((a+b*log(c*(d*(e+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)^-1//2)^2+-16*b^2*f^(1/2)*h^-1*p^2*q^2*(f*g+-1*e*h)^-1//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)*log(2*(1+-1*f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^-1)+-8*b*p*q*f^(1/2)*h^-1*(f*g+-1*e*h)^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-5//2, x) == :(-2//3*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-3//2+-8//3*b^2*f^3//2*h^-1*p^2*q^2*(f*g+-1*e*h)^-3//2*Polylogarithms.polylog(2,1+-2*(1+-1*f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^-1)+8//3*b^2*f^3//2*h^-1*p^2*q^2*(f*g+-1*e*h)^-3//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^2+16//3*b^2*f^3//2*h^-1*p^2*q^2*(f*g+-1*e*h)^-3//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)+-16//3*b^2*f^3//2*h^-1*p^2*q^2*(f*g+-1*e*h)^-3//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)*log(2*(1+-1*f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^-1)+-8//3*b*p*q*f^3//2*h^-1*(f*g+-1*e*h)^-3//2*(a+b*log(c*(d*(e+f*x)^p)^q))*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)+8//3*b*f*p*q*h^-1*(g+h*x)^-1//2*(f*g+-1*e*h)^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-7//2, x) == :(-2//5*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-5//2+-16//15*b^2*f^2*h^-1*p^2*q^2*(g+h*x)^-1//2*(f*g+-1*e*h)^-2+-8//5*b^2*f^5//2*h^-1*p^2*q^2*(f*g+-1*e*h)^-5//2*Polylogarithms.polylog(2,1+-2*(1+-1*f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^-1)+8//5*b^2*f^5//2*h^-1*p^2*q^2*(f*g+-1*e*h)^-5//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^2+64//15*b^2*f^5//2*h^-1*p^2*q^2*(f*g+-1*e*h)^-5//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)+-16//5*b^2*f^5//2*h^-1*p^2*q^2*(f*g+-1*e*h)^-5//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)*log(2*(1+-1*f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^-1)+-8//5*b*p*q*f^5//2*h^-1*(f*g+-1*e*h)^-5//2*(a+b*log(c*(d*(e+f*x)^p)^q))*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)+8//5*b*p*q*f^2*h^-1*(g+h*x)^-1//2*(f*g+-1*e*h)^-2*(a+b*log(c*(d*(e+f*x)^p)^q))+8//15*b*f*p*q*h^-1*(g+h*x)^-3//2*(f*g+-1*e*h)^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-9//2, x) == :(-2//7*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-7//2+-128//105*b^2*f^3*h^-1*p^2*q^2*(g+h*x)^-1//2*(f*g+-1*e*h)^-3+-16//105*b^2*f^2*h^-1*p^2*q^2*(g+h*x)^-3//2*(f*g+-1*e*h)^-2+-8//7*b^2*f^7//2*h^-1*p^2*q^2*(f*g+-1*e*h)^-7//2*Polylogarithms.polylog(2,1+-2*(1+-1*f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^-1)+8//7*b^2*f^7//2*h^-1*p^2*q^2*(f*g+-1*e*h)^-7//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^2+368//105*b^2*f^7//2*h^-1*p^2*q^2*(f*g+-1*e*h)^-7//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)+-16//7*b^2*f^7//2*h^-1*p^2*q^2*(f*g+-1*e*h)^-7//2*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)*log(2*(1+-1*f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)^-1)+-8//7*b*p*q*f^7//2*h^-1*(f*g+-1*e*h)^-7//2*(a+b*log(c*(d*(e+f*x)^p)^q))*arctanh(f^(1/2)*(g+h*x)^(1/2)*(f*g+-1*e*h)^-1//2)+8//7*b*p*q*f^3*h^-1*(g+h*x)^-1//2*(f*g+-1*e*h)^-3*(a+b*log(c*(d*(e+f*x)^p)^q))+8//21*b*p*q*f^2*h^-1*(g+h*x)^-3//2*(f*g+-1*e*h)^-2*(a+b*log(c*(d*(e+f*x)^p)^q))+8//35*b*f*p*q*h^-1*(g+h*x)^-5//2*(f*g+-1*e*h)^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^n*(g+h*x)^2, x) == :(f^-3*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(-1*b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))^(-1n)*(a+b*log(c*(d*(e+f*x)^p)^q))^n*(f*g+-1*e*h)^2*(e+f*x)*SpecialFunctions.gamma(1+n,-1*b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))*exp(-1*a*b^-1*p^-1*q^-1)+3^(-1+-1n)*f^-3*h^2*(c*(d*(e+f*x)^p)^q)^(-3*p^-1*q^-1)*(-1*b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))^(-1n)*(a+b*log(c*(d*(e+f*x)^p)^q))^n*(e+f*x)^3*SpecialFunctions.gamma(1+n,-1*b^-1*p^-1*q^-1*(3a+3*b*log(c*(d*(e+f*x)^p)^q)))*exp(-3*a*b^-1*p^-1*q^-1)+h*2^(-1n)*f^-3*(c*(d*(e+f*x)^p)^q)^(-2*p^-1*q^-1)*(-1*b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))^(-1n)*(a+b*log(c*(d*(e+f*x)^p)^q))^n*(e+f*x)^2*(f*g+-1*e*h)*SpecialFunctions.gamma(1+n,-1*b^-1*p^-1*q^-1*(2a+2*b*log(c*(d*(e+f*x)^p)^q)))*exp(-2*a*b^-1*p^-1*q^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^n*(g+h*x), x) == :(f^-2*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(-1*b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))^(-1n)*(a+b*log(c*(d*(e+f*x)^p)^q))^n*(e+f*x)*(f*g+-1*e*h)*SpecialFunctions.gamma(1+n,-1*b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))*exp(-1*a*b^-1*p^-1*q^-1)+h*2^(-1+-1n)*f^-2*(c*(d*(e+f*x)^p)^q)^(-2*p^-1*q^-1)*(-1*b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))^(-1n)*(a+b*log(c*(d*(e+f*x)^p)^q))^n*(e+f*x)^2*SpecialFunctions.gamma(1+n,-1*b^-1*p^-1*q^-1*(2a+2*b*log(c*(d*(e+f*x)^p)^q)))*exp(-2*a*b^-1*p^-1*q^-1))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^n, x) == :(f^-1*(c*(d*(e+f*x)^p)^q)^(-1*p^-1*q^-1)*(-1*b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))^(-1n)*(a+b*log(c*(d*(e+f*x)^p)^q))^n*(e+f*x)*SpecialFunctions.gamma(1+n,-1*b^-1*p^-1*q^-1*(a+b*log(c*(d*(e+f*x)^p)^q)))*exp(-1*a*b^-1*p^-1*q^-1))
@test integrate((g+h*x^2)^-1*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :((1/2)*h^-1//2*(-1g)^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))*log(f*(e*h^(1/2)+f*(-1g)^(1/2))^-1*((-1g)^(1/2)+-1*x*h^(1/2)))+-1//2*h^-1//2*(-1g)^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))*log(f*(f*(-1g)^(1/2)+-1*e*h^(1/2))^-1*((-1g)^(1/2)+x*h^(1/2)))+(1/2)*b*p*q*h^-1//2*(-1g)^-1//2*Polylogarithms.polylog(2,h^(1/2)*(e*h^(1/2)+f*(-1g)^(1/2))^-1*(e+f*x))+-1//2*b*p*q*h^-1//2*(-1g)^-1//2*Polylogarithms.polylog(2,-1*h^(1/2)*(f*(-1g)^(1/2)+-1*e*h^(1/2))^-1*(e+f*x)))
@test integrate((2+h*x^2)^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(h^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))*arcsinh((1/2)*x*2^(1/2)*h^(1/2))+(1/2)*b*p*q*h^-1//2*arcsinh((1/2)*x*2^(1/2)*h^(1/2))^2+-1*b*p*q*h^-1//2*Polylogarithms.polylog(2,-1*f*2^(1/2)*((2*f^2+h*e^2)^(1/2)+e*h^(1/2))^-1*exp(arcsinh((1/2)*x*2^(1/2)*h^(1/2))))+-1*b*p*q*h^-1//2*Polylogarithms.polylog(2,-1*f*2^(1/2)*(-1*(2*f^2+h*e^2)^(1/2)+e*h^(1/2))^-1*exp(arcsinh((1/2)*x*2^(1/2)*h^(1/2))))+-1*b*p*q*h^-1//2*arcsinh((1/2)*x*2^(1/2)*h^(1/2))*log(1+f*2^(1/2)*((2*f^2+h*e^2)^(1/2)+e*h^(1/2))^-1*exp(arcsinh((1/2)*x*2^(1/2)*h^(1/2))))+-1*b*p*q*h^-1//2*arcsinh((1/2)*x*2^(1/2)*h^(1/2))*log(1+f*2^(1/2)*(-1*(2*f^2+h*e^2)^(1/2)+e*h^(1/2))^-1*exp(arcsinh((1/2)*x*2^(1/2)*h^(1/2)))))
@test integrate((g+h*x^2)^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(g^(1/2)*h^-1//2*(1+h*g^-1*x^2)^(1/2)*(g+h*x^2)^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))*arcsinh(x*g^-1//2*h^(1/2))+(1/2)*b*p*q*g^(1/2)*h^-1//2*(1+h*g^-1*x^2)^(1/2)*(g+h*x^2)^-1//2*arcsinh(x*g^-1//2*h^(1/2))^2+-1*b*p*q*g^(1/2)*h^-1//2*(1+h*g^-1*x^2)^(1/2)*(g+h*x^2)^-1//2*Polylogarithms.polylog(2,-1*f*g^(1/2)*((g*f^2+h*e^2)^(1/2)+e*h^(1/2))^-1*exp(arcsinh(x*g^-1//2*h^(1/2))))+-1*b*p*q*g^(1/2)*h^-1//2*(1+h*g^-1*x^2)^(1/2)*(g+h*x^2)^-1//2*Polylogarithms.polylog(2,-1*f*g^(1/2)*(-1*(g*f^2+h*e^2)^(1/2)+e*h^(1/2))^-1*exp(arcsinh(x*g^-1//2*h^(1/2))))+-1*b*p*q*g^(1/2)*h^-1//2*(1+h*g^-1*x^2)^(1/2)*(g+h*x^2)^-1//2*arcsinh(x*g^-1//2*h^(1/2))*log(1+f*g^(1/2)*((g*f^2+h*e^2)^(1/2)+e*h^(1/2))^-1*exp(arcsinh(x*g^-1//2*h^(1/2))))+-1*b*p*q*g^(1/2)*h^-1//2*(1+h*g^-1*x^2)^(1/2)*(g+h*x^2)^-1//2*arcsinh(x*g^-1//2*h^(1/2))*log(1+f*g^(1/2)*(-1*(g*f^2+h*e^2)^(1/2)+e*h^(1/2))^-1*exp(arcsinh(x*g^-1//2*h^(1/2)))))
@test integrate((2+h*x)^-1//2*(2+-1*h*x)^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*arcsin((1/2)*h*x)+im*b*p*q*h^-1*Polylogarithms.polylog(2,-2*f*((4*f^2+-1*e^2*h^2)^(1/2)+im*e*h)^-1*exp(im*arcsin((1/2)*h*x)))+im*b*p*q*h^-1*Polylogarithms.polylog(2,-2*f*(-1*(4*f^2+-1*e^2*h^2)^(1/2)+im*e*h)^-1*exp(im*arcsin((1/2)*h*x)))+(1/2)*im*b*p*q*h^-1*arcsin((1/2)*h*x)^2+-1*b*p*q*h^-1*arcsin((1/2)*h*x)*log(1+2*f*((4*f^2+-1*e^2*h^2)^(1/2)+im*e*h)^-1*exp(im*arcsin((1/2)*h*x)))+-1*b*p*q*h^-1*arcsin((1/2)*h*x)*log(1+2*f*(-1*(4*f^2+-1*e^2*h^2)^(1/2)+im*e*h)^-1*exp(im*arcsin((1/2)*h*x))))
@test integrate((g+h*x)^-1//2*(g+-1*h*x)^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(g*h^-1*(1+-1*g^-2*h^2*x^2)^(1/2)*(g+h*x)^-1//2*(g+-1*h*x)^-1//2*(a+b*log(c*(d*(e+f*x)^p)^q))*arcsin(h*x*g^-1)+im*b*g*p*q*h^-1*(1+-1*g^-2*h^2*x^2)^(1/2)*(g+h*x)^-1//2*(g+-1*h*x)^-1//2*Polylogarithms.polylog(2,-1*f*g*((f^2*g^2+-1*e^2*h^2)^(1/2)+im*e*h)^-1*exp(im*arcsin(h*x*g^-1)))+im*b*g*p*q*h^-1*(1+-1*g^-2*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q*f^-3*h^-1*(f*i+-1*e*j)^3*log(e+f*x)+-1//6*b*p*q*f^-1*h^-1*(i+j*x)^2*(f*i+-1*e*j)+-1//2*b*p*q*f^-2*h^-2*(f*i+-1*e*j)^2*(h*i+-1*g*j)*log(e+f*x)+-1//3*b*j*p*q*x*f^-2*h^-1*(f*i+-1*e*j)^2+-1//2*b*j*p*q*x*f^-1*h^-2*(f*i+-1*e*j)*(h*i+-1*g*j))
@test integrate((g+h*x)^-1*(i+j*x)^2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :((1/2)*h^-1*(i+j*x)^2*(a+b*log(c*(d*(e+f*x)^p)^q))+h^-3*(h*i+-1*g*j)^2*(a+b*log(c*(d*(e+f*x)^p)^q))*log(f*(f*g+-1*e*h)^-1*(g+h*x))+a*j*x*h^-2*(h*i+-1*g*j)+-1//4*b*p*q*h^-1*(i+j*x)^2+b*p*q*h^-3*(h*i+-1*g*j)^2*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+b*j*f^-1*h^-2*(e+f*x)*(h*i+-1*g*j)*log(c*(d*(e+f*x)^p)^q)+-1*b*j*p*q*x*h^-2*(h*i+-1*g*j)+-1//2*b*p*q*f^-2*h^-1*(f*i+-1*e*j)^2*log(e+f*x)+-1//2*b*j*p*q*x*f^-1*h^-1*(f*i+-1*e*j))
@test integrate((g+h*x)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*(i+j*x), x) == :(a*j*x*h^-1+h^-2*(a+b*log(c*(d*(e+f*x)^p)^q))*(h*i+-1*g*j)*log(f*(f*g+-1*e*h)^-1*(g+h*x))+b*j*f^-1*h^-1*(e+f*x)*log(c*(d*(e+f*x)^p)^q)+b*p*q*h^-2*(h*i+-1*g*j)*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-1*b*j*p*q*x*h^-1)
@test integrate((g+h*x)^-1*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :(h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*log(f*(f*g+-1*e*h)^-1*(g+h*x))+b*p*q*h^-1*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x)))
@test integrate((g+h*x)^-1*(i+j*x)^-1*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :((h*i+-1*g*j)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*log(f*(f*g+-1*e*h)^-1*(g+h*x))+-1*(h*i+-1*g*j)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*log(f*(f*i+-1*e*j)^-1*(i+j*x))+b*p*q*(h*i+-1*g*j)^-1*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-1*b*p*q*(h*i+-1*g*j)^-1*Polylogarithms.polylog(2,-1*j*(f*i+-1*e*j)^-1*(e+f*x)))
@test integrate((g+h*x)^-1*(i+j*x)^-2*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :((i+j*x)^-1*(h*i+-1*g*j)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))+h*(h*i+-1*g*j)^-2*(a+b*log(c*(d*(e+f*x)^p)^q))*log(f*(f*g+-1*e*h)^-1*(g+h*x))+-1*h*(h*i+-1*g*j)^-2*(a+b*log(c*(d*(e+f*x)^p)^q))*log(f*(f*i+-1*e*j)^-1*(i+j*x))+b*h*p*q*(h*i+-1*g*j)^-2*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-1*b*h*p*q*(h*i+-1*g*j)^-2*Polylogarithms.polylog(2,-1*j*(f*i+-1*e*j)^-1*(e+f*x))+b*f*p*q*(f*i+-1*e*j)^-1*(h*i+-1*g*j)^-1*log(i+j*x)+-1*b*f*p*q*(f*i+-1*e*j)^-1*(h*i+-1*g*j)^-1*log(e+f*x))
@test integrate((g+h*x)^-1*(i+j*x)^-3*(a+b*log(c*(d*(e+f*x)^p)^q)), x) == :((i+j*x)^-2*(-2*g*j+2*h*i)^-1*(a+b*log(c*(d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f*x))+2*b*p*q*h^-3*(h*i+-1*g*j)^2*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+2*j*x*b^2*h^-2*p^2*q^2*(h*i+-1*g*j)+1//4*b^2*f^-2*h^-1*j^2*p^2*q^2*(e+f*x)^2+-2*a*b*j*p*q*x*h^-2*(h*i+-1*g*j)+2*j*x*b^2*f^-1*h^-1*p^2*q^2*(f*i+-1*e*j)+-1//2*b*p*q*f^-2*h^-1*j^2*(e+f*x)^2*(a+b*log(c*(d*(e+f*x)^p)^q))+-2*a*b*j*p*q*x*f^-1*h^-1*(f*i+-1*e*j)+-2*j*p*q*b^2*f^-1*h^-2*(e+f*x)*(h*i+-1*g*j)*log(c*(d*(e+f*x)^p)^q)+-2*j*p*q*b^2*f^-2*h^-1*(e+f*x)*(f*i+-1*e*j)*log(c*(d*(e+f*x)^p)^q))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-1*(i+j*x), x) == :(h^-2*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(h*i+-1*g*j)*log(f*(f*g+-1*e*h)^-1*(g+h*x))+j*f^-1*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(e+f*x)+-2*b^2*h^-2*p^2*q^2*(h*i+-1*g*j)*Polylogarithms.polylog(3,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+2*j*x*b^2*h^-1*p^2*q^2+-2*a*b*j*p*q*x*h^-1+2*b*p*q*h^-2*(a+b*log(c*(d*(e+f*x)^p)^q))*(h*i+-1*g*j)*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-2*j*p*q*b^2*f^-1*h^-1*(e+f*x)*log(c*(d*(e+f*x)^p)^q))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-1, x) == :(h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*log(f*(f*g+-1*e*h)^-1*(g+h*x))+-2*b^2*h^-1*p^2*q^2*Polylogarithms.polylog(3,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+2*b*p*q*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-1*(i+j*x)^-1, x) == :((a+b*log(c*(d*(e+f*x)^p)^q))^2*(h*i+-1*g*j)^-1*log(f*(f*g+-1*e*h)^-1*(g+h*x))+-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(h*i+-1*g*j)^-1*log(f*(f*i+-1*e*j)^-1*(i+j*x))+-2*b^2*p^2*q^2*(h*i+-1*g*j)^-1*Polylogarithms.polylog(3,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+2*b^2*p^2*q^2*(h*i+-1*g*j)^-1*Polylogarithms.polylog(3,-1*j*(f*i+-1*e*j)^-1*(e+f*x))+-2*b*p*q*(h*i+-1*g*j)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(2,-1*j*(f*i+-1*e*j)^-1*(e+f*x))+2*b*p*q*(h*i+-1*g*j)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^2*(g+h*x)^-1*(i+j*x)^-2, x) == :(h*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(h*i+-1*g*j)^-2*log(f*(f*g+-1*e*h)^-1*(g+h*x))+-1*h*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(h*i+-1*g*j)^-2*log(f*(f*i+-1*e*j)^-1*(i+j*x))+-1*j*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(i+j*x)^-1*(f*i+-1*e*j)^-1*(h*i+-1*g*j)^-1*(e+f*x)+-2*h*b^2*p^2*q^2*(h*i+-1*g*j)^-2*Polylogarithms.polylog(3,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+2*h*b^2*p^2*q^2*(h*i+-1*g*j)^-2*Polylogarithms.polylog(3,-1*j*(f*i+-1*e*j)^-1*(e+f*x))+-2*b*h*p*q*(h*i+-1*g*j)^-2*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(2,-1*j*(f*i+-1*e*j)^-1*(e+f*x))+2*b*h*p*q*(h*i+-1*g*j)^-2*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+2*f*b^2*p^2*q^2*(f*i+-1*e*j)^-1*(h*i+-1*g*j)^-1*Polylogarithms.polylog(2,-1*j*(f*i+-1*e*j)^-1*(e+f*x))+2*b*f*p*q*(f*i+-1*e*j)^-1*(h*i+-1*g*j)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*log(f*(f*i+-1*e*j)^-1*(i+j*x)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^3*(g+h*x)^-1*(i+j*x)^2, x) == :(h^-3*(a+b*log(c*(d*(e+f*x)^p)^q))^3*(h*i+-1*g*j)^2*log(f*(f*g+-1*e*h)^-1*(g+h*x))+(1/2)*f^-2*h^-1*j^2*(a+b*log(c*(d*(e+f*x)^p)^q))^3*(e+f*x)^2+j*f^-1*h^-2*(a+b*log(c*(d*(e+f*x)^p)^q))^3*(e+f*x)*(h*i+-1*g*j)+j*f^-2*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^3*(e+f*x)*(f*i+-1*e*j)+6*b^3*h^-3*p^3*q^3*(h*i+-1*g*j)^2*Polylogarithms.polylog(4,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-6*j*x*b^3*h^-2*p^3*q^3*(h*i+-1*g*j)+-6*b^2*h^-3*p^2*q^2*(h*i+-1*g*j)^2*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(3,-1*h*(f*g+-1*e*h)^-1*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3,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+3*b*p*q*h^-2*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(h*i+-1*g*j)*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+6*a*j*x*b^2*h^-1*p^2*q^2+-3*b*j*p*q*f^-1*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(e+f*x)+6*j*b^3*f^-1*h^-1*p^2*q^2*(e+f*x)*log(c*(d*(e+f*x)^p)^q))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^3*(g+h*x)^-1, x) == :(h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^3*log(f*(f*g+-1*e*h)^-1*(g+h*x))+6*b^3*h^-1*p^3*q^3*Polylogarithms.polylog(4,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-6*b^2*h^-1*p^2*q^2*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(3,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+3*b*p*q*h^-1*(a+b*log(c*(d*(e+f*x)^p)^q))^2*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^3*(g+h*x)^-1*(i+j*x)^-1, x) == :((a+b*log(c*(d*(e+f*x)^p)^q))^3*(h*i+-1*g*j)^-1*log(f*(f*g+-1*e*h)^-1*(g+h*x))+-1*(a+b*log(c*(d*(e+f*x)^p)^q))^3*(h*i+-1*g*j)^-1*log(f*(f*i+-1*e*j)^-1*(i+j*x))+-6*b^3*p^3*q^3*(h*i+-1*g*j)^-1*Polylogarithms.polylog(4,-1*j*(f*i+-1*e*j)^-1*(e+f*x))+6*b^3*p^3*q^3*(h*i+-1*g*j)^-1*Polylogarithms.polylog(4,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-6*b^2*p^2*q^2*(h*i+-1*g*j)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(3,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-3*b*p*q*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(h*i+-1*g*j)^-1*Polylogarithms.polylog(2,-1*j*(f*i+-1*e*j)^-1*(e+f*x))+3*b*p*q*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(h*i+-1*g*j)^-1*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+6*b^2*p^2*q^2*(h*i+-1*g*j)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(3,-1*j*(f*i+-1*e*j)^-1*(e+f*x)))
@test integrate((a+b*log(c*(d*(e+f*x)^p)^q))^3*(g+h*x)^-1*(i+j*x)^-2, x) == :(h*(a+b*log(c*(d*(e+f*x)^p)^q))^3*(h*i+-1*g*j)^-2*log(f*(f*g+-1*e*h)^-1*(g+h*x))+-1*h*(a+b*log(c*(d*(e+f*x)^p)^q))^3*(h*i+-1*g*j)^-2*log(f*(f*i+-1*e*j)^-1*(i+j*x))+-1*j*(a+b*log(c*(d*(e+f*x)^p)^q))^3*(i+j*x)^-1*(f*i+-1*e*j)^-1*(h*i+-1*g*j)^-1*(e+f*x)+-6*h*b^3*p^3*q^3*(h*i+-1*g*j)^-2*Polylogarithms.polylog(4,-1*j*(f*i+-1*e*j)^-1*(e+f*x))+6*h*b^3*p^3*q^3*(h*i+-1*g*j)^-2*Polylogarithms.polylog(4,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-6*f*b^3*p^3*q^3*(f*i+-1*e*j)^-1*(h*i+-1*g*j)^-1*Polylogarithms.polylog(3,-1*j*(f*i+-1*e*j)^-1*(e+f*x))+-6*h*b^2*p^2*q^2*(h*i+-1*g*j)^-2*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(3,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+-3*b*h*p*q*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(h*i+-1*g*j)^-2*Polylogarithms.polylog(2,-1*j*(f*i+-1*e*j)^-1*(e+f*x))+3*b*h*p*q*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(h*i+-1*g*j)^-2*Polylogarithms.polylog(2,-1*h*(f*g+-1*e*h)^-1*(e+f*x))+6*h*b^2*p^2*q^2*(h*i+-1*g*j)^-2*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(3,-1*j*(f*i+-1*e*j)^-1*(e+f*x))+3*b*f*p*q*(a+b*log(c*(d*(e+f*x)^p)^q))^2*(f*i+-1*e*j)^-1*(h*i+-1*g*j)^-1*log(f*(f*i+-1*e*j)^-1*(i+j*x))+6*f*b^2*p^2*q^2*(f*i+-1*e*j)^-1*(h*i+-1*g*j)^-1*(a+b*log(c*(d*(e+f*x)^p)^q))*Polylogarithms.polylog(2,-1*j*(f*i+-1*e*j)^-1*(e+f*x)))

ext: jl

max_stars_repo_path: test/3 Logarithms/3.3 u (a+b log(c (d+e x)^n))^p.jl