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

@test integrate((d+e*x+f*x^2)^-1*(a+b*log(c*x^n)), x) == :((e^2+-4*d*f)^-1//2*(a+b*log(c*x^n))*log(1+2*f*x*(e+-1*(e^2+-4*d*f)^(1/2))^-1)+-1*(e^2+-4*d*f)^-1//2*(a+b*log(c*x^n))*log(1+2*f*x*(e+(e^2+-4*d*f)^(1/2))^-1)+b*n*(e^2+-4*d*f)^-1//2*Polylogarithms.polylog(2,-2*f*x*(e+-1*(e^2+-4*d*f)^(1/2))^-1)+-1*b*n*(e^2+-4*d*f)^-1//2*Polylogarithms.polylog(2,-2*f*x*(e+(e^2+-4*d*f)^(1/2))^-1))
@test integrate(x^3*(a+b*log(c*x^n))*log(1+e*x), x) == :(-1//16*x^4*(a+b*log(c*x^n))+-1//4*e^-4*(a+b*log(c*x^n))*log(1+e*x)+-1//8*e^-2*x^2*(a+b*log(c*x^n))+1//4*x*e^-3*(a+b*log(c*x^n))+1//4*x^4*(a+b*log(c*x^n))*log(1+e*x)+1//12*e^-1*x^3*(a+b*log(c*x^n))+1//32*b*n*x^4+-7//144*b*n*e^-1*x^3+-5//16*b*n*x*e^-3+-1//4*b*n*e^-4*Polylogarithms.polylog(2,-1*e*x)+-1//16*b*n*x^4*log(1+e*x)+1//16*b*n*e^-4*log(1+e*x)+3//32*b*n*e^-2*x^2)
@test integrate(x^2*(a+b*log(c*x^n))*log(1+e*x), x) == :(-1//9*x^3*(a+b*log(c*x^n))+-1//3*x*e^-2*(a+b*log(c*x^n))+1//3*e^-3*(a+b*log(c*x^n))*log(1+e*x)+1//3*x^3*(a+b*log(c*x^n))*log(1+e*x)+1//6*e^-1*x^2*(a+b*log(c*x^n))+2//27*b*n*x^3+-5//36*b*n*e^-1*x^2+-1//9*b*n*e^-3*log(1+e*x)+-1//9*b*n*x^3*log(1+e*x)+1//3*b*n*e^-3*Polylogarithms.polylog(2,-1*e*x)+4//9*b*n*x*e^-2)
@test integrate(x*(a+b*log(c*x^n))*log(1+e*x), x) == :(-1//4*x^2*(a+b*log(c*x^n))+(1/2)*x*e^-1*(a+b*log(c*x^n))+(1/2)*x^2*(a+b*log(c*x^n))*log(1+e*x)+-1//2*e^-2*(a+b*log(c*x^n))*log(1+e*x)+1//4*b*n*x^2+-3//4*b*n*x*e^-1+-1//2*b*n*e^-2*Polylogarithms.polylog(2,-1*e*x)+-1//4*b*n*x^2*log(1+e*x)+1//4*b*n*e^-2*log(1+e*x))
@test integrate((a+b*log(c*x^n))*log(1+e*x), x) == :(-1*x*(a+b*log(c*x^n))+2*b*n*x+b*n*e^-1*Polylogarithms.polylog(2,-1*e*x)+e^-1*(1+e*x)*(a+b*log(c*x^n))*log(1+e*x)+-1*b*n*e^-1*(1+e*x)*log(1+e*x))
@test integrate(x^-1*(a+b*log(c*x^n))*log(1+e*x), x) == :(-1*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*x)+b*n*Polylogarithms.polylog(3,-1*e*x))
@test integrate(x^-2*(a+b*log(c*x^n))*log(1+e*x), x) == :(e*(a+b*log(c*x^n))*log(x)+-1*e*(a+b*log(c*x^n))*log(1+e*x)+-1*x^-1*(a+b*log(c*x^n))*log(1+e*x)+b*e*n*log(x)+-1*b*e*n*Polylogarithms.polylog(2,-1*e*x)+-1*b*e*n*log(1+e*x)+-1*b*n*x^-1*log(1+e*x)+-1//2*b*e*n*log(x)^2)
@test integrate(x^-3*(a+b*log(c*x^n))*log(1+e*x), x) == :((1/2)*e^2*(a+b*log(c*x^n))*log(1+e*x)+-1//2*e*x^-1*(a+b*log(c*x^n))+-1//2*e^2*(a+b*log(c*x^n))*log(x)+-1//2*x^-2*(a+b*log(c*x^n))*log(1+e*x)+(1/2)*b*n*e^2*Polylogarithms.polylog(2,-1*e*x)+-3//4*b*e*n*x^-1+-1//4*b*n*e^2*log(x)+-1//4*b*n*x^-2*log(1+e*x)+1//4*b*n*e^2*log(x)^2+1//4*b*n*e^2*log(1+e*x))
@test integrate(x^-4*(a+b*log(c*x^n))*log(1+e*x), x) == :(-1//3*e^3*(a+b*log(c*x^n))*log(1+e*x)+-1//3*x^-3*(a+b*log(c*x^n))*log(1+e*x)+-1//6*e*x^-2*(a+b*log(c*x^n))+1//3*e^2*x^-1*(a+b*log(c*x^n))+1//3*e^3*(a+b*log(c*x^n))*log(x)+-5//36*b*e*n*x^-2+-1//3*b*n*e^3*Polylogarithms.polylog(2,-1*e*x)+-1//6*b*n*e^3*log(x)^2+-1//9*b*n*e^3*log(1+e*x)+-1//9*b*n*x^-3*log(1+e*x)+1//9*b*n*e^3*log(x)+4//9*b*n*e^2*x^-1)
@test integrate(x^3*(a+b*log(c*x^n))^2*log(1+e*x), x) == :(-1//16*x^4*(a+b*log(c*x^n))^2+-3//128*b^2*n^2*x^4+-1//4*e^-4*(a+b*log(c*x^n))^2*log(1+e*x)+-1//8*e^-2*x^2*(a+b*log(c*x^n))^2+1//4*x*e^-3*(a+b*log(c*x^n))^2+1//4*x^4*(a+b*log(c*x^n))^2*log(1+e*x)+1//12*e^-1*x^3*(a+b*log(c*x^n))^2+(1/2)*b^2*e^-4*n^2*Polylogarithms.polylog(3,-1*e*x)+-7//64*b^2*e^-2*n^2*x^2+-1//32*b^2*e^-4*n^2*log(1+e*x)+1//8*b^2*e^-4*n^2*Polylogarithms.polylog(2,-1*e*x)+1//16*b*n*x^4*(a+b*log(c*x^n))+1//32*b^2*n^2*x^4*log(1+e*x)+21//32*x*b^2*e^-3*n^2+37//864*b^2*e^-1*n^2*x^3+-7//72*b*n*e^-1*x^3*(a+b*log(c*x^n))+-1//2*a*b*n*x*e^-3+-1//2*b*n*e^-4*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*x)+-1//2*n*x*b^2*e^-3*log(c*x^n)+-1//8*b*n*x*e^-3*(a+b*log(c*x^n))+-1//8*b*n*x^4*(a+b*log(c*x^n))*log(1+e*x)+1//8*b*n*e^-4*(a+b*log(c*x^n))*log(1+e*x)+3//16*b*n*e^-2*x^2*(a+b*log(c*x^n)))
@test integrate(x^2*(a+b*log(c*x^n))^2*log(1+e*x), x) == :(-1//9*x^3*(a+b*log(c*x^n))^2+-2//27*b^2*n^2*x^3+-1//3*x*e^-2*(a+b*log(c*x^n))^2+1//3*e^-3*(a+b*log(c*x^n))^2*log(1+e*x)+1//3*x^3*(a+b*log(c*x^n))^2*log(1+e*x)+1//6*e^-1*x^2*(a+b*log(c*x^n))^2+-26//27*x*b^2*e^-2*n^2+-2//3*b^2*e^-3*n^2*Polylogarithms.polylog(3,-1*e*x)+-2//9*b^2*e^-3*n^2*Polylogarithms.polylog(2,-1*e*x)+2//27*b^2*e^-3*n^2*log(1+e*x)+2//27*b^2*n^2*x^3*log(1+e*x)+4//27*b*n*x^3*(a+b*log(c*x^n))+19//108*b^2*e^-1*n^2*x^2+-5//18*b*n*e^-1*x^2*(a+b*log(c*x^n))+-2//9*b*n*e^-3*(a+b*log(c*x^n))*log(1+e*x)+-2//9*b*n*x^3*(a+b*log(c*x^n))*log(1+e*x)+2//3*a*b*n*x*e^-2+2//3*b*n*e^-3*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*x)+2//3*n*x*b^2*e^-2*log(c*x^n)+2//9*b*n*x*e^-2*(a+b*log(c*x^n)))
@test integrate(x*(a+b*log(c*x^n))^2*log(1+e*x), x) == :(-1//4*x^2*(a+b*log(c*x^n))^2+(1/2)*x*e^-1*(a+b*log(c*x^n))^2+(1/2)*x^2*(a+b*log(c*x^n))^2*log(1+e*x)+-3//8*b^2*n^2*x^2+-1//2*e^-2*(a+b*log(c*x^n))^2*log(1+e*x)+b^2*e^-2*n^2*Polylogarithms.polylog(3,-1*e*x)+(1/2)*b*n*x^2*(a+b*log(c*x^n))+(1/2)*b^2*e^-2*n^2*Polylogarithms.polylog(2,-1*e*x)+-1//4*b^2*e^-2*n^2*log(1+e*x)+1//4*b^2*n^2*x^2*log(1+e*x)+7//4*x*b^2*e^-1*n^2+(1/2)*b*n*e^-2*(a+b*log(c*x^n))*log(1+e*x)+-1*a*b*n*x*e^-1+-1*b*n*e^-2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*x)+-1*n*x*b^2*e^-1*log(c*x^n)+-1//2*b*n*x*e^-1*(a+b*log(c*x^n))+-1//2*b*n*x^2*(a+b*log(c*x^n))*log(1+e*x))
@test integrate((a+b*log(c*x^n))^2*log(1+e*x), x) == :(-1*x*(a+b*log(c*x^n))^2+-6*x*b^2*n^2+e^-1*(a+b*log(c*x^n))^2*(1+e*x)*log(1+e*x)+-2*b^2*e^-1*n^2*Polylogarithms.polylog(2,-1*e*x)+-2*b^2*e^-1*n^2*Polylogarithms.polylog(3,-1*e*x)+2*a*b*n*x+2*b*n*x*(a+b*log(c*x^n))+2*n*x*b^2*log(c*x^n)+2*b*n*e^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*x)+2*b^2*e^-1*n^2*(1+e*x)*log(1+e*x)+-2*b*n*e^-1*(1+e*x)*(a+b*log(c*x^n))*log(1+e*x))
@test integrate(x^-1*(a+b*log(c*x^n))^2*log(1+e*x), x) == :(-1*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*e*x)+-2*b^2*n^2*Polylogarithms.polylog(4,-1*e*x)+2*b*n*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*e*x))
@test integrate(x^-2*(a+b*log(c*x^n))^2*log(1+e*x), x) == :(-1*e*(a+b*log(c*x^n))^2*log(1+e^-1*x^-1)+-1*x^-1*(a+b*log(c*x^n))^2*log(1+e*x)+-2*e*b^2*n^2*log(1+e*x)+-2*b^2*n^2*x^-1*log(1+e*x)+2*e*b^2*n^2*Polylogarithms.polylog(2,-1*e^-1*x^-1)+2*e*b^2*n^2*Polylogarithms.polylog(3,-1*e^-1*x^-1)+2*e*b^2*n^2*log(x)+-2*b*e*n*(a+b*log(c*x^n))*log(1+e^-1*x^-1)+-2*b*n*x^-1*(a+b*log(c*x^n))*log(1+e*x)+2*b*e*n*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e^-1*x^-1))
@test integrate(x^-3*(a+b*log(c*x^n))^2*log(1+e*x), x) == :((1/2)*e^2*(a+b*log(c*x^n))^2*log(1+e^-1*x^-1)+-1//2*e*x^-1*(a+b*log(c*x^n))^2+-1//2*x^-2*(a+b*log(c*x^n))^2*log(1+e*x)+-1*b^2*e^2*n^2*Polylogarithms.polylog(3,-1*e^-1*x^-1)+-7//4*e*b^2*n^2*x^-1+-1//2*b^2*e^2*n^2*Polylogarithms.polylog(2,-1*e^-1*x^-1)+-1//4*b^2*e^2*n^2*log(x)+-1//4*b^2*n^2*x^-2*log(1+e*x)+1//4*b^2*e^2*n^2*log(1+e*x)+(1/2)*b*n*e^2*(a+b*log(c*x^n))*log(1+e^-1*x^-1)+-1*b*n*e^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e^-1*x^-1)+-3//2*b*e*n*x^-1*(a+b*log(c*x^n))+-1//2*b*n*x^-2*(a+b*log(c*x^n))*log(1+e*x))
@test integrate(x^3*(a+b*log(c*x^n))^3*log(1+e*x), x) == :(-1//16*x^4*(a+b*log(c*x^n))^3+-1//4*e^-4*(a+b*log(c*x^n))^3*log(1+e*x)+-1//8*e^-2*x^2*(a+b*log(c*x^n))^3+1//4*x*e^-3*(a+b*log(c*x^n))^3+1//4*x^4*(a+b*log(c*x^n))^3*log(1+e*x)+1//12*e^-1*x^3*(a+b*log(c*x^n))^3+3//128*b^3*n^3*x^4+-255//128*x*b^3*e^-3*n^3+-175//3456*b^3*e^-1*n^3*x^3+-9//128*b^2*n^2*x^4*(a+b*log(c*x^n))+-3//2*b^3*e^-4*n^3*Polylogarithms.polylog(4,-1*e*x)+-3//8*b^3*e^-4*n^3*Polylogarithms.polylog(3,-1*e*x)+-3//32*b^3*e^-4*n^3*Polylogarithms.polylog(2,-1*e*x)+-3//128*b^3*n^3*x^4*log(1+e*x)+3//32*b*n*x^4*(a+b*log(c*x^n))^2+3//128*b^3*e^-4*n^3*log(1+e*x)+45//256*b^3*e^-2*n^3*x^2+-21//64*b^2*e^-2*n^2*x^2*(a+b*log(c*x^n))+-15//16*b*n*x*e^-3*(a+b*log(c*x^n))^2+-7//48*b*n*e^-1*x^3*(a+b*log(c*x^n))^2+-3//4*b*n*e^-4*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*e*x)+-3//16*b*n*x^4*(a+b*log(c*x^n))^2*log(1+e*x)+-3//32*b^2*e^-4*n^2*(a+b*log(c*x^n))*log(1+e*x)+3//2*b^2*e^-4*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*e*x)+3//8*b^2*e^-4*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*x)+3//16*b*n*e^-4*(a+b*log(c*x^n))^2*log(1+e*x)+3//32*x*b^2*e^-3*n^2*(a+b*log(c*x^n))+3//32*b^2*n^2*x^4*(a+b*log(c*x^n))*log(1+e*x)+9//32*b*n*e^-2*x^2*(a+b*log(c*x^n))^2+15//8*a*x*b^2*e^-3*n^2+15//8*x*b^3*e^-3*n^2*log(c*x^n)+37//288*b^2*e^-1*n^2*x^3*(a+b*log(c*x^n)))
@test integrate(x^2*(a+b*log(c*x^n))^3*log(1+e*x), x) == :(-1//9*x^3*(a+b*log(c*x^n))^3+-1//3*x*e^-2*(a+b*log(c*x^n))^3+1//3*e^-3*(a+b*log(c*x^n))^3*log(1+e*x)+1//3*x^3*(a+b*log(c*x^n))^3*log(1+e*x)+1//6*e^-1*x^2*(a+b*log(c*x^n))^3+8//81*b^3*n^3*x^3+2*b^3*e^-3*n^3*Polylogarithms.polylog(4,-1*e*x)+-65//216*b^3*e^-1*n^3*x^2+-2//9*b^2*n^2*x^3*(a+b*log(c*x^n))+-2//27*b^3*e^-3*n^3*log(1+e*x)+-2//27*b^3*n^3*x^3*log(1+e*x)+2//3*b^3*e^-3*n^3*Polylogarithms.polylog(3,-1*e*x)+2//9*b*n*x^3*(a+b*log(c*x^n))^2+2//9*b^3*e^-3*n^3*Polylogarithms.polylog(2,-1*e*x)+80//27*x*b^3*e^-2*n^3+b*n*e^-3*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*e*x)+-2*b^2*e^-3*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*e*x)+-8//3*a*x*b^2*e^-2*n^2+-8//3*x*b^3*e^-2*n^2*log(c*x^n)+-5//12*b*n*e^-1*x^2*(a+b*log(c*x^n))^2+-2//3*b^2*e^-3*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*x)+-2//9*x*b^2*e^-2*n^2*(a+b*log(c*x^n))+-1//3*b*n*e^-3*(a+b*log(c*x^n))^2*log(1+e*x)+-1//3*b*n*x^3*(a+b*log(c*x^n))^2*log(1+e*x)+2//9*b^2*e^-3*n^2*(a+b*log(c*x^n))*log(1+e*x)+2//9*b^2*n^2*x^3*(a+b*log(c*x^n))*log(1+e*x)+4//3*b*n*x*e^-2*(a+b*log(c*x^n))^2+19//36*b^2*e^-1*n^2*x^2*(a+b*log(c*x^n)))
@test integrate(x*(a+b*log(c*x^n))^3*log(1+e*x), x) == :(-1//4*x^2*(a+b*log(c*x^n))^3+(1/2)*x*e^-1*(a+b*log(c*x^n))^3+(1/2)*x^2*(a+b*log(c*x^n))^3*log(1+e*x)+-1//2*e^-2*(a+b*log(c*x^n))^3*log(1+e*x)+3//4*b^3*n^3*x^2+-3*b^3*e^-2*n^3*Polylogarithms.polylog(4,-1*e*x)+-45//8*x*b^3*e^-1*n^3+-9//8*b^2*n^2*x^2*(a+b*log(c*x^n))+-3//2*b^3*e^-2*n^3*Polylogarithms.polylog(3,-1*e*x)+-3//4*b^3*e^-2*n^3*Polylogarithms.polylog(2,-1*e*x)+-3//8*b^3*n^3*x^2*log(1+e*x)+3//4*b*n*x^2*(a+b*log(c*x^n))^2+3//8*b^3*e^-2*n^3*log(1+e*x)+3*b^2*e^-2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*e*x)+-9//4*b*n*x*e^-1*(a+b*log(c*x^n))^2+-3//2*b*n*e^-2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*e*x)+-3//4*b*n*x^2*(a+b*log(c*x^n))^2*log(1+e*x)+-3//4*b^2*e^-2*n^2*(a+b*log(c*x^n))*log(1+e*x)+3//2*b^2*e^-2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*x)+3//4*b*n*e^-2*(a+b*log(c*x^n))^2*log(1+e*x)+3//4*x*b^2*e^-1*n^2*(a+b*log(c*x^n))+3//4*b^2*n^2*x^2*(a+b*log(c*x^n))*log(1+e*x)+9//2*a*x*b^2*e^-1*n^2+9//2*x*b^3*e^-1*n^2*log(c*x^n))
@test integrate((a+b*log(c*x^n))^3*log(1+e*x), x) == :(-1*x*(a+b*log(c*x^n))^3+24*x*b^3*n^3+e^-1*(a+b*log(c*x^n))^3*(1+e*x)*log(1+e*x)+-12*a*x*b^2*n^2+-12*x*b^3*n^2*log(c*x^n)+-6*x*b^2*n^2*(a+b*log(c*x^n))+6*b*n*x*(a+b*log(c*x^n))^2+6*b^3*e^-1*n^3*Polylogarithms.polylog(2,-1*e*x)+6*b^3*e^-1*n^3*Polylogarithms.polylog(3,-1*e*x)+6*b^3*e^-1*n^3*Polylogarithms.polylog(4,-1*e*x)+-6*b^2*e^-1*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*x)+-6*b^2*e^-1*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*e*x)+-6*b^3*e^-1*n^3*(1+e*x)*log(1+e*x)+3*b*n*e^-1*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*e*x)+-3*b*n*e^-1*(a+b*log(c*x^n))^2*(1+e*x)*log(1+e*x)+6*b^2*e^-1*n^2*(1+e*x)*(a+b*log(c*x^n))*log(1+e*x))
@test integrate(x^-1*(a+b*log(c*x^n))^3*log(1+e*x), x) == :(-1*(a+b*log(c*x^n))^3*Polylogarithms.polylog(2,-1*e*x)+6*b^3*n^3*Polylogarithms.polylog(5,-1*e*x)+-6*b^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(4,-1*e*x)+3*b*n*(a+b*log(c*x^n))^2*Polylogarithms.polylog(3,-1*e*x))
@test integrate(x^-2*(a+b*log(c*x^n))^3*log(1+e*x), x) == :(-1*e*(a+b*log(c*x^n))^3*log(1+e^-1*x^-1)+-1*x^-1*(a+b*log(c*x^n))^3*log(1+e*x)+-6*e*b^3*n^3*log(1+e*x)+-6*b^3*n^3*x^-1*log(1+e*x)+6*e*b^3*n^3*Polylogarithms.polylog(2,-1*e^-1*x^-1)+6*e*b^3*n^3*Polylogarithms.polylog(3,-1*e^-1*x^-1)+6*e*b^3*n^3*Polylogarithms.polylog(4,-1*e^-1*x^-1)+6*e*b^3*n^3*log(x)+-6*e*b^2*n^2*(a+b*log(c*x^n))*log(1+e^-1*x^-1)+-6*b^2*n^2*x^-1*(a+b*log(c*x^n))*log(1+e*x)+-3*b*e*n*(a+b*log(c*x^n))^2*log(1+e^-1*x^-1)+-3*b*n*x^-1*(a+b*log(c*x^n))^2*log(1+e*x)+3*b*e*n*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*e^-1*x^-1)+6*e*b^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e^-1*x^-1)+6*e*b^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*e^-1*x^-1))
@test integrate(x^-3*(a+b*log(c*x^n))^3*log(1+e*x), x) == :((1/2)*e^2*(a+b*log(c*x^n))^3*log(1+e^-1*x^-1)+-1//2*e*x^-1*(a+b*log(c*x^n))^3+-1//2*x^-2*(a+b*log(c*x^n))^3*log(1+e*x)+-3*b^3*e^2*n^3*Polylogarithms.polylog(4,-1*e^-1*x^-1)+-45//8*e*b^3*n^3*x^-1+-3//2*b^3*e^2*n^3*Polylogarithms.polylog(3,-1*e^-1*x^-1)+-3//4*b^3*e^2*n^3*Polylogarithms.polylog(2,-1*e^-1*x^-1)+-3//8*b^3*e^2*n^3*log(x)+-3//8*b^3*n^3*x^-2*log(1+e*x)+3//8*b^3*e^2*n^3*log(1+e*x)+-3*b^2*e^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*e^-1*x^-1)+-21//4*e*b^2*n^2*x^-1*(a+b*log(c*x^n))+-9//4*b*e*n*x^-1*(a+b*log(c*x^n))^2+-3//2*b*n*e^2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*e^-1*x^-1)+-3//2*b^2*e^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e^-1*x^-1)+-3//4*b*n*x^-2*(a+b*log(c*x^n))^2*log(1+e*x)+-3//4*b^2*n^2*x^-2*(a+b*log(c*x^n))*log(1+e*x)+3//4*b*n*e^2*(a+b*log(c*x^n))^2*log(1+e^-1*x^-1)+3//4*b^2*e^2*n^2*(a+b*log(c*x^n))*log(1+e^-1*x^-1))
@test integrate(x^3*(a+b*log(c*x^n))*log(d*(d^-1+f*x^2)), x) == :(-1//8*x^4*(a+b*log(c*x^n))+1//4*x^4*(a+b*log(c*x^n))*log(1+d*f*x^2)+1//16*b*n*x^4+-1//4*d^-2*f^-2*(a+b*log(c*x^n))*log(1+d*f*x^2)+-1//16*b*n*x^4*log(1+d*f*x^2)+1//4*d^-1*f^-1*x^2*(a+b*log(c*x^n))+-3//16*b*n*d^-1*f^-1*x^2+-1//8*b*n*d^-2*f^-2*Polylogarithms.polylog(2,-1*d*f*x^2)+1//16*b*n*d^-2*f^-2*log(1+d*f*x^2))
@test integrate(x*(a+b*log(c*x^n))*log(d*(d^-1+f*x^2)), x) == :(-1//2*x^2*(a+b*log(c*x^n))+(1/2)*b*n*x^2+(1/2)*d^-1*f^-1*(1+d*f*x^2)*(a+b*log(c*x^n))*log(1+d*f*x^2)+1//4*b*n*d^-1*f^-1*Polylogarithms.polylog(2,-1*d*f*x^2)+-1//4*b*n*d^-1*f^-1*(1+d*f*x^2)*log(1+d*f*x^2))
@test integrate(x^-1*(a+b*log(c*x^n))*log(d*(d^-1+f*x^2)), x) == :((-1//2*a+-1//2*b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^2)+1//4*b*n*Polylogarithms.polylog(3,-1*d*f*x^2))
@test integrate(x^-3*(a+b*log(c*x^n))*log(d*(d^-1+f*x^2)), x) == :(-1//2*x^-2*(a+b*log(c*x^n))*log(1+d*f*x^2)+d*f*(a+b*log(c*x^n))*log(x)+-1//2*d*f*(a+b*log(c*x^n))*log(1+d*f*x^2)+-1//4*b*n*x^-2*log(1+d*f*x^2)+(1/2)*b*d*f*n*log(x)+-1//2*b*d*f*n*log(x)^2+-1//4*b*d*f*n*Polylogarithms.polylog(2,-1*d*f*x^2)+-1//4*b*d*f*n*log(1+d*f*x^2))
@test integrate(x^2*(a+b*log(c*x^n))*log(d*(d^-1+f*x^2)), x) == :(-2//9*x^3*(a+b*log(c*x^n))+1//3*x^3*(a+b*log(c*x^n))*log(1+d*f*x^2)+4//27*b*n*x^3+-2//3*d^-3//2*f^-3//2*(a+b*log(c*x^n))*arctan(x*d^(1/2)*f^(1/2))+-1//9*b*n*x^3*log(1+d*f*x^2)+2//3*x*d^-1*f^-1*(a+b*log(c*x^n))+-8//9*b*n*x*d^-1*f^-1+2//9*b*n*d^-3//2*f^-3//2*arctan(x*d^(1/2)*f^(1/2))+-1//3*im*b*n*d^-3//2*f^-3//2*Polylogarithms.polylog(2,im*x*d^(1/2)*f^(1/2))+1//3*im*b*n*d^-3//2*f^-3//2*Polylogarithms.polylog(2,-1*im*x*d^(1/2)*f^(1/2)))
@test integrate((a+b*log(c*x^n))*log(d*(d^-1+f*x^2)), x) == :(-2*x*(a+b*log(c*x^n))+x*(a+b*log(c*x^n))*log(1+d*f*x^2)+4*b*n*x+-1*b*n*x*log(1+d*f*x^2)+2*d^-1//2*f^-1//2*(a+b*log(c*x^n))*arctan(x*d^(1/2)*f^(1/2))+-2*b*n*d^-1//2*f^-1//2*arctan(x*d^(1/2)*f^(1/2))+im*b*n*d^-1//2*f^-1//2*Polylogarithms.polylog(2,im*x*d^(1/2)*f^(1/2))+-1*im*b*n*d^-1//2*f^-1//2*Polylogarithms.polylog(2,-1*im*x*d^(1/2)*f^(1/2)))
@test integrate(x^-2*(a+b*log(c*x^n))*log(d*(d^-1+f*x^2)), x) == :(-1*x^-1*(a+b*log(c*x^n))*log(1+d*f*x^2)+-1*b*n*x^-1*log(1+d*f*x^2)+2*d^(1/2)*f^(1/2)*(a+b*log(c*x^n))*arctan(x*d^(1/2)*f^(1/2))+2*b*n*d^(1/2)*f^(1/2)*arctan(x*d^(1/2)*f^(1/2))+im*b*n*d^(1/2)*f^(1/2)*Polylogarithms.polylog(2,im*x*d^(1/2)*f^(1/2))+-1*im*b*n*d^(1/2)*f^(1/2)*Polylogarithms.polylog(2,-1*im*x*d^(1/2)*f^(1/2)))
@test integrate(x^-4*(a+b*log(c*x^n))*log(d*(d^-1+f*x^2)), x) == :(-1//3*x^-3*(a+b*log(c*x^n))*log(1+d*f*x^2)+-2//3*d*f*x^-1*(a+b*log(c*x^n))+-2//3*d^3//2*f^3//2*(a+b*log(c*x^n))*arctan(x*d^(1/2)*f^(1/2))+-1//9*b*n*x^-3*log(1+d*f*x^2)+-8//9*b*d*f*n*x^-1+-2//9*b*n*d^3//2*f^3//2*arctan(x*d^(1/2)*f^(1/2))+-1//3*im*b*n*d^3//2*f^3//2*Polylogarithms.polylog(2,im*x*d^(1/2)*f^(1/2))+1//3*im*b*n*d^3//2*f^3//2*Polylogarithms.polylog(2,-1*im*x*d^(1/2)*f^(1/2)))
@test integrate(x^3*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^2)), x) == :(-1//8*x^4*(a+b*log(c*x^n))^2+-3//64*b^2*n^2*x^4+1//4*x^4*(a+b*log(c*x^n))^2*log(1+d*f*x^2)+-1//4*d^-2*f^-2*(a+b*log(c*x^n))^2*log(1+d*f*x^2)+1//4*d^-1*f^-1*x^2*(a+b*log(c*x^n))^2+1//8*b*n*x^4*(a+b*log(c*x^n))+1//32*b^2*n^2*x^4*log(1+d*f*x^2)+-1//8*b*n*x^4*(a+b*log(c*x^n))*log(1+d*f*x^2)+-1//32*b^2*d^-2*f^-2*n^2*log(1+d*f*x^2)+1//8*b^2*d^-2*f^-2*n^2*Polylogarithms.polylog(3,-1*d*f*x^2)+1//16*b^2*d^-2*f^-2*n^2*Polylogarithms.polylog(2,-1*d*f*x^2)+7//32*b^2*d^-1*f^-1*n^2*x^2+-3//8*b*n*d^-1*f^-1*x^2*(a+b*log(c*x^n))+-1//4*b*n*d^-2*f^-2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^2)+1//8*b*n*d^-2*f^-2*(a+b*log(c*x^n))*log(1+d*f*x^2))
@test integrate(x*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^2)), x) == :(-1//2*x^2*(a+b*log(c*x^n))^2+-3//4*b^2*n^2*x^2+b*n*x^2*(a+b*log(c*x^n))+(1/2)*d^-1*f^-1*(a+b*log(c*x^n))^2*(1+d*f*x^2)*log(1+d*f*x^2)+-1//4*b^2*d^-1*f^-1*n^2*Polylogarithms.polylog(2,-1*d*f*x^2)+-1//4*b^2*d^-1*f^-1*n^2*Polylogarithms.polylog(3,-1*d*f*x^2)+(1/2)*b*n*d^-1*f^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^2)+1//4*b^2*d^-1*f^-1*n^2*(1+d*f*x^2)*log(1+d*f*x^2)+-1//2*b*n*d^-1*f^-1*(1+d*f*x^2)*(a+b*log(c*x^n))*log(1+d*f*x^2))
@test integrate(x^-1*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^2)), x) == :(-1//2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*d*f*x^2)+-1//4*b^2*n^2*Polylogarithms.polylog(4,-1*d*f*x^2)+(1/2)*b*n*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*d*f*x^2))
@test integrate(x^-3*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^2)), x) == :(-1//2*x^-2*(a+b*log(c*x^n))^2*log(1+d*f*x^2)+-1//2*d*f*(a+b*log(c*x^n))^2*log(1+d^-1*f^-1*x^-2)+-1//4*b^2*n^2*x^-2*log(1+d*f*x^2)+(1/2)*d*f*b^2*n^2*log(x)+-1//2*b*n*x^-2*(a+b*log(c*x^n))*log(1+d*f*x^2)+-1//4*d*f*b^2*n^2*log(1+d*f*x^2)+1//4*d*f*b^2*n^2*Polylogarithms.polylog(2,-1*d^-1*f^-1*x^-2)+1//4*d*f*b^2*n^2*Polylogarithms.polylog(3,-1*d^-1*f^-1*x^-2)+(1/2)*b*d*f*n*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d^-1*f^-1*x^-2)+-1//2*b*d*f*n*(a+b*log(c*x^n))*log(1+d^-1*f^-1*x^-2))
@test integrate(x^2*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^2)), x) == :(-2//9*x^3*(a+b*log(c*x^n))^2+-4//27*b^2*n^2*x^3+1//3*x^3*(a+b*log(c*x^n))^2*log(1+d*f*x^2)+-1//3*f^-3//2*(-1d)^-3//2*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1d)^(1/2))+1//3*f^-3//2*(-1d)^-3//2*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1d)^(1/2))+2//3*x*d^-1*f^-1*(a+b*log(c*x^n))^2+2//27*b^2*n^2*x^3*log(1+d*f*x^2)+8//27*b*n*x^3*(a+b*log(c*x^n))+-4//27*b^2*d^-3//2*f^-3//2*n^2*arctan(x*d^(1/2)*f^(1/2))+-2//3*b^2*f^-3//2*n^2*(-1d)^-3//2*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1d)^(1/2))+-2//9*b*n*x^3*(a+b*log(c*x^n))*log(1+d*f*x^2)+2//3*b^2*f^-3//2*n^2*(-1d)^-3//2*Polylogarithms.polylog(3,x*f^(1/2)*(-1d)^(1/2))+52//27*x*b^2*d^-1*f^-1*n^2+-16//9*a*b*n*x*d^-1*f^-1+-16//9*n*x*b^2*d^-1*f^-1*log(c*x^n)+-2//3*b*n*f^-3//2*(-1d)^-3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1d)^(1/2))+-2//9*im*b^2*d^-3//2*f^-3//2*n^2*Polylogarithms.polylog(2,-1*im*x*d^(1/2)*f^(1/2))+2//3*b*n*f^-3//2*(-1d)^-3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1d)^(1/2))+2//9*im*b^2*d^-3//2*f^-3//2*n^2*Polylogarithms.polylog(2,im*x*d^(1/2)*f^(1/2))+4//9*b*n*d^-3//2*f^-3//2*(a+b*log(c*x^n))*arctan(x*d^(1/2)*f^(1/2)))
@test integrate((a+b*log(c*x^n))^2*log(d*(d^-1+f*x^2)), x) == :(-2*x*(a+b*log(c*x^n))^2+x*(a+b*log(c*x^n))^2*log(1+d*f*x^2)+-8*x*b^2*n^2+f^-1//2*(-1d)^-1//2*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1d)^(1/2))+-1*f^-1//2*(-1d)^-1//2*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1d)^(1/2))+2*x*b^2*n^2*log(1+d*f*x^2)+4*a*b*n*x+4*b*n*x*(a+-1*b*n)+8*n*x*b^2*log(c*x^n)+-2*a*b*n*x*log(1+d*f*x^2)+-2*n*x*b^2*log(c*x^n)*log(1+d*f*x^2)+-2*b^2*f^-1//2*n^2*(-1d)^-1//2*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1d)^(1/2))+2*b^2*f^-1//2*n^2*(-1d)^-1//2*Polylogarithms.polylog(3,x*f^(1/2)*(-1d)^(1/2))+-4*b*n*d^-1//2*f^-1//2*(a+-1*b*n)*arctan(x*d^(1/2)*f^(1/2))+-4*n*b^2*d^-1//2*f^-1//2*arctan(x*d^(1/2)*f^(1/2))*log(c*x^n)+-2*im*b^2*d^-1//2*f^-1//2*n^2*Polylogarithms.polylog(2,im*x*d^(1/2)*f^(1/2))+-2*b*n*f^-1//2*(-1d)^-1//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1d)^(1/2))+2*im*b^2*d^-1//2*f^-1//2*n^2*Polylogarithms.polylog(2,-1*im*x*d^(1/2)*f^(1/2))+2*b*n*f^-1//2*(-1d)^-1//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1d)^(1/2)))
@test integrate(x^-2*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^2)), x) == :(-1*x^-1*(a+b*log(c*x^n))^2*log(1+d*f*x^2)+f^(1/2)*(-1d)^(1/2)*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1d)^(1/2))+-1*f^(1/2)*(-1d)^(1/2)*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1d)^(1/2))+-2*b^2*n^2*x^-1*log(1+d*f*x^2)+-2*b*n*x^-1*(a+b*log(c*x^n))*log(1+d*f*x^2)+-2*b^2*f^(1/2)*n^2*(-1d)^(1/2)*Polylogarithms.polylog(3,x*f^(1/2)*(-1d)^(1/2))+2*b^2*f^(1/2)*n^2*(-1d)^(1/2)*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1d)^(1/2))+4*b^2*d^(1/2)*f^(1/2)*n^2*arctan(x*d^(1/2)*f^(1/2))+-2*im*b^2*d^(1/2)*f^(1/2)*n^2*Polylogarithms.polylog(2,-1*im*x*d^(1/2)*f^(1/2))+-2*b*n*f^(1/2)*(-1d)^(1/2)*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1d)^(1/2))+2*im*b^2*d^(1/2)*f^(1/2)*n^2*Polylogarithms.polylog(2,im*x*d^(1/2)*f^(1/2))+2*b*n*f^(1/2)*(-1d)^(1/2)*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1d)^(1/2))+4*b*n*d^(1/2)*f^(1/2)*(a+b*log(c*x^n))*arctan(x*d^(1/2)*f^(1/2)))
@test integrate(x^-4*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^2)), x) == :(-1//3*x^-3*(a+b*log(c*x^n))^2*log(1+d*f*x^2)+-2//3*d*f*x^-1*(a+b*log(c*x^n))^2+-2//27*b^2*n^2*x^-3*log(1+d*f*x^2)+-1//3*f^3//2*(-1d)^3//2*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1d)^(1/2))+1//3*f^3//2*(-1d)^3//2*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1d)^(1/2))+-52//27*d*f*b^2*n^2*x^-1+-4//27*b^2*d^3//2*f^3//2*n^2*arctan(x*d^(1/2)*f^(1/2))+-2//3*b^2*f^3//2*n^2*(-1d)^3//2*Polylogarithms.polylog(3,x*f^(1/2)*(-1d)^(1/2))+-2//9*b*n*x^-3*(a+b*log(c*x^n))*log(1+d*f*x^2)+2//3*b^2*f^3//2*n^2*(-1d)^3//2*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1d)^(1/2))+-16//9*b*d*f*n*x^-1*(a+b*log(c*x^n))+-4//9*b*n*d^3//2*f^3//2*(a+b*log(c*x^n))*arctan(x*d^(1/2)*f^(1/2))+-2//3*b*n*f^3//2*(-1d)^3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1d)^(1/2))+-2//9*im*b^2*d^3//2*f^3//2*n^2*Polylogarithms.polylog(2,im*x*d^(1/2)*f^(1/2))+2//3*b*n*f^3//2*(-1d)^3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1d)^(1/2))+2//9*im*b^2*d^3//2*f^3//2*n^2*Polylogarithms.polylog(2,-1*im*x*d^(1/2)*f^(1/2)))
@test integrate(x^3*(a+b*log(c*x^n))^3*log(d*(d^-1+f*x^2)), x) == :(-1//8*x^4*(a+b*log(c*x^n))^3+1//4*x^4*(a+b*log(c*x^n))^3*log(1+d*f*x^2)+3//64*b^3*n^3*x^4+-9//64*b^2*n^2*x^4*(a+b*log(c*x^n))+-3//128*b^3*n^3*x^4*log(1+d*f*x^2)+-1//4*d^-2*f^-2*(a+b*log(c*x^n))^3*log(1+d*f*x^2)+1//4*d^-1*f^-1*x^2*(a+b*log(c*x^n))^3+3//16*b*n*x^4*(a+b*log(c*x^n))^2+-45//128*b^3*d^-1*f^-1*n^3*x^2+-3//16*b*n*x^4*(a+b*log(c*x^n))^2*log(1+d*f*x^2)+-3//16*b^3*d^-2*f^-2*n^3*Polylogarithms.polylog(4,-1*d*f*x^2)+-3//32*b^3*d^-2*f^-2*n^3*Polylogarithms.polylog(3,-1*d*f*x^2)+-3//64*b^3*d^-2*f^-2*n^3*Polylogarithms.polylog(2,-1*d*f*x^2)+3//32*b^2*n^2*x^4*(a+b*log(c*x^n))*log(1+d*f*x^2)+3//128*b^3*d^-2*f^-2*n^3*log(1+d*f*x^2)+-9//16*b*n*d^-1*f^-1*x^2*(a+b*log(c*x^n))^2+-3//8*b*n*d^-2*f^-2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*d*f*x^2)+-3//32*b^2*d^-2*f^-2*n^2*(a+b*log(c*x^n))*log(1+d*f*x^2)+3//8*b^2*d^-2*f^-2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*d*f*x^2)+3//16*b*n*d^-2*f^-2*(a+b*log(c*x^n))^2*log(1+d*f*x^2)+3//16*b^2*d^-2*f^-2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^2)+21//32*b^2*d^-1*f^-1*n^2*x^2*(a+b*log(c*x^n)))
@test integrate(x*(a+b*log(c*x^n))^3*log(d*(d^-1+f*x^2)), x) == :(-1//2*x^2*(a+b*log(c*x^n))^3+3//2*b^3*n^3*x^2+-9//4*b^2*n^2*x^2*(a+b*log(c*x^n))+3//2*b*n*x^2*(a+b*log(c*x^n))^2+(1/2)*d^-1*f^-1*(a+b*log(c*x^n))^3*(1+d*f*x^2)*log(1+d*f*x^2)+3//8*b^3*d^-1*f^-1*n^3*Polylogarithms.polylog(2,-1*d*f*x^2)+3//8*b^3*d^-1*f^-1*n^3*Polylogarithms.polylog(3,-1*d*f*x^2)+3//8*b^3*d^-1*f^-1*n^3*Polylogarithms.polylog(4,-1*d*f*x^2)+-3//4*b^2*d^-1*f^-1*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^2)+-3//4*b^2*d^-1*f^-1*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*d*f*x^2)+-3//8*b^3*d^-1*f^-1*n^3*(1+d*f*x^2)*log(1+d*f*x^2)+3//4*b*n*d^-1*f^-1*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*d*f*x^2)+-3//4*b*n*d^-1*f^-1*(a+b*log(c*x^n))^2*(1+d*f*x^2)*log(1+d*f*x^2)+3//4*b^2*d^-1*f^-1*n^2*(1+d*f*x^2)*(a+b*log(c*x^n))*log(1+d*f*x^2))
@test integrate(x^-1*(a+b*log(c*x^n))^3*log(d*(d^-1+f*x^2)), x) == :(-1//2*(a+b*log(c*x^n))^3*Polylogarithms.polylog(2,-1*d*f*x^2)+3//8*b^3*n^3*Polylogarithms.polylog(5,-1*d*f*x^2)+-3//4*b^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(4,-1*d*f*x^2)+3//4*b*n*(a+b*log(c*x^n))^2*Polylogarithms.polylog(3,-1*d*f*x^2))
@test integrate(x^-3*(a+b*log(c*x^n))^3*log(d*(d^-1+f*x^2)), x) == :(-1//2*x^-2*(a+b*log(c*x^n))^3*log(1+d*f*x^2)+-3//8*b^3*n^3*x^-2*log(1+d*f*x^2)+-1//2*d*f*(a+b*log(c*x^n))^3*log(1+d^-1*f^-1*x^-2)+-3//4*b*n*x^-2*(a+b*log(c*x^n))^2*log(1+d*f*x^2)+-3//4*b^2*n^2*x^-2*(a+b*log(c*x^n))*log(1+d*f*x^2)+-3//8*d*f*b^3*n^3*log(1+d*f*x^2)+3//4*d*f*b^3*n^3*log(x)+3//8*d*f*b^3*n^3*Polylogarithms.polylog(2,-1*d^-1*f^-1*x^-2)+3//8*d*f*b^3*n^3*Polylogarithms.polylog(3,-1*d^-1*f^-1*x^-2)+3//8*d*f*b^3*n^3*Polylogarithms.polylog(4,-1*d^-1*f^-1*x^-2)+-3//4*b*d*f*n*(a+b*log(c*x^n))^2*log(1+d^-1*f^-1*x^-2)+-3//4*d*f*b^2*n^2*(a+b*log(c*x^n))*log(1+d^-1*f^-1*x^-2)+3//4*b*d*f*n*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*d^-1*f^-1*x^-2)+3//4*d*f*b^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d^-1*f^-1*x^-2)+3//4*d*f*b^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*d^-1*f^-1*x^-2))
@test integrate((a+b*log(c*x^n))^3*log(d*(d^-1+f*x^2)), x) == :(-2*x*(a+b*log(c*x^n))^3+x*(a+b*log(c*x^n))^3*log(1+d*f*x^2)+36*x*b^3*n^3+f^-1//2*(-1d)^-1//2*(a+b*log(c*x^n))^3*log(1+x*f^(1/2)*(-1d)^(1/2))+-1*f^-1//2*(-1d)^-1//2*(a+b*log(c*x^n))^3*log(1+-1*x*f^(1/2)*(-1d)^(1/2))+-36*x*b^3*n^2*log(c*x^n)+-24*a*x*b^2*n^2+-12*x*b^2*n^2*(a+-1*b*n)+-6*x*b^3*n^3*log(1+d*f*x^2)+12*b*n*x*(a+b*log(c*x^n))^2+-6*b^3*f^-1//2*n^3*(-1d)^-1//2*Polylogarithms.polylog(3,x*f^(1/2)*(-1d)^(1/2))+-6*b^3*f^-1//2*n^3*(-1d)^-1//2*Polylogarithms.polylog(4,x*f^(1/2)*(-1d)^(1/2))+-3*b*n*x*(a+b*log(c*x^n))^2*log(1+d*f*x^2)+6*a*x*b^2*n^2*log(1+d*f*x^2)+6*x*b^3*n^2*log(c*x^n)*log(1+d*f*x^2)+6*b^3*f^-1//2*n^3*(-1d)^-1//2*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1d)^(1/2))+6*b^3*f^-1//2*n^3*(-1d)^-1//2*Polylogarithms.polylog(4,-1*x*f^(1/2)*(-1d)^(1/2))+-6*im*b^3*d^-1//2*f^-1//2*n^3*Polylogarithms.polylog(2,-1*im*x*d^(1/2)*f^(1/2))+-6*b^2*f^-1//2*n^2*(-1d)^-1//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1d)^(1/2))+-6*b^2*f^-1//2*n^2*(-1d)^-1//2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1d)^(1/2))+-3*b*n*f^-1//2*(-1d)^-1//2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,x*f^(1/2)*(-1d)^(1/2))+-3*b*n*f^-1//2*(-1d)^-1//2*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1d)^(1/2))+3*b*n*f^-1//2*(-1d)^-1//2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1d)^(1/2))+3*b*n*f^-1//2*(-1d)^-1//2*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1d)^(1/2))+6*im*b^3*d^-1//2*f^-1//2*n^3*Polylogarithms.polylog(2,im*x*d^(1/2)*f^(1/2))+6*b^2*f^-1//2*n^2*(-1d)^-1//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1d)^(1/2))+6*b^2*f^-1//2*n^2*(-1d)^-1//2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,x*f^(1/2)*(-1d)^(1/2))+12*b^2*d^-1//2*f^-1//2*n^2*(a+-1*b*n)*arctan(x*d^(1/2)*f^(1/2))+12*b^3*d^-1//2*f^-1//2*n^2*arctan(x*d^(1/2)*f^(1/2))*log(c*x^n))
@test integrate(x^-2*(a+b*log(c*x^n))^3*log(d*(d^-1+f*x^2)), x) == :(-1*x^-1*(a+b*log(c*x^n))^3*log(1+d*f*x^2)+f^(1/2)*(-1d)^(1/2)*(a+b*log(c*x^n))^3*log(1+-1*x*f^(1/2)*(-1d)^(1/2))+-1*f^(1/2)*(-1d)^(1/2)*(a+b*log(c*x^n))^3*log(1+x*f^(1/2)*(-1d)^(1/2))+-6*b^3*n^3*x^-1*log(1+d*f*x^2)+-6*b^2*n^2*x^-1*(a+b*log(c*x^n))*log(1+d*f*x^2)+-6*b^3*f^(1/2)*n^3*(-1d)^(1/2)*Polylogarithms.polylog(3,x*f^(1/2)*(-1d)^(1/2))+-6*b^3*f^(1/2)*n^3*(-1d)^(1/2)*Polylogarithms.polylog(4,-1*x*f^(1/2)*(-1d)^(1/2))+-3*b*n*x^-1*(a+b*log(c*x^n))^2*log(1+d*f*x^2)+6*b^3*f^(1/2)*n^3*(-1d)^(1/2)*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1d)^(1/2))+6*b^3*f^(1/2)*n^3*(-1d)^(1/2)*Polylogarithms.polylog(4,x*f^(1/2)*(-1d)^(1/2))+12*b^3*d^(1/2)*f^(1/2)*n^3*arctan(x*d^(1/2)*f^(1/2))+-6*im*b^3*d^(1/2)*f^(1/2)*n^3*Polylogarithms.polylog(2,-1*im*x*d^(1/2)*f^(1/2))+-6*b^2*f^(1/2)*n^2*(-1d)^(1/2)*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1d)^(1/2))+-6*b^2*f^(1/2)*n^2*(-1d)^(1/2)*(a+b*log(c*x^n))*Polylogarithms.polylog(3,x*f^(1/2)*(-1d)^(1/2))+-3*b*n*f^(1/2)*(-1d)^(1/2)*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1d)^(1/2))+-3*b*n*f^(1/2)*(-1d)^(1/2)*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1d)^(1/2))+3*b*n*f^(1/2)*(-1d)^(1/2)*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,x*f^(1/2)*(-1d)^(1/2))+3*b*n*f^(1/2)*(-1d)^(1/2)*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1d)^(1/2))+6*im*b^3*d^(1/2)*f^(1/2)*n^3*Polylogarithms.polylog(2,im*x*d^(1/2)*f^(1/2))+6*b^2*f^(1/2)*n^2*(-1d)^(1/2)*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1d)^(1/2))+6*b^2*f^(1/2)*n^2*(-1d)^(1/2)*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1d)^(1/2))+12*b^2*d^(1/2)*f^(1/2)*n^2*(a+b*log(c*x^n))*arctan(x*d^(1/2)*f^(1/2)))
@test integrate(x^2*(a+b*log(c*x^n))*log(d*(d^-1+f*x^(1/2))), x) == :(-1//18*x^3*(a+b*log(c*x^n))+1//3*x^3*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+1//27*b*n*x^3+-1//3*d^-6*f^-6*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+-1//6*x*d^-4*f^-4*(a+b*log(c*x^n))+-1//9*b*n*x^3*log(1+d*f*x^(1/2))+-1//12*d^-2*f^-2*x^2*(a+b*log(c*x^n))+1//3*d^-5*f^-5*x^(1/2)*(a+b*log(c*x^n))+1//9*d^-3*f^-3*x^3//2*(a+b*log(c*x^n))+1//15*d^-1*f^-1*x^5//2*(a+b*log(c*x^n))+-11//225*b*n*d^-1*f^-1*x^5//2+-7//9*b*n*d^-5*f^-5*x^(1/2)+-2//3*b*n*d^-6*f^-6*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-1//9*b*n*d^-3*f^-3*x^3//2+1//9*b*n*d^-6*f^-6*log(1+d*f*x^(1/2))+2//9*b*n*x*d^-4*f^-4+5//72*b*n*d^-2*f^-2*x^2)
@test integrate(x*(a+b*log(c*x^n))*log(d*(d^-1+f*x^(1/2))), x) == :(-1//8*x^2*(a+b*log(c*x^n))+(1/2)*x^2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+1//8*b*n*x^2+(1/2)*d^-3*f^-3*x^(1/2)*(a+b*log(c*x^n))+-1//2*d^-4*f^-4*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+-1//4*b*n*x^2*log(1+d*f*x^(1/2))+-1//4*x*d^-2*f^-2*(a+b*log(c*x^n))+1//6*d^-1*f^-1*x^3//2*(a+b*log(c*x^n))+-1*b*n*d^-4*f^-4*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-7//36*b*n*d^-1*f^-1*x^3//2+-5//4*b*n*d^-3*f^-3*x^(1/2)+1//4*b*n*d^-4*f^-4*log(1+d*f*x^(1/2))+3//8*b*n*x*d^-2*f^-2)
@test integrate((a+b*log(c*x^n))*log(d*(d^-1+f*x^(1/2))), x) == :(-1//2*x*(a+b*log(c*x^n))+b*n*x+x*(a+b*log(c*x^n))*log(d*(d^-1+f*x^(1/2)))+d^-1*f^-1*x^(1/2)*(a+b*log(c*x^n))+-1*b*n*x*log(d*(d^-1+f*x^(1/2)))+-1*d^-2*f^-2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+b*n*d^-2*f^-2*log(1+d*f*x^(1/2))+-3*b*n*d^-1*f^-1*x^(1/2)+-2*b*n*d^-2*f^-2*Polylogarithms.polylog(2,-1*d*f*x^(1/2)))
@test integrate(x^-1*(a+b*log(c*x^n))*log(d*(d^-1+f*x^(1/2))), x) == :((-2a+-2*b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+4*b*n*Polylogarithms.polylog(3,-1*d*f*x^(1/2)))
@test integrate(x^-2*(a+b*log(c*x^n))*log(d*(d^-1+f*x^(1/2))), x) == :(-1*x^-1*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+d^2*f^2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+-1*b*n*x^-1*log(1+d*f*x^(1/2))+-1*d*f*x^-1//2*(a+b*log(c*x^n))+-1//2*d^2*f^2*(a+b*log(c*x^n))*log(x)+b*n*d^2*f^2*log(1+d*f*x^(1/2))+-3*b*d*f*n*x^-1//2+2*b*n*d^2*f^2*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-1//2*b*n*d^2*f^2*log(x)+1//4*b*n*d^2*f^2*log(x)^2)
@test integrate(x^-3*(a+b*log(c*x^n))*log(d*(d^-1+f*x^(1/2))), x) == :(-1//2*x^-2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+(1/2)*d^4*f^4*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+-1//2*d^3*f^3*x^-1//2*(a+b*log(c*x^n))+-1//4*b*n*x^-2*log(1+d*f*x^(1/2))+-1//4*d^4*f^4*(a+b*log(c*x^n))*log(x)+-1//6*d*f*x^-3//2*(a+b*log(c*x^n))+1//4*d^2*f^2*x^-1*(a+b*log(c*x^n))+b*n*d^4*f^4*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-7//36*b*d*f*n*x^-3//2+-5//4*b*n*d^3*f^3*x^-1//2+-1//8*b*n*d^4*f^4*log(x)+1//4*b*n*d^4*f^4*log(1+d*f*x^(1/2))+1//8*b*n*d^4*f^4*log(x)^2+3//8*b*n*d^2*f^2*x^-1)
@test integrate(x^-4*(a+b*log(c*x^n))*log(d*(d^-1+f*x^(1/2))), x) == :(-1//3*x^-3*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+-1//3*d^5*f^5*x^-1//2*(a+b*log(c*x^n))+-1//6*d^6*f^6*(a+b*log(c*x^n))*log(x)+-1//9*b*n*x^-3*log(1+d*f*x^(1/2))+-1//9*d^3*f^3*x^-3//2*(a+b*log(c*x^n))+-1//15*d*f*x^-5//2*(a+b*log(c*x^n))+1//3*d^6*f^6*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+1//6*d^4*f^4*x^-1*(a+b*log(c*x^n))+1//12*d^2*f^2*x^-2*(a+b*log(c*x^n))+-11//225*b*d*f*n*x^-5//2+-7//9*b*n*d^5*f^5*x^-1//2+-1//9*b*n*d^3*f^3*x^-3//2+-1//18*b*n*d^6*f^6*log(x)+1//9*b*n*d^6*f^6*log(1+d*f*x^(1/2))+1//12*b*n*d^6*f^6*log(x)^2+2//3*b*n*d^6*f^6*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+2//9*b*n*d^4*f^4*x^-1+5//72*b*n*d^2*f^2*x^-2)
@test integrate(x^2*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^(1/2))), x) == :(-1//18*x^3*(a+b*log(c*x^n))^2+-1//27*b^2*n^2*x^3+1//3*x^3*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+-1//3*d^-6*f^-6*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+-1//6*x*d^-4*f^-4*(a+b*log(c*x^n))^2+-1//12*d^-2*f^-2*x^2*(a+b*log(c*x^n))^2+1//3*d^-5*f^-5*x^(1/2)*(a+b*log(c*x^n))^2+1//9*d^-3*f^-3*x^3//2*(a+b*log(c*x^n))^2+1//15*d^-1*f^-1*x^5//2*(a+b*log(c*x^n))^2+2//27*b*n*x^3*(a+b*log(c*x^n))+2//27*b^2*n^2*x^3*log(1+d*f*x^(1/2))+-19//216*b^2*d^-2*f^-2*n^2*x^2+-13//27*x*b^2*d^-4*f^-4*n^2+-2//9*b*n*x^3*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+-2//27*b^2*d^-6*f^-6*n^2*log(1+d*f*x^(1/2))+4//9*b^2*d^-6*f^-6*n^2*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+8//3*b^2*d^-6*f^-6*n^2*Polylogarithms.polylog(3,-1*d*f*x^(1/2))+14//81*b^2*d^-3*f^-3*n^2*x^3//2+86//27*b^2*d^-5*f^-5*n^2*x^(1/2)+182//3375*b^2*d^-1*f^-1*n^2*x^5//2+-22//225*b*n*d^-1*f^-1*x^5//2*(a+b*log(c*x^n))+-14//9*b*n*d^-5*f^-5*x^(1/2)*(a+b*log(c*x^n))+-4//3*b*n*d^-6*f^-6*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-2//9*b*n*d^-3*f^-3*x^3//2*(a+b*log(c*x^n))+1//3*a*b*n*x*d^-4*f^-4+1//3*n*x*b^2*d^-4*f^-4*log(c*x^n)+1//9*b*n*x*d^-4*f^-4*(a+b*log(c*x^n))+2//9*b*n*d^-6*f^-6*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+5//36*b*n*d^-2*f^-2*x^2*(a+b*log(c*x^n)))
@test integrate(x*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^(1/2))), x) == :(-1//8*x^2*(a+b*log(c*x^n))^2+(1/2)*x^2*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+-3//16*b^2*n^2*x^2+(1/2)*d^-3*f^-3*x^(1/2)*(a+b*log(c*x^n))^2+-1//2*d^-4*f^-4*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+-1//4*x*d^-2*f^-2*(a+b*log(c*x^n))^2+1//4*b*n*x^2*(a+b*log(c*x^n))+1//4*b^2*n^2*x^2*log(1+d*f*x^(1/2))+1//6*d^-1*f^-1*x^3//2*(a+b*log(c*x^n))^2+b^2*d^-4*f^-4*n^2*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+4*b^2*d^-4*f^-4*n^2*Polylogarithms.polylog(3,-1*d*f*x^(1/2))+-7//8*x*b^2*d^-2*f^-2*n^2+-1//2*b*n*x^2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+-1//4*b^2*d^-4*f^-4*n^2*log(1+d*f*x^(1/2))+21//4*b^2*d^-3*f^-3*n^2*x^(1/2)+37//108*b^2*d^-1*f^-1*n^2*x^3//2+(1/2)*a*b*n*x*d^-2*f^-2+(1/2)*b*n*d^-4*f^-4*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+(1/2)*n*x*b^2*d^-2*f^-2*log(c*x^n)+-2*b*n*d^-4*f^-4*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-7//18*b*n*d^-1*f^-1*x^3//2*(a+b*log(c*x^n))+-5//2*b*n*d^-3*f^-3*x^(1/2)*(a+b*log(c*x^n))+1//4*b*n*x*d^-2*f^-2*(a+b*log(c*x^n)))
@test integrate((a+b*log(c*x^n))^2*log(d*(d^-1+f*x^(1/2))), x) == :(-1//2*x*(a+b*log(c*x^n))^2+x*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^(1/2)))+-3*x*b^2*n^2+a*b*n*x+b*n*x*(a+b*log(c*x^n))+n*x*b^2*log(c*x^n)+d^-1*f^-1*x^(1/2)*(a+b*log(c*x^n))^2+-1*d^-2*f^-2*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+2*x*b^2*n^2*log(d*(d^-1+f*x^(1/2)))+-2*b*n*x*(a+b*log(c*x^n))*log(d*(d^-1+f*x^(1/2)))+-2*b^2*d^-2*f^-2*n^2*log(1+d*f*x^(1/2))+4*b^2*d^-2*f^-2*n^2*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+8*b^2*d^-2*f^-2*n^2*Polylogarithms.polylog(3,-1*d*f*x^(1/2))+14*b^2*d^-1*f^-1*n^2*x^(1/2)+-6*b*n*d^-1*f^-1*x^(1/2)*(a+b*log(c*x^n))+-4*b*n*d^-2*f^-2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+2*b*n*d^-2*f^-2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2)))
@test integrate(x^-1*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^(1/2))), x) == :(-2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-16*b^2*n^2*Polylogarithms.polylog(4,-1*d*f*x^(1/2))+8*b*n*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*d*f*x^(1/2)))
@test integrate(x^-2*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^(1/2))), x) == :(-1*x^-1*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+d^2*f^2*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+-1*d*f*x^-1//2*(a+b*log(c*x^n))^2+-2*b^2*n^2*x^-1*log(1+d*f*x^(1/2))+(1/2)*b^2*d^2*f^2*n^2*log(x)^2+-1*b^2*d^2*f^2*n^2*log(x)+-14*d*f*b^2*n^2*x^-1//2+-8*b^2*d^2*f^2*n^2*Polylogarithms.polylog(3,-1*d*f*x^(1/2))+-2*b*n*x^-1*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+2*b^2*d^2*f^2*n^2*log(1+d*f*x^(1/2))+4*b^2*d^2*f^2*n^2*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-1//6*b^-1*d^2*f^2*n^-1*(a+b*log(c*x^n))^3+-1*b*n*d^2*f^2*(a+b*log(c*x^n))*log(x)+-6*b*d*f*n*x^-1//2*(a+b*log(c*x^n))+2*b*n*d^2*f^2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+4*b*n*d^2*f^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^(1/2)))
@test integrate(x^-3*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^(1/2))), x) == :(-1//2*x^-2*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+(1/2)*d^4*f^4*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+-1//2*d^3*f^3*x^-1//2*(a+b*log(c*x^n))^2+-1//4*b^2*n^2*x^-2*log(1+d*f*x^(1/2))+-1//6*d*f*x^-3//2*(a+b*log(c*x^n))^2+1//4*d^2*f^2*x^-1*(a+b*log(c*x^n))^2+b^2*d^4*f^4*n^2*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-4*b^2*d^4*f^4*n^2*Polylogarithms.polylog(3,-1*d*f*x^(1/2))+-37//108*d*f*b^2*n^2*x^-3//2+-21//4*b^2*d^3*f^3*n^2*x^-1//2+-1//2*b*n*x^-2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+-1//8*b^2*d^4*f^4*n^2*log(x)+-1//12*b^-1*d^4*f^4*n^-1*(a+b*log(c*x^n))^3+1//4*b^2*d^4*f^4*n^2*log(1+d*f*x^(1/2))+1//8*b^2*d^4*f^4*n^2*log(x)^2+7//8*b^2*d^2*f^2*n^2*x^-1+(1/2)*b*n*d^4*f^4*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+2*b*n*d^4*f^4*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-7//18*b*d*f*n*x^-3//2*(a+b*log(c*x^n))+-5//2*b*n*d^3*f^3*x^-1//2*(a+b*log(c*x^n))+-1//4*b*n*d^4*f^4*(a+b*log(c*x^n))*log(x)+3//4*b*n*d^2*f^2*x^-1*(a+b*log(c*x^n)))
@test integrate(x*(a+b*log(c*x^n))^3*log(d*(d^-1+f*x^(1/2))), x) == :(-1//8*x^2*(a+b*log(c*x^n))^3+(1/2)*x^2*(a+b*log(c*x^n))^3*log(1+d*f*x^(1/2))+3//8*b^3*n^3*x^2+(1/2)*d^-3*f^-3*x^(1/2)*(a+b*log(c*x^n))^3+-9//16*b^2*n^2*x^2*(a+b*log(c*x^n))+-3//8*b^3*n^3*x^2*log(1+d*f*x^(1/2))+-1//2*d^-4*f^-4*(a+b*log(c*x^n))^3*log(1+d*f*x^(1/2))+-1//4*x*d^-2*f^-2*(a+b*log(c*x^n))^3+1//6*d^-1*f^-1*x^3//2*(a+b*log(c*x^n))^3+3//8*b*n*x^2*(a+b*log(c*x^n))^2+-24*b^3*d^-4*f^-4*n^3*Polylogarithms.polylog(4,-1*d*f*x^(1/2))+-6*b^3*d^-4*f^-4*n^3*Polylogarithms.polylog(3,-1*d*f*x^(1/2))+-255//8*b^3*d^-3*f^-3*n^3*x^(1/2)+-175//216*b^3*d^-1*f^-1*n^3*x^3//2+-3//2*b^3*d^-4*f^-4*n^3*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-3//4*b*n*x^2*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+3//4*b^2*n^2*x^2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+3//8*b^3*d^-4*f^-4*n^3*log(1+d*f*x^(1/2))+45//16*x*b^3*d^-2*f^-2*n^3+-3*b*n*d^-4*f^-4*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+3*b^2*d^-4*f^-4*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+12*b^2*d^-4*f^-4*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*d*f*x^(1/2))+-15//4*b*n*d^-3*f^-3*x^(1/2)*(a+b*log(c*x^n))^2+-9//4*a*x*b^2*d^-2*f^-2*n^2+-9//4*x*b^3*d^-2*f^-2*n^2*log(c*x^n)+-7//12*b*n*d^-1*f^-1*x^3//2*(a+b*log(c*x^n))^2+-3//4*b^2*d^-4*f^-4*n^2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+-3//8*x*b^2*d^-2*f^-2*n^2*(a+b*log(c*x^n))+3//4*b*n*d^-4*f^-4*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+9//8*b*n*x*d^-2*f^-2*(a+b*log(c*x^n))^2+37//36*b^2*d^-1*f^-1*n^2*x^3//2*(a+b*log(c*x^n))+63//4*b^2*d^-3*f^-3*n^2*x^(1/2)*(a+b*log(c*x^n)))
@test integrate((a+b*log(c*x^n))^3*log(d*(d^-1+f*x^(1/2))), x) == :(-1//2*x*(a+b*log(c*x^n))^3+x*(a+b*log(c*x^n))^3*log(d*(d^-1+f*x^(1/2)))+12*x*b^3*n^3+d^-1*f^-1*x^(1/2)*(a+b*log(c*x^n))^3+-1*d^-2*f^-2*(a+b*log(c*x^n))^3*log(1+d*f*x^(1/2))+-6*a*x*b^2*n^2+-6*x*b^3*n^2*log(c*x^n)+-6*x*b^3*n^3*log(d*(d^-1+f*x^(1/2)))+-3*x*b^2*n^2*(a+b*log(c*x^n))+3*b*n*x*(a+b*log(c*x^n))^2+-90*b^3*d^-1*f^-1*n^3*x^(1/2)+-48*b^3*d^-2*f^-2*n^3*Polylogarithms.polylog(4,-1*d*f*x^(1/2))+-24*b^3*d^-2*f^-2*n^3*Polylogarithms.polylog(3,-1*d*f*x^(1/2))+-12*b^3*d^-2*f^-2*n^3*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-3*b*n*x*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^(1/2)))+6*x*b^2*n^2*(a+b*log(c*x^n))*log(d*(d^-1+f*x^(1/2)))+6*b^3*d^-2*f^-2*n^3*log(1+d*f*x^(1/2))+-9*b*n*d^-1*f^-1*x^(1/2)*(a+b*log(c*x^n))^2+-6*b*n*d^-2*f^-2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-6*b^2*d^-2*f^-2*n^2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+3*b*n*d^-2*f^-2*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+12*b^2*d^-2*f^-2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+24*b^2*d^-2*f^-2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*d*f*x^(1/2))+42*b^2*d^-1*f^-1*n^2*x^(1/2)*(a+b*log(c*x^n)))
@test integrate(x^-1*(a+b*log(c*x^n))^3*log(d*(d^-1+f*x^(1/2))), x) == :(-2*(a+b*log(c*x^n))^3*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+96*b^3*n^3*Polylogarithms.polylog(5,-1*d*f*x^(1/2))+-48*b^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(4,-1*d*f*x^(1/2))+12*b*n*(a+b*log(c*x^n))^2*Polylogarithms.polylog(3,-1*d*f*x^(1/2)))
@test integrate(x^-2*(a+b*log(c*x^n))^3*log(d*(d^-1+f*x^(1/2))), x) == :(-1*x^-1*(a+b*log(c*x^n))^3*log(1+d*f*x^(1/2))+-1//2*d^2*f^2*(a+b*log(c*x^n))^3+d^2*f^2*(a+b*log(c*x^n))^3*log(1+d*f*x^(1/2))+-1*d*f*x^-1//2*(a+b*log(c*x^n))^3+-6*b^3*n^3*x^-1*log(1+d*f*x^(1/2))+-90*d*f*b^3*n^3*x^-1//2+-24*b^3*d^2*f^2*n^3*Polylogarithms.polylog(3,-1*d*f*x^(1/2))+-6*b^2*n^2*x^-1*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+-3*b*n*x^-1*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+-3*b^3*d^2*f^2*n^3*log(x)+6*b^3*d^2*f^2*n^3*log(1+d*f*x^(1/2))+12*b^3*d^2*f^2*n^3*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+48*b^3*d^2*f^2*n^3*Polylogarithms.polylog(4,-1*d*f*x^(1/2))+-1//8*b^-1*d^2*f^2*n^-1*(a+b*log(c*x^n))^4+3//2*b^3*d^2*f^2*n^3*log(x)^2+-42*d*f*b^2*n^2*x^-1//2*(a+b*log(c*x^n))+-24*b^2*d^2*f^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*d*f*x^(1/2))+-9*b*d*f*n*x^-1//2*(a+b*log(c*x^n))^2+-3*b^2*d^2*f^2*n^2*(a+b*log(c*x^n))*log(x)+3*b*n*d^2*f^2*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+6*b*n*d^2*f^2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+6*b^2*d^2*f^2*n^2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+12*b^2*d^2*f^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^(1/2)))
@test integrate(x^-3*(a+b*log(c*x^n))^3*log(d*(d^-1+f*x^(1/2))), x) == :(-1//2*x^-2*(a+b*log(c*x^n))^3*log(1+d*f*x^(1/2))+-1//8*d^4*f^4*(a+b*log(c*x^n))^3+(1/2)*d^4*f^4*(a+b*log(c*x^n))^3*log(1+d*f*x^(1/2))+-3//8*b^3*n^3*x^-2*log(1+d*f*x^(1/2))+-1//2*d^3*f^3*x^-1//2*(a+b*log(c*x^n))^3+-1//6*d*f*x^-3//2*(a+b*log(c*x^n))^3+1//4*d^2*f^2*x^-1*(a+b*log(c*x^n))^3+-6*b^3*d^4*f^4*n^3*Polylogarithms.polylog(3,-1*d*f*x^(1/2))+24*b^3*d^4*f^4*n^3*Polylogarithms.polylog(4,-1*d*f*x^(1/2))+-255//8*b^3*d^3*f^3*n^3*x^-1//2+-175//216*d*f*b^3*n^3*x^-3//2+-3//4*b*n*x^-2*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+-3//4*b^2*n^2*x^-2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+-3//16*b^3*d^4*f^4*n^3*log(x)+-1//16*b^-1*d^4*f^4*n^-1*(a+b*log(c*x^n))^4+3//2*b^3*d^4*f^4*n^3*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+3//8*b^3*d^4*f^4*n^3*log(1+d*f*x^(1/2))+3//16*b^3*d^4*f^4*n^3*log(x)^2+45//16*b^3*d^2*f^2*n^3*x^-1+-12*b^2*d^4*f^4*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*d*f*x^(1/2))+3*b*n*d^4*f^4*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+3*b^2*d^4*f^4*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^(1/2))+-63//4*b^2*d^3*f^3*n^2*x^-1//2*(a+b*log(c*x^n))+-37//36*d*f*b^2*n^2*x^-3//2*(a+b*log(c*x^n))+-15//4*b*n*d^3*f^3*x^-1//2*(a+b*log(c*x^n))^2+-7//12*b*d*f*n*x^-3//2*(a+b*log(c*x^n))^2+-3//8*b^2*d^4*f^4*n^2*(a+b*log(c*x^n))*log(x)+3//4*b*n*d^4*f^4*(a+b*log(c*x^n))^2*log(1+d*f*x^(1/2))+3//4*b^2*d^4*f^4*n^2*(a+b*log(c*x^n))*log(1+d*f*x^(1/2))+9//8*b*n*d^2*f^2*x^-1*(a+b*log(c*x^n))^2+21//8*b^2*d^2*f^2*n^2*x^-1*(a+b*log(c*x^n)))
@test integrate(x^-1*(a+b*log(c*x^n))^4*log(d*(d^-1+f*x^m)), x) == :(-1*m^-1*(a+b*log(c*x^n))^4*Polylogarithms.polylog(2,-1*d*f*x^m)+-24*b^4*m^-5*n^4*Polylogarithms.polylog(6,-1*d*f*x^m)+-12*b^2*m^-3*n^2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(4,-1*d*f*x^m)+4*b*n*m^-2*(a+b*log(c*x^n))^3*Polylogarithms.polylog(3,-1*d*f*x^m)+24*b^3*m^-4*n^3*(a+b*log(c*x^n))*Polylogarithms.polylog(5,-1*d*f*x^m))
@test integrate(x^-1*(a+b*log(c*x^n))^3*log(d*(d^-1+f*x^m)), x) == :(-1*m^-1*(a+b*log(c*x^n))^3*Polylogarithms.polylog(2,-1*d*f*x^m)+6*b^3*m^-4*n^3*Polylogarithms.polylog(5,-1*d*f*x^m)+-6*b^2*m^-3*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(4,-1*d*f*x^m)+3*b*n*m^-2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(3,-1*d*f*x^m))
@test integrate(x^-1*(a+b*log(c*x^n))^2*log(d*(d^-1+f*x^m)), x) == :(-1*m^-1*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*d*f*x^m)+-2*b^2*m^-3*n^2*Polylogarithms.polylog(4,-1*d*f*x^m)+2*b*n*m^-2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*d*f*x^m))
@test integrate(x^-1*(a+b*log(c*x^n))*log(d*(d^-1+f*x^m)), x) == :(-1*m^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*d*f*x^m)+b*n*m^-2*Polylogarithms.polylog(3,-1*d*f*x^m))
@test integrate(x^3*(a+b*log(c*x^n))*log(d*(e+f*x)^m), x) == :(-1//16*m*x^4*(a+b*log(c*x^n))+1//4*x^4*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-1//16*b*n*x^4*log(d*(e+f*x)^m)+1//32*b*m*n*x^4+-1//4*m*e^4*f^-4*(a+b*log(c*x^n))*log(e+f*x)+-1//8*m*e^2*f^-2*x^2*(a+b*log(c*x^n))+1//4*m*x*e^3*f^-3*(a+b*log(c*x^n))+1//12*e*m*f^-1*x^3*(a+b*log(c*x^n))+-7//144*b*e*m*n*f^-1*x^3+-5//16*b*m*n*x*e^3*f^-3+1//4*b*m*n*e^4*f^-4*Polylogarithms.polylog(2,1+f*x*e^-1)+1//16*b*m*n*e^4*f^-4*log(e+f*x)+3//32*b*m*n*e^2*f^-2*x^2+1//4*b*m*n*e^4*f^-4*log(-1*f*x*e^-1)*log(e+f*x))
@test integrate(x^2*(a+b*log(c*x^n))*log(d*(e+f*x)^m), x) == :(-1//9*m*x^3*(a+b*log(c*x^n))+1//3*x^3*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-1//9*b*n*x^3*log(d*(e+f*x)^m)+2//27*b*m*n*x^3+-1//3*m*x*e^2*f^-2*(a+b*log(c*x^n))+1//3*m*e^3*f^-3*(a+b*log(c*x^n))*log(e+f*x)+1//6*e*m*f^-1*x^2*(a+b*log(c*x^n))+-5//36*b*e*m*n*f^-1*x^2+-1//3*b*m*n*e^3*f^-3*Polylogarithms.polylog(2,1+f*x*e^-1)+-1//9*b*m*n*e^3*f^-3*log(e+f*x)+4//9*b*m*n*x*e^2*f^-2+-1//3*b*m*n*e^3*f^-3*log(-1*f*x*e^-1)*log(e+f*x))
@test integrate(x*(a+b*log(c*x^n))*log(d*(e+f*x)^m), x) == :((1/2)*x^2*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-1//4*m*x^2*(a+b*log(c*x^n))+-1//4*b*n*x^2*log(d*(e+f*x)^m)+1//4*b*m*n*x^2+(1/2)*e*m*x*f^-1*(a+b*log(c*x^n))+-1//2*m*e^2*f^-2*(a+b*log(c*x^n))*log(e+f*x)+(1/2)*b*m*n*e^2*f^-2*Polylogarithms.polylog(2,1+f*x*e^-1)+-3//4*b*e*m*n*x*f^-1+1//4*b*m*n*e^2*f^-2*log(e+f*x)+(1/2)*b*m*n*e^2*f^-2*log(-1*f*x*e^-1)*log(e+f*x))
@test integrate((a+b*log(c*x^n))*log(d*(e+f*x)^m), x) == :(-1*m*x*(a+b*log(c*x^n))+f^-1*(a+b*log(c*x^n))*(e+f*x)*log(d*(e+f*x)^m)+2*b*m*n*x+-1*b*n*f^-1*(e+f*x)*log(d*(e+f*x)^m)+-1*b*e*m*n*f^-1*Polylogarithms.polylog(2,1+f*x*e^-1)+-1*b*e*n*f^-1*log(d*(e+f*x)^m)*log(-1*f*x*e^-1))
@test integrate(x^-1*(a+b*log(c*x^n))*log(d*(e+f*x)^m), x) == :(-1*m*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*x*e^-1)+b*m*n*Polylogarithms.polylog(3,-1*f*x*e^-1)+(1/2)*b^-1*n^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m)+-1//2*m*b^-1*n^-1*(a+b*log(c*x^n))^2*log(1+f*x*e^-1))
@test integrate(x^-2*(a+b*log(c*x^n))*log(d*(e+f*x)^m), x) == :(-1*x^-1*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-1*b*n*x^-1*log(d*(e+f*x)^m)+f*m*e^-1*(a+b*log(c*x^n))*log(x)+-1*f*m*e^-1*(a+b*log(c*x^n))*log(e+f*x)+b*f*m*n*e^-1*Polylogarithms.polylog(2,1+f*x*e^-1)+b*f*m*n*e^-1*log(x)+-1*b*f*m*n*e^-1*log(e+f*x)+-1//2*b*f*m*n*e^-1*log(x)^2+b*f*m*n*e^-1*log(-1*f*x*e^-1)*log(e+f*x))
@test integrate(x^-3*(a+b*log(c*x^n))*log(d*(e+f*x)^m), x) == :(-1//2*x^-2*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-1//4*b*n*x^-2*log(d*(e+f*x)^m)+(1/2)*m*e^-2*f^2*(a+b*log(c*x^n))*log(e+f*x)+-1//2*f*m*e^-1*x^-1*(a+b*log(c*x^n))+-1//2*m*e^-2*f^2*(a+b*log(c*x^n))*log(x)+-3//4*b*f*m*n*e^-1*x^-1+-1//2*b*m*n*e^-2*f^2*Polylogarithms.polylog(2,1+f*x*e^-1)+-1//4*b*m*n*e^-2*f^2*log(x)+1//4*b*m*n*e^-2*f^2*log(x)^2+1//4*b*m*n*e^-2*f^2*log(e+f*x)+-1//2*b*m*n*e^-2*f^2*log(-1*f*x*e^-1)*log(e+f*x))
@test integrate(x^-4*(a+b*log(c*x^n))*log(d*(e+f*x)^m), x) == :(-1//3*x^-3*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-1//9*b*n*x^-3*log(d*(e+f*x)^m)+-1//3*m*e^-3*f^3*(a+b*log(c*x^n))*log(e+f*x)+-1//6*f*m*e^-1*x^-2*(a+b*log(c*x^n))+1//3*m*e^-3*f^3*(a+b*log(c*x^n))*log(x)+1//3*m*e^-2*f^2*x^-1*(a+b*log(c*x^n))+-5//36*b*f*m*n*e^-1*x^-2+-1//6*b*m*n*e^-3*f^3*log(x)^2+-1//9*b*m*n*e^-3*f^3*log(e+f*x)+1//3*b*m*n*e^-3*f^3*Polylogarithms.polylog(2,1+f*x*e^-1)+1//9*b*m*n*e^-3*f^3*log(x)+4//9*b*m*n*e^-2*f^2*x^-1+1//3*b*m*n*e^-3*f^3*log(-1*f*x*e^-1)*log(e+f*x))
@test integrate(x^2*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m), x) == :(-1//9*m*x^3*(a+b*log(c*x^n))^2+1//3*x^3*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m)+-2//27*m*b^2*n^2*x^3+2//27*b^2*n^2*x^3*log(d*(e+f*x)^m)+-2//9*b*n*x^3*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-1//3*m*x*e^2*f^-2*(a+b*log(c*x^n))^2+1//3*m*e^3*f^-3*(a+b*log(c*x^n))^2*log(1+f*x*e^-1)+1//6*e*m*f^-1*x^2*(a+b*log(c*x^n))^2+4//27*b*m*n*x^3*(a+b*log(c*x^n))+-26//27*m*x*b^2*e^2*f^-2*n^2+-2//3*m*b^2*e^3*f^-3*n^2*Polylogarithms.polylog(3,-1*f*x*e^-1)+-2//9*m*b^2*e^3*f^-3*n^2*Polylogarithms.polylog(2,-1*f*x*e^-1)+2//27*m*b^2*e^3*f^-3*n^2*log(e+f*x)+19//108*e*m*b^2*f^-1*n^2*x^2+-5//18*b*e*m*n*f^-1*x^2*(a+b*log(c*x^n))+-2//9*b*m*n*e^3*f^-3*(a+b*log(c*x^n))*log(1+f*x*e^-1)+2//3*b*m*n*e^3*f^-3*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*x*e^-1)+8//9*a*b*m*n*x*e^2*f^-2+8//9*m*n*x*b^2*e^2*f^-2*log(c*x^n))
@test integrate(x*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m), x) == :((1/2)*x^2*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m)+-1//4*m*x^2*(a+b*log(c*x^n))^2+-3//8*m*b^2*n^2*x^2+1//4*b^2*n^2*x^2*log(d*(e+f*x)^m)+(1/2)*b*m*n*x^2*(a+b*log(c*x^n))+(1/2)*e*m*x*f^-1*(a+b*log(c*x^n))^2+-1//2*b*n*x^2*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-1//2*m*e^2*f^-2*(a+b*log(c*x^n))^2*log(1+f*x*e^-1)+m*b^2*e^2*f^-2*n^2*Polylogarithms.polylog(3,-1*f*x*e^-1)+(1/2)*m*b^2*e^2*f^-2*n^2*Polylogarithms.polylog(2,-1*f*x*e^-1)+-1//4*m*b^2*e^2*f^-2*n^2*log(e+f*x)+7//4*e*m*x*b^2*f^-1*n^2+(1/2)*b*m*n*e^2*f^-2*(a+b*log(c*x^n))*log(1+f*x*e^-1)+-1*b*m*n*e^2*f^-2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*x*e^-1)+-3//2*a*b*e*m*n*x*f^-1+-3//2*e*m*n*x*b^2*f^-1*log(c*x^n))
@test integrate((a+b*log(c*x^n))^2*log(d*(e+f*x)^m), x) == :(x*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m)+-1*m*x*(a+b*log(c*x^n))^2+-4*m*x*b^2*n^2+2*x*b^2*n^2*log(d*(e+f*x)^m)+e*m*f^-1*(a+b*log(c*x^n))^2*log(1+f*x*e^-1)+-2*a*b*n*x*log(d*(e+f*x)^m)+-2*n*x*b^2*log(c*x^n)*log(d*(e+f*x)^m)+2*a*b*m*n*x+2*b*m*n*x*(a+-1*b*n)+4*m*n*x*b^2*log(c*x^n)+-2*e*m*b^2*f^-1*n^2*Polylogarithms.polylog(2,-1*f*x*e^-1)+-2*e*m*b^2*f^-1*n^2*Polylogarithms.polylog(3,-1*f*x*e^-1)+-2*b*e*m*n*f^-1*(a+-1*b*n)*log(e+f*x)+-2*e*m*n*b^2*f^-1*log(c*x^n)*log(1+f*x*e^-1)+2*b*e*m*n*f^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*x*e^-1))
@test integrate(x^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m), x) == :(-1*m*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*f*x*e^-1)+-2*m*b^2*n^2*Polylogarithms.polylog(4,-1*f*x*e^-1)+1//3*b^-1*n^-1*(a+b*log(c*x^n))^3*log(d*(e+f*x)^m)+2*b*m*n*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*f*x*e^-1)+-1//3*m*b^-1*n^-1*(a+b*log(c*x^n))^3*log(1+f*x*e^-1))
@test integrate(x^-2*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m), x) == :(-1*x^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m)+-2*b^2*n^2*x^-1*log(d*(e+f*x)^m)+-1*f*m*e^-1*(a+b*log(c*x^n))^2*log(1+e*f^-1*x^-1)+-2*b*n*x^-1*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-2*f*m*b^2*e^-1*n^2*log(e+f*x)+2*f*m*b^2*e^-1*n^2*Polylogarithms.polylog(2,-1*e*f^-1*x^-1)+2*f*m*b^2*e^-1*n^2*Polylogarithms.polylog(3,-1*e*f^-1*x^-1)+2*f*m*b^2*e^-1*n^2*log(x)+-2*b*f*m*n*e^-1*(a+b*log(c*x^n))*log(1+e*f^-1*x^-1)+2*b*f*m*n*e^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*f^-1*x^-1))
@test integrate(x^-3*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m), x) == :(-1//2*x^-2*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m)+-1//4*b^2*n^2*x^-2*log(d*(e+f*x)^m)+(1/2)*m*e^-2*f^2*(a+b*log(c*x^n))^2*log(1+e*f^-1*x^-1)+-1//2*b*n*x^-2*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-1//2*f*m*e^-1*x^-1*(a+b*log(c*x^n))^2+-1*m*b^2*e^-2*f^2*n^2*Polylogarithms.polylog(3,-1*e*f^-1*x^-1)+-7//4*f*m*b^2*e^-1*n^2*x^-1+-1//2*m*b^2*e^-2*f^2*n^2*Polylogarithms.polylog(2,-1*e*f^-1*x^-1)+-1//4*m*b^2*e^-2*f^2*n^2*log(x)+1//4*m*b^2*e^-2*f^2*n^2*log(e+f*x)+(1/2)*b*m*n*e^-2*f^2*(a+b*log(c*x^n))*log(1+e*f^-1*x^-1)+-1*b*m*n*e^-2*f^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*f^-1*x^-1)+-3//2*b*f*m*n*e^-1*x^-1*(a+b*log(c*x^n)))
@test integrate(x^-4*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m), x) == :(-1//3*x^-3*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m)+-2//27*b^2*n^2*x^-3*log(d*(e+f*x)^m)+-2//9*b*n*x^-3*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-1//3*m*e^-3*f^3*(a+b*log(c*x^n))^2*log(1+e*f^-1*x^-1)+-1//6*f*m*e^-1*x^-2*(a+b*log(c*x^n))^2+1//3*m*e^-2*f^2*x^-1*(a+b*log(c*x^n))^2+-19//108*f*m*b^2*e^-1*n^2*x^-2+-2//27*m*b^2*e^-3*f^3*n^2*log(e+f*x)+2//3*m*b^2*e^-3*f^3*n^2*Polylogarithms.polylog(3,-1*e*f^-1*x^-1)+2//9*m*b^2*e^-3*f^3*n^2*Polylogarithms.polylog(2,-1*e*f^-1*x^-1)+2//27*m*b^2*e^-3*f^3*n^2*log(x)+26//27*m*b^2*e^-2*f^2*n^2*x^-1+-5//18*b*f*m*n*e^-1*x^-2*(a+b*log(c*x^n))+-2//9*b*m*n*e^-3*f^3*(a+b*log(c*x^n))*log(1+e*f^-1*x^-1)+2//3*b*m*n*e^-3*f^3*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*f^-1*x^-1)+8//9*b*m*n*e^-2*f^2*x^-1*(a+b*log(c*x^n)))
@test integrate(x*(a+b*log(c*x^n))^3*log(d*(e+f*x)^m), x) == :((1/2)*x^2*(a+b*log(c*x^n))^3*log(d*(e+f*x)^m)+-1//4*m*x^2*(a+b*log(c*x^n))^3+-3//8*b^3*n^3*x^2*log(d*(e+f*x)^m)+3//4*m*b^3*n^3*x^2+(1/2)*e*m*x*f^-1*(a+b*log(c*x^n))^3+-9//8*m*b^2*n^2*x^2*(a+b*log(c*x^n))+-3//4*b*n*x^2*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m)+-1//2*m*e^2*f^-2*(a+b*log(c*x^n))^3*log(1+f*x*e^-1)+3//4*b*m*n*x^2*(a+b*log(c*x^n))^2+3//4*b^2*n^2*x^2*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-3*m*b^3*e^2*f^-2*n^3*Polylogarithms.polylog(4,-1*f*x*e^-1)+-45//8*e*m*x*b^3*f^-1*n^3+-3//2*m*b^3*e^2*f^-2*n^3*Polylogarithms.polylog(3,-1*f*x*e^-1)+-3//4*m*b^3*e^2*f^-2*n^3*Polylogarithms.polylog(2,-1*f*x*e^-1)+3//8*m*b^3*e^2*f^-2*n^3*log(e+f*x)+3*m*b^2*e^2*f^-2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*f*x*e^-1)+-9//4*b*e*m*n*x*f^-1*(a+b*log(c*x^n))^2+-3//2*b*m*n*e^2*f^-2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*f*x*e^-1)+-3//4*m*b^2*e^2*f^-2*n^2*(a+b*log(c*x^n))*log(1+f*x*e^-1)+3//2*m*b^2*e^2*f^-2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*x*e^-1)+3//4*b*m*n*e^2*f^-2*(a+b*log(c*x^n))^2*log(1+f*x*e^-1)+21//4*a*e*m*x*b^2*f^-1*n^2+21//4*e*m*x*b^3*f^-1*n^2*log(c*x^n))
@test integrate((a+b*log(c*x^n))^3*log(d*(e+f*x)^m), x) == :(x*(a+b*log(c*x^n))^3*log(d*(e+f*x)^m)+-1*m*x*(a+b*log(c*x^n))^3+-6*x*b^3*n^3*log(d*(e+f*x)^m)+18*m*x*b^3*n^3+e*m*f^-1*(a+b*log(c*x^n))^3*log(1+f*x*e^-1)+-18*m*x*b^3*n^2*log(c*x^n)+-12*a*m*x*b^2*n^2+-6*m*x*b^2*n^2*(a+-1*b*n)+-3*b*n*x*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m)+6*a*x*b^2*n^2*log(d*(e+f*x)^m)+6*b*m*n*x*(a+b*log(c*x^n))^2+6*x*b^3*n^2*log(c*x^n)*log(d*(e+f*x)^m)+6*e*m*b^3*f^-1*n^3*Polylogarithms.polylog(2,-1*f*x*e^-1)+6*e*m*b^3*f^-1*n^3*Polylogarithms.polylog(3,-1*f*x*e^-1)+6*e*m*b^3*f^-1*n^3*Polylogarithms.polylog(4,-1*f*x*e^-1)+-6*e*m*b^2*f^-1*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*x*e^-1)+-6*e*m*b^2*f^-1*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*f*x*e^-1)+-3*b*e*m*n*f^-1*(a+b*log(c*x^n))^2*log(1+f*x*e^-1)+3*b*e*m*n*f^-1*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*f*x*e^-1)+6*e*m*b^2*f^-1*n^2*(a+-1*b*n)*log(e+f*x)+6*e*m*b^3*f^-1*n^2*log(c*x^n)*log(1+f*x*e^-1))
@test integrate(x^-1*(a+b*log(c*x^n))^3*log(d*(e+f*x)^m), x) == :(-1*m*(a+b*log(c*x^n))^3*Polylogarithms.polylog(2,-1*f*x*e^-1)+6*m*b^3*n^3*Polylogarithms.polylog(5,-1*f*x*e^-1)+1//4*b^-1*n^-1*(a+b*log(c*x^n))^4*log(d*(e+f*x)^m)+-6*m*b^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(4,-1*f*x*e^-1)+3*b*m*n*(a+b*log(c*x^n))^2*Polylogarithms.polylog(3,-1*f*x*e^-1)+-1//4*m*b^-1*n^-1*(a+b*log(c*x^n))^4*log(1+f*x*e^-1))
@test integrate(x^-2*(a+b*log(c*x^n))^3*log(d*(e+f*x)^m), x) == :(-1*x^-1*(a+b*log(c*x^n))^3*log(d*(e+f*x)^m)+-6*b^3*n^3*x^-1*log(d*(e+f*x)^m)+-1*f*m*e^-1*(a+b*log(c*x^n))^3*log(1+e*f^-1*x^-1)+-6*b^2*n^2*x^-1*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-3*b*n*x^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m)+-6*f*m*b^3*e^-1*n^3*log(e+f*x)+6*f*m*b^3*e^-1*n^3*Polylogarithms.polylog(2,-1*e*f^-1*x^-1)+6*f*m*b^3*e^-1*n^3*Polylogarithms.polylog(3,-1*e*f^-1*x^-1)+6*f*m*b^3*e^-1*n^3*Polylogarithms.polylog(4,-1*e*f^-1*x^-1)+6*f*m*b^3*e^-1*n^3*log(x)+-6*f*m*b^2*e^-1*n^2*(a+b*log(c*x^n))*log(1+e*f^-1*x^-1)+-3*b*f*m*n*e^-1*(a+b*log(c*x^n))^2*log(1+e*f^-1*x^-1)+3*b*f*m*n*e^-1*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*e*f^-1*x^-1)+6*f*m*b^2*e^-1*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*f^-1*x^-1)+6*f*m*b^2*e^-1*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*e*f^-1*x^-1))
@test integrate(x^-3*(a+b*log(c*x^n))^3*log(d*(e+f*x)^m), x) == :(-1//2*x^-2*(a+b*log(c*x^n))^3*log(d*(e+f*x)^m)+-3//8*b^3*n^3*x^-2*log(d*(e+f*x)^m)+(1/2)*m*e^-2*f^2*(a+b*log(c*x^n))^3*log(1+e*f^-1*x^-1)+-3//4*b*n*x^-2*(a+b*log(c*x^n))^2*log(d*(e+f*x)^m)+-3//4*b^2*n^2*x^-2*(a+b*log(c*x^n))*log(d*(e+f*x)^m)+-1//2*f*m*e^-1*x^-1*(a+b*log(c*x^n))^3+-3*m*b^3*e^-2*f^2*n^3*Polylogarithms.polylog(4,-1*e*f^-1*x^-1)+-45//8*f*m*b^3*e^-1*n^3*x^-1+-3//2*m*b^3*e^-2*f^2*n^3*Polylogarithms.polylog(3,-1*e*f^-1*x^-1)+-3//4*m*b^3*e^-2*f^2*n^3*Polylogarithms.polylog(2,-1*e*f^-1*x^-1)+-3//8*m*b^3*e^-2*f^2*n^3*log(x)+3//8*m*b^3*e^-2*f^2*n^3*log(e+f*x)+-3*m*b^2*e^-2*f^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*e*f^-1*x^-1)+-21//4*f*m*b^2*e^-1*n^2*x^-1*(a+b*log(c*x^n))+-9//4*b*f*m*n*e^-1*x^-1*(a+b*log(c*x^n))^2+-3//2*b*m*n*e^-2*f^2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*e*f^-1*x^-1)+-3//2*m*b^2*e^-2*f^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*f^-1*x^-1)+3//4*b*m*n*e^-2*f^2*(a+b*log(c*x^n))^2*log(1+e*f^-1*x^-1)+3//4*m*b^2*e^-2*f^2*n^2*(a+b*log(c*x^n))*log(1+e*f^-1*x^-1))
@test integrate(x^3*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m), x) == :(-1//8*m*x^4*(a+b*log(c*x^n))+1//4*x^4*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-1//16*b*n*x^4*log(d*(e+f*x^2)^m)+1//16*b*m*n*x^4+-1//4*m*e^2*f^-2*(a+b*log(c*x^n))*log(e+f*x^2)+1//4*e*m*f^-1*x^2*(a+b*log(c*x^n))+-3//16*b*e*m*n*f^-1*x^2+1//8*b*m*n*e^2*f^-2*Polylogarithms.polylog(2,1+f*e^-1*x^2)+1//16*b*m*n*e^2*f^-2*log(e+f*x^2)+1//8*b*m*n*e^2*f^-2*log(-1*f*e^-1*x^2)*log(e+f*x^2))
@test integrate(x*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m), x) == :(-1//2*m*x^2*(a+b*log(c*x^n))+(1/2)*b*m*n*x^2+(1/2)*f^-1*(a+b*log(c*x^n))*(e+f*x^2)*log(d*(e+f*x^2)^m)+-1//4*b*n*f^-1*(e+f*x^2)*log(d*(e+f*x^2)^m)+-1//4*b*e*m*n*f^-1*Polylogarithms.polylog(2,1+f*e^-1*x^2)+-1//4*b*e*n*f^-1*log(d*(e+f*x^2)^m)*log(-1*f*e^-1*x^2))
@test integrate(x^-1*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m), x) == :(-1//2*m*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^2)+(1/2)*b^-1*n^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+1//4*b*m*n*Polylogarithms.polylog(3,-1*f*e^-1*x^2)+-1//2*m*b^-1*n^-1*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^2))
@test integrate(x^-3*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m), x) == :(-1//2*x^-2*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-1//4*b*n*x^-2*log(d*(e+f*x^2)^m)+f*m*e^-1*(a+b*log(c*x^n))*log(x)+-1//2*f*m*e^-1*(a+b*log(c*x^n))*log(e+f*x^2)+(1/2)*b*f*m*n*e^-1*log(x)+-1//2*b*f*m*n*e^-1*log(x)^2+-1//4*b*f*m*n*e^-1*log(e+f*x^2)+1//4*b*f*m*n*e^-1*Polylogarithms.polylog(2,1+f*e^-1*x^2)+1//4*b*f*m*n*e^-1*log(-1*f*e^-1*x^2)*log(e+f*x^2))
@test integrate(x^-5*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m), x) == :(-1//4*x^-4*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-1//16*b*n*x^-4*log(d*(e+f*x^2)^m)+-1//2*m*e^-2*f^2*(a+b*log(c*x^n))*log(x)+-1//4*f*m*e^-1*x^-2*(a+b*log(c*x^n))+1//4*m*e^-2*f^2*(a+b*log(c*x^n))*log(e+f*x^2)+-3//16*b*f*m*n*e^-1*x^-2+-1//8*b*m*n*e^-2*f^2*Polylogarithms.polylog(2,1+f*e^-1*x^2)+-1//8*b*m*n*e^-2*f^2*log(x)+1//4*b*m*n*e^-2*f^2*log(x)^2+1//16*b*m*n*e^-2*f^2*log(e+f*x^2)+-1//8*b*m*n*e^-2*f^2*log(-1*f*e^-1*x^2)*log(e+f*x^2))
@test integrate(x^2*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m), x) == :(-2//9*m*x^3*(a+b*log(c*x^n))+1//3*x^3*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-1//9*b*n*x^3*log(d*(e+f*x^2)^m)+4//27*b*m*n*x^3+-2//3*m*e^3//2*f^-3//2*(a+b*log(c*x^n))*arctan(x*e^-1//2*f^(1/2))+2//3*e*m*x*f^-1*(a+b*log(c*x^n))+-8//9*b*e*m*n*x*f^-1+2//9*b*m*n*e^3//2*f^-3//2*arctan(x*e^-1//2*f^(1/2))+-1//3*im*b*m*n*e^3//2*f^-3//2*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2))+1//3*im*b*m*n*e^3//2*f^-3//2*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2)))
@test integrate((a+b*log(c*x^n))*log(d*(e+f*x^2)^m), x) == :(x*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-2*m*x*(a+b*log(c*x^n))+-1*b*n*x*log(d*(e+f*x^2)^m)+4*b*m*n*x+2*m*e^(1/2)*f^-1//2*(a+b*log(c*x^n))*arctan(x*e^-1//2*f^(1/2))+-2*b*m*n*e^(1/2)*f^-1//2*arctan(x*e^-1//2*f^(1/2))+im*b*m*n*e^(1/2)*f^-1//2*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2))+-1*im*b*m*n*e^(1/2)*f^-1//2*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2)))
@test integrate(x^-2*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m), x) == :(-1*x^-1*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-1*b*n*x^-1*log(d*(e+f*x^2)^m)+2*m*e^-1//2*f^(1/2)*(a+b*log(c*x^n))*arctan(x*e^-1//2*f^(1/2))+2*b*m*n*e^-1//2*f^(1/2)*arctan(x*e^-1//2*f^(1/2))+im*b*m*n*e^-1//2*f^(1/2)*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2))+-1*im*b*m*n*e^-1//2*f^(1/2)*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2)))
@test integrate(x^-4*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m), x) == :(-1//3*x^-3*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-1//9*b*n*x^-3*log(d*(e+f*x^2)^m)+-2//3*f*m*e^-1*x^-1*(a+b*log(c*x^n))+-2//3*m*e^-3//2*f^3//2*(a+b*log(c*x^n))*arctan(x*e^-1//2*f^(1/2))+-8//9*b*f*m*n*e^-1*x^-1+-2//9*b*m*n*e^-3//2*f^3//2*arctan(x*e^-1//2*f^(1/2))+-1//3*im*b*m*n*e^-3//2*f^3//2*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2))+1//3*im*b*m*n*e^-3//2*f^3//2*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2)))
@test integrate(x^-6*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m), x) == :(-1//5*x^-5*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-1//25*b*n*x^-5*log(d*(e+f*x^2)^m)+-2//15*f*m*e^-1*x^-3*(a+b*log(c*x^n))+2//5*m*e^-2*f^2*x^-1*(a+b*log(c*x^n))+2//5*m*e^-5//2*f^5//2*(a+b*log(c*x^n))*arctan(x*e^-1//2*f^(1/2))+-16//225*b*f*m*n*e^-1*x^-3+2//25*b*m*n*e^-5//2*f^5//2*arctan(x*e^-1//2*f^(1/2))+12//25*b*m*n*e^-2*f^2*x^-1+-1//5*im*b*m*n*e^-5//2*f^5//2*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2))+1//5*im*b*m*n*e^-5//2*f^5//2*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2)))
@test integrate(x*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m), x) == :((1/2)*x^2*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+-1//2*m*x^2*(a+b*log(c*x^n))^2+-3//4*m*b^2*n^2*x^2+1//4*b^2*n^2*x^2*log(d*(e+f*x^2)^m)+b*m*n*x^2*(a+b*log(c*x^n))+(1/2)*e*m*f^-1*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^2)+-1//2*b*n*x^2*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-1//4*e*m*b^2*f^-1*n^2*Polylogarithms.polylog(2,-1*f*e^-1*x^2)+-1//4*e*m*b^2*f^-1*n^2*Polylogarithms.polylog(3,-1*f*e^-1*x^2)+1//4*e*m*b^2*f^-1*n^2*log(e+f*x^2)+(1/2)*b*e*m*n*f^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^2)+-1//2*b*e*m*n*f^-1*(a+b*log(c*x^n))*log(1+f*e^-1*x^2))
@test integrate(x^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m), x) == :(-1//2*m*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*f*e^-1*x^2)+-1//4*m*b^2*n^2*Polylogarithms.polylog(4,-1*f*e^-1*x^2)+1//3*b^-1*n^-1*(a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m)+(1/2)*b*m*n*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*f*e^-1*x^2)+-1//3*m*b^-1*n^-1*(a+b*log(c*x^n))^3*log(1+f*e^-1*x^2))
@test integrate(x^-3*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m), x) == :(-1//2*x^-2*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+-1//4*b^2*n^2*x^-2*log(d*(e+f*x^2)^m)+-1//2*b*n*x^-2*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-1//2*f*m*e^-1*(a+b*log(c*x^n))^2*log(1+e*f^-1*x^-2)+(1/2)*f*m*b^2*e^-1*n^2*log(x)+-1//4*f*m*b^2*e^-1*n^2*log(e+f*x^2)+1//4*f*m*b^2*e^-1*n^2*Polylogarithms.polylog(2,-1*e*f^-1*x^-2)+1//4*f*m*b^2*e^-1*n^2*Polylogarithms.polylog(3,-1*e*f^-1*x^-2)+(1/2)*b*f*m*n*e^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*f^-1*x^-2)+-1//2*b*f*m*n*e^-1*(a+b*log(c*x^n))*log(1+e*f^-1*x^-2))
@test integrate(x^-5*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m), x) == :(-1//4*x^-4*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+-1//32*b^2*n^2*x^-4*log(d*(e+f*x^2)^m)+-1//4*f*m*e^-1*x^-2*(a+b*log(c*x^n))^2+-1//8*b*n*x^-4*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+1//4*m*e^-2*f^2*(a+b*log(c*x^n))^2*log(1+e*f^-1*x^-2)+-7//32*f*m*b^2*e^-1*n^2*x^-2+-1//8*m*b^2*e^-2*f^2*n^2*Polylogarithms.polylog(3,-1*e*f^-1*x^-2)+-1//16*m*b^2*e^-2*f^2*n^2*Polylogarithms.polylog(2,-1*e*f^-1*x^-2)+-1//16*m*b^2*e^-2*f^2*n^2*log(x)+1//32*m*b^2*e^-2*f^2*n^2*log(e+f*x^2)+-3//8*b*f*m*n*e^-1*x^-2*(a+b*log(c*x^n))+-1//4*b*m*n*e^-2*f^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*f^-1*x^-2)+1//8*b*m*n*e^-2*f^2*(a+b*log(c*x^n))*log(1+e*f^-1*x^-2))
@test integrate(x^2*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m), x) == :(-2//9*m*x^3*(a+b*log(c*x^n))^2+1//3*x^3*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+-4//27*m*b^2*n^2*x^3+2//27*b^2*n^2*x^3*log(d*(e+f*x^2)^m)+-2//9*b*n*x^3*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-1//3*m*f^-3//2*(-1*e)^3//2*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1*e)^-1//2)+1//3*m*f^-3//2*(-1*e)^3//2*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1*e)^-1//2)+2//3*e*m*x*f^-1*(a+b*log(c*x^n))^2+8//27*b*m*n*x^3*(a+b*log(c*x^n))+-4//27*m*b^2*e^3//2*f^-3//2*n^2*arctan(x*e^-1//2*f^(1/2))+-2//3*m*b^2*f^-3//2*n^2*(-1*e)^3//2*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1*e)^-1//2)+2//3*m*b^2*f^-3//2*n^2*(-1*e)^3//2*Polylogarithms.polylog(3,x*f^(1/2)*(-1*e)^-1//2)+52//27*e*m*x*b^2*f^-1*n^2+-16//9*a*b*e*m*n*x*f^-1+-16//9*e*m*n*x*b^2*f^-1*log(c*x^n)+-2//3*b*m*n*f^-3//2*(-1*e)^3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1*e)^-1//2)+-2//9*im*m*b^2*e^3//2*f^-3//2*n^2*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2))+2//3*b*m*n*f^-3//2*(-1*e)^3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1*e)^-1//2)+2//9*im*m*b^2*e^3//2*f^-3//2*n^2*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2))+4//9*b*m*n*e^3//2*f^-3//2*(a+b*log(c*x^n))*arctan(x*e^-1//2*f^(1/2)))
@test integrate((a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m), x) == :(x*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+-2*m*x*(a+b*log(c*x^n))^2+-8*m*x*b^2*n^2+2*x*b^2*n^2*log(d*(e+f*x^2)^m)+m*f^-1//2*(-1*e)^(1/2)*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1*e)^-1//2)+-1*m*f^-1//2*(-1*e)^(1/2)*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1*e)^-1//2)+-2*a*b*n*x*log(d*(e+f*x^2)^m)+-2*n*x*b^2*log(c*x^n)*log(d*(e+f*x^2)^m)+4*a*b*m*n*x+4*b*m*n*x*(a+-1*b*n)+8*m*n*x*b^2*log(c*x^n)+-2*m*b^2*f^-1//2*n^2*(-1*e)^(1/2)*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1*e)^-1//2)+2*m*b^2*f^-1//2*n^2*(-1*e)^(1/2)*Polylogarithms.polylog(3,x*f^(1/2)*(-1*e)^-1//2)+-4*b*m*n*e^(1/2)*f^-1//2*(a+-1*b*n)*arctan(x*e^-1//2*f^(1/2))+-4*m*n*b^2*e^(1/2)*f^-1//2*arctan(x*e^-1//2*f^(1/2))*log(c*x^n)+-2*im*m*b^2*e^(1/2)*f^-1//2*n^2*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2))+-2*b*m*n*f^-1//2*(-1*e)^(1/2)*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1*e)^-1//2)+2*im*m*b^2*e^(1/2)*f^-1//2*n^2*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2))+2*b*m*n*f^-1//2*(-1*e)^(1/2)*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1*e)^-1//2))
@test integrate(x^-2*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m), x) == :(-1*x^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+-2*b^2*n^2*x^-1*log(d*(e+f*x^2)^m)+m*f^(1/2)*(-1*e)^-1//2*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1*e)^-1//2)+-1*m*f^(1/2)*(-1*e)^-1//2*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1*e)^-1//2)+-2*b*n*x^-1*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-2*m*b^2*f^(1/2)*n^2*(-1*e)^-1//2*Polylogarithms.polylog(3,x*f^(1/2)*(-1*e)^-1//2)+2*m*b^2*f^(1/2)*n^2*(-1*e)^-1//2*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1*e)^-1//2)+4*m*b^2*e^-1//2*f^(1/2)*n^2*arctan(x*e^-1//2*f^(1/2))+-2*im*m*b^2*e^-1//2*f^(1/2)*n^2*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2))+-2*b*m*n*f^(1/2)*(-1*e)^-1//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1*e)^-1//2)+2*im*m*b^2*e^-1//2*f^(1/2)*n^2*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2))+2*b*m*n*f^(1/2)*(-1*e)^-1//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1*e)^-1//2)+4*b*m*n*e^-1//2*f^(1/2)*(a+b*log(c*x^n))*arctan(x*e^-1//2*f^(1/2)))
@test integrate(x^-4*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m), x) == :(-1//3*x^-3*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+-2//27*b^2*n^2*x^-3*log(d*(e+f*x^2)^m)+-2//3*f*m*e^-1*x^-1*(a+b*log(c*x^n))^2+-2//9*b*n*x^-3*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-1//3*m*f^3//2*(-1*e)^-3//2*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1*e)^-1//2)+1//3*m*f^3//2*(-1*e)^-3//2*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1*e)^-1//2)+-52//27*f*m*b^2*e^-1*n^2*x^-1+-4//27*m*b^2*e^-3//2*f^3//2*n^2*arctan(x*e^-1//2*f^(1/2))+-2//3*m*b^2*f^3//2*n^2*(-1*e)^-3//2*Polylogarithms.polylog(3,x*f^(1/2)*(-1*e)^-1//2)+2//3*m*b^2*f^3//2*n^2*(-1*e)^-3//2*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1*e)^-1//2)+-16//9*b*f*m*n*e^-1*x^-1*(a+b*log(c*x^n))+-4//9*b*m*n*e^-3//2*f^3//2*(a+b*log(c*x^n))*arctan(x*e^-1//2*f^(1/2))+-2//3*b*m*n*f^3//2*(-1*e)^-3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1*e)^-1//2)+-2//9*im*m*b^2*e^-3//2*f^3//2*n^2*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2))+2//3*b*m*n*f^3//2*(-1*e)^-3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1*e)^-1//2)+2//9*im*m*b^2*e^-3//2*f^3//2*n^2*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2)))
@test integrate(x*(a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m), x) == :((1/2)*x^2*(a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m)+-1//2*m*x^2*(a+b*log(c*x^n))^3+-3//8*b^3*n^3*x^2*log(d*(e+f*x^2)^m)+3//2*m*b^3*n^3*x^2+(1/2)*e*m*f^-1*(a+b*log(c*x^n))^3*log(1+f*e^-1*x^2)+-9//4*m*b^2*n^2*x^2*(a+b*log(c*x^n))+-3//4*b*n*x^2*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+3//2*b*m*n*x^2*(a+b*log(c*x^n))^2+3//4*b^2*n^2*x^2*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-3//8*e*m*b^3*f^-1*n^3*log(e+f*x^2)+3//8*e*m*b^3*f^-1*n^3*Polylogarithms.polylog(2,-1*f*e^-1*x^2)+3//8*e*m*b^3*f^-1*n^3*Polylogarithms.polylog(3,-1*f*e^-1*x^2)+3//8*e*m*b^3*f^-1*n^3*Polylogarithms.polylog(4,-1*f*e^-1*x^2)+-3//4*b*e*m*n*f^-1*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^2)+-3//4*e*m*b^2*f^-1*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^2)+-3//4*e*m*b^2*f^-1*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*f*e^-1*x^2)+3//4*b*e*m*n*f^-1*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*f*e^-1*x^2)+3//4*e*m*b^2*f^-1*n^2*(a+b*log(c*x^n))*log(1+f*e^-1*x^2))
@test integrate(x^-1*(a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m), x) == :(-1//2*m*(a+b*log(c*x^n))^3*Polylogarithms.polylog(2,-1*f*e^-1*x^2)+1//4*b^-1*n^-1*(a+b*log(c*x^n))^4*log(d*(e+f*x^2)^m)+3//8*m*b^3*n^3*Polylogarithms.polylog(5,-1*f*e^-1*x^2)+-3//4*m*b^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(4,-1*f*e^-1*x^2)+-1//4*m*b^-1*n^-1*(a+b*log(c*x^n))^4*log(1+f*e^-1*x^2)+3//4*b*m*n*(a+b*log(c*x^n))^2*Polylogarithms.polylog(3,-1*f*e^-1*x^2))
@test integrate(x^-3*(a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m), x) == :(-1//2*x^-2*(a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m)+-3//8*b^3*n^3*x^-2*log(d*(e+f*x^2)^m)+-3//4*b*n*x^-2*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+-3//4*b^2*n^2*x^-2*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-1//2*f*m*e^-1*(a+b*log(c*x^n))^3*log(1+e*f^-1*x^-2)+-3//8*f*m*b^3*e^-1*n^3*log(e+f*x^2)+3//4*f*m*b^3*e^-1*n^3*log(x)+3//8*f*m*b^3*e^-1*n^3*Polylogarithms.polylog(2,-1*e*f^-1*x^-2)+3//8*f*m*b^3*e^-1*n^3*Polylogarithms.polylog(3,-1*e*f^-1*x^-2)+3//8*f*m*b^3*e^-1*n^3*Polylogarithms.polylog(4,-1*e*f^-1*x^-2)+-3//4*b*f*m*n*e^-1*(a+b*log(c*x^n))^2*log(1+e*f^-1*x^-2)+-3//4*f*m*b^2*e^-1*n^2*(a+b*log(c*x^n))*log(1+e*f^-1*x^-2)+3//4*b*f*m*n*e^-1*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*e*f^-1*x^-2)+3//4*f*m*b^2*e^-1*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*e*f^-1*x^-2)+3//4*f*m*b^2*e^-1*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*e*f^-1*x^-2))
@test integrate(x^2*(a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m), x) == :(-2//9*m*x^3*(a+b*log(c*x^n))^3+1//3*x^3*(a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m)+-2//27*b^3*n^3*x^3*log(d*(e+f*x^2)^m)+16//81*m*b^3*n^3*x^3+-4//9*m*b^2*n^2*x^3*(a+b*log(c*x^n))+-1//3*b*n*x^3*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+-1//3*m*f^-3//2*(-1*e)^3//2*(a+b*log(c*x^n))^3*log(1+-1*x*f^(1/2)*(-1*e)^-1//2)+1//3*m*f^-3//2*(-1*e)^3//2*(a+b*log(c*x^n))^3*log(1+x*f^(1/2)*(-1*e)^-1//2)+2//3*e*m*x*f^-1*(a+b*log(c*x^n))^3+2//9*b^2*n^2*x^3*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+4//9*b*m*n*x^3*(a+b*log(c*x^n))^2+-2*m*b^3*f^-3//2*n^3*(-1*e)^3//2*Polylogarithms.polylog(4,x*f^(1/2)*(-1*e)^-1//2)+2*m*b^3*f^-3//2*n^3*(-1*e)^3//2*Polylogarithms.polylog(4,-1*x*f^(1/2)*(-1*e)^-1//2)+-160//27*e*m*x*b^3*f^-1*n^3+-2//3*m*b^3*f^-3//2*n^3*(-1*e)^3//2*Polylogarithms.polylog(3,x*f^(1/2)*(-1*e)^-1//2)+2//3*m*b^3*f^-3//2*n^3*(-1*e)^3//2*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1*e)^-1//2)+4//27*m*b^3*e^3//2*f^-3//2*n^3*arctan(x*e^-1//2*f^(1/2))+b*m*n*f^-3//2*(-1*e)^3//2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1*e)^-1//2)+-1*b*m*n*f^-3//2*(-1*e)^3//2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,x*f^(1/2)*(-1*e)^-1//2)+-2*m*b^2*f^-3//2*n^2*(-1*e)^3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1*e)^-1//2)+2*m*b^2*f^-3//2*n^2*(-1*e)^3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,x*f^(1/2)*(-1*e)^-1//2)+-8//3*b*e*m*n*x*f^-1*(a+b*log(c*x^n))^2+-4//9*m*b^2*e^3//2*f^-3//2*n^2*(a+b*log(c*x^n))*arctan(x*e^-1//2*f^(1/2))+-2//3*m*b^2*f^-3//2*n^2*(-1*e)^3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1*e)^-1//2)+-2//9*im*m*b^3*e^3//2*f^-3//2*n^3*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2))+-1//3*b*m*n*f^-3//2*(-1*e)^3//2*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1*e)^-1//2)+1//3*b*m*n*f^-3//2*(-1*e)^3//2*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1*e)^-1//2)+2//3*m*b^2*f^-3//2*n^2*(-1*e)^3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1*e)^-1//2)+2//9*im*m*b^3*e^3//2*f^-3//2*n^3*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2))+52//9*a*e*m*x*b^2*f^-1*n^2+52//9*e*m*x*b^3*f^-1*n^2*log(c*x^n))
@test integrate((a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m), x) == :(x*(a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m)+-2*m*x*(a+b*log(c*x^n))^3+-6*x*b^3*n^3*log(d*(e+f*x^2)^m)+36*m*x*b^3*n^3+m*f^-1//2*(-1*e)^(1/2)*(a+b*log(c*x^n))^3*log(1+x*f^(1/2)*(-1*e)^-1//2)+-1*m*f^-1//2*(-1*e)^(1/2)*(a+b*log(c*x^n))^3*log(1+-1*x*f^(1/2)*(-1*e)^-1//2)+-36*m*x*b^3*n^2*log(c*x^n)+-24*a*m*x*b^2*n^2+-12*m*x*b^2*n^2*(a+-1*b*n)+-3*b*n*x*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+6*a*x*b^2*n^2*log(d*(e+f*x^2)^m)+6*x*b^3*n^2*log(c*x^n)*log(d*(e+f*x^2)^m)+12*b*m*n*x*(a+b*log(c*x^n))^2+-6*m*b^3*f^-1//2*n^3*(-1*e)^(1/2)*Polylogarithms.polylog(3,x*f^(1/2)*(-1*e)^-1//2)+-6*m*b^3*f^-1//2*n^3*(-1*e)^(1/2)*Polylogarithms.polylog(4,x*f^(1/2)*(-1*e)^-1//2)+6*m*b^3*f^-1//2*n^3*(-1*e)^(1/2)*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1*e)^-1//2)+6*m*b^3*f^-1//2*n^3*(-1*e)^(1/2)*Polylogarithms.polylog(4,-1*x*f^(1/2)*(-1*e)^-1//2)+-6*im*m*b^3*e^(1/2)*f^-1//2*n^3*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2))+-6*m*b^2*f^-1//2*n^2*(-1*e)^(1/2)*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1*e)^-1//2)+-6*m*b^2*f^-1//2*n^2*(-1*e)^(1/2)*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1*e)^-1//2)+-3*b*m*n*f^-1//2*(-1*e)^(1/2)*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,x*f^(1/2)*(-1*e)^-1//2)+-3*b*m*n*f^-1//2*(-1*e)^(1/2)*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1*e)^-1//2)+3*b*m*n*f^-1//2*(-1*e)^(1/2)*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1*e)^-1//2)+3*b*m*n*f^-1//2*(-1*e)^(1/2)*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1*e)^-1//2)+6*im*m*b^3*e^(1/2)*f^-1//2*n^3*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2))+6*m*b^2*f^-1//2*n^2*(-1*e)^(1/2)*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1*e)^-1//2)+6*m*b^2*f^-1//2*n^2*(-1*e)^(1/2)*(a+b*log(c*x^n))*Polylogarithms.polylog(3,x*f^(1/2)*(-1*e)^-1//2)+12*m*b^2*e^(1/2)*f^-1//2*n^2*(a+-1*b*n)*arctan(x*e^-1//2*f^(1/2))+12*m*b^3*e^(1/2)*f^-1//2*n^2*arctan(x*e^-1//2*f^(1/2))*log(c*x^n))
@test integrate(x^-2*(a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m), x) == :(-1*x^-1*(a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m)+-6*b^3*n^3*x^-1*log(d*(e+f*x^2)^m)+m*f^(1/2)*(-1*e)^-1//2*(a+b*log(c*x^n))^3*log(1+-1*x*f^(1/2)*(-1*e)^-1//2)+-1*m*f^(1/2)*(-1*e)^-1//2*(a+b*log(c*x^n))^3*log(1+x*f^(1/2)*(-1*e)^-1//2)+-6*b^2*n^2*x^-1*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-3*b*n*x^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+-6*m*b^3*f^(1/2)*n^3*(-1*e)^-1//2*Polylogarithms.polylog(3,x*f^(1/2)*(-1*e)^-1//2)+-6*m*b^3*f^(1/2)*n^3*(-1*e)^-1//2*Polylogarithms.polylog(4,-1*x*f^(1/2)*(-1*e)^-1//2)+6*m*b^3*f^(1/2)*n^3*(-1*e)^-1//2*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1*e)^-1//2)+6*m*b^3*f^(1/2)*n^3*(-1*e)^-1//2*Polylogarithms.polylog(4,x*f^(1/2)*(-1*e)^-1//2)+12*m*b^3*e^-1//2*f^(1/2)*n^3*arctan(x*e^-1//2*f^(1/2))+-6*im*m*b^3*e^-1//2*f^(1/2)*n^3*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2))+-6*m*b^2*f^(1/2)*n^2*(-1*e)^-1//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1*e)^-1//2)+-6*m*b^2*f^(1/2)*n^2*(-1*e)^-1//2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,x*f^(1/2)*(-1*e)^-1//2)+-3*b*m*n*f^(1/2)*(-1*e)^-1//2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1*e)^-1//2)+-3*b*m*n*f^(1/2)*(-1*e)^-1//2*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1*e)^-1//2)+3*b*m*n*f^(1/2)*(-1*e)^-1//2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,x*f^(1/2)*(-1*e)^-1//2)+3*b*m*n*f^(1/2)*(-1*e)^-1//2*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1*e)^-1//2)+6*im*m*b^3*e^-1//2*f^(1/2)*n^3*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2))+6*m*b^2*f^(1/2)*n^2*(-1*e)^-1//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1*e)^-1//2)+6*m*b^2*f^(1/2)*n^2*(-1*e)^-1//2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1*e)^-1//2)+12*m*b^2*e^-1//2*f^(1/2)*n^2*(a+b*log(c*x^n))*arctan(x*e^-1//2*f^(1/2)))
@test integrate(x^-4*(a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m), x) == :(-1//3*x^-3*(a+b*log(c*x^n))^3*log(d*(e+f*x^2)^m)+-2//27*b^3*n^3*x^-3*log(d*(e+f*x^2)^m)+-2//3*f*m*e^-1*x^-1*(a+b*log(c*x^n))^3+-2//9*b^2*n^2*x^-3*(a+b*log(c*x^n))*log(d*(e+f*x^2)^m)+-1//3*b*n*x^-3*(a+b*log(c*x^n))^2*log(d*(e+f*x^2)^m)+-1//3*m*f^3//2*(-1*e)^-3//2*(a+b*log(c*x^n))^3*log(1+x*f^(1/2)*(-1*e)^-1//2)+1//3*m*f^3//2*(-1*e)^-3//2*(a+b*log(c*x^n))^3*log(1+-1*x*f^(1/2)*(-1*e)^-1//2)+-2*m*b^3*f^3//2*n^3*(-1*e)^-3//2*Polylogarithms.polylog(4,-1*x*f^(1/2)*(-1*e)^-1//2)+2*m*b^3*f^3//2*n^3*(-1*e)^-3//2*Polylogarithms.polylog(4,x*f^(1/2)*(-1*e)^-1//2)+-160//27*f*m*b^3*e^-1*n^3*x^-1+-4//27*m*b^3*e^-3//2*f^3//2*n^3*arctan(x*e^-1//2*f^(1/2))+-2//3*m*b^3*f^3//2*n^3*(-1*e)^-3//2*Polylogarithms.polylog(3,x*f^(1/2)*(-1*e)^-1//2)+2//3*m*b^3*f^3//2*n^3*(-1*e)^-3//2*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1*e)^-1//2)+b*m*n*f^3//2*(-1*e)^-3//2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,x*f^(1/2)*(-1*e)^-1//2)+-1*b*m*n*f^3//2*(-1*e)^-3//2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1*e)^-1//2)+-2*m*b^2*f^3//2*n^2*(-1*e)^-3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,x*f^(1/2)*(-1*e)^-1//2)+2*m*b^2*f^3//2*n^2*(-1*e)^-3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*x*f^(1/2)*(-1*e)^-1//2)+-52//9*f*m*b^2*e^-1*n^2*x^-1*(a+b*log(c*x^n))+-8//3*b*f*m*n*e^-1*x^-1*(a+b*log(c*x^n))^2+-4//9*m*b^2*e^-3//2*f^3//2*n^2*(a+b*log(c*x^n))*arctan(x*e^-1//2*f^(1/2))+-2//3*m*b^2*f^3//2*n^2*(-1*e)^-3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*x*f^(1/2)*(-1*e)^-1//2)+-2//9*im*m*b^3*e^-3//2*f^3//2*n^3*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2))+-1//3*b*m*n*f^3//2*(-1*e)^-3//2*(a+b*log(c*x^n))^2*log(1+x*f^(1/2)*(-1*e)^-1//2)+1//3*b*m*n*f^3//2*(-1*e)^-3//2*(a+b*log(c*x^n))^2*log(1+-1*x*f^(1/2)*(-1*e)^-1//2)+2//3*m*b^2*f^3//2*n^2*(-1*e)^-3//2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,x*f^(1/2)*(-1*e)^-1//2)+2//9*im*m*b^3*e^-3//2*f^3//2*n^3*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2)))
@test integrate(x^2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k), x) == :(-1//18*k*x^3*(a+b*log(c*x^n))+1//3*x^3*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k)+-1//9*b*n*x^3*log(d*(e+f*x^(1/2))^k)+1//27*b*k*n*x^3+-1//3*k*e^6*f^-6*(a+b*log(c*x^n))*log(e+f*x^(1/2))+-1//6*k*x*e^4*f^-4*(a+b*log(c*x^n))+-1//12*k*e^2*f^-2*x^2*(a+b*log(c*x^n))+1//3*k*e^5*f^-5*x^(1/2)*(a+b*log(c*x^n))+1//9*k*e^3*f^-3*x^3//2*(a+b*log(c*x^n))+1//15*e*k*f^-1*x^5//2*(a+b*log(c*x^n))+-11//225*b*e*k*n*f^-1*x^5//2+-7//9*b*k*n*e^5*f^-5*x^(1/2)+-1//9*b*k*n*e^3*f^-3*x^3//2+1//9*b*k*n*e^6*f^-6*log(e+f*x^(1/2))+2//3*b*k*n*e^6*f^-6*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+2//9*b*k*n*x*e^4*f^-4+5//72*b*k*n*e^2*f^-2*x^2+2//3*b*k*n*e^6*f^-6*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2)))
@test integrate(x*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k), x) == :((1/2)*x^2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k)+-1//8*k*x^2*(a+b*log(c*x^n))+-1//4*b*n*x^2*log(d*(e+f*x^(1/2))^k)+1//8*b*k*n*x^2+(1/2)*k*e^3*f^-3*x^(1/2)*(a+b*log(c*x^n))+-1//2*k*e^4*f^-4*(a+b*log(c*x^n))*log(e+f*x^(1/2))+-1//4*k*x*e^2*f^-2*(a+b*log(c*x^n))+1//6*e*k*f^-1*x^3//2*(a+b*log(c*x^n))+b*k*n*e^4*f^-4*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-7//36*b*e*k*n*f^-1*x^3//2+-5//4*b*k*n*e^3*f^-3*x^(1/2)+1//4*b*k*n*e^4*f^-4*log(e+f*x^(1/2))+3//8*b*k*n*x*e^2*f^-2+b*k*n*e^4*f^-4*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2)))
@test integrate((a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k), x) == :(x*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k)+-1//2*k*x*(a+b*log(c*x^n))+b*k*n*x+-1*b*n*x*log(d*(e+f*x^(1/2))^k)+e*k*f^-1*x^(1/2)*(a+b*log(c*x^n))+-1*k*e^2*f^-2*(a+b*log(c*x^n))*log(e+f*x^(1/2))+b*k*n*e^2*f^-2*log(e+f*x^(1/2))+-3*b*e*k*n*f^-1*x^(1/2)+2*b*k*n*e^2*f^-2*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+2*b*k*n*e^2*f^-2*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2)))
@test integrate(x^-1*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k), x) == :(-2*k*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+(1/2)*b^-1*n^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2))^k)+4*b*k*n*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+-1//2*k*b^-1*n^-1*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^(1/2)))
@test integrate(x^-2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k), x) == :(-1*x^-1*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k)+-1*b*n*x^-1*log(d*(e+f*x^(1/2))^k)+k*e^-2*f^2*(a+b*log(c*x^n))*log(e+f*x^(1/2))+-1*f*k*e^-1*x^-1//2*(a+b*log(c*x^n))+-1//2*k*e^-2*f^2*(a+b*log(c*x^n))*log(x)+b*k*n*e^-2*f^2*log(e+f*x^(1/2))+-3*b*f*k*n*e^-1*x^-1//2+-2*b*k*n*e^-2*f^2*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-1//2*b*k*n*e^-2*f^2*log(x)+1//4*b*k*n*e^-2*f^2*log(x)^2+-2*b*k*n*e^-2*f^2*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2)))
@test integrate(x^-3*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k), x) == :(-1//2*x^-2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k)+-1//4*b*n*x^-2*log(d*(e+f*x^(1/2))^k)+(1/2)*k*e^-4*f^4*(a+b*log(c*x^n))*log(e+f*x^(1/2))+-1//2*k*e^-3*f^3*x^-1//2*(a+b*log(c*x^n))+-1//4*k*e^-4*f^4*(a+b*log(c*x^n))*log(x)+-1//6*f*k*e^-1*x^-3//2*(a+b*log(c*x^n))+1//4*k*e^-2*f^2*x^-1*(a+b*log(c*x^n))+-1*b*k*n*e^-4*f^4*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-7//36*b*f*k*n*e^-1*x^-3//2+-5//4*b*k*n*e^-3*f^3*x^-1//2+-1//8*b*k*n*e^-4*f^4*log(x)+1//4*b*k*n*e^-4*f^4*log(e+f*x^(1/2))+1//8*b*k*n*e^-4*f^4*log(x)^2+3//8*b*k*n*e^-2*f^2*x^-1+-1*b*k*n*e^-4*f^4*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2)))
@test integrate(x^-4*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k), x) == :(-1//3*x^-3*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k)+-1//9*b*n*x^-3*log(d*(e+f*x^(1/2))^k)+-1//3*k*e^-5*f^5*x^-1//2*(a+b*log(c*x^n))+-1//6*k*e^-6*f^6*(a+b*log(c*x^n))*log(x)+-1//9*k*e^-3*f^3*x^-3//2*(a+b*log(c*x^n))+-1//15*f*k*e^-1*x^-5//2*(a+b*log(c*x^n))+1//3*k*e^-6*f^6*(a+b*log(c*x^n))*log(e+f*x^(1/2))+1//6*k*e^-4*f^4*x^-1*(a+b*log(c*x^n))+1//12*k*e^-2*f^2*x^-2*(a+b*log(c*x^n))+-11//225*b*f*k*n*e^-1*x^-5//2+-7//9*b*k*n*e^-5*f^5*x^-1//2+-2//3*b*k*n*e^-6*f^6*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-1//9*b*k*n*e^-3*f^3*x^-3//2+-1//18*b*k*n*e^-6*f^6*log(x)+1//9*b*k*n*e^-6*f^6*log(e+f*x^(1/2))+1//12*b*k*n*e^-6*f^6*log(x)^2+2//9*b*k*n*e^-4*f^4*x^-1+5//72*b*k*n*e^-2*f^2*x^-2+-2//3*b*k*n*e^-6*f^6*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2)))
@test integrate(x^2*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2))), x) == :(-1//18*x^3*(a+b*log(c*x^n))^2+-1//27*b^2*n^2*x^3+1//3*x^3*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2)))+-1//3*e^6*f^-6*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^(1/2))+-1//6*x*e^4*f^-4*(a+b*log(c*x^n))^2+-1//12*e^2*f^-2*x^2*(a+b*log(c*x^n))^2+1//3*e^5*f^-5*x^(1/2)*(a+b*log(c*x^n))^2+1//9*e^3*f^-3*x^3//2*(a+b*log(c*x^n))^2+1//15*e*f^-1*x^5//2*(a+b*log(c*x^n))^2+2//27*b*n*x^3*(a+b*log(c*x^n))+2//27*b^2*n^2*x^3*log(d*(e+f*x^(1/2)))+-19//216*b^2*e^2*f^-2*n^2*x^2+-13//27*x*b^2*e^4*f^-4*n^2+-4//9*b^2*e^6*f^-6*n^2*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-2//9*b*n*x^3*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2)))+-2//27*b^2*e^6*f^-6*n^2*log(e+f*x^(1/2))+8//3*b^2*e^6*f^-6*n^2*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+14//81*b^2*e^3*f^-3*n^2*x^3//2+86//27*b^2*e^5*f^-5*n^2*x^(1/2)+182//3375*e*b^2*f^-1*n^2*x^5//2+-22//225*b*e*n*f^-1*x^5//2*(a+b*log(c*x^n))+-14//9*b*n*e^5*f^-5*x^(1/2)*(a+b*log(c*x^n))+-4//3*b*n*e^6*f^-6*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+-4//9*b^2*e^6*f^-6*n^2*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2))+-2//9*b*n*e^3*f^-3*x^3//2*(a+b*log(c*x^n))+1//3*a*b*n*x*e^4*f^-4+1//3*n*x*b^2*e^4*f^-4*log(c*x^n)+1//9*b*n*x*e^4*f^-4*(a+b*log(c*x^n))+2//9*b*n*e^6*f^-6*(a+b*log(c*x^n))*log(e+f*x^(1/2))+5//36*b*n*e^2*f^-2*x^2*(a+b*log(c*x^n)))
@test integrate(x*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2))), x) == :(-1//8*x^2*(a+b*log(c*x^n))^2+(1/2)*x^2*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2)))+-3//16*b^2*n^2*x^2+(1/2)*e^3*f^-3*x^(1/2)*(a+b*log(c*x^n))^2+-1//2*e^4*f^-4*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^(1/2))+-1//4*x*e^2*f^-2*(a+b*log(c*x^n))^2+1//4*b*n*x^2*(a+b*log(c*x^n))+1//4*b^2*n^2*x^2*log(d*(e+f*x^(1/2)))+1//6*e*f^-1*x^3//2*(a+b*log(c*x^n))^2+-1*b^2*e^4*f^-4*n^2*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+4*b^2*e^4*f^-4*n^2*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+-7//8*x*b^2*e^2*f^-2*n^2+-1//2*b*n*x^2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2)))+-1//4*b^2*e^4*f^-4*n^2*log(e+f*x^(1/2))+21//4*b^2*e^3*f^-3*n^2*x^(1/2)+37//108*e*b^2*f^-1*n^2*x^3//2+(1/2)*a*b*n*x*e^2*f^-2+(1/2)*b*n*e^4*f^-4*(a+b*log(c*x^n))*log(e+f*x^(1/2))+(1/2)*n*x*b^2*e^2*f^-2*log(c*x^n)+-1*b^2*e^4*f^-4*n^2*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2))+-2*b*n*e^4*f^-4*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+-7//18*b*e*n*f^-1*x^3//2*(a+b*log(c*x^n))+-5//2*b*n*e^3*f^-3*x^(1/2)*(a+b*log(c*x^n))+1//4*b*n*x*e^2*f^-2*(a+b*log(c*x^n)))
@test integrate((a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2))), x) == :(-1//2*x*(a+b*log(c*x^n))^2+x*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2)))+-3*x*b^2*n^2+a*b*n*x+b*n*x*(a+b*log(c*x^n))+e*f^-1*x^(1/2)*(a+b*log(c*x^n))^2+n*x*b^2*log(c*x^n)+-1*e^2*f^-2*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^(1/2))+2*x*b^2*n^2*log(d*(e+f*x^(1/2)))+-4*b^2*e^2*f^-2*n^2*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-2*b*n*x*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2)))+-2*b^2*e^2*f^-2*n^2*log(e+f*x^(1/2))+8*b^2*e^2*f^-2*n^2*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+14*e*b^2*f^-1*n^2*x^(1/2)+-6*b*e*n*f^-1*x^(1/2)*(a+b*log(c*x^n))+-4*b*n*e^2*f^-2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+-4*b^2*e^2*f^-2*n^2*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2))+2*b*n*e^2*f^-2*(a+b*log(c*x^n))*log(e+f*x^(1/2)))
@test integrate(x^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2))), x) == :(-2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+-16*b^2*n^2*Polylogarithms.polylog(4,-1*f*e^-1*x^(1/2))+8*b*n*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+-1//3*b^-1*n^-1*(a+b*log(c*x^n))^3*log(1+f*e^-1*x^(1/2))+1//3*b^-1*n^-1*(a+b*log(c*x^n))^3*log(d*(e+f*x^(1/2))))
@test integrate(x^-2*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2))), x) == :(-1*x^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2)))+e^-2*f^2*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^(1/2))+-1*f*e^-1*x^-1//2*(a+b*log(c*x^n))^2+-2*b^2*n^2*x^-1*log(d*(e+f*x^(1/2)))+(1/2)*b^2*e^-2*f^2*n^2*log(x)^2+-1*b^2*e^-2*f^2*n^2*log(x)+-14*f*b^2*e^-1*n^2*x^-1//2+-8*b^2*e^-2*f^2*n^2*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+-4*b^2*e^-2*f^2*n^2*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-2*b*n*x^-1*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2)))+2*b^2*e^-2*f^2*n^2*log(e+f*x^(1/2))+-1//6*b^-1*e^-2*f^2*n^-1*(a+b*log(c*x^n))^3+-1*b*n*e^-2*f^2*(a+b*log(c*x^n))*log(x)+-6*b*f*n*e^-1*x^-1//2*(a+b*log(c*x^n))+-4*b^2*e^-2*f^2*n^2*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2))+2*b*n*e^-2*f^2*(a+b*log(c*x^n))*log(e+f*x^(1/2))+4*b*n*e^-2*f^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2)))
@test integrate(x^-3*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2))), x) == :(-1//2*x^-2*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2)))+(1/2)*e^-4*f^4*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^(1/2))+-1//2*e^-3*f^3*x^-1//2*(a+b*log(c*x^n))^2+-1//4*b^2*n^2*x^-2*log(d*(e+f*x^(1/2)))+-1//6*f*e^-1*x^-3//2*(a+b*log(c*x^n))^2+1//4*e^-2*f^2*x^-1*(a+b*log(c*x^n))^2+-1*b^2*e^-4*f^4*n^2*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-4*b^2*e^-4*f^4*n^2*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+-37//108*f*b^2*e^-1*n^2*x^-3//2+-21//4*b^2*e^-3*f^3*n^2*x^-1//2+-1//2*b*n*x^-2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2)))+-1//8*b^2*e^-4*f^4*n^2*log(x)+-1//12*b^-1*e^-4*f^4*n^-1*(a+b*log(c*x^n))^3+1//4*b^2*e^-4*f^4*n^2*log(e+f*x^(1/2))+1//8*b^2*e^-4*f^4*n^2*log(x)^2+7//8*b^2*e^-2*f^2*n^2*x^-1+(1/2)*b*n*e^-4*f^4*(a+b*log(c*x^n))*log(e+f*x^(1/2))+-1*b^2*e^-4*f^4*n^2*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2))+2*b*n*e^-4*f^4*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+-7//18*b*f*n*e^-1*x^-3//2*(a+b*log(c*x^n))+-5//2*b*n*e^-3*f^3*x^-1//2*(a+b*log(c*x^n))+-1//4*b*n*e^-4*f^4*(a+b*log(c*x^n))*log(x)+3//4*b*n*e^-2*f^2*x^-1*(a+b*log(c*x^n)))
@test integrate(x*(a+b*log(c*x^n))^3*log(d*(e+f*x^(1/2))), x) == :(-1//8*x^2*(a+b*log(c*x^n))^3+(1/2)*x^2*(a+b*log(c*x^n))^3*log(d*(e+f*x^(1/2)))+3//8*b^3*n^3*x^2+(1/2)*e^3*f^-3*x^(1/2)*(a+b*log(c*x^n))^3+-9//16*b^2*n^2*x^2*(a+b*log(c*x^n))+-3//8*b^3*n^3*x^2*log(d*(e+f*x^(1/2)))+-1//2*e^4*f^-4*(a+b*log(c*x^n))^3*log(1+f*e^-1*x^(1/2))+-1//4*x*e^2*f^-2*(a+b*log(c*x^n))^3+1//6*e*f^-1*x^3//2*(a+b*log(c*x^n))^3+3//8*b*n*x^2*(a+b*log(c*x^n))^2+-24*b^3*e^4*f^-4*n^3*Polylogarithms.polylog(4,-1*f*e^-1*x^(1/2))+-6*b^3*e^4*f^-4*n^3*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+-255//8*b^3*e^3*f^-3*n^3*x^(1/2)+-175//216*e*b^3*f^-1*n^3*x^3//2+-3//4*b*n*x^2*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2)))+3//2*b^3*e^4*f^-4*n^3*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+3//4*b^2*n^2*x^2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2)))+3//8*b^3*e^4*f^-4*n^3*log(e+f*x^(1/2))+45//16*x*b^3*e^2*f^-2*n^3+-3*b*n*e^4*f^-4*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+3*b^2*e^4*f^-4*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+12*b^2*e^4*f^-4*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+-15//4*b*n*e^3*f^-3*x^(1/2)*(a+b*log(c*x^n))^2+-9//4*a*x*b^2*e^2*f^-2*n^2+-9//4*x*b^3*e^2*f^-2*n^2*log(c*x^n)+-7//12*b*e*n*f^-1*x^3//2*(a+b*log(c*x^n))^2+-3//4*b^2*e^4*f^-4*n^2*(a+b*log(c*x^n))*log(e+f*x^(1/2))+-3//8*x*b^2*e^2*f^-2*n^2*(a+b*log(c*x^n))+3//2*b^3*e^4*f^-4*n^3*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2))+3//4*b*n*e^4*f^-4*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^(1/2))+9//8*b*n*x*e^2*f^-2*(a+b*log(c*x^n))^2+37//36*e*b^2*f^-1*n^2*x^3//2*(a+b*log(c*x^n))+63//4*b^2*e^3*f^-3*n^2*x^(1/2)*(a+b*log(c*x^n)))
@test integrate((a+b*log(c*x^n))^3*log(d*(e+f*x^(1/2))), x) == :(-1//2*x*(a+b*log(c*x^n))^3+x*(a+b*log(c*x^n))^3*log(d*(e+f*x^(1/2)))+12*x*b^3*n^3+e*f^-1*x^(1/2)*(a+b*log(c*x^n))^3+-1*e^2*f^-2*(a+b*log(c*x^n))^3*log(1+f*e^-1*x^(1/2))+-6*a*x*b^2*n^2+-6*x*b^3*n^2*log(c*x^n)+-6*x*b^3*n^3*log(d*(e+f*x^(1/2)))+-3*x*b^2*n^2*(a+b*log(c*x^n))+3*b*n*x*(a+b*log(c*x^n))^2+-90*e*b^3*f^-1*n^3*x^(1/2)+-48*b^3*e^2*f^-2*n^3*Polylogarithms.polylog(4,-1*f*e^-1*x^(1/2))+-24*b^3*e^2*f^-2*n^3*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+-3*b*n*x*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2)))+6*x*b^2*n^2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2)))+6*b^3*e^2*f^-2*n^3*log(e+f*x^(1/2))+12*b^3*e^2*f^-2*n^3*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-9*b*e*n*f^-1*x^(1/2)*(a+b*log(c*x^n))^2+-6*b*n*e^2*f^-2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+-6*b^2*e^2*f^-2*n^2*(a+b*log(c*x^n))*log(e+f*x^(1/2))+3*b*n*e^2*f^-2*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^(1/2))+12*b^2*e^2*f^-2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+12*b^3*e^2*f^-2*n^3*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2))+24*b^2*e^2*f^-2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+42*e*b^2*f^-1*n^2*x^(1/2)*(a+b*log(c*x^n)))
@test integrate(x^-1*(a+b*log(c*x^n))^3*log(d*(e+f*x^(1/2))), x) == :(-2*(a+b*log(c*x^n))^3*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+96*b^3*n^3*Polylogarithms.polylog(5,-1*f*e^-1*x^(1/2))+-48*b^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(4,-1*f*e^-1*x^(1/2))+12*b*n*(a+b*log(c*x^n))^2*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+-1//4*b^-1*n^-1*(a+b*log(c*x^n))^4*log(1+f*e^-1*x^(1/2))+1//4*b^-1*n^-1*(a+b*log(c*x^n))^4*log(d*(e+f*x^(1/2))))
@test integrate(x^-2*(a+b*log(c*x^n))^3*log(d*(e+f*x^(1/2))), x) == :(-1*x^-1*(a+b*log(c*x^n))^3*log(d*(e+f*x^(1/2)))+-1//2*e^-2*f^2*(a+b*log(c*x^n))^3+e^-2*f^2*(a+b*log(c*x^n))^3*log(1+f*e^-1*x^(1/2))+-1*f*e^-1*x^-1//2*(a+b*log(c*x^n))^3+-6*b^3*n^3*x^-1*log(d*(e+f*x^(1/2)))+-90*f*b^3*e^-1*n^3*x^-1//2+-24*b^3*e^-2*f^2*n^3*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+-12*b^3*e^-2*f^2*n^3*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-6*b^2*n^2*x^-1*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2)))+-3*b*n*x^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2)))+-3*b^3*e^-2*f^2*n^3*log(x)+6*b^3*e^-2*f^2*n^3*log(e+f*x^(1/2))+48*b^3*e^-2*f^2*n^3*Polylogarithms.polylog(4,-1*f*e^-1*x^(1/2))+-1//8*b^-1*e^-2*f^2*n^-1*(a+b*log(c*x^n))^4+3//2*b^3*e^-2*f^2*n^3*log(x)^2+-42*f*b^2*e^-1*n^2*x^-1//2*(a+b*log(c*x^n))+-24*b^2*e^-2*f^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+-12*b^3*e^-2*f^2*n^3*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2))+-9*b*f*n*e^-1*x^-1//2*(a+b*log(c*x^n))^2+-3*b^2*e^-2*f^2*n^2*(a+b*log(c*x^n))*log(x)+3*b*n*e^-2*f^2*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^(1/2))+6*b*n*e^-2*f^2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+6*b^2*e^-2*f^2*n^2*(a+b*log(c*x^n))*log(e+f*x^(1/2))+12*b^2*e^-2*f^2*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2)))
@test integrate(x^-3*(a+b*log(c*x^n))^3*log(d*(e+f*x^(1/2))), x) == :(-1//2*x^-2*(a+b*log(c*x^n))^3*log(d*(e+f*x^(1/2)))+-1//8*e^-4*f^4*(a+b*log(c*x^n))^3+(1/2)*e^-4*f^4*(a+b*log(c*x^n))^3*log(1+f*e^-1*x^(1/2))+-3//8*b^3*n^3*x^-2*log(d*(e+f*x^(1/2)))+-1//2*e^-3*f^3*x^-1//2*(a+b*log(c*x^n))^3+-1//6*f*e^-1*x^-3//2*(a+b*log(c*x^n))^3+1//4*e^-2*f^2*x^-1*(a+b*log(c*x^n))^3+-6*b^3*e^-4*f^4*n^3*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+24*b^3*e^-4*f^4*n^3*Polylogarithms.polylog(4,-1*f*e^-1*x^(1/2))+-255//8*b^3*e^-3*f^3*n^3*x^-1//2+-175//216*f*b^3*e^-1*n^3*x^-3//2+-3//2*b^3*e^-4*f^4*n^3*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-3//4*b*n*x^-2*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2)))+-3//4*b^2*n^2*x^-2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2)))+-3//16*b^3*e^-4*f^4*n^3*log(x)+-1//16*b^-1*e^-4*f^4*n^-1*(a+b*log(c*x^n))^4+3//8*b^3*e^-4*f^4*n^3*log(e+f*x^(1/2))+3//16*b^3*e^-4*f^4*n^3*log(x)^2+45//16*b^3*e^-2*f^2*n^3*x^-1+-12*b^2*e^-4*f^4*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*f*e^-1*x^(1/2))+3*b*n*e^-4*f^4*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+3*b^2*e^-4*f^4*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^(1/2))+-63//4*b^2*e^-3*f^3*n^2*x^-1//2*(a+b*log(c*x^n))+-37//36*f*b^2*e^-1*n^2*x^-3//2*(a+b*log(c*x^n))+-15//4*b*n*e^-3*f^3*x^-1//2*(a+b*log(c*x^n))^2+-7//12*b*f*n*e^-1*x^-3//2*(a+b*log(c*x^n))^2+-3//2*b^3*e^-4*f^4*n^3*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2))+-3//8*b^2*e^-4*f^4*n^2*(a+b*log(c*x^n))*log(x)+3//4*b*n*e^-4*f^4*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^(1/2))+3//4*b^2*e^-4*f^4*n^2*(a+b*log(c*x^n))*log(e+f*x^(1/2))+9//8*b*n*e^-2*f^2*x^-1*(a+b*log(c*x^n))^2+21//8*b^2*e^-2*f^2*n^2*x^-1*(a+b*log(c*x^n)))
@test integrate(x^3//2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k), x) == :(-2//25*k*x^5//2*(a+b*log(c*x^n))+2//5*x^5//2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k)+-4//25*b*n*x^5//2*log(d*(e+f*x^(1/2))^k)+8//125*b*k*n*x^5//2+-2//5*k*e^4*f^-4*x^(1/2)*(a+b*log(c*x^n))+-2//15*k*e^2*f^-2*x^3//2*(a+b*log(c*x^n))+1//5*k*x*e^3*f^-3*(a+b*log(c*x^n))+1//10*e*k*f^-1*x^2*(a+b*log(c*x^n))+2//5*k*e^5*f^-5*(a+b*log(c*x^n))*log(e+f*x^(1/2))+-9//100*b*e*k*n*f^-1*x^2+-7//25*b*k*n*x*e^3*f^-3+-4//5*b*k*n*e^5*f^-5*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-4//25*b*k*n*e^5*f^-5*log(e+f*x^(1/2))+24//25*b*k*n*e^4*f^-4*x^(1/2)+32//225*b*k*n*e^2*f^-2*x^3//2+-4//5*b*k*n*e^5*f^-5*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2)))
@test integrate(x^(1/2)*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k), x) == :(-2//9*k*x^3//2*(a+b*log(c*x^n))+2//3*x^3//2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k)+-4//9*b*n*x^3//2*log(d*(e+f*x^(1/2))^k)+8//27*b*k*n*x^3//2+-2//3*k*e^2*f^-2*x^(1/2)*(a+b*log(c*x^n))+1//3*e*k*x*f^-1*(a+b*log(c*x^n))+2//3*k*e^3*f^-3*(a+b*log(c*x^n))*log(e+f*x^(1/2))+-5//9*b*e*k*n*x*f^-1+-4//3*b*k*n*e^3*f^-3*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-4//9*b*k*n*e^3*f^-3*log(e+f*x^(1/2))+16//9*b*k*n*e^2*f^-2*x^(1/2)+-4//3*b*k*n*e^3*f^-3*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2)))
@test integrate(x^-3//2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k), x) == :(-2*x^-1//2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k)+-4*b*n*x^-1//2*log(d*(e+f*x^(1/2))^k)+f*k*e^-1*(a+b*log(c*x^n))*log(x)+-2*f*k*e^-1*(a+b*log(c*x^n))*log(e+f*x^(1/2))+-4*b*f*k*n*e^-1*log(e+f*x^(1/2))+2*b*f*k*n*e^-1*log(x)+4*b*f*k*n*e^-1*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+-1//2*b*f*k*n*e^-1*log(x)^2+4*b*f*k*n*e^-1*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2)))
@test integrate(x^-5//2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k), x) == :(-2//3*x^-3//2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k)+-4//9*b*n*x^-3//2*log(d*(e+f*x^(1/2))^k)+-2//3*k*e^-3*f^3*(a+b*log(c*x^n))*log(e+f*x^(1/2))+-1//3*f*k*e^-1*x^-1*(a+b*log(c*x^n))+1//3*k*e^-3*f^3*(a+b*log(c*x^n))*log(x)+2//3*k*e^-2*f^2*x^-1//2*(a+b*log(c*x^n))+-5//9*b*f*k*n*e^-1*x^-1+-4//9*b*k*n*e^-3*f^3*log(e+f*x^(1/2))+-1//6*b*k*n*e^-3*f^3*log(x)^2+2//9*b*k*n*e^-3*f^3*log(x)+4//3*b*k*n*e^-3*f^3*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+16//9*b*k*n*e^-2*f^2*x^-1//2+4//3*b*k*n*e^-3*f^3*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2)))
@test integrate(x^-7//2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k), x) == :(-2//5*x^-5//2*(a+b*log(c*x^n))*log(d*(e+f*x^(1/2))^k)+-4//25*b*n*x^-5//2*log(d*(e+f*x^(1/2))^k)+-2//5*k*e^-5*f^5*(a+b*log(c*x^n))*log(e+f*x^(1/2))+-1//5*k*e^-3*f^3*x^-1*(a+b*log(c*x^n))+-1//10*f*k*e^-1*x^-2*(a+b*log(c*x^n))+1//5*k*e^-5*f^5*(a+b*log(c*x^n))*log(x)+2//5*k*e^-4*f^4*x^-1//2*(a+b*log(c*x^n))+2//15*k*e^-2*f^2*x^-3//2*(a+b*log(c*x^n))+-9//100*b*f*k*n*e^-1*x^-2+-7//25*b*k*n*e^-3*f^3*x^-1+-4//25*b*k*n*e^-5*f^5*log(e+f*x^(1/2))+-1//10*b*k*n*e^-5*f^5*log(x)^2+2//25*b*k*n*e^-5*f^5*log(x)+4//5*b*k*n*e^-5*f^5*Polylogarithms.polylog(2,1+f*e^-1*x^(1/2))+24//25*b*k*n*e^-4*f^4*x^-1//2+32//225*b*k*n*e^-2*f^2*x^-3//2+4//5*b*k*n*e^-5*f^5*log(-1*f*e^-1*x^(1/2))*log(e+f*x^(1/2)))
@test integrate(x^-1*(a+b*log(c*x^n))^3*log(d*(e+f*x^m)^r), x) == :(-1*r*m^-1*(a+b*log(c*x^n))^3*Polylogarithms.polylog(2,-1*f*e^-1*x^m)+1//4*b^-1*n^-1*(a+b*log(c*x^n))^4*log(d*(e+f*x^m)^r)+6*r*b^3*m^-4*n^3*Polylogarithms.polylog(5,-1*f*e^-1*x^m)+-1//4*r*b^-1*n^-1*(a+b*log(c*x^n))^4*log(1+f*e^-1*x^m)+-6*r*b^2*m^-3*n^2*(a+b*log(c*x^n))*Polylogarithms.polylog(4,-1*f*e^-1*x^m)+3*b*n*r*m^-2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(3,-1*f*e^-1*x^m))
@test integrate(x^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x^m)^r), x) == :(-1*r*m^-1*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2,-1*f*e^-1*x^m)+1//3*b^-1*n^-1*(a+b*log(c*x^n))^3*log(d*(e+f*x^m)^r)+-2*r*b^2*m^-3*n^2*Polylogarithms.polylog(4,-1*f*e^-1*x^m)+-1//3*r*b^-1*n^-1*(a+b*log(c*x^n))^3*log(1+f*e^-1*x^m)+2*b*n*r*m^-2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,-1*f*e^-1*x^m))
@test integrate(x^-1*(a+b*log(c*x^n))*log(d*(e+f*x^m)^r), x) == :((1/2)*b^-1*n^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x^m)^r)+-1*r*m^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^m)+b*n*r*m^-2*Polylogarithms.polylog(3,-1*f*e^-1*x^m)+-1//2*r*b^-1*n^-1*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^m))
@test integrate(x^-1*(a+b*log(c*x^n))*log(d*(e+f*x^m)^k), x) == :((1/2)*b^-1*n^-1*(a+b*log(c*x^n))^2*log(d*(e+f*x^m)^k)+-1*k*m^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(2,-1*f*e^-1*x^m)+b*k*n*m^-2*Polylogarithms.polylog(3,-1*f*e^-1*x^m)+-1//2*k*b^-1*n^-1*(a+b*log(c*x^n))^2*log(1+f*e^-1*x^m))
@test integrate((g*x)^(-1+3m)*(a+b*log(c*x^n))*log(d*(e+f*x^m)^k), x) == :(-1//9*k*g^-1*m^-1*(g*x)^(3m)*(a+b*log(c*x^n))+1//3*g^-1*m^-1*(g*x)^(3m)*(a+b*log(c*x^n))*log(d*(e+f*x^m)^k)+-1//9*b*n*g^-1*m^-2*(g*x)^(3m)*log(d*(e+f*x^m)^k)+2//27*b*k*n*g^-1*m^-2*(g*x)^(3m)+-1//3*k*e^2*f^-2*g^-1*m^-1*x^(-2m)*(g*x)^(3m)*(a+b*log(c*x^n))+1//6*e*k*f^-1*g^-1*m^-1*x^(-1m)*(g*x)^(3m)*(a+b*log(c*x^n))+-5//36*b*e*k*n*f^-1*g^-1*m^-2*x^(-1m)*(g*x)^(3m)+1//3*k*e^3*f^-3*g^-1*m^-1*x^(-3m)*(g*x)^(3m)*(a+b*log(c*x^n))*log(e+f*x^m)+4//9*b*k*n*e^2*f^-2*g^-1*m^-2*x^(-2m)*(g*x)^(3m)+-1//3*b*k*n*e^3*f^-3*g^-1*m^-2*x^(-3m)*(g*x)^(3m)*Polylogarithms.polylog(2,1+f*e^-1*x^m)+-1//9*b*k*n*e^3*f^-3*g^-1*m^-2*x^(-3m)*(g*x)^(3m)*log(e+f*x^m)+-1//3*b*k*n*e^3*f^-3*g^-1*m^-2*x^(-3m)*(g*x)^(3m)*log(-1*f*e^-1*x^m)*log(e+f*x^m))
@test integrate((g*x)^(-1+2m)*(a+b*log(c*x^n))*log(d*(e+f*x^m)^k), x) == :((1/2)*g^-1*m^-1*(g*x)^(2m)*(a+b*log(c*x^n))*log(d*(e+f*x^m)^k)+-1//4*k*g^-1*m^-1*(g*x)^(2m)*(a+b*log(c*x^n))+-1//4*b*n*g^-1*m^-2*(g*x)^(2m)*log(d*(e+f*x^m)^k)+1//4*b*k*n*g^-1*m^-2*(g*x)^(2m)+(1/2)*e*k*f^-1*g^-1*m^-1*x^(-1m)*(g*x)^(2m)*(a+b*log(c*x^n))+-3//4*b*e*k*n*f^-1*g^-1*m^-2*x^(-1m)*(g*x)^(2m)+-1//2*k*e^2*f^-2*g^-1*m^-1*x^(-2m)*(g*x)^(2m)*(a+b*log(c*x^n))*log(e+f*x^m)+(1/2)*b*k*n*e^2*f^-2*g^-1*m^-2*x^(-2m)*(g*x)^(2m)*Polylogarithms.polylog(2,1+f*e^-1*x^m)+1//4*b*k*n*e^2*f^-2*g^-1*m^-2*x^(-2m)*(g*x)^(2m)*log(e+f*x^m)+(1/2)*b*k*n*e^2*f^-2*g^-1*m^-2*x^(-2m)*(g*x)^(2m)*log(-1*f*e^-1*x^m)*log(e+f*x^m))
@test integrate((g*x)^(-1+m)*(a+b*log(c*x^n))*log(d*(e+f*x^m)^k), x) == :(g^-1*m^-1*(g*x)^m*(a+b*log(c*x^n))*log(d*(e+f*x^m)^k)+-1*k*g^-1*m^-1*(g*x)^m*(a+b*log(c*x^n))+-1*b*n*g^-1*m^-2*(g*x)^m*log(d*(e+f*x^m)^k)+2*b*k*n*g^-1*m^-2*(g*x)^m+e*k*f^-1*g^-1*m^-1*x^(-1m)*(g*x)^m*(a+b*log(c*x^n))*log(e+f*x^m)+-1*b*e*k*n*f^-1*g^-1*m^-2*x^(-1m)*(g*x)^m*Polylogarithms.polylog(2,1+f*e^-1*x^m)+-1*b*e*k*n*f^-1*g^-1*m^-2*x^(-1m)*(g*x)^m*log(e+f*x^m)+-1*b*e*k*n*f^-1*g^-1*m^-2*x^(-1m)*(g*x)^m*log(-1*f*e^-1*x^m)*log(e+f*x^m))
@test integrate((g*x)^(-1+-1m)*(a+b*log(c*x^n))*log(d*(e+f*x^m)^k), x) == :(-1*g^-1*m^-1*(g*x)^(-1m)*(a+b*log(c*x^n))*log(d*(e+f*x^m)^k)+-1*b*n*g^-1*m^-2*(g*x)^(-1m)*log(d*(e+f*x^m)^k)+f*k*e^-1*g^-1*x^m*(g*x)^(-1m)*(a+b*log(c*x^n))*log(x)+-1*f*k*e^-1*g^-1*m^-1*x^m*(g*x)^(-1m)*(a+b*log(c*x^n))*log(e+f*x^m)+-1//2*b*f*k*n*e^-1*g^-1*x^m*(g*x)^(-1m)*log(x)^2+b*f*k*n*e^-1*g^-1*m^-1*x^m*(g*x)^(-1m)*log(x)+b*f*k*n*e^-1*g^-1*m^-2*x^m*(g*x)^(-1m)*Polylogarithms.polylog(2,1+f*e^-1*x^m)+-1*b*f*k*n*e^-1*g^-1*m^-2*x^m*(g*x)^(-1m)*log(e+f*x^m)+b*f*k*n*e^-1*g^-1*m^-2*x^m*(g*x)^(-1m)*log(-1*f*e^-1*x^m)*log(e+f*x^m))
@test integrate((g*x)^(-1+-2m)*(a+b*log(c*x^n))*log(d*(e+f*x^m)^k), x) == :(-1//2*g^-1*m^-1*(g*x)^(-2m)*(a+b*log(c*x^n))*log(d*(e+f*x^m)^k)+-1//4*b*n*g^-1*m^-2*(g*x)^(-2m)*log(d*(e+f*x^m)^k)+-1//2*f*k*e^-1*g^-1*m^-1*x^m*(g*x)^(-2m)*(a+b*log(c*x^n))+-1//2*k*e^-2*f^2*g^-1*x^(2m)*(g*x)^(-2m)*(a+b*log(c*x^n))*log(x)+(1/2)*k*e^-2*f^2*g^-1*m^-1*x^(2m)*(g*x)^(-2m)*(a+b*log(c*x^n))*log(e+f*x^m)+-3//4*b*f*k*n*e^-1*g^-1*m^-2*x^m*(g*x)^(-2m)+1//4*b*k*n*e^-2*f^2*g^-1*x^(2m)*(g*x)^(-2m)*log(x)^2+-1//2*b*k*n*e^-2*f^2*g^-1*m^-2*x^(2m)*(g*x)^(-2m)*Polylogarithms.polylog(2,1+f*e^-1*x^m)+-1//4*b*k*n*e^-2*f^2*g^-1*m^-1*x^(2m)*(g*x)^(-2m)*log(x)+1//4*b*k*n*e^-2*f^2*g^-1*m^-2*x^(2m)*(g*x)^(-2m)*log(e+f*x^m)+-1//2*b*k*n*e^-2*f^2*g^-1*m^-2*x^(2m)*(g*x)^(-2m)*log(-1*f*e^-1*x^m)*log(e+f*x^m))
@test integrate((g*x)^(-1+-3m)*(a+b*log(c*x^n))*log(d*(e+f*x^m)^k), x) == :(-1//3*g^-1*m^-1*(g*x)^(-3m)*(a+b*log(c*x^n))*log(d*(e+f*x^m)^k)+-1//9*b*n*g^-1*m^-2*(g*x)^(-3m)*log(d*(e+f*x^m)^k)+-1//6*f*k*e^-1*g^-1*m^-1*x^m*(g*x)^(-3m)*(a+b*log(c*x^n))+1//3*k*e^-3*f^3*g^-1*x^(3m)*(g*x)^(-3m)*(a+b*log(c*x^n))*log(x)+1//3*k*e^-2*f^2*g^-1*m^-1*x^(2m)*(g*x)^(-3m)*(a+b*log(c*x^n))+-5//36*b*f*k*n*e^-1*g^-1*m^-2*x^m*(g*x)^(-3m)+-1//3*k*e^-3*f^3*g^-1*m^-1*x^(3m)*(g*x)^(-3m)*(a+b*log(c*x^n))*log(e+f*x^m)+-1//6*b*k*n*e^-3*f^3*g^-1*x^(3m)*(g*x)^(-3m)*log(x)^2+4//9*b*k*n*e^-2*f^2*g^-1*m^-2*x^(2m)*(g*x)^(-3m)+-1//9*b*k*n*e^-3*f^3*g^-1*m^-2*x^(3m)*(g*x)^(-3m)*log(e+f*x^m)+1//3*b*k*n*e^-3*f^3*g^-1*m^-2*x^(3m)*(g*x)^(-3m)*Polylogarithms.polylog(2,1+f*e^-1*x^m)+1//9*b*k*n*e^-3*f^3*g^-1*m^-1*x^(3m)*(g*x)^(-3m)*log(x)+1//3*b*k*n*e^-3*f^3*g^-1*m^-2*x^(3m)*(g*x)^(-3m)*log(-1*f*e^-1*x^m)*log(e+f*x^m))
@test integrate(x^2*(a+b*log(c*x^n))*(d+e*log(f*x^r)), x) == :(1//3*x^3*(a+b*log(c*x^n))*(d+e*log(f*x^r))+-1//9*b*n*x^3*(d+e*log(f*x^r))+-1//27*e*r*x^3*(3a+-1*b*n+3*b*log(c*x^n))+1//27*b*e*n*r*x^3)
@test integrate(x*(a+b*log(c*x^n))*(d+e*log(f*x^r)), x) == :((1/2)*x^2*(a+b*log(c*x^n))*(d+e*log(f*x^r))+-1//4*b*n*x^2*(d+e*log(f*x^r))+-1//8*e*r*x^2*(2a+-1*b*n+2*b*log(c*x^n))+1//8*b*e*n*r*x^2)
@test integrate((a+b*log(c*x^n))*(d+e*log(f*x^r)), x) == :(a*x*(d+e*log(f*x^r))+b*x*(d+e*log(f*x^r))*log(c*x^n)+-1*b*n*x*(d+e*log(f*x^r))+-1*e*r*x*(a+-1*b*n)+b*e*n*r*x+-1*b*e*r*x*log(c*x^n))
@test integrate(x^-1*(a+b*log(c*x^n))*(d+e*log(f*x^r)), x) == :((1/2)*b^-1*n^-1*(a+b*log(c*x^n))^2*(d+e*log(f*x^r))+-1//6*e*r*b^-2*n^-2*(a+b*log(c*x^n))^3)
@test integrate(x^-2*(a+b*log(c*x^n))*(d+e*log(f*x^r)), x) == :(-1*x^-1*(a+b*log(c*x^n))*(d+e*log(f*x^r))+-1*b*n*x^-1*(d+e*log(f*x^r))+-1*e*r*x^-1*(a+b*n+b*log(c*x^n))+-1*b*e*n*r*x^-1)
@test integrate(x^-3*(a+b*log(c*x^n))*(d+e*log(f*x^r)), x) == :(-1//2*x^-2*(a+b*log(c*x^n))*(d+e*log(f*x^r))+-1//4*b*n*x^-2*(d+e*log(f*x^r))+-1//8*e*r*x^-2*(2a+b*n+2*b*log(c*x^n))+-1//8*b*e*n*r*x^-2)
@test integrate(x^-4*(a+b*log(c*x^n))*(d+e*log(f*x^r)), x) == :(-1//3*x^-3*(a+b*log(c*x^n))*(d+e*log(f*x^r))+-1//9*b*n*x^-3*(d+e*log(f*x^r))+-1//27*e*r*x^-3*(3a+b*n+3*b*log(c*x^n))+-1//27*b*e*n*r*x^-3)
@test integrate(x^2*(a+b*log(c*x^n))^2*(d+e*log(f*x^r)), x) == :(1//3*x^3*(a+b*log(c*x^n))^2*(d+e*log(f*x^r))+-1//81*e*r*x^3*(9*a^2+2*b^2*n^2+-6*a*b*n)+2//27*b^2*n^2*x^3*(d+e*log(f*x^r))+-2//9*b*n*x^3*(a+b*log(c*x^n))*(d+e*log(f*x^r))+-2//81*e*r*b^2*n^2*x^3+-1//9*e*r*b^2*x^3*log(c*x^n)^2+-2//27*b*e*r*x^3*(3a+-1*b*n)*log(c*x^n)+2//27*e*n*r*b^2*x^3*log(c*x^n)+2//81*b*e*n*r*x^3*(3a+-1*b*n))
@test integrate(x*(a+b*log(c*x^n))^2*(d+e*log(f*x^r)), x) == :((1/2)*x^2*(a+b*log(c*x^n))^2*(d+e*log(f*x^r))+-1//8*e*r*x^2*(2*a^2+b^2*n^2+-2*a*b*n)+1//4*b^2*n^2*x^2*(d+e*log(f*x^r))+-1//2*b*n*x^2*(a+b*log(c*x^n))*(d+e*log(f*x^r))+-1//4*e*r*b^2*x^2*log(c*x^n)^2+-1//8*e*r*b^2*n^2*x^2+-1//4*b*e*r*x^2*(2a+-1*b*n)*log(c*x^n)+1//4*e*n*r*b^2*x^2*log(c*x^n)+1//8*b*e*n*r*x^2*(2a+-1*b*n))
@test integrate((a+b*log(c*x^n))^2*(d+e*log(f*x^r)), x) == :(x*(a+b*log(c*x^n))^2*(d+e*log(f*x^r))+-1*e*r*x*(a+b*log(c*x^n))^2+2*x*b^2*n^2*(d+e*log(f*x^r))+-4*e*r*x*b^2*n^2+-2*a*b*n*x*(d+e*log(f*x^r))+-2*n*x*b^2*(d+e*log(f*x^r))*log(c*x^n)+2*a*b*e*n*r*x+2*b*e*n*r*x*(a+-1*b*n)+4*e*n*r*x*b^2*log(c*x^n))
@test integrate(x^-1*(a+b*log(c*x^n))^2*(d+e*log(f*x^r)), x) == :(1//3*b^-1*n^-1*(a+b*log(c*x^n))^3*(d+e*log(f*x^r))+-1//12*e*r*b^-2*n^-2*(a+b*log(c*x^n))^4)
@test integrate(x^-2*(a+b*log(c*x^n))^2*(d+e*log(f*x^r)), x) == :(-1*x^-1*(a+b*log(c*x^n))^2*(d+e*log(f*x^r))+-1*e*r*x^-1*(a^2+2*b^2*n^2+2*a*b*n)+-2*b^2*n^2*x^-1*(d+e*log(f*x^r))+-1*e*r*b^2*x^-1*log(c*x^n)^2+-2*b*n*x^-1*(a+b*log(c*x^n))*(d+e*log(f*x^r))+-2*e*r*b^2*n^2*x^-1+-2*b*e*n*r*x^-1*(a+b*n)+-2*b*e*r*x^-1*(a+b*n)*log(c*x^n)+-2*e*n*r*b^2*x^-1*log(c*x^n))
@test integrate(x^-3*(a+b*log(c*x^n))^2*(d+e*log(f*x^r)), x) == :(-1//2*x^-2*(a+b*log(c*x^n))^2*(d+e*log(f*x^r))+-1//4*b^2*n^2*x^-2*(d+e*log(f*x^r))+-1//8*e*r*x^-2*(2*a^2+b^2*n^2+2*a*b*n)+-1//2*b*n*x^-2*(a+b*log(c*x^n))*(d+e*log(f*x^r))+-1//4*e*r*b^2*x^-2*log(c*x^n)^2+-1//8*e*r*b^2*n^2*x^-2+-1//4*b*e*r*x^-2*(2a+b*n)*log(c*x^n)+-1//4*e*n*r*b^2*x^-2*log(c*x^n)+-1//8*b*e*n*r*x^-2*(2a+b*n))
@test integrate(x^-4*(a+b*log(c*x^n))^2*(d+e*log(f*x^r)), x) == :(-1//3*x^-3*(a+b*log(c*x^n))^2*(d+e*log(f*x^r))+-2//27*b^2*n^2*x^-3*(d+e*log(f*x^r))+-1//81*e*r*x^-3*(9*a^2+2*b^2*n^2+6*a*b*n)+-2//9*b*n*x^-3*(a+b*log(c*x^n))*(d+e*log(f*x^r))+-2//81*e*r*b^2*n^2*x^-3+-1//9*e*r*b^2*x^-3*log(c*x^n)^2+-2//27*b*e*r*x^-3*(3a+b*n)*log(c*x^n)+-2//27*e*n*r*b^2*x^-3*log(c*x^n)+-2//81*b*e*n*r*x^-3*(3a+b*n))
@test integrate(x^2*(d+e*log(f*x^m))^-1*(a+b*log(c*x^n)), x) == :(1//3*b*n*e^-1*m^-1*x^3+e^-1*m^-1*x^3*(f*x^m)^(-3*m^-1)*(a+b*log(c*x^n))*exp(-3*d*e^-1*m^-1)*expintegralei(e^-1*m^-1*(3d+3*e*log(f*x^m)))+-1*b*n*e^-2*m^-2*x^3*(f*x^m)^(-3*m^-1)*(d+e*log(f*x^m))*exp(-3*d*e^-1*m^-1)*expintegralei(e^-1*m^-1*(3d+3*e*log(f*x^m))))
@test integrate(x*(d+e*log(f*x^m))^-1*(a+b*log(c*x^n)), x) == :((1/2)*b*n*e^-1*m^-1*x^2+e^-1*m^-1*x^2*(f*x^m)^(-2*m^-1)*(a+b*log(c*x^n))*exp(-2*d*e^-1*m^-1)*expintegralei(e^-1*m^-1*(2d+2*e*log(f*x^m)))+-1*b*n*e^-2*m^-2*x^2*(f*x^m)^(-2*m^-1)*(d+e*log(f*x^m))*exp(-2*d*e^-1*m^-1)*expintegralei(e^-1*m^-1*(2d+2*e*log(f*x^m))))
@test integrate((d+e*log(f*x^m))^-1*(a+b*log(c*x^n)), x) == :(b*n*x*e^-1*m^-1+x*e^-1*m^-1*(f*x^m)^(-1*m^-1)*(a+b*log(c*x^n))*exp(-1*d*e^-1*m^-1)*expintegralei(e^-1*m^-1*(d+e*log(f*x^m)))+-1*b*n*x*e^-2*m^-2*(f*x^m)^(-1*m^-1)*(d+e*log(f*x^m))*exp(-1*d*e^-1*m^-1)*expintegralei(e^-1*m^-1*(d+e*log(f*x^m))))
@test integrate(x^-1*(d+e*log(f*x^m))^-1*(a+b*log(c*x^n)), x) == :(e^-1*m^-1*(a+b*log(c*x^n))*log(d+e*log(f*x^m))+b*n*e^-1*m^-1*log(x)+-1*b*n*e^-2*m^-2*(d+e*log(f*x^m))*log(d+e*log(f*x^m)))
@test integrate(x^-2*(d+e*log(f*x^m))^-1*(a+b*log(c*x^n)), x) == :(-1*b*n*e^-1*m^-1*x^-1+e^-1*m^-1*x^-1*(f*x^m)^(m^-1)*(a+b*log(c*x^n))*exp(d*e^-1*m^-1)*expintegralei(-1*e^-1*m^-1*(d+e*log(f*x^m)))+-1*b*n*e^-2*m^-2*x^-1*(f*x^m)^(m^-1)*(d+e*log(f*x^m))*exp(d*e^-1*m^-1)*expintegralei(-1*e^-1*m^-1*(d+e*log(f*x^m))))
@test integrate(x^-3*(d+e*log(f*x^m))^-1*(a+b*log(c*x^n)), x) == :(-1//2*b*n*e^-1*m^-1*x^-2+e^-1*m^-1*x^-2*(f*x^m)^(2*m^-1)*(a+b*log(c*x^n))*exp(2*d*e^-1*m^-1)*expintegralei(-1*e^-1*m^-1*(2d+2*e*log(f*x^m)))+-1*b*n*e^-2*m^-2*x^-2*(f*x^m)^(2*m^-1)*(d+e*log(f*x^m))*exp(2*d*e^-1*m^-1)*expintegralei(-1*e^-1*m^-1*(2d+2*e*log(f*x^m))))
@test integrate(x^-1*log(x)^-1*(a+b*log(c*x^n)), x) == :((a+b*log(c*x^n))*log(log(x))+b*n*log(x)+-1*b*n*log(x)*log(log(x)))
@test integrate((g*x)^m*(a+b*log(c*x^n))^p*(d+e*log(f*x^r)), x) == :(g^-1*(c*x^n)^(-1*n^-1*(1+m))*(g*x)^(1+m)*(-1*b^-1*n^-1*(1+m)*(a+b*log(c*x^n)))^(-1p)*(1+m)^-1*(a+b*log(c*x^n))^p*(d+e*log(f*x^r))*SpecialFunctions.gamma(1+p,-1*b^-1*n^-1*(1+m)*(a+b*log(c*x^n)))*exp(-1*a*b^-1*n^-1*(1+m))+-1*e*r*x*(c*x^n)^(-1*n^-1*(1+m))*(g*x)^m*(-1*b^-1*n^-1*(1+m)*(a+b*log(c*x^n)))^(-1p)*(1+m)^-2*(a+b*log(c*x^n))^p*SpecialFunctions.gamma(2+p,-1*n^-1*(1+m)*log(c*x^n)+-1*a*b^-1*n^-1*(1+m))*exp(-1*a*b^-1*n^-1*(1+m))+-1*e*r*x*b^-1*n^-1*(c*x^n)^(-1*n^-1*(1+m))*(g*x)^m*(-1*b^-1*n^-1*(1+m)*(a+b*log(c*x^n)))^(-1p)*(1+m)^-1*(a+b*log(c*x^n))^(1+p)*SpecialFunctions.gamma(1+p,-1*n^-1*(1+m)*log(c*x^n)+-1*a*b^-1*n^-1*(1+m))*exp(-1*a*b^-1*n^-1*(1+m)))
@test integrate(x^2*(a+b*log(c*x^n))^p*(d+e*log(f*x^r)), x) == :(3^(-1+-1p)*x^3*(c*x^n)^(-3*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^p*(d+e*log(f*x^r))*SpecialFunctions.gamma(1+p,-1*b^-1*n^-1*(3a+3*b*log(c*x^n)))*exp(-3*a*b^-1*n^-1)+-1*e*r*3^(-2+-1p)*x^3*(c*x^n)^(-3*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^p*SpecialFunctions.gamma(2+p,-3*n^-1*log(c*x^n)+-3*a*b^-1*n^-1)*exp(-3*a*b^-1*n^-1)+-1*e*r*3^(-1+-1p)*b^-1*n^-1*x^3*(c*x^n)^(-3*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^(1+p)*SpecialFunctions.gamma(1+p,-3*n^-1*log(c*x^n)+-3*a*b^-1*n^-1)*exp(-3*a*b^-1*n^-1))
@test integrate(x*(a+b*log(c*x^n))^p*(d+e*log(f*x^r)), x) == :(2^(-1+-1p)*x^2*(c*x^n)^(-2*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^p*(d+e*log(f*x^r))*SpecialFunctions.gamma(1+p,-1*b^-1*n^-1*(2a+2*b*log(c*x^n)))*exp(-2*a*b^-1*n^-1)+-1*e*r*2^(-2+-1p)*x^2*(c*x^n)^(-2*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^p*SpecialFunctions.gamma(2+p,-2*n^-1*log(c*x^n)+-2*a*b^-1*n^-1)*exp(-2*a*b^-1*n^-1)+-1*e*r*2^(-1+-1p)*b^-1*n^-1*x^2*(c*x^n)^(-2*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^(1+p)*SpecialFunctions.gamma(1+p,-2*n^-1*log(c*x^n)+-2*a*b^-1*n^-1)*exp(-2*a*b^-1*n^-1))
@test integrate((a+b*log(c*x^n))^p*(d+e*log(f*x^r)), x) == :(x*(c*x^n)^(-1*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^p*(d+e*log(f*x^r))*SpecialFunctions.gamma(1+p,-1*b^-1*n^-1*(a+b*log(c*x^n)))*exp(-1*a*b^-1*n^-1)+-1*e*r*x*(c*x^n)^(-1*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^p*SpecialFunctions.gamma(2+p,-1*n^-1*log(c*x^n)+-1*a*b^-1*n^-1)*exp(-1*a*b^-1*n^-1)+-1*e*r*x*b^-1*n^-1*(c*x^n)^(-1*n^-1)*(-1*b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^(1+p)*SpecialFunctions.gamma(1+p,-1*n^-1*log(c*x^n)+-1*a*b^-1*n^-1)*exp(-1*a*b^-1*n^-1))
@test integrate(x^-1*(a+b*log(c*x^n))^p*(d+e*log(f*x^r)), x) == :(b^-1*n^-1*(1+p)^-1*(a+b*log(c*x^n))^(1+p)*(d+e*log(f*x^r))+-1*e*r*b^-2*n^-2*(1+p)^-1*(2+p)^-1*(a+b*log(c*x^n))^(2+p))
@test integrate(x^-2*(a+b*log(c*x^n))^p*(d+e*log(f*x^r)), x) == :(-1*x^-1*(c*x^n)^(n^-1)*(b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^p*(d+e*log(f*x^r))*SpecialFunctions.gamma(1+p,b^-1*n^-1*(a+b*log(c*x^n)))*exp(a*b^-1*n^-1)+-1*e*r*x^-1*(c*x^n)^(n^-1)*(b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^p*SpecialFunctions.gamma(2+p,n^-1*log(c*x^n)+a*b^-1*n^-1)*exp(a*b^-1*n^-1)+e*r*b^-1*n^-1*x^-1*(c*x^n)^(n^-1)*(b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^(1+p)*SpecialFunctions.gamma(1+p,n^-1*log(c*x^n)+a*b^-1*n^-1)*exp(a*b^-1*n^-1))
@test integrate(x^-3*(a+b*log(c*x^n))^p*(d+e*log(f*x^r)), x) == :(-1*2^(-1+-1p)*x^-2*(c*x^n)^(2*n^-1)*(b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^p*(d+e*log(f*x^r))*SpecialFunctions.gamma(1+p,b^-1*n^-1*(2a+2*b*log(c*x^n)))*exp(2*a*b^-1*n^-1)+-1*e*r*2^(-2+-1p)*x^-2*(c*x^n)^(2*n^-1)*(b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^p*SpecialFunctions.gamma(2+p,2*n^-1*log(c*x^n)+2*a*b^-1*n^-1)*exp(2*a*b^-1*n^-1)+e*r*2^(-1+-1p)*b^-1*n^-1*x^-2*(c*x^n)^(2*n^-1)*(b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^(1+p)*SpecialFunctions.gamma(1+p,2*n^-1*log(c*x^n)+2*a*b^-1*n^-1)*exp(2*a*b^-1*n^-1))
@test integrate(x^-4*(a+b*log(c*x^n))^p*(d+e*log(f*x^r)), x) == :(-1*3^(-1+-1p)*x^-3*(c*x^n)^(3*n^-1)*(b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^p*(d+e*log(f*x^r))*SpecialFunctions.gamma(1+p,b^-1*n^-1*(3a+3*b*log(c*x^n)))*exp(3*a*b^-1*n^-1)+-1*e*r*3^(-2+-1p)*x^-3*(c*x^n)^(3*n^-1)*(b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^p*SpecialFunctions.gamma(2+p,3*n^-1*log(c*x^n)+3*a*b^-1*n^-1)*exp(3*a*b^-1*n^-1)+e*r*3^(-1+-1p)*b^-1*n^-1*x^-3*(c*x^n)^(3*n^-1)*(b^-1*n^-1*(a+b*log(c*x^n)))^(-1p)*(a+b*log(c*x^n))^(1+p)*SpecialFunctions.gamma(1+p,3*n^-1*log(c*x^n)+3*a*b^-1*n^-1)*exp(3*a*b^-1*n^-1))
@test integrate((d+e*x^2)*arcsin(a*x)*log(c*x^n), x) == :(d*x*arcsin(a*x)*log(c*x^n)+-1*d*n*x*arcsin(a*x)+-1*d*n*a^-1*(1+-1*a^2*x^2)^(1/2)+-1//3*n*a^-3*(1+-1*a^2*x^2)^(1/2)*(e+3*d*a^2)+-1//9*e*n*a^-3*arctanh((1+-1*a^2*x^2)^(1/2))+-1//9*e*n*x^3*arcsin(a*x)+-1//9*e*a^-3*(1+-1*a^2*x^2)^3//2*log(c*x^n)+1//3*e*x^3*arcsin(a*x)*log(c*x^n)+1//3*n*a^-3*(e+3*d*a^2)*arctanh((1+-1*a^2*x^2)^(1/2))+1//3*a^-3*(1+-1*a^2*x^2)^(1/2)*(e+3*d*a^2)*log(c*x^n)+2//27*e*n*a^-3*(1+-1*a^2*x^2)^3//2)
@test integrate((d+e*x^2)*arccos(a*x)*log(c*x^n), x) == :(d*n*a^-1*(1+-1*a^2*x^2)^(1/2)+d*x*arccos(a*x)*log(c*x^n)+-1*d*n*x*arccos(a*x)+-2//27*e*n*a^-3*(1+-1*a^2*x^2)^3//2+-1//3*n*a^-3*(e+3*d*a^2)*arctanh((1+-1*a^2*x^2)^(1/2))+-1//3*a^-3*(1+-1*a^2*x^2)^(1/2)*(e+3*d*a^2)*log(c*x^n)+-1//9*e*n*x^3*arccos(a*x)+1//3*e*x^3*arccos(a*x)*log(c*x^n)+1//3*n*a^-3*(1+-1*a^2*x^2)^(1/2)*(e+3*d*a^2)+1//9*e*n*a^-3*arctanh((1+-1*a^2*x^2)^(1/2))+1//9*e*a^-3*(1+-1*a^2*x^2)^3//2*log(c*x^n))
@test integrate((d+e*x^2)*arctan(a*x)*log(c*x^n), x) == :(d*x*arctan(a*x)*log(c*x^n)+(1/2)*d*n*a^-1*log(1+a^2*x^2)+-1*d*n*x*arctan(a*x)+-1//6*e*a^-1*x^2*log(c*x^n)+-1//6*a^-3*(-1*e+3*d*a^2)*log(c*x^n)*log(1+a^2*x^2)+-1//9*e*n*x^3*arctan(a*x)+-1//12*n*a^-3*(-1*e+3*d*a^2)*Polylogarithms.polylog(2,-1*a^2*x^2)+-1//18*e*n*a^-3*log(1+a^2*x^2)+1//3*e*x^3*arctan(a*x)*log(c*x^n)+5//36*e*n*a^-1*x^2)
@test integrate((d+e*x^2)*arccot(a*x)*log(c*x^n), x) == :(d*x*arccot(a*x)*log(c*x^n)+-1*d*n*x*arccot(a*x)+-5//36*e*n*a^-1*x^2+-1//2*d*n*a^-1*log(1+a^2*x^2)+-1//9*e*n*x^3*arccot(a*x)+1//3*e*x^3*arccot(a*x)*log(c*x^n)+1//6*e*a^-1*x^2*log(c*x^n)+1//6*a^-3*(-1*e+3*d*a^2)*log(c*x^n)*log(1+a^2*x^2)+1//12*n*a^-3*(-1*e+3*d*a^2)*Polylogarithms.polylog(2,-1*a^2*x^2)+1//18*e*n*a^-3*log(1+a^2*x^2))
@test integrate((d+e*x^2)*arcsinh(a*x)*log(c*x^n), x) == :(d*n*a^-1*(1+a^2*x^2)^(1/2)+d*x*arcsinh(a*x)*log(c*x^n)+-1*d*n*x*arcsinh(a*x)+-1//3*n*a^-3*(-1*e+3*d*a^2)*arctanh((1+a^2*x^2)^(1/2))+-1//3*a^-3*(1+a^2*x^2)^(1/2)*(-1*e+3*d*a^2)*log(c*x^n)+-1//9*e*n*a^-3*arctanh((1+a^2*x^2)^(1/2))+-1//9*e*n*x^3*arcsinh(a*x)+-1//9*e*a^-3*(1+a^2*x^2)^3//2*log(c*x^n)+1//3*e*x^3*arcsinh(a*x)*log(c*x^n)+1//3*n*a^-3*(1+a^2*x^2)^(1/2)*(-1*e+3*d*a^2)+2//27*e*n*a^-3*(1+a^2*x^2)^3//2)
@test integrate((d+e*x^2)*arccosh(a*x)*log(c*x^n), x) == :(d*x*arccosh(a*x)*log(c*x^n)+-1*d*n*x*arccosh(a*x)+-1//9*e*n*x^3*arccosh(a*x)+-1//9*n*a^-3*(2*e+9*d*a^2)*arctan((1+a*x)^(1/2)*(-1+a*x)^(1/2))+1//3*e*x^3*arccosh(a*x)*log(c*x^n)+d*n*a^-1*(1+a*x)^(1/2)*(-1+a*x)^(1/2)+-1//9*a^-3*(1+a*x)^(1/2)*(-1+a*x)^(1/2)*(2*e+9*d*a^2)*log(c*x^n)+1//9*n*a^-3*(1+a*x)^(1/2)*(-1+a*x)^(1/2)*(2*e+9*d*a^2)+1//27*e*n*a^-3*(1+a*x)^3//2*(-1+a*x)^3//2+2//27*e*n*a^-3*(1+a*x)^(1/2)*(-1+a*x)^(1/2)+-1//9*e*a^-1*x^2*(1+a*x)^(1/2)*(-1+a*x)^(1/2)*log(c*x^n)+1//27*e*n*a^-1*x^2*(1+a*x)^(1/2)*(-1+a*x)^(1/2))
@test integrate((d+e*x^2)*arctanh(a*x)*log(c*x^n), x) == :(d*x*arctanh(a*x)*log(c*x^n)+-1*d*n*x*arctanh(a*x)+-5//36*e*n*a^-1*x^2+-1//2*d*n*a^-1*log(1+-1*a^2*x^2)+-1//9*e*n*x^3*arctanh(a*x)+-1//18*e*n*a^-3*log(1+-1*a^2*x^2)+1//3*e*x^3*arctanh(a*x)*log(c*x^n)+1//6*e*a^-1*x^2*log(c*x^n)+1//6*a^-3*(e+3*d*a^2)*log(c*x^n)*log(1+-1*a^2*x^2)+1//12*n*a^-3*(e+3*d*a^2)*Polylogarithms.polylog(2,a^2*x^2))
@test integrate((d+e*x^2)*arccoth(a*x)*log(c*x^n), x) == :(d*x*arccoth(a*x)*log(c*x^n)+-1*d*n*x*arccoth(a*x)+-5//36*e*n*a^-1*x^2+-1//2*d*n*a^-1*log(1+-1*a^2*x^2)+-1//9*e*n*x^3*arccoth(a*x)+-1//18*e*n*a^-3*log(1+-1*a^2*x^2)+1//3*e*x^3*arccoth(a*x)*log(c*x^n)+1//6*e*a^-1*x^2*log(c*x^n)+1//6*a^-3*(e+3*d*a^2)*log(c*x^n)*log(1+-1*a^2*x^2)+1//12*n*a^-3*(e+3*d*a^2)*Polylogarithms.polylog(2,a^2*x^2))
@test integrate(arcsin(a*x)^2*(d+e*x^2)*log(c*x^n), x) == :(n*x*(4d+8//9*e*a^-2)+-2*d*x*log(c*x^n)+2*d*n*x+-2//27*e*x^3*log(c*x^n)+2//27*e*n*x^3+d*x*arcsin(a*x)^2*log(c*x^n)+-1*d*n*x*arcsin(a*x)^2+-4//9*e*x*a^-2*log(c*x^n)+-1//9*e*n*x^3*arcsin(a*x)^2+1//3*e*x^3*arcsin(a*x)^2*log(c*x^n)+2//27*e*n*x*a^-2+-2*d*n*a^-1*(1+-1*a^2*x^2)^(1/2)*arcsin(a*x)+2*d*a^-1*(1+-1*a^2*x^2)^(1/2)*arcsin(a*x)*log(c*x^n)+-4//27*e*n*a^-3*(1+-1*a^2*x^2)^(1/2)*arcsin(a*x)+-2//9*im*n*a^-3*(2*e+9*d*a^2)*Polylogarithms.polylog(2,-1*exp(im*arcsin(a*x)))+-1//9*n*a^-3*(1+-1*a^2*x^2)^(1/2)*(4*e+18*d*a^2)*arcsin(a*x)+1//9*n*a^-3*(8*e+36*d*a^2)*arcsin(a*x)*arctanh(exp(im*arcsin(a*x)))+2//9*im*n*a^-3*(2*e+9*d*a^2)*Polylogarithms.polylog(2,exp(im*arcsin(a*x)))+2//27*e*n*a^-3*(1+-1*a^2*x^2)^3//2*arcsin(a*x)+4//9*e*a^-3*(1+-1*a^2*x^2)^(1/2)*arcsin(a*x)*log(c*x^n)+-2//27*e*n*a^-1*x^2*(1+-1*a^2*x^2)^(1/2)*arcsin(a*x)+2//9*e*a^-1*x^2*(1+-1*a^2*x^2)^(1/2)*arcsin(a*x)*log(c*x^n))
@test integrate(arccos(a*x)^2*(d+e*x^2)*log(c*x^n), x) == :(n*x*(4d+8//9*e*a^-2)+-2*d*x*log(c*x^n)+2*d*n*x+-2//27*e*x^3*log(c*x^n)+2//27*e*n*x^3+d*x*arccos(a*x)^2*log(c*x^n)+-1*d*n*x*arccos(a*x)^2+-4//9*e*x*a^-2*log(c*x^n)+-1//9*e*n*x^3*arccos(a*x)^2+1//3*e*x^3*arccos(a*x)^2*log(c*x^n)+2//27*e*n*x*a^-2+-2*d*a^-1*(1+-1*a^2*x^2)^(1/2)*arccos(a*x)*log(c*x^n)+2*d*n*a^-1*(1+-1*a^2*x^2)^(1/2)*arccos(a*x)+-4//9*e*a^-3*(1+-1*a^2*x^2)^(1/2)*arccos(a*x)*log(c*x^n)+-2//9*im*n*a^-3*(2*e+9*d*a^2)*Polylogarithms.polylog(2,-1*im*exp(im*arccos(a*x)))+-2//27*e*n*a^-3*(1+-1*a^2*x^2)^3//2*arccos(a*x)+1//9*n*a^-3*(1+-1*a^2*x^2)^(1/2)*(4*e+18*d*a^2)*arccos(a*x)+2//9*im*n*a^-3*(2*e+9*d*a^2)*Polylogarithms.polylog(2,im*exp(im*arccos(a*x)))+4//27*e*n*a^-3*(1+-1*a^2*x^2)^(1/2)*arccos(a*x)+-2//9*e*a^-1*x^2*(1+-1*a^2*x^2)^(1/2)*arccos(a*x)*log(c*x^n)+2//27*e*n*a^-1*x^2*(1+-1*a^2*x^2)^(1/2)*arccos(a*x)+4//9*im*n*a^-3*(2*e+9*d*a^2)*arccos(a*x)*arctan(exp(im*arccos(a*x))))
@test integrate(arcsinh(a*x)^2*(d+e*x^2)*log(c*x^n), x) == :(-1*n*x*(4d+-8//9*e*a^-2)+-2*d*n*x+2*d*x*log(c*x^n)+-2//27*e*n*x^3+2//27*e*x^3*log(c*x^n)+d*x*arcsinh(a*x)^2*log(c*x^n)+-1*d*n*x*arcsinh(a*x)^2+-4//9*e*x*a^-2*log(c*x^n)+-1//9*e*n*x^3*arcsinh(a*x)^2+-1//9*n*a^-3*(-4*e+18*d*a^2)*Polylogarithms.polylog(2,-1*exp(arcsinh(a*x)))+1//3*e*x^3*arcsinh(a*x)^2*log(c*x^n)+1//9*n*a^-3*(-4*e+18*d*a^2)*Polylogarithms.polylog(2,exp(arcsinh(a*x)))+2//27*e*n*x*a^-2+-2*d*a^-1*(1+a^2*x^2)^(1/2)*arcsinh(a*x)*log(c*x^n)+2*d*n*a^-1*(1+a^2*x^2)^(1/2)*arcsinh(a*x)+-4//27*e*n*a^-3*(1+a^2*x^2)^(1/2)*arcsinh(a*x)+-1//9*n*a^-3*(-8*e+36*d*a^2)*arcsinh(a*x)*arctanh(exp(arcsinh(a*x)))+1//9*n*a^-3*(1+a^2*x^2)^(1/2)*(-4*e+18*d*a^2)*arcsinh(a*x)+2//27*e*n*a^-3*(1+a^2*x^2)^3//2*arcsinh(a*x)+4//9*e*a^-3*(1+a^2*x^2)^(1/2)*arcsinh(a*x)*log(c*x^n)+-2//9*e*a^-1*x^2*(1+a^2*x^2)^(1/2)*arcsinh(a*x)*log(c*x^n)+2//27*e*n*a^-1*x^2*(1+a^2*x^2)^(1/2)*arcsinh(a*x))
@test integrate(arccosh(a*x)^2*(d+e*x^2)*log(c*x^n), x) == :(-1*n*x*(4d+8//9*e*a^-2)+-2*d*n*x+2*d*x*log(c*x^n)+-2//27*e*n*x^3+2//27*e*x^3*log(c*x^n)+d*x*arccosh(a*x)^2*log(c*x^n)+-1*d*n*x*arccosh(a*x)^2+-2//27*e*n*x*a^-2+-1//9*e*n*x^3*arccosh(a*x)^2+1//3*e*x^3*arccosh(a*x)^2*log(c*x^n)+4//9*e*x*a^-2*log(c*x^n)+-2//9*im*n*a^-3*(2*e+9*d*a^2)*Polylogarithms.polylog(2,im*exp(arccosh(a*x)))+-1//9*n*a^-3*(8*e+36*d*a^2)*arccosh(a*x)*arctan(exp(arccosh(a*x)))+2//9*im*n*a^-3*(2*e+9*d*a^2)*Polylogarithms.polylog(2,-1*im*exp(arccosh(a*x)))+-2*d*a^-1*(1+a*x)^(1/2)*(-1+a*x)^(1/2)*arccosh(a*x)*log(c*x^n)+2*d*n*a^-1*(1+a*x)^(1/2)*(-1+a*x)^(1/2)*arccosh(a*x)+-4//9*e*a^-3*(1+a*x)^(1/2)*(-1+a*x)^(1/2)*arccosh(a*x)*log(c*x^n)+1//9*n*a^-3*(1+a*x)^(1/2)*(-1+a*x)^(1/2)*(4*e+18*d*a^2)*arccosh(a*x)+2//27*e*n*a^-3*(1+a*x)^3//2*(-1+a*x)^3//2*arccosh(a*x)+4//27*e*n*a^-3*(1+a*x)^(1/2)*(-1+a*x)^(1/2)*arccosh(a*x)+-2//9*e*a^-1*x^2*(1+a*x)^(1/2)*(-1+a*x)^(1/2)*arccosh(a*x)*log(c*x^n)+2//27*e*n*a^-1*x^2*(1+a*x)^(1/2)*(-1+a*x)^(1/2)*arccosh(a*x))
@test integrate(x^-1*(a+b*log(c*x^n))^3*Polylogarithms.polylog(k,e*x^q), x) == :(q^-1*(a+b*log(c*x^n))^3*Polylogarithms.polylog(1+k,e*x^q)+-6*b^3*n^3*q^-4*Polylogarithms.polylog(4+k,e*x^q)+-3*b*n*q^-2*(a+b*log(c*x^n))^2*Polylogarithms.polylog(2+k,e*x^q)+6*b^2*n^2*q^-3*(a+b*log(c*x^n))*Polylogarithms.polylog(3+k,e*x^q))
@test integrate(x^-1*(a+b*log(c*x^n))^2*Polylogarithms.polylog(k,e*x^q), x) == :(q^-1*(a+b*log(c*x^n))^2*Polylogarithms.polylog(1+k,e*x^q)+2*b^2*n^2*q^-3*Polylogarithms.polylog(3+k,e*x^q)+-2*b*n*q^-2*(a+b*log(c*x^n))*Polylogarithms.polylog(2+k,e*x^q))
@test integrate(x^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(k,e*x^q), x) == :(q^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(1+k,e*x^q)+-1*b*n*q^-2*Polylogarithms.polylog(2+k,e*x^q))
@test integrate(x^-1*Polylogarithms.polylog(n,a*x)*log(x), x) == :(-1*Polylogarithms.polylog(2+n,a*x)+Polylogarithms.polylog(1+n,a*x)*log(x))
@test integrate(x^-1*log(x)^2*Polylogarithms.polylog(n,a*x), x) == :(2*Polylogarithms.polylog(3+n,a*x)+log(x)^2*Polylogarithms.polylog(1+n,a*x)+-2*Polylogarithms.polylog(2+n,a*x)*log(x))
@test integrate(-1*x^-1*(a+b*log(c*x^n))^-2*Polylogarithms.polylog(k,e*x^q)+q*b^-1*n^-1*x^-1*(a+b*log(c*x^n))^-1*Polylogarithms.polylog(-1+k,e*x^q), x) == :(b^-1*n^-1*(a+b*log(c*x^n))^-1*Polylogarithms.polylog(k,e*x^q))
@test integrate(x^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x), x) == :(-1//27*x^3*(a+b*log(c*x^n))+-1//9*x*e^-2*(a+b*log(c*x^n))+-1//9*e^-3*(a+b*log(c*x^n))*log(1+-1*e*x)+-1//18*e^-1*x^2*(a+b*log(c*x^n))+1//3*x^3*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x)+1//9*x^3*(a+b*log(c*x^n))*log(1+-1*e*x)+1//27*b*n*x^3+-2//27*b*n*x^3*log(1+-1*e*x)+-1//9*b*n*e^-3*Polylogarithms.polylog(2,e*x)+-1//9*b*n*x^3*Polylogarithms.polylog(2,e*x)+2//27*b*n*e^-3*log(1+-1*e*x)+5//27*b*n*x*e^-2+7//108*b*n*e^-1*x^2)
@test integrate(x*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x), x) == :(-1//8*x^2*(a+b*log(c*x^n))+(1/2)*x^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x)+-1//4*x*e^-1*(a+b*log(c*x^n))+-1//4*e^-2*(a+b*log(c*x^n))*log(1+-1*e*x)+1//4*x^2*(a+b*log(c*x^n))*log(1+-1*e*x)+3//16*b*n*x^2+(1/2)*b*n*x*e^-1+-1//4*b*n*e^-2*Polylogarithms.polylog(2,e*x)+-1//4*b*n*x^2*Polylogarithms.polylog(2,e*x)+-1//4*b*n*x^2*log(1+-1*e*x)+1//4*b*n*e^-2*log(1+-1*e*x))
@test integrate((a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x), x) == :(-1*x*(a+b*log(c*x^n))+x*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x)+3*b*n*x+-1*b*n*x*Polylogarithms.polylog(2,e*x)+-1*b*n*e^-1*Polylogarithms.polylog(2,e*x)+-1*e^-1*(1+-1*e*x)*(a+b*log(c*x^n))*log(1+-1*e*x)+2*b*n*e^-1*(1+-1*e*x)*log(1+-1*e*x))
@test integrate(x^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x), x) == :((a+b*log(c*x^n))*Polylogarithms.polylog(3,e*x)+-1*b*n*Polylogarithms.polylog(4,e*x))
@test integrate(x^-2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x), x) == :(e*(a+b*log(c*x^n))*log(x)+x^-1*(a+b*log(c*x^n))*log(1+-1*e*x)+-1*e*(a+b*log(c*x^n))*log(1+-1*e*x)+-1*x^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x)+-1*b*e*n*Polylogarithms.polylog(2,e*x)+-1*b*n*x^-1*Polylogarithms.polylog(2,e*x)+-2*b*e*n*log(1+-1*e*x)+2*b*e*n*log(x)+2*b*n*x^-1*log(1+-1*e*x)+-1//2*b*e*n*log(x)^2)
@test integrate(x^-3*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x), x) == :(-1//2*x^-2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x)+-1//4*e*x^-1*(a+b*log(c*x^n))+-1//4*e^2*(a+b*log(c*x^n))*log(1+-1*e*x)+1//4*e^2*(a+b*log(c*x^n))*log(x)+1//4*x^-2*(a+b*log(c*x^n))*log(1+-1*e*x)+-1//2*b*e*n*x^-1+-1//4*b*n*e^2*Polylogarithms.polylog(2,e*x)+-1//4*b*n*e^2*log(1+-1*e*x)+-1//4*b*n*x^-2*Polylogarithms.polylog(2,e*x)+-1//8*b*n*e^2*log(x)^2+1//4*b*n*e^2*log(x)+1//4*b*n*x^-2*log(1+-1*e*x))
@test integrate(x^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,e*x), x) == :(1//81*x^3*(a+b*log(c*x^n))+-4//243*b*n*x^3+-1//9*x^3*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x)+-1//27*x^3*(a+b*log(c*x^n))*log(1+-1*e*x)+1//3*x^3*(a+b*log(c*x^n))*Polylogarithms.polylog(3,e*x)+1//27*x*e^-2*(a+b*log(c*x^n))+1//27*e^-3*(a+b*log(c*x^n))*log(1+-1*e*x)+1//54*e^-1*x^2*(a+b*log(c*x^n))+-2//27*b*n*x*e^-2+-1//9*b*n*x^3*Polylogarithms.polylog(3,e*x)+-1//27*b*n*e^-3*log(1+-1*e*x)+-1//36*b*n*e^-1*x^2+1//27*b*n*e^-3*Polylogarithms.polylog(2,e*x)+1//27*b*n*x^3*log(1+-1*e*x)+2//27*b*n*x^3*Polylogarithms.polylog(2,e*x))
@test integrate(x*(a+b*log(c*x^n))*Polylogarithms.polylog(3,e*x), x) == :(1//16*x^2*(a+b*log(c*x^n))+(1/2)*x^2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,e*x)+-1//4*x^2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x)+-1//8*b*n*x^2+-1//8*x^2*(a+b*log(c*x^n))*log(1+-1*e*x)+1//8*x*e^-1*(a+b*log(c*x^n))+1//8*e^-2*(a+b*log(c*x^n))*log(1+-1*e*x)+-5//16*b*n*x*e^-1+-3//16*b*n*e^-2*log(1+-1*e*x)+-1//4*b*n*x^2*Polylogarithms.polylog(3,e*x)+1//4*b*n*x^2*Polylogarithms.polylog(2,e*x)+1//8*b*n*e^-2*Polylogarithms.polylog(2,e*x)+3//16*b*n*x^2*log(1+-1*e*x))
@test integrate((a+b*log(c*x^n))*Polylogarithms.polylog(3,e*x), x) == :(x*(a+b*log(c*x^n))+x*(a+b*log(c*x^n))*Polylogarithms.polylog(3,e*x)+-1*x*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x)+-4*b*n*x+b*n*e^-1*Polylogarithms.polylog(2,e*x)+e^-1*(1+-1*e*x)*(a+b*log(c*x^n))*log(1+-1*e*x)+-1*b*n*x*Polylogarithms.polylog(3,e*x)+2*b*n*x*Polylogarithms.polylog(2,e*x)+-3*b*n*e^-1*(1+-1*e*x)*log(1+-1*e*x))
@test integrate(x^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(3,e*x), x) == :((a+b*log(c*x^n))*Polylogarithms.polylog(4,e*x)+-1*b*n*Polylogarithms.polylog(5,e*x))
@test integrate(x^-2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,e*x), x) == :(e*(a+b*log(c*x^n))*log(x)+x^-1*(a+b*log(c*x^n))*log(1+-1*e*x)+-1*e*(a+b*log(c*x^n))*log(1+-1*e*x)+-1*x^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x)+-1*x^-1*(a+b*log(c*x^n))*Polylogarithms.polylog(3,e*x)+-1*b*e*n*Polylogarithms.polylog(2,e*x)+-1*b*n*x^-1*Polylogarithms.polylog(3,e*x)+-3*b*e*n*log(1+-1*e*x)+-2*b*n*x^-1*Polylogarithms.polylog(2,e*x)+3*b*e*n*log(x)+3*b*n*x^-1*log(1+-1*e*x)+-1//2*b*e*n*log(x)^2)
@test integrate(x^-3*(a+b*log(c*x^n))*Polylogarithms.polylog(3,e*x), x) == :(-1//2*x^-2*(a+b*log(c*x^n))*Polylogarithms.polylog(3,e*x)+-1//4*x^-2*(a+b*log(c*x^n))*Polylogarithms.polylog(2,e*x)+-1//8*e*x^-1*(a+b*log(c*x^n))+-1//8*e^2*(a+b*log(c*x^n))*log(1+-1*e*x)+1//8*e^2*(a+b*log(c*x^n))*log(x)+1//8*x^-2*(a+b*log(c*x^n))*log(1+-1*e*x)+-5//16*b*e*n*x^-1+-3//16*b*n*e^2*log(1+-1*e*x)+-1//4*b*n*x^-2*Polylogarithms.polylog(2,e*x)+-1//4*b*n*x^-2*Polylogarithms.polylog(3,e*x)+-1//8*b*n*e^2*Polylogarithms.polylog(2,e*x)+-1//16*b*n*e^2*log(x)^2+3//16*b*n*e^2*log(x)+3//16*b*n*x^-2*log(1+-1*e*x))
@test integrate(x^2*log(c*(b*x^n)^p), x) == :(1//3*x^3*log(c*(b*x^n)^p)+-1//9*n*p*x^3)
@test integrate(x*log(c*(b*x^n)^p), x) == :((1/2)*x^2*log(c*(b*x^n)^p)+-1//4*n*p*x^2)
@test integrate(log(c*(b*x^n)^p), x) == :(x*log(c*(b*x^n)^p)+-1*n*p*x)
@test integrate(x^-1*log(c*(b*x^n)^p), x) == :((1/2)*n^-1*p^-1*log(c*(b*x^n)^p)^2)
@test integrate(x^-2*log(c*(b*x^n)^p), x) == :(-1*x^-1*log(c*(b*x^n)^p)+-1*n*p*x^-1)
@test integrate(x^-3*log(c*(b*x^n)^p), x) == :(-1//2*x^-2*log(c*(b*x^n)^p)+-1//4*n*p*x^-2)
@test integrate(x^-4*log(c*(b*x^n)^p), x) == :(-1//3*x^-3*log(c*(b*x^n)^p)+-1//9*n*p*x^-3)
@test integrate(x^2*log(c*(b*x^n)^p)^2, x) == :(1//3*x^3*log(c*(b*x^n)^p)^2+2//27*n^2*p^2*x^3+-2//9*n*p*x^3*log(c*(b*x^n)^p))
@test integrate(x*log(c*(b*x^n)^p)^2, x) == :((1/2)*x^2*log(c*(b*x^n)^p)^2+1//4*n^2*p^2*x^2+-1//2*n*p*x^2*log(c*(b*x^n)^p))
@test integrate(log(c*(b*x^n)^p)^2, x) == :(x*log(c*(b*x^n)^p)^2+2*x*n^2*p^2+-2*n*p*x*log(c*(b*x^n)^p))
@test integrate(x^-1*log(c*(b*x^n)^p)^2, x) == :(1//3*n^-1*p^-1*log(c*(b*x^n)^p)^3)
@test integrate(x^-2*log(c*(b*x^n)^p)^2, x) == :(-1*x^-1*log(c*(b*x^n)^p)^2+-2*n^2*p^2*x^-1+-2*n*p*x^-1*log(c*(b*x^n)^p))
@test integrate(x^-3*log(c*(b*x^n)^p)^2, x) == :(-1//2*x^-2*log(c*(b*x^n)^p)^2+-1//4*n^2*p^2*x^-2+-1//2*n*p*x^-2*log(c*(b*x^n)^p))
@test integrate(x^-4*log(c*(b*x^n)^p)^2, x) == :(-1//3*x^-3*log(c*(b*x^n)^p)^2+-2//27*n^2*p^2*x^-3+-2//9*n*p*x^-3*log(c*(b*x^n)^p))
@test integrate((e*x)^q*(a+b*log(c*(d*x^m)^n))^3, x) == :(e^-1*(e*x)^(1+q)*(1+q)^-1*(a+b*log(c*(d*x^m)^n))^3+-6*b^3*e^-1*m^3*n^3*(e*x)^(1+q)*(1+q)^-4+-3*b*m*n*e^-1*(e*x)^(1+q)*(1+q)^-2*(a+b*log(c*(d*x^m)^n))^2+6*b^2*e^-1*m^2*n^2*(e*x)^(1+q)*(1+q)^-3*(a+b*log(c*(d*x^m)^n)))
@test integrate((e*x)^q*(a+b*log(c*(d*x^m)^n))^2, x) == :(e^-1*(e*x)^(1+q)*(1+q)^-1*(a+b*log(c*(d*x^m)^n))^2+2*b^2*e^-1*m^2*n^2*(e*x)^(1+q)*(1+q)^-3+-2*b*m*n*e^-1*(e*x)^(1+q)*(1+q)^-2*(a+b*log(c*(d*x^m)^n)))
@test integrate((e*x)^q*(a+b*log(c*(d*x^m)^n)), x) == :(e^-1*(e*x)^(1+q)*(1+q)^-1*(a+b*log(c*(d*x^m)^n))+-1*b*m*n*e^-1*(e*x)^(1+q)*(1+q)^-2)
@test integrate((e*x)^q*(a+b*log(c*(d*x^m)^n))^-1, x) == :(b^-1*e^-1*m^-1*n^-1*(c*(d*x^m)^n)^(-1*m^-1*n^-1*(1+q))*(e*x)^(1+q)*exp(-1*a*b^-1*m^-1*n^-1*(1+q))*expintegralei(b^-1*m^-1*n^-1*(1+q)*(a+b*log(c*(d*x^m)^n))))
@test integrate((e*x)^q*(a+b*log(c*(d*x^m)^n))^-2, x) == :(-1*b^-1*e^-1*m^-1*n^-1*(e*x)^(1+q)*(a+b*log(c*(d*x^m)^n))^-1+b^-2*e^-1*m^-2*n^-2*(c*(d*x^m)^n)^(-1*m^-1*n^-1*(1+q))*(e*x)^(1+q)*(1+q)*exp(-1*a*b^-1*m^-1*n^-1*(1+q))*expintegralei(b^-1*m^-1*n^-1*(1+q)*(a+b*log(c*(d*x^m)^n))))
@test integrate((e*x)^q*(a+b*log(c*(d*x^m)^n))^p, x) == :(e^-1*(c*(d*x^m)^n)^(-1*m^-1*n^-1*(1+q))*(e*x)^(1+q)*(-1*b^-1*m^-1*n^-1*(1+q)*(a+b*log(c*(d*x^m)^n)))^(-1p)*(1+q)^-1*(a+b*log(c*(d*x^m)^n))^p*SpecialFunctions.gamma(1+p,-1*b^-1*m^-1*n^-1*(1+q)*(a+b*log(c*(d*x^m)^n)))*exp(-1*a*b^-1*m^-1*n^-1*(1+q)))
@test integrate(x^2*(a+b*log(c*(d*x^m)^n))^p, x) == :(3^(-1+-1p)*x^3*(c*(d*x^m)^n)^(-3*m^-1*n^-1)*(-1*b^-1*m^-1*n^-1*(a+b*log(c*(d*x^m)^n)))^(-1p)*(a+b*log(c*(d*x^m)^n))^p*SpecialFunctions.gamma(1+p,-1*b^-1*m^-1*n^-1*(3a+3*b*log(c*(d*x^m)^n)))*exp(-3*a*b^-1*m^-1*n^-1))
@test integrate(x*(a+b*log(c*(d*x^m)^n))^p, x) == :(2^(-1+-1p)*x^2*(c*(d*x^m)^n)^(-2*m^-1*n^-1)*(-1*b^-1*m^-1*n^-1*(a+b*log(c*(d*x^m)^n)))^(-1p)*(a+b*log(c*(d*x^m)^n))^p*SpecialFunctions.gamma(1+p,-1*b^-1*m^-1*n^-1*(2a+2*b*log(c*(d*x^m)^n)))*exp(-2*a*b^-1*m^-1*n^-1))
@test integrate((a+b*log(c*(d*x^m)^n))^p, x) == :(x*(c*(d*x^m)^n)^(-1*m^-1*n^-1)*(-1*b^-1*m^-1*n^-1*(a+b*log(c*(d*x^m)^n)))^(-1p)*(a+b*log(c*(d*x^m)^n))^p*SpecialFunctions.gamma(1+p,-1*b^-1*m^-1*n^-1*(a+b*log(c*(d*x^m)^n)))*exp(-1*a*b^-1*m^-1*n^-1))
@test integrate(x^-1*(a+b*log(c*(d*x^m)^n))^p, x) == :(b^-1*m^-1*n^-1*(1+p)^-1*(a+b*log(c*(d*x^m)^n))^(1+p))
@test integrate(x^-2*(a+b*log(c*(d*x^m)^n))^p, x) == :(-1*x^-1*(c*(d*x^m)^n)^(m^-1*n^-1)*(b^-1*m^-1*n^-1*(a+b*log(c*(d*x^m)^n)))^(-1p)*(a+b*log(c*(d*x^m)^n))^p*SpecialFunctions.gamma(1+p,b^-1*m^-1*n^-1*(a+b*log(c*(d*x^m)^n)))*exp(a*b^-1*m^-1*n^-1))
@test integrate(x^-3*(a+b*log(c*(d*x^m)^n))^p, x) == :(-1*2^(-1+-1p)*x^-2*(c*(d*x^m)^n)^(2*m^-1*n^-1)*(b^-1*m^-1*n^-1*(a+b*log(c*(d*x^m)^n)))^(-1p)*(a+b*log(c*(d*x^m)^n))^p*SpecialFunctions.gamma(1+p,b^-1*m^-1*n^-1*(2a+2*b*log(c*(d*x^m)^n)))*exp(2*a*b^-1*m^-1*n^-1))
@test integrate((e+f*x^2)^-1*(a+b*log(c*(d*x^m)^n)), x) == :(e^-1//2*f^-1//2*(a+b*log(c*(d*x^m)^n))*arctan(x*e^-1//2*f^(1/2))+(1/2)*im*b*m*n*e^-1//2*f^-1//2*Polylogarithms.polylog(2,im*x*e^-1//2*f^(1/2))+-1//2*im*b*m*n*e^-1//2*f^-1//2*Polylogarithms.polylog(2,-1*im*x*e^-1//2*f^(1/2)))

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