@testset "3.2.3 u log(e (f (a+b x)^p (c+d x)^q)^r)^s" begin
    (A, B, a, b, c, d, e, f, g, h, i, j, k, m, n, p, q, r, s, t, u, x, ) = @variables A B a b c d e f g h i j k m n p q r s t u x

    #= ::Package:: =#

    #= ::Title:: =#
    #=Integrands*of*the*form*u*(A+B*log(e*((a+b*x)/(c+d*x))^n))^p=#


    #= ::Section::Closed:: =#
    #=Integrands*of*the*form*(f+g*x^q)^m*(A+B*log(e*((a+b*x)/(c+d*x))^n))^p=#


    #= ::Subsection::Closed:: =#
    #=Integrands*of*the*form*(f+g/x)^m*(A+B*log(e*((a+b*x)/(c+d*x))^n))^p=#


    @test_int [(f + g/x)^3*(A + B*log(e*((a + b*x)/(c + d*x))^n)), x, 16, -((B*(b*c - a*d)*g^3*n)/(2*a*c*x)) + A*f^3*x - (1/2)*B*(b^2/a^2 - d^2/c^2)*g^3*n*log(x) + (b^2*B*g^3*n*log(a + b*x))/(2*a^2) - 3*B*f^2*g*n*log(x)*log(1 + (b*x)/a) + (B*f^3*(a + b*x)*log(e*((a + b*x)/(c + d*x))^n))/b - (g^3*(A + B*log(e*((a + b*x)/(c + d*x))^n)))/(2*x^2) + (3*(b*c - a*d)*f*g^2*(a + b*x)*(A + B*log(e*((a + b*x)/(c + d*x))^n)))/(a*(c + d*x)*(a - (c*(a + b*x))/(c + d*x))) + 3*f^2*g*log(x)*(A + B*log(e*((a + b*x)/(c + d*x))^n)) - (B*(b*c - a*d)*f^3*n*log(c + d*x))/(b*d) - (B*d^2*g^3*n*log(c + d*x))/(2*c^2) + 3*B*f^2*g*n*log(x)*log(1 + (d*x)/c) + (3*B*(b*c - a*d)*f*g^2*n*log(a - (c*(a + b*x))/(c + d*x)))/(a*c) - 3*B*f^2*g*n*PolyLog(2, -((b*x)/a)) + 3*B*f^2*g*n*PolyLog(2, -((d*x)/c))]
    @test_int [(f + g/x)^2*(A + B*log(e*((a + b*x)/(c + d*x))^n)), x, 13, A*f^2*x - 2*B*f*g*n*log(x)*log(1 + (b*x)/a) + (B*f^2*(a + b*x)*log(e*((a + b*x)/(c + d*x))^n))/b + ((b*c - a*d)*g^2*(a + b*x)*(A + B*log(e*((a + b*x)/(c + d*x))^n)))/(a*(c + d*x)*(a - (c*(a + b*x))/(c + d*x))) + 2*f*g*log(x)*(A + B*log(e*((a + b*x)/(c + d*x))^n)) - (B*(b*c - a*d)*f^2*n*log(c + d*x))/(b*d) + 2*B*f*g*n*log(x)*log(1 + (d*x)/c) + (B*(b*c - a*d)*g^2*n*log(a - (c*(a + b*x))/(c + d*x)))/(a*c) - 2*B*f*g*n*PolyLog(2, -((b*x)/a)) + 2*B*f*g*n*PolyLog(2, -((d*x)/c))]
    @test_int [(f + g/x)^1*(A + B*log(e*((a + b*x)/(c + d*x))^n)), x, 10, A*f*x - B*g*n*log(x)*log(1 + (b*x)/a) + (B*f*(a + b*x)*log(e*((a + b*x)/(c + d*x))^n))/b + g*log(x)*(A + B*log(e*((a + b*x)/(c + d*x))^n)) - (B*(b*c - a*d)*f*n*log(c + d*x))/(b*d) + B*g*n*log(x)*log(1 + (d*x)/c) - B*g*n*PolyLog(2, -((b*x)/a)) + B*g*n*PolyLog(2, -((d*x)/c))]
    @test_int [(A + B*log(e*((a + b*x)/(c + d*x))^n))/(f + g/x)^1, x, 12, (A*x)/f + (B*(a + b*x)*log(e*((a + b*x)/(c + d*x))^n))/(b*f) - (B*(b*c - a*d)*n*log(c + d*x))/(b*d*f) + (B*g*n*log((f*(a + b*x))/(a*f - b*g))*log(g + f*x))/f^2 - (g*(A + B*log(e*((a + b*x)/(c + d*x))^n))*log(g + f*x))/f^2 - (B*g*n*log((f*(c + d*x))/(c*f - d*g))*log(g + f*x))/f^2 + (B*g*n*PolyLog(2, -((b*(g + f*x))/(a*f - b*g))))/f^2 - (B*g*n*PolyLog(2, -((d*(g + f*x))/(c*f - d*g))))/f^2]
    @test_int [(A + B*log(e*((a + b*x)/(c + d*x))^n))/(f + g/x)^2, x, 15, (A*x)/f^2 + (B*(a + b*x)*log(e*((a + b*x)/(c + d*x))^n))/(b*f^2) - (g^2*(a + b*x)*(A + B*log(e*((a + b*x)/(c + d*x))^n)))/(f^2*(a*f - b*g)*(g + f*x)) - (B*(b*c - a*d)*n*log(c + d*x))/(b*d*f^2) + (2*B*g*n*log((f*(a + b*x))/(a*f - b*g))*log(g + f*x))/f^3 - (2*g*(A + B*log(e*((a + b*x)/(c + d*x))^n))*log(g + f*x))/f^3 - (2*B*g*n*log((f*(c + d*x))/(c*f - d*g))*log(g + f*x))/f^3 + (B*(b*c - a*d)*g^2*n*log((g + f*x)/(c + d*x)))/(f^2*(a*f - b*g)*(c*f - d*g)) + (2*B*g*n*PolyLog(2, -((b*(g + f*x))/(a*f - b*g))))/f^3 - (2*B*g*n*PolyLog(2, -((d*(g + f*x))/(c*f - d*g))))/f^3]
    @test_int [(A + B*log(e*((a + b*x)/(c + d*x))^n))/(f + g/x)^3, x, 18, (A*x)/f^3 + (B*(b*c - a*d)*g^3*n)/(2*f^3*(a*f - b*g)*(c*f - d*g)*(g + f*x)) - (b^2*B*g^3*n*log(a + b*x))/(2*f^4*(a*f - b*g)^2) + (B*(a + b*x)*log(e*((a + b*x)/(c + d*x))^n))/(b*f^3) + (g^3*(A + B*log(e*((a + b*x)/(c + d*x))^n)))/(2*f^4*(g + f*x)^2) - (3*g^2*(a + b*x)*(A + B*log(e*((a + b*x)/(c + d*x))^n)))/(f^3*(a*f - b*g)*(g + f*x)) - (B*(b*c - a*d)*n*log(c + d*x))/(b*d*f^3) + (B*d^2*g^3*n*log(c + d*x))/(2*f^4*(c*f - d*g)^2) + (B*(b*c - a*d)*g^3*(b*c*f + a*d*f - 2*b*d*g)*n*log(g + f*x))/(2*f^3*(a*f - b*g)^2*(c*f - d*g)^2) + (3*B*g*n*log((f*(a + b*x))/(a*f - b*g))*log(g + f*x))/f^4 - (3*g*(A + B*log(e*((a + b*x)/(c + d*x))^n))*log(g + f*x))/f^4 - (3*B*g*n*log((f*(c + d*x))/(c*f - d*g))*log(g + f*x))/f^4 + (3*B*(b*c - a*d)*g^2*n*log((g + f*x)/(c + d*x)))/(f^3*(a*f - b*g)*(c*f - d*g)) + (3*B*g*n*PolyLog(2, -((b*(g + f*x))/(a*f - b*g))))/f^4 - (3*B*g*n*PolyLog(2, -((d*(g + f*x))/(c*f - d*g))))/f^4]


    #= ::Title:: =#
    #=Integrands*of*the*form*u*(A+B*log(e*(f*(a+b*x)^s*(c+d*x)^t)^n))^p=#


    #= ::Section::Closed:: =#
    #=Integrands*of*the*form*(g+h*x)^m*(A+B*log(e*(f*(a+b*x)^s*(c+d*x)^t)^n))^p=#


    #= ::Subsection::Closed:: =#
    #=Integrands*of*the*form*(g+h*x)^m*(A+B*log(e*(f*(a+b*x)^s*(c+d*x)^t)^n))^p*when*b*g-a*h=0=#


    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*(a + b*x)^4, x, 4, -(((b*c - a*d)^4*q*r*x)/(5*d^4)) + ((b*c - a*d)^3*q*r*(a + b*x)^2)/(10*b*d^3) - ((b*c - a*d)^2*q*r*(a + b*x)^3)/(15*b*d^2) + ((b*c - a*d)*q*r*(a + b*x)^4)/(20*b*d) - (p*r*(a + b*x)^5)/(25*b) - (q*r*(a + b*x)^5)/(25*b) + ((b*c - a*d)^5*q*r*log(c + d*x))/(5*b*d^5) + ((a + b*x)^5*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(5*b)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*(a + b*x)^3, x, 4, ((b*c - a*d)^3*q*r*x)/(4*d^3) - ((b*c - a*d)^2*q*r*(a + b*x)^2)/(8*b*d^2) + ((b*c - a*d)*q*r*(a + b*x)^3)/(12*b*d) - (p*r*(a + b*x)^4)/(16*b) - (q*r*(a + b*x)^4)/(16*b) - ((b*c - a*d)^4*q*r*log(c + d*x))/(4*b*d^4) + ((a + b*x)^4*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(4*b)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*(a + b*x)^2, x, 4, -(((b*c - a*d)^2*q*r*x)/(3*d^2)) + ((b*c - a*d)*q*r*(a + b*x)^2)/(6*b*d) - (p*r*(a + b*x)^3)/(9*b) - (q*r*(a + b*x)^3)/(9*b) + ((b*c - a*d)^3*q*r*log(c + d*x))/(3*b*d^3) + ((a + b*x)^3*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(3*b)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*(a + b*x)^1, x, 4, (-(1/2))*a*p*r*x + ((b*c - a*d)*q*r*x)/(2*d) - (1/4)*b*p*r*x^2 - (q*r*(a + b*x)^2)/(4*b) - ((b*c - a*d)^2*q*r*log(c + d*x))/(2*b*d^2) + ((a + b*x)^2*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(2*b)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(a + b*x)^1, x, 6, -((p*r*log(a + b*x)^2)/(2*b)) - (q*r*log(a + b*x)*log((b*(c + d*x))/(b*c - a*d)))/b + (log(a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/b - (q*r*PolyLog(2, -((d*(a + b*x))/(b*c - a*d))))/b]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(a + b*x)^2, x, 5, -((p*r)/(b*(a + b*x))) + (d*q*r*log(a + b*x))/(b*(b*c - a*d)) - (d*q*r*log(c + d*x))/(b*(b*c - a*d)) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(b*(a + b*x))]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(a + b*x)^3, x, 4, -((p*r)/(4*b*(a + b*x)^2)) - (d*q*r)/(2*b*(b*c - a*d)*(a + b*x)) - (d^2*q*r*log(a + b*x))/(2*b*(b*c - a*d)^2) + (d^2*q*r*log(c + d*x))/(2*b*(b*c - a*d)^2) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(2*b*(a + b*x)^2)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(a + b*x)^4, x, 4, -((p*r)/(9*b*(a + b*x)^3)) - (d*q*r)/(6*b*(b*c - a*d)*(a + b*x)^2) + (d^2*q*r)/(3*b*(b*c - a*d)^2*(a + b*x)) + (d^3*q*r*log(a + b*x))/(3*b*(b*c - a*d)^3) - (d^3*q*r*log(c + d*x))/(3*b*(b*c - a*d)^3) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(3*b*(a + b*x)^3)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(a + b*x)^5, x, 4, -((p*r)/(16*b*(a + b*x)^4)) - (d*q*r)/(12*b*(b*c - a*d)*(a + b*x)^3) + (d^2*q*r)/(8*b*(b*c - a*d)^2*(a + b*x)^2) - (d^3*q*r)/(4*b*(b*c - a*d)^3*(a + b*x)) - (d^4*q*r*log(a + b*x))/(4*b*(b*c - a*d)^4) + (d^4*q*r*log(c + d*x))/(4*b*(b*c - a*d)^4) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(4*b*(a + b*x)^4)]


    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2*(a + b*x)^4, x, 32, -((a*(b*c - a*d)^3*p*q*r^2*x)/(5*d^3)) + (2*(b*c - a*d)^4*p*q*r^2*x)/(25*d^4) + (77*(b*c - a*d)^4*q^2*r^2*x)/(150*d^4) + (2*(b*c - a*d)^4*q*(p + q)*r^2*x)/(5*d^4) - (b*(b*c - a*d)^3*p*q*r^2*x^2)/(10*d^3) - ((b*c - a*d)^3*p*q*r^2*(a + b*x)^2)/(25*b*d^3) - (77*(b*c - a*d)^3*q^2*r^2*(a + b*x)^2)/(300*b*d^3) + (16*(b*c - a*d)^2*p*q*r^2*(a + b*x)^3)/(225*b*d^2) + (47*(b*c - a*d)^2*q^2*r^2*(a + b*x)^3)/(450*b*d^2) - (9*(b*c - a*d)*p*q*r^2*(a + b*x)^4)/(200*b*d) - (9*(b*c - a*d)*q^2*r^2*(a + b*x)^4)/(200*b*d) + (2*p^2*r^2*(a + b*x)^5)/(125*b) + (4*p*q*r^2*(a + b*x)^5)/(125*b) + (2*q^2*r^2*(a + b*x)^5)/(125*b) - (2*(b*c - a*d)^5*p*q*r^2*log(c + d*x))/(25*b*d^5) - (137*(b*c - a*d)^5*q^2*r^2*log(c + d*x))/(150*b*d^5) - (2*(b*c - a*d)^5*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(5*b*d^5) - ((b*c - a*d)^5*q^2*r^2*log(c + d*x)^2)/(5*b*d^5) - (2*(b*c - a*d)^4*q*r*(a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(5*b*d^4) + ((b*c - a*d)^3*q*r*(a + b*x)^2*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(5*b*d^3) - (2*(b*c - a*d)^2*q*r*(a + b*x)^3*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(15*b*d^2) + ((b*c - a*d)*q*r*(a + b*x)^4*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(10*b*d) - (2*p*r*(a + b*x)^5*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(25*b) - (2*q*r*(a + b*x)^5*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(25*b) + (2*(b*c - a*d)^5*q*r*log(c + d*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(5*b*d^5) + ((a + b*x)^5*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2)/(5*b) - (2*(b*c - a*d)^5*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(5*b*d^5)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2*(a + b*x)^3, x, 28, (a*(b*c - a*d)^2*p*q*r^2*x)/(4*d^2) - ((b*c - a*d)^3*p*q*r^2*x)/(8*d^3) - (13*(b*c - a*d)^3*q^2*r^2*x)/(24*d^3) - ((b*c - a*d)^3*q*(p + q)*r^2*x)/(2*d^3) + (b*(b*c - a*d)^2*p*q*r^2*x^2)/(8*d^2) + ((b*c - a*d)^2*p*q*r^2*(a + b*x)^2)/(16*b*d^2) + (13*(b*c - a*d)^2*q^2*r^2*(a + b*x)^2)/(48*b*d^2) - (7*(b*c - a*d)*p*q*r^2*(a + b*x)^3)/(72*b*d) - (7*(b*c - a*d)*q^2*r^2*(a + b*x)^3)/(72*b*d) + (p^2*r^2*(a + b*x)^4)/(32*b) + (p*q*r^2*(a + b*x)^4)/(16*b) + (q^2*r^2*(a + b*x)^4)/(32*b) + ((b*c - a*d)^4*p*q*r^2*log(c + d*x))/(8*b*d^4) + (25*(b*c - a*d)^4*q^2*r^2*log(c + d*x))/(24*b*d^4) + ((b*c - a*d)^4*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(2*b*d^4) + ((b*c - a*d)^4*q^2*r^2*log(c + d*x)^2)/(4*b*d^4) + ((b*c - a*d)^3*q*r*(a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(2*b*d^3) - ((b*c - a*d)^2*q*r*(a + b*x)^2*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(4*b*d^2) + ((b*c - a*d)*q*r*(a + b*x)^3*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(6*b*d) - (p*r*(a + b*x)^4*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(8*b) - (q*r*(a + b*x)^4*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(8*b) - ((b*c - a*d)^4*q*r*log(c + d*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(2*b*d^4) + ((a + b*x)^4*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2)/(4*b) + ((b*c - a*d)^4*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(2*b*d^4)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2*(a + b*x)^2, x, 24, -((a*(b*c - a*d)*p*q*r^2*x)/(3*d)) + (2*(b*c - a*d)^2*p*q*r^2*x)/(9*d^2) + (5*(b*c - a*d)^2*q^2*r^2*x)/(9*d^2) + (2*(b*c - a*d)^2*q*(p + q)*r^2*x)/(3*d^2) - (b*(b*c - a*d)*p*q*r^2*x^2)/(6*d) - ((b*c - a*d)*p*q*r^2*(a + b*x)^2)/(9*b*d) - (5*(b*c - a*d)*q^2*r^2*(a + b*x)^2)/(18*b*d) + (2*p^2*r^2*(a + b*x)^3)/(27*b) + (4*p*q*r^2*(a + b*x)^3)/(27*b) + (2*q^2*r^2*(a + b*x)^3)/(27*b) - (2*(b*c - a*d)^3*p*q*r^2*log(c + d*x))/(9*b*d^3) - (11*(b*c - a*d)^3*q^2*r^2*log(c + d*x))/(9*b*d^3) - (2*(b*c - a*d)^3*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(3*b*d^3) - ((b*c - a*d)^3*q^2*r^2*log(c + d*x)^2)/(3*b*d^3) - (2*(b*c - a*d)^2*q*r*(a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(3*b*d^2) + ((b*c - a*d)*q*r*(a + b*x)^2*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(3*b*d) - (2*p*r*(a + b*x)^3*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(9*b) - (2*q*r*(a + b*x)^3*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(9*b) + (2*(b*c - a*d)^3*q*r*log(c + d*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(3*b*d^3) + ((a + b*x)^3*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2)/(3*b) - (2*(b*c - a*d)^3*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(3*b*d^3)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2*(a + b*x)^1, x, 20, (1/2)*a*p^2*r^2*x + (1/2)*a*p*q*r^2*x - ((b*c - a*d)*p*q*r^2*x)/(2*d) - ((b*c - a*d)*q^2*r^2*x)/(2*d) - ((b*c - a*d)*q*(p + q)*r^2*x)/d + (1/4)*b*p^2*r^2*x^2 + (1/4)*b*p*q*r^2*x^2 + (p*q*r^2*(a + b*x)^2)/(4*b) + (q^2*r^2*(a + b*x)^2)/(4*b) + ((b*c - a*d)^2*p*q*r^2*log(c + d*x))/(2*b*d^2) + (3*(b*c - a*d)^2*q^2*r^2*log(c + d*x))/(2*b*d^2) + ((b*c - a*d)^2*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(b*d^2) + ((b*c - a*d)^2*q^2*r^2*log(c + d*x)^2)/(2*b*d^2) + ((b*c - a*d)*q*r*(a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(b*d) - (p*r*(a + b*x)^2*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(2*b) - (q*r*(a + b*x)^2*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(2*b) - ((b*c - a*d)^2*q*r*log(c + d*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(b*d^2) + ((a + b*x)^2*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2)/(2*b) + ((b*c - a*d)^2*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(b*d^2)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(a + b*x)^1, x, 19, log((a + b*x)^(p*r))^3/(3*b*p*r) - (q*log((a + b*x)^(p*r))^2*log((b*(c + d*x))/(b*c - a*d)))/(b*p) + (log((a + b*x)^(p*r))^2*log((c + d*x)^(q*r)))/(b*p*r) + (log(-((d*(a + b*x))/(b*c - a*d)))*log((c + d*x)^(q*r))^2)/b - (2*q*r*log((a + b*x)^(p*r))*PolyLog(2, -((d*(a + b*x))/(b*c - a*d))))/b + (2*q*r*log((c + d*x)^(q*r))*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/b - (1/4)*(log((a + b*x)^(p*r)) + log((c + d*x)^(q*r)) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))*((log((a + b*x)^(p*r)) - log((c + d*x)^(q*r)) + log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))^2/(b*p*r) + 8*((log(-((d*(a + b*x))/(b*c - a*d)))*log((c + d*x)^(q*r)))/b + (q*r*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/b)) + (2*p*q*r^2*PolyLog(3, -((d*(a + b*x))/(b*c - a*d))))/b - (2*q^2*r^2*PolyLog(3, (b*(c + d*x))/(b*c - a*d)))/b]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(a + b*x)^2, x, 20, -((2*p^2*r^2)/(b*(a + b*x))) + (2*d*p*q*r^2*log(a + b*x))/(b*(b*c - a*d)) - (d*p*q*r^2*log(a + b*x)^2)/(b*(b*c - a*d)) - (2*d*p*q*r^2*log(c + d*x))/(b*(b*c - a*d)) + (2*d*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(b*(b*c - a*d)) + (d*q^2*r^2*log(c + d*x)^2)/(b*(b*c - a*d)) - (2*d*q^2*r^2*log(a + b*x)*log((b*(c + d*x))/(b*c - a*d)))/(b*(b*c - a*d)) - (2*p*r*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(b*(a + b*x)) + (2*d*q*r*log(a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(b*(b*c - a*d)) - (2*d*q*r*log(c + d*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(b*(b*c - a*d)) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(b*(a + b*x)) - (2*d*q^2*r^2*PolyLog(2, -((d*(a + b*x))/(b*c - a*d))))/(b*(b*c - a*d)) + (2*d*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(b*(b*c - a*d))]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(a + b*x)^3, x, 24, -((p^2*r^2)/(4*b*(a + b*x)^2)) - (3*d*p*q*r^2)/(2*b*(b*c - a*d)*(a + b*x)) - (d^2*p*q*r^2*log(a + b*x))/(2*b*(b*c - a*d)^2) + (d^2*q^2*r^2*log(a + b*x))/(b*(b*c - a*d)^2) + (d^2*p*q*r^2*log(a + b*x)^2)/(2*b*(b*c - a*d)^2) + (d^2*p*q*r^2*log(c + d*x))/(2*b*(b*c - a*d)^2) - (d^2*q^2*r^2*log(c + d*x))/(b*(b*c - a*d)^2) - (d^2*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(b*(b*c - a*d)^2) - (d^2*q^2*r^2*log(c + d*x)^2)/(2*b*(b*c - a*d)^2) + (d^2*q^2*r^2*log(a + b*x)*log((b*(c + d*x))/(b*c - a*d)))/(b*(b*c - a*d)^2) - (p*r*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(2*b*(a + b*x)^2) - (d*q*r*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(b*(b*c - a*d)*(a + b*x)) - (d^2*q*r*log(a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(b*(b*c - a*d)^2) + (d^2*q*r*log(c + d*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(b*(b*c - a*d)^2) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(2*b*(a + b*x)^2) + (d^2*q^2*r^2*PolyLog(2, -((d*(a + b*x))/(b*c - a*d))))/(b*(b*c - a*d)^2) - (d^2*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(b*(b*c - a*d)^2)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(a + b*x)^4, x, 28, -((2*p^2*r^2)/(27*b*(a + b*x)^3)) - (5*d*p*q*r^2)/(18*b*(b*c - a*d)*(a + b*x)^2) + (8*d^2*p*q*r^2)/(9*b*(b*c - a*d)^2*(a + b*x)) - (d^2*q^2*r^2)/(3*b*(b*c - a*d)^2*(a + b*x)) + (2*d^3*p*q*r^2*log(a + b*x))/(9*b*(b*c - a*d)^3) - (d^3*q^2*r^2*log(a + b*x))/(b*(b*c - a*d)^3) - (d^3*p*q*r^2*log(a + b*x)^2)/(3*b*(b*c - a*d)^3) - (2*d^3*p*q*r^2*log(c + d*x))/(9*b*(b*c - a*d)^3) + (d^3*q^2*r^2*log(c + d*x))/(b*(b*c - a*d)^3) + (2*d^3*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(3*b*(b*c - a*d)^3) + (d^3*q^2*r^2*log(c + d*x)^2)/(3*b*(b*c - a*d)^3) - (2*d^3*q^2*r^2*log(a + b*x)*log((b*(c + d*x))/(b*c - a*d)))/(3*b*(b*c - a*d)^3) - (2*p*r*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(9*b*(a + b*x)^3) - (d*q*r*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(3*b*(b*c - a*d)*(a + b*x)^2) + (2*d^2*q*r*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(3*b*(b*c - a*d)^2*(a + b*x)) + (2*d^3*q*r*log(a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(3*b*(b*c - a*d)^3) - (2*d^3*q*r*log(c + d*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(3*b*(b*c - a*d)^3) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(3*b*(a + b*x)^3) - (2*d^3*q^2*r^2*PolyLog(2, -((d*(a + b*x))/(b*c - a*d))))/(3*b*(b*c - a*d)^3) + (2*d^3*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(3*b*(b*c - a*d)^3)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(a + b*x)^5, x, 32, -((p^2*r^2)/(32*b*(a + b*x)^4)) - (7*d*p*q*r^2)/(72*b*(b*c - a*d)*(a + b*x)^3) + (3*d^2*p*q*r^2)/(16*b*(b*c - a*d)^2*(a + b*x)^2) - (d^2*q^2*r^2)/(12*b*(b*c - a*d)^2*(a + b*x)^2) - (5*d^3*p*q*r^2)/(8*b*(b*c - a*d)^3*(a + b*x)) + (5*d^3*q^2*r^2)/(12*b*(b*c - a*d)^3*(a + b*x)) - (d^4*p*q*r^2*log(a + b*x))/(8*b*(b*c - a*d)^4) + (11*d^4*q^2*r^2*log(a + b*x))/(12*b*(b*c - a*d)^4) + (d^4*p*q*r^2*log(a + b*x)^2)/(4*b*(b*c - a*d)^4) + (d^4*p*q*r^2*log(c + d*x))/(8*b*(b*c - a*d)^4) - (11*d^4*q^2*r^2*log(c + d*x))/(12*b*(b*c - a*d)^4) - (d^4*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(2*b*(b*c - a*d)^4) - (d^4*q^2*r^2*log(c + d*x)^2)/(4*b*(b*c - a*d)^4) + (d^4*q^2*r^2*log(a + b*x)*log((b*(c + d*x))/(b*c - a*d)))/(2*b*(b*c - a*d)^4) - (p*r*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(8*b*(a + b*x)^4) - (d*q*r*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(6*b*(b*c - a*d)*(a + b*x)^3) + (d^2*q*r*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(4*b*(b*c - a*d)^2*(a + b*x)^2) - (d^3*q*r*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(2*b*(b*c - a*d)^3*(a + b*x)) - (d^4*q*r*log(a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(2*b*(b*c - a*d)^4) + (d^4*q*r*log(c + d*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(2*b*(b*c - a*d)^4) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(4*b*(a + b*x)^4) + (d^4*q^2*r^2*PolyLog(2, -((d*(a + b*x))/(b*c - a*d))))/(2*b*(b*c - a*d)^4) - (d^4*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(2*b*(b*c - a*d)^4)]


    #= ::Subsection::Closed:: =#
    #=Integrands*of*the*form*(g+h*x)^m*(A+B*log(e*(f*(a+b*x)^s*(c+d*x)^t)^n))^p=#


    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*(g + h*x)^4, x, 5, -(((b*g - a*h)^4*p*r*x)/(5*b^4)) - ((d*g - c*h)^4*q*r*x)/(5*d^4) - ((b*g - a*h)^3*p*r*(g + h*x)^2)/(10*b^3*h) - ((d*g - c*h)^3*q*r*(g + h*x)^2)/(10*d^3*h) - ((b*g - a*h)^2*p*r*(g + h*x)^3)/(15*b^2*h) - ((d*g - c*h)^2*q*r*(g + h*x)^3)/(15*d^2*h) - ((b*g - a*h)*p*r*(g + h*x)^4)/(20*b*h) - ((d*g - c*h)*q*r*(g + h*x)^4)/(20*d*h) - (p*r*(g + h*x)^5)/(25*h) - (q*r*(g + h*x)^5)/(25*h) - ((b*g - a*h)^5*p*r*log(a + b*x))/(5*b^5*h) - ((d*g - c*h)^5*q*r*log(c + d*x))/(5*d^5*h) + ((g + h*x)^5*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(5*h)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*(g + h*x)^3, x, 5, -(((b*g - a*h)^3*p*r*x)/(4*b^3)) - ((d*g - c*h)^3*q*r*x)/(4*d^3) - ((b*g - a*h)^2*p*r*(g + h*x)^2)/(8*b^2*h) - ((d*g - c*h)^2*q*r*(g + h*x)^2)/(8*d^2*h) - ((b*g - a*h)*p*r*(g + h*x)^3)/(12*b*h) - ((d*g - c*h)*q*r*(g + h*x)^3)/(12*d*h) - (p*r*(g + h*x)^4)/(16*h) - (q*r*(g + h*x)^4)/(16*h) - ((b*g - a*h)^4*p*r*log(a + b*x))/(4*b^4*h) - ((d*g - c*h)^4*q*r*log(c + d*x))/(4*d^4*h) + ((g + h*x)^4*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(4*h)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*(g + h*x)^2, x, 5, -(((b*g - a*h)^2*p*r*x)/(3*b^2)) - ((d*g - c*h)^2*q*r*x)/(3*d^2) - ((b*g - a*h)*p*r*(g + h*x)^2)/(6*b*h) - ((d*g - c*h)*q*r*(g + h*x)^2)/(6*d*h) - (p*r*(g + h*x)^3)/(9*h) - (q*r*(g + h*x)^3)/(9*h) - ((b*g - a*h)^3*p*r*log(a + b*x))/(3*b^3*h) - ((d*g - c*h)^3*q*r*log(c + d*x))/(3*d^3*h) + ((g + h*x)^3*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(3*h)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*(g + h*x)^1, x, 5, -(((b*g - a*h)*p*r*x)/(2*b)) - ((d*g - c*h)*q*r*x)/(2*d) - (p*r*(g + h*x)^2)/(4*h) - (q*r*(g + h*x)^2)/(4*h) - ((b*g - a*h)^2*p*r*log(a + b*x))/(2*b^2*h) - ((d*g - c*h)^2*q*r*log(c + d*x))/(2*d^2*h) + ((g + h*x)^2*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(2*h)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*(g + h*x)^0, x, 3, -((p + q)*r*x) + ((b*c - a*d)*q*r*log(c + d*x))/(b*d) + ((a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/b]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(g + h*x)^1, x, 7, -((p*r*log(-((h*(a + b*x))/(b*g - a*h)))*log(g + h*x))/h) - (q*r*log(-((h*(c + d*x))/(d*g - c*h)))*log(g + h*x))/h + (log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*log(g + h*x))/h - (p*r*PolyLog(2, (b*(g + h*x))/(b*g - a*h)))/h - (q*r*PolyLog(2, (d*(g + h*x))/(d*g - c*h)))/h]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(g + h*x)^2, x, 7, (b*p*r*log(a + b*x))/(h*(b*g - a*h)) + (d*q*r*log(c + d*x))/(h*(d*g - c*h)) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(h*(g + h*x)) - (b*p*r*log(g + h*x))/(h*(b*g - a*h)) - (d*q*r*log(g + h*x))/(h*(d*g - c*h))]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(g + h*x)^3, x, 5, (b*p*r)/(2*h*(b*g - a*h)*(g + h*x)) + (d*q*r)/(2*h*(d*g - c*h)*(g + h*x)) + (b^2*p*r*log(a + b*x))/(2*h*(b*g - a*h)^2) + (d^2*q*r*log(c + d*x))/(2*h*(d*g - c*h)^2) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(2*h*(g + h*x)^2) - (b^2*p*r*log(g + h*x))/(2*h*(b*g - a*h)^2) - (d^2*q*r*log(g + h*x))/(2*h*(d*g - c*h)^2)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(g + h*x)^4, x, 5, (b*p*r)/(6*h*(b*g - a*h)*(g + h*x)^2) + (d*q*r)/(6*h*(d*g - c*h)*(g + h*x)^2) + (b^2*p*r)/(3*h*(b*g - a*h)^2*(g + h*x)) + (d^2*q*r)/(3*h*(d*g - c*h)^2*(g + h*x)) + (b^3*p*r*log(a + b*x))/(3*h*(b*g - a*h)^3) + (d^3*q*r*log(c + d*x))/(3*h*(d*g - c*h)^3) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(3*h*(g + h*x)^3) - (b^3*p*r*log(g + h*x))/(3*h*(b*g - a*h)^3) - (d^3*q*r*log(g + h*x))/(3*h*(d*g - c*h)^3)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(g + h*x)^5, x, 5, (b*p*r)/(12*h*(b*g - a*h)*(g + h*x)^3) + (d*q*r)/(12*h*(d*g - c*h)*(g + h*x)^3) + (b^2*p*r)/(8*h*(b*g - a*h)^2*(g + h*x)^2) + (d^2*q*r)/(8*h*(d*g - c*h)^2*(g + h*x)^2) + (b^3*p*r)/(4*h*(b*g - a*h)^3*(g + h*x)) + (d^3*q*r)/(4*h*(d*g - c*h)^3*(g + h*x)) + (b^4*p*r*log(a + b*x))/(4*h*(b*g - a*h)^4) + (d^4*q*r*log(c + d*x))/(4*h*(d*g - c*h)^4) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(4*h*(g + h*x)^4) - (b^4*p*r*log(g + h*x))/(4*h*(b*g - a*h)^4) - (d^4*q*r*log(g + h*x))/(4*h*(d*g - c*h)^4)]


    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2*(g + h*x)^3, x, 53, (2*(b*g - a*h)^3*p^2*r^2*x)/b^3 + (5*(b*g - a*h)^3*p*q*r^2*x)/(8*b^3) + (5*(b*g - a*h)^2*(d*g - c*h)*p*q*r^2*x)/(12*b^2*d) + (5*(b*g - a*h)*(d*g - c*h)^2*p*q*r^2*x)/(12*b*d^2) + (5*(d*g - c*h)^3*p*q*r^2*x)/(8*d^3) + (2*(d*g - c*h)^3*q^2*r^2*x)/d^3 + (3*h*(b*g - a*h)^2*p^2*r^2*(a + b*x)^2)/(4*b^4) + (2*h^2*(b*g - a*h)*p^2*r^2*(a + b*x)^3)/(9*b^4) + (h^3*p^2*r^2*(a + b*x)^4)/(32*b^4) + (3*h*(d*g - c*h)^2*q^2*r^2*(c + d*x)^2)/(4*d^4) + (2*h^2*(d*g - c*h)*q^2*r^2*(c + d*x)^3)/(9*d^4) + (h^3*q^2*r^2*(c + d*x)^4)/(32*d^4) + (3*(b*g - a*h)^2*p*q*r^2*(g + h*x)^2)/(16*b^2*h) + ((b*g - a*h)*(d*g - c*h)*p*q*r^2*(g + h*x)^2)/(6*b*d*h) + (3*(d*g - c*h)^2*p*q*r^2*(g + h*x)^2)/(16*d^2*h) + (7*(b*g - a*h)*p*q*r^2*(g + h*x)^3)/(72*b*h) + (7*(d*g - c*h)*p*q*r^2*(g + h*x)^3)/(72*d*h) + (p*q*r^2*(g + h*x)^4)/(16*h) + ((b*g - a*h)^4*p*q*r^2*log(a + b*x))/(8*b^4*h) + ((b*g - a*h)^3*(d*g - c*h)*p*q*r^2*log(a + b*x))/(6*b^3*d*h) + ((b*g - a*h)^2*(d*g - c*h)^2*p*q*r^2*log(a + b*x))/(4*b^2*d^2*h) - (2*(b*g - a*h)^3*p^2*r^2*(a + b*x)*log(a + b*x))/b^4 - ((d*g - c*h)^3*p*q*r^2*(a + b*x)*log(a + b*x))/(2*b*d^3) - (3*h*(b*g - a*h)^2*p^2*r^2*(a + b*x)^2*log(a + b*x))/(2*b^4) - (2*h^2*(b*g - a*h)*p^2*r^2*(a + b*x)^3*log(a + b*x))/(3*b^4) - (h^3*p^2*r^2*(a + b*x)^4*log(a + b*x))/(8*b^4) - ((d*g - c*h)^2*p*q*r^2*(g + h*x)^2*log(a + b*x))/(4*d^2*h) - ((d*g - c*h)*p*q*r^2*(g + h*x)^3*log(a + b*x))/(6*d*h) - (p*q*r^2*(g + h*x)^4*log(a + b*x))/(8*h) - ((b*g - a*h)^4*p^2*r^2*log(a + b*x)^2)/(4*b^4*h) + ((b*g - a*h)^2*(d*g - c*h)^2*p*q*r^2*log(c + d*x))/(4*b^2*d^2*h) + ((b*g - a*h)*(d*g - c*h)^3*p*q*r^2*log(c + d*x))/(6*b*d^3*h) + ((d*g - c*h)^4*p*q*r^2*log(c + d*x))/(8*d^4*h) - ((b*g - a*h)^3*p*q*r^2*(c + d*x)*log(c + d*x))/(2*b^3*d) - (2*(d*g - c*h)^3*q^2*r^2*(c + d*x)*log(c + d*x))/d^4 - (3*h*(d*g - c*h)^2*q^2*r^2*(c + d*x)^2*log(c + d*x))/(2*d^4) - (2*h^2*(d*g - c*h)*q^2*r^2*(c + d*x)^3*log(c + d*x))/(3*d^4) - (h^3*q^2*r^2*(c + d*x)^4*log(c + d*x))/(8*d^4) - ((b*g - a*h)^2*p*q*r^2*(g + h*x)^2*log(c + d*x))/(4*b^2*h) - ((b*g - a*h)*p*q*r^2*(g + h*x)^3*log(c + d*x))/(6*b*h) - (p*q*r^2*(g + h*x)^4*log(c + d*x))/(8*h) - ((b*g - a*h)^4*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(2*b^4*h) - ((d*g - c*h)^4*q^2*r^2*log(c + d*x)^2)/(4*d^4*h) - ((d*g - c*h)^4*p*q*r^2*log(a + b*x)*log((b*(c + d*x))/(b*c - a*d)))/(2*d^4*h) + ((b*g - a*h)^3*p*r*x*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(2*b^3) + ((d*g - c*h)^3*q*r*x*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(2*d^3) + ((b*g - a*h)^2*p*r*(g + h*x)^2*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(4*b^2*h) + ((d*g - c*h)^2*q*r*(g + h*x)^2*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(4*d^2*h) + ((b*g - a*h)*p*r*(g + h*x)^3*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(6*b*h) + ((d*g - c*h)*q*r*(g + h*x)^3*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(6*d*h) + (p*r*(g + h*x)^4*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(8*h) + (q*r*(g + h*x)^4*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(8*h) + ((b*g - a*h)^4*p*r*log(a + b*x)*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(2*b^4*h) + ((d*g - c*h)^4*q*r*log(c + d*x)*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(2*d^4*h) + ((g + h*x)^4*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2)/(4*h) - ((d*g - c*h)^4*p*q*r^2*PolyLog(2, -((d*(a + b*x))/(b*c - a*d))))/(2*d^4*h) - ((b*g - a*h)^4*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(2*b^4*h)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2*(g + h*x)^2, x, 47, (2*(b*g - a*h)^2*p^2*r^2*x)/b^2 + (8*(b*g - a*h)^2*p*q*r^2*x)/(9*b^2) + (2*(b*g - a*h)*(d*g - c*h)*p*q*r^2*x)/(3*b*d) + (8*(d*g - c*h)^2*p*q*r^2*x)/(9*d^2) + (2*(d*g - c*h)^2*q^2*r^2*x)/d^2 + (h*(b*g - a*h)*p^2*r^2*(a + b*x)^2)/(2*b^3) + (2*h^2*p^2*r^2*(a + b*x)^3)/(27*b^3) + (h*(d*g - c*h)*q^2*r^2*(c + d*x)^2)/(2*d^3) + (2*h^2*q^2*r^2*(c + d*x)^3)/(27*d^3) + (5*(b*g - a*h)*p*q*r^2*(g + h*x)^2)/(18*b*h) + (5*(d*g - c*h)*p*q*r^2*(g + h*x)^2)/(18*d*h) + (4*p*q*r^2*(g + h*x)^3)/(27*h) + (2*(b*g - a*h)^3*p*q*r^2*log(a + b*x))/(9*b^3*h) + ((b*g - a*h)^2*(d*g - c*h)*p*q*r^2*log(a + b*x))/(3*b^2*d*h) - (2*(b*g - a*h)^2*p^2*r^2*(a + b*x)*log(a + b*x))/b^3 - (2*(d*g - c*h)^2*p*q*r^2*(a + b*x)*log(a + b*x))/(3*b*d^2) - (h*(b*g - a*h)*p^2*r^2*(a + b*x)^2*log(a + b*x))/b^3 - (2*h^2*p^2*r^2*(a + b*x)^3*log(a + b*x))/(9*b^3) - ((d*g - c*h)*p*q*r^2*(g + h*x)^2*log(a + b*x))/(3*d*h) - (2*p*q*r^2*(g + h*x)^3*log(a + b*x))/(9*h) - ((b*g - a*h)^3*p^2*r^2*log(a + b*x)^2)/(3*b^3*h) + ((b*g - a*h)*(d*g - c*h)^2*p*q*r^2*log(c + d*x))/(3*b*d^2*h) + (2*(d*g - c*h)^3*p*q*r^2*log(c + d*x))/(9*d^3*h) - (2*(b*g - a*h)^2*p*q*r^2*(c + d*x)*log(c + d*x))/(3*b^2*d) - (2*(d*g - c*h)^2*q^2*r^2*(c + d*x)*log(c + d*x))/d^3 - (h*(d*g - c*h)*q^2*r^2*(c + d*x)^2*log(c + d*x))/d^3 - (2*h^2*q^2*r^2*(c + d*x)^3*log(c + d*x))/(9*d^3) - ((b*g - a*h)*p*q*r^2*(g + h*x)^2*log(c + d*x))/(3*b*h) - (2*p*q*r^2*(g + h*x)^3*log(c + d*x))/(9*h) - (2*(b*g - a*h)^3*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(3*b^3*h) - ((d*g - c*h)^3*q^2*r^2*log(c + d*x)^2)/(3*d^3*h) - (2*(d*g - c*h)^3*p*q*r^2*log(a + b*x)*log((b*(c + d*x))/(b*c - a*d)))/(3*d^3*h) + (2*(b*g - a*h)^2*p*r*x*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(3*b^2) + (2*(d*g - c*h)^2*q*r*x*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(3*d^2) + ((b*g - a*h)*p*r*(g + h*x)^2*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(3*b*h) + ((d*g - c*h)*q*r*(g + h*x)^2*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(3*d*h) + (2*p*r*(g + h*x)^3*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(9*h) + (2*q*r*(g + h*x)^3*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(9*h) + (2*(b*g - a*h)^3*p*r*log(a + b*x)*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(3*b^3*h) + (2*(d*g - c*h)^3*q*r*log(c + d*x)*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(3*d^3*h) + ((g + h*x)^3*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2)/(3*h) - (2*(d*g - c*h)^3*p*q*r^2*PolyLog(2, -((d*(a + b*x))/(b*c - a*d))))/(3*d^3*h) - (2*(b*g - a*h)^3*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(3*b^3*h)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2*(g + h*x)^1, x, 39, (3*(b*g - a*h)*p*q*r^2*x)/(2*b) + (3*(d*g - c*h)*p*q*r^2*x)/(2*d) + (p*q*r^2*(g + h*x)^2)/(2*h) + (p^2*r^2*(4*b*g - 3*a*h + b*h*x)^2)/(4*b^2*h) + (q^2*r^2*(4*d*g - 3*c*h + d*h*x)^2)/(4*d^2*h) + ((b*g - a*h)^2*p*q*r^2*log(a + b*x))/(2*b^2*h) - (2*(b*g - a*h)*p^2*r^2*(a + b*x)*log(a + b*x))/b^2 - ((d*g - c*h)*p*q*r^2*(a + b*x)*log(a + b*x))/(b*d) - (h*p^2*r^2*(a + b*x)^2*log(a + b*x))/(2*b^2) - (p*q*r^2*(g + h*x)^2*log(a + b*x))/(2*h) - ((b*g - a*h)^2*p^2*r^2*log(a + b*x)^2)/(2*b^2*h) + ((d*g - c*h)^2*p*q*r^2*log(c + d*x))/(2*d^2*h) - ((b*g - a*h)*p*q*r^2*(c + d*x)*log(c + d*x))/(b*d) - (2*(d*g - c*h)*q^2*r^2*(c + d*x)*log(c + d*x))/d^2 - (h*q^2*r^2*(c + d*x)^2*log(c + d*x))/(2*d^2) - (p*q*r^2*(g + h*x)^2*log(c + d*x))/(2*h) - ((b*g - a*h)^2*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(b^2*h) - ((d*g - c*h)^2*q^2*r^2*log(c + d*x)^2)/(2*d^2*h) - ((d*g - c*h)^2*p*q*r^2*log(a + b*x)*log((b*(c + d*x))/(b*c - a*d)))/(d^2*h) + ((b*g - a*h)*p*r*x*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/b + ((d*g - c*h)*q*r*x*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/d + (p*r*(g + h*x)^2*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(2*h) + (q*r*(g + h*x)^2*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(2*h) + ((b*g - a*h)^2*p*r*log(a + b*x)*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(b^2*h) + ((d*g - c*h)^2*q*r*log(c + d*x)*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(d^2*h) + ((g + h*x)^2*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2)/(2*h) - ((d*g - c*h)^2*p*q*r^2*PolyLog(2, -((d*(a + b*x))/(b*c - a*d))))/(d^2*h) - ((b*g - a*h)^2*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(b^2*h)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2*(g + h*x)^0, x, 10, 2*(p + q)^2*r^2*x - (2*(b*c - a*d)*q*(p + q)*r^2*log(c + d*x))/(b*d) - (2*(b*c - a*d)*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(b*d) - ((b*c - a*d)*q^2*r^2*log(c + d*x)^2)/(b*d) - (2*(p + q)*r*(a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/b + (2*(b*c - a*d)*q*r*log(c + d*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(b*d) + ((a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2)/b - (2*(b*c - a*d)*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(b*d)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(g + h*x)^1, x, -29, (p*q*r^2*log(-((b*c - a*d)/(d*(a + b*x))))*log(((b*g - a*h)*(c + d*x))/((d*g - c*h)*(a + b*x)))^2)/h + (p^2*r^2*log(a + b*x)^2*log(g + h*x))/h + (2*p*q*r^2*log(a + b*x)*log(c + d*x)*log(g + h*x))/h + (q^2*r^2*log(c + d*x)^2*log(g + h*x))/h - (2*p*r*log(a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*log(g + h*x))/h - (2*q*r*log(c + d*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*log(g + h*x))/h + (log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2*log(g + h*x))/h - (p^2*r^2*log(a + b*x)^2*log((b*(g + h*x))/(b*g - a*h)))/h - (2*p*q*r^2*log(a + b*x)*log(-((h*(c + d*x))/(d*g - c*h)))*log((b*(g + h*x))/(b*g - a*h)))/h + (p*q*r^2*log(-((h*(c + d*x))/(d*g - c*h)))^2*log((b*(g + h*x))/(b*g - a*h)))/h - (2*p*q*r^2*log(-((h*(c + d*x))/(d*g - c*h)))*log(((b*g - a*h)*(c + d*x))/((d*g - c*h)*(a + b*x)))*log((b*(g + h*x))/(b*g - a*h)))/h + (p*q*r^2*log(((b*g - a*h)*(c + d*x))/((d*g - c*h)*(a + b*x)))^2*log((b*(g + h*x))/(b*g - a*h)))/h + (2*p*r*log(a + b*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*log((b*(g + h*x))/(b*g - a*h)))/h - (2*p*q*r^2*log(a + b*x)*log(c + d*x)*log((d*(g + h*x))/(d*g - c*h)))/h - (q^2*r^2*log(c + d*x)^2*log((d*(g + h*x))/(d*g - c*h)))/h + (2*p*q*r^2*log(a + b*x)*log(-((h*(c + d*x))/(d*g - c*h)))*log((d*(g + h*x))/(d*g - c*h)))/h - (p*q*r^2*log(-((h*(c + d*x))/(d*g - c*h)))^2*log((d*(g + h*x))/(d*g - c*h)))/h + (2*p*q*r^2*log(-((h*(c + d*x))/(d*g - c*h)))*log(((b*g - a*h)*(c + d*x))/((d*g - c*h)*(a + b*x)))*log((d*(g + h*x))/(d*g - c*h)))/h + (2*q*r*log(c + d*x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*log((d*(g + h*x))/(d*g - c*h)))/h - (p*q*r^2*log(((b*g - a*h)*(c + d*x))/((d*g - c*h)*(a + b*x)))^2*log(-(((b*c - a*d)*(g + h*x))/((d*g - c*h)*(a + b*x)))))/h - (2*p*r*(q*r*log(((b*g - a*h)*(c + d*x))/((d*g - c*h)*(a + b*x))) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))*PolyLog(2, -((h*(a + b*x))/(b*g - a*h))))/h + (2*q*r*(p*r*log(((b*g - a*h)*(c + d*x))/((d*g - c*h)*(a + b*x))) + log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))*PolyLog(2, -((h*(c + d*x))/(d*g - c*h))))/h + (2*p*q*r^2*log(((b*g - a*h)*(c + d*x))/((d*g - c*h)*(a + b*x)))*PolyLog(2, (b*(c + d*x))/(d*(a + b*x))))/h - (2*p*q*r^2*log(((b*g - a*h)*(c + d*x))/((d*g - c*h)*(a + b*x)))*PolyLog(2, ((b*g - a*h)*(c + d*x))/((d*g - c*h)*(a + b*x))))/h - (2*p^2*r^2*PolyLog(3, -((h*(a + b*x))/(b*g - a*h))))/h - (2*p*q*r^2*PolyLog(3, -((h*(a + b*x))/(b*g - a*h))))/h - (2*p*q*r^2*PolyLog(3, -((h*(c + d*x))/(d*g - c*h))))/h - (2*q^2*r^2*PolyLog(3, -((h*(c + d*x))/(d*g - c*h))))/h - (2*p*q*r^2*PolyLog(3, (b*(c + d*x))/(d*(a + b*x))))/h + (2*p*q*r^2*PolyLog(3, ((b*g - a*h)*(c + d*x))/((d*g - c*h)*(a + b*x))))/h]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(g + h*x)^2, x, 31, (2*b*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(h*(b*g - a*h)) + (2*d*p*q*r^2*log(a + b*x)*log((b*(c + d*x))/(b*c - a*d)))/(h*(d*g - c*h)) - (2*b*p*r*log(a + b*x)*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(h*(b*g - a*h)) - (2*d*q*r*log(c + d*x)*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(h*(d*g - c*h)) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(h*(g + h*x)) + (2*b*p*r*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))*log(g + h*x))/(h*(b*g - a*h)) + (2*d*q*r*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))*log(g + h*x))/(h*(d*g - c*h)) - (2*d*p*q*r^2*log(a + b*x)*log((b*(g + h*x))/(b*g - a*h)))/(h*(d*g - c*h)) - (2*b*p*q*r^2*log(c + d*x)*log((d*(g + h*x))/(d*g - c*h)))/(h*(b*g - a*h)) - (2*b*p^2*r^2*log(a + b*x)*log(1 + (b*g - a*h)/(h*(a + b*x))))/(h*(b*g - a*h)) - (2*d*q^2*r^2*log(c + d*x)*log(1 + (d*g - c*h)/(h*(c + d*x))))/(h*(d*g - c*h)) + (2*b*p^2*r^2*PolyLog(2, -((b*g - a*h)/(h*(a + b*x)))))/(h*(b*g - a*h)) + (2*d*p*q*r^2*PolyLog(2, -((d*(a + b*x))/(b*c - a*d))))/(h*(d*g - c*h)) - (2*d*p*q*r^2*PolyLog(2, -((h*(a + b*x))/(b*g - a*h))))/(h*(d*g - c*h)) + (2*d*q^2*r^2*PolyLog(2, -((d*g - c*h)/(h*(c + d*x)))))/(h*(d*g - c*h)) + (2*b*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(h*(b*g - a*h)) - (2*b*p*q*r^2*PolyLog(2, -((h*(c + d*x))/(d*g - c*h))))/(h*(b*g - a*h))]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(g + h*x)^3, x, 43, -((b*d*p*q*r^2*log(a + b*x))/(h*(b*g - a*h)*(d*g - c*h))) + (d*p*q*r^2*log(a + b*x))/(h*(d*g - c*h)*(g + h*x)) - (b*p^2*r^2*(a + b*x)*log(a + b*x))/((b*g - a*h)^2*(g + h*x)) - (b*d*p*q*r^2*log(c + d*x))/(h*(b*g - a*h)*(d*g - c*h)) + (b*p*q*r^2*log(c + d*x))/(h*(b*g - a*h)*(g + h*x)) - (d*q^2*r^2*(c + d*x)*log(c + d*x))/((d*g - c*h)^2*(g + h*x)) + (b^2*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(h*(b*g - a*h)^2) + (d^2*p*q*r^2*log(a + b*x)*log((b*(c + d*x))/(b*c - a*d)))/(h*(d*g - c*h)^2) - (b*p*r*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(h*(b*g - a*h)*(g + h*x)) - (d*q*r*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(h*(d*g - c*h)*(g + h*x)) - (b^2*p*r*log(a + b*x)*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(h*(b*g - a*h)^2) - (d^2*q*r*log(c + d*x)*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(h*(d*g - c*h)^2) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(2*h*(g + h*x)^2) + (b^2*p^2*r^2*log(g + h*x))/(h*(b*g - a*h)^2) + (2*b*d*p*q*r^2*log(g + h*x))/(h*(b*g - a*h)*(d*g - c*h)) + (d^2*q^2*r^2*log(g + h*x))/(h*(d*g - c*h)^2) + (b^2*p*r*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))*log(g + h*x))/(h*(b*g - a*h)^2) + (d^2*q*r*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))*log(g + h*x))/(h*(d*g - c*h)^2) - (d^2*p*q*r^2*log(a + b*x)*log((b*(g + h*x))/(b*g - a*h)))/(h*(d*g - c*h)^2) - (b^2*p*q*r^2*log(c + d*x)*log((d*(g + h*x))/(d*g - c*h)))/(h*(b*g - a*h)^2) - (b^2*p^2*r^2*log(a + b*x)*log(1 + (b*g - a*h)/(h*(a + b*x))))/(h*(b*g - a*h)^2) - (d^2*q^2*r^2*log(c + d*x)*log(1 + (d*g - c*h)/(h*(c + d*x))))/(h*(d*g - c*h)^2) + (b^2*p^2*r^2*PolyLog(2, -((b*g - a*h)/(h*(a + b*x)))))/(h*(b*g - a*h)^2) + (d^2*p*q*r^2*PolyLog(2, -((d*(a + b*x))/(b*c - a*d))))/(h*(d*g - c*h)^2) - (d^2*p*q*r^2*PolyLog(2, -((h*(a + b*x))/(b*g - a*h))))/(h*(d*g - c*h)^2) + (d^2*q^2*r^2*PolyLog(2, -((d*g - c*h)/(h*(c + d*x)))))/(h*(d*g - c*h)^2) + (b^2*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(h*(b*g - a*h)^2) - (b^2*p*q*r^2*PolyLog(2, -((h*(c + d*x))/(d*g - c*h))))/(h*(b*g - a*h)^2)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(g + h*x)^4, x, 57, -((b^2*p^2*r^2)/(3*h*(b*g - a*h)^2*(g + h*x))) - (2*b*d*p*q*r^2)/(3*h*(b*g - a*h)*(d*g - c*h)*(g + h*x)) - (d^2*q^2*r^2)/(3*h*(d*g - c*h)^2*(g + h*x)) - (b^3*p^2*r^2*log(a + b*x))/(3*h*(b*g - a*h)^3) - (2*b*d^2*p*q*r^2*log(a + b*x))/(3*h*(b*g - a*h)*(d*g - c*h)^2) - (b^2*d*p*q*r^2*log(a + b*x))/(3*h*(b*g - a*h)^2*(d*g - c*h)) + (b*p^2*r^2*log(a + b*x))/(3*h*(b*g - a*h)*(g + h*x)^2) + (d*p*q*r^2*log(a + b*x))/(3*h*(d*g - c*h)*(g + h*x)^2) + (2*d^2*p*q*r^2*log(a + b*x))/(3*h*(d*g - c*h)^2*(g + h*x)) - (2*b^2*p^2*r^2*(a + b*x)*log(a + b*x))/(3*(b*g - a*h)^3*(g + h*x)) - (b*d^2*p*q*r^2*log(c + d*x))/(3*h*(b*g - a*h)*(d*g - c*h)^2) - (2*b^2*d*p*q*r^2*log(c + d*x))/(3*h*(b*g - a*h)^2*(d*g - c*h)) - (d^3*q^2*r^2*log(c + d*x))/(3*h*(d*g - c*h)^3) + (b*p*q*r^2*log(c + d*x))/(3*h*(b*g - a*h)*(g + h*x)^2) + (d*q^2*r^2*log(c + d*x))/(3*h*(d*g - c*h)*(g + h*x)^2) + (2*b^2*p*q*r^2*log(c + d*x))/(3*h*(b*g - a*h)^2*(g + h*x)) - (2*d^2*q^2*r^2*(c + d*x)*log(c + d*x))/(3*(d*g - c*h)^3*(g + h*x)) + (2*b^3*p*q*r^2*log(-((d*(a + b*x))/(b*c - a*d)))*log(c + d*x))/(3*h*(b*g - a*h)^3) + (2*d^3*p*q*r^2*log(a + b*x)*log((b*(c + d*x))/(b*c - a*d)))/(3*h*(d*g - c*h)^3) - (b*p*r*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(3*h*(b*g - a*h)*(g + h*x)^2) - (d*q*r*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(3*h*(d*g - c*h)*(g + h*x)^2) - (2*b^2*p*r*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(3*h*(b*g - a*h)^2*(g + h*x)) - (2*d^2*q*r*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(3*h*(d*g - c*h)^2*(g + h*x)) - (2*b^3*p*r*log(a + b*x)*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(3*h*(b*g - a*h)^3) - (2*d^3*q*r*log(c + d*x)*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)))/(3*h*(d*g - c*h)^3) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)^2/(3*h*(g + h*x)^3) + (b^3*p^2*r^2*log(g + h*x))/(h*(b*g - a*h)^3) + (b*d^2*p*q*r^2*log(g + h*x))/(h*(b*g - a*h)*(d*g - c*h)^2) + (b^2*d*p*q*r^2*log(g + h*x))/(h*(b*g - a*h)^2*(d*g - c*h)) + (d^3*q^2*r^2*log(g + h*x))/(h*(d*g - c*h)^3) + (2*b^3*p*r*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))*log(g + h*x))/(3*h*(b*g - a*h)^3) + (2*d^3*q*r*(p*r*log(a + b*x) + q*r*log(c + d*x) - log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))*log(g + h*x))/(3*h*(d*g - c*h)^3) - (2*d^3*p*q*r^2*log(a + b*x)*log((b*(g + h*x))/(b*g - a*h)))/(3*h*(d*g - c*h)^3) - (2*b^3*p*q*r^2*log(c + d*x)*log((d*(g + h*x))/(d*g - c*h)))/(3*h*(b*g - a*h)^3) - (2*b^3*p^2*r^2*log(a + b*x)*log(1 + (b*g - a*h)/(h*(a + b*x))))/(3*h*(b*g - a*h)^3) - (2*d^3*q^2*r^2*log(c + d*x)*log(1 + (d*g - c*h)/(h*(c + d*x))))/(3*h*(d*g - c*h)^3) + (2*b^3*p^2*r^2*PolyLog(2, -((b*g - a*h)/(h*(a + b*x)))))/(3*h*(b*g - a*h)^3) + (2*d^3*p*q*r^2*PolyLog(2, -((d*(a + b*x))/(b*c - a*d))))/(3*h*(d*g - c*h)^3) - (2*d^3*p*q*r^2*PolyLog(2, -((h*(a + b*x))/(b*g - a*h))))/(3*h*(d*g - c*h)^3) + (2*d^3*q^2*r^2*PolyLog(2, -((d*g - c*h)/(h*(c + d*x)))))/(3*h*(d*g - c*h)^3) + (2*b^3*p*q*r^2*PolyLog(2, (b*(c + d*x))/(b*c - a*d)))/(3*h*(b*g - a*h)^3) - (2*b^3*p*q*r^2*PolyLog(2, -((h*(c + d*x))/(d*g - c*h))))/(3*h*(b*g - a*h)^3)]


    #= ::Section::Closed:: =#
    #=Integrands*of*the*form*(g+h*x^2)^m*(A+B*log(e*(f*(a+b*x)^s*(c+d*x)^t)^n))^p=#


    @test_int [(a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x)))^n/(1 - c^2*x^2), x, 2, -((a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x)))^(1 + n)/(b*c*(1 + n)))]


    @test_int [(a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x)))^3/(1 - c^2*x^2), x, 5, -((a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x)))^4/(4*b*c))]
    @test_int [(a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x)))^2/(1 - c^2*x^2), x, 5, -((a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x)))^3/(3*b*c))]
    @test_int [(a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x)))^1/(1 - c^2*x^2), x, 4, -((a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x)))^2/(2*b*c))]
    @test_int [1/((a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x)))^1*(1 - c^2*x^2)), x, 2, -(log(a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x)))/(b*c))]
    @test_int [1/((a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x)))^2*(1 - c^2*x^2)), x, 2, 1/(b*c*(a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x))))]
    @test_int [1/((a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x)))^3*(1 - c^2*x^2)), x, 2, 1/(2*b*c*(a + b*log(sqrt(1 - c*x)/sqrt(1 + c*x)))^2)]


    @test_int [log(sqrt(1 - a*x)/sqrt(1 + a*x))^1/(1 - a^2*x^2), x, 4, -(log(sqrt(1 - a*x)/sqrt(1 + a*x))^2/(2*a))]


    #= ::Section::Closed:: =#
    #=Integrands*of*the*form*(s+t*log(i*(g+h*x)^n))^m*log(e*(f*(a+b*x)^p*(c+d*x)^q)^r)/(g+h*x)=#


    @test_int [(s + t*log(i*(g + h*x)^n))^2*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(k*g + k*h*x), x, 11, -((p*r*log(-((h*(a + b*x))/(b*g - a*h)))*(s + t*log(i*(g + h*x)^n))^3)/(3*h*k*n*t)) - (q*r*log(-((h*(c + d*x))/(d*g - c*h)))*(s + t*log(i*(g + h*x)^n))^3)/(3*h*k*n*t) + (log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*(s + t*log(i*(g + h*x)^n))^3)/(3*h*k*n*t) - (p*r*(s + t*log(i*(g + h*x)^n))^2*PolyLog(2, (b*(g + h*x))/(b*g - a*h)))/(h*k) - (q*r*(s + t*log(i*(g + h*x)^n))^2*PolyLog(2, (d*(g + h*x))/(d*g - c*h)))/(h*k) + (2*n*p*r*t*(s + t*log(i*(g + h*x)^n))*PolyLog(3, (b*(g + h*x))/(b*g - a*h)))/(h*k) + (2*n*q*r*t*(s + t*log(i*(g + h*x)^n))*PolyLog(3, (d*(g + h*x))/(d*g - c*h)))/(h*k) - (2*n^2*p*r*t^2*PolyLog(4, (b*(g + h*x))/(b*g - a*h)))/(h*k) - (2*n^2*q*r*t^2*PolyLog(4, (d*(g + h*x))/(d*g - c*h)))/(h*k)]
    @test_int [(s + t*log(i*(g + h*x)^n))^1*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(k*g + k*h*x), x, 9, -((p*r*log(-((h*(a + b*x))/(b*g - a*h)))*(s + t*log(i*(g + h*x)^n))^2)/(2*h*k*n*t)) - (q*r*log(-((h*(c + d*x))/(d*g - c*h)))*(s + t*log(i*(g + h*x)^n))^2)/(2*h*k*n*t) + (log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*(s + t*log(i*(g + h*x)^n))^2)/(2*h*k*n*t) - (p*r*(s + t*log(i*(g + h*x)^n))*PolyLog(2, (b*(g + h*x))/(b*g - a*h)))/(h*k) - (q*r*(s + t*log(i*(g + h*x)^n))*PolyLog(2, (d*(g + h*x))/(d*g - c*h)))/(h*k) + (n*p*r*t*PolyLog(3, (b*(g + h*x))/(b*g - a*h)))/(h*k) + (n*q*r*t*PolyLog(3, (d*(g + h*x))/(d*g - c*h)))/(h*k)]
    @test_int [(s + t*log(i*(g + h*x)^n))^0*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(k*g + k*h*x), x, 7, -((p*r*log(-((h*(a + b*x))/(b*g - a*h)))*log(g*k + h*k*x))/(h*k)) - (q*r*log(-((h*(c + d*x))/(d*g - c*h)))*log(g*k + h*k*x))/(h*k) + (log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)*log(g*k + h*k*x))/(h*k) - (p*r*PolyLog(2, (b*(g + h*x))/(b*g - a*h)))/(h*k) - (q*r*PolyLog(2, (d*(g + h*x))/(d*g - c*h)))/(h*k)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/((k*g + k*h*x)*(s + t*log(i*(g + h*x)^n))^1), x, 0, Unintegrable(log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/((g*k + h*k*x)*(s + t*log(i*(g + h*x)^n))), x)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/((k*g + k*h*x)*(s + t*log(i*(g + h*x)^n))^2), x, 0, Unintegrable(log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/((g*k + h*k*x)*(s + t*log(i*(g + h*x)^n))^2), x)]


    #= ::Section::Closed:: =#
    #=Integrands*of*the*form*log(i*(j*(h*x)^t)^u)^m*log(e*(f*(a+b*x)^p*(c+d*x)^q)^r)^s/x=#


    @test_int [log(i*(j*(h*x)^t)^u)^3*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/x, x, 13, -((p*r*log(i*(j*(h*x)^t)^u)^4*log(1 + (b*x)/a))/(4*t*u)) + (log(i*(j*(h*x)^t)^u)^4*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(4*t*u) - (q*r*log(i*(j*(h*x)^t)^u)^4*log(1 + (d*x)/c))/(4*t*u) - p*r*log(i*(j*(h*x)^t)^u)^3*PolyLog(2, -((b*x)/a)) - q*r*log(i*(j*(h*x)^t)^u)^3*PolyLog(2, -((d*x)/c)) + 3*p*r*t*u*log(i*(j*(h*x)^t)^u)^2*PolyLog(3, -((b*x)/a)) + 3*q*r*t*u*log(i*(j*(h*x)^t)^u)^2*PolyLog(3, -((d*x)/c)) - 6*p*r*t^2*u^2*log(i*(j*(h*x)^t)^u)*PolyLog(4, -((b*x)/a)) - 6*q*r*t^2*u^2*log(i*(j*(h*x)^t)^u)*PolyLog(4, -((d*x)/c)) + 6*p*r*t^3*u^3*PolyLog(5, -((b*x)/a)) + 6*q*r*t^3*u^3*PolyLog(5, -((d*x)/c))]
    @test_int [log(i*(j*(h*x)^t)^u)^2*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/x, x, 11, -((p*r*log(i*(j*(h*x)^t)^u)^3*log(1 + (b*x)/a))/(3*t*u)) + (log(i*(j*(h*x)^t)^u)^3*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(3*t*u) - (q*r*log(i*(j*(h*x)^t)^u)^3*log(1 + (d*x)/c))/(3*t*u) - p*r*log(i*(j*(h*x)^t)^u)^2*PolyLog(2, -((b*x)/a)) - q*r*log(i*(j*(h*x)^t)^u)^2*PolyLog(2, -((d*x)/c)) + 2*p*r*t*u*log(i*(j*(h*x)^t)^u)*PolyLog(3, -((b*x)/a)) + 2*q*r*t*u*log(i*(j*(h*x)^t)^u)*PolyLog(3, -((d*x)/c)) - 2*p*r*t^2*u^2*PolyLog(4, -((b*x)/a)) - 2*q*r*t^2*u^2*PolyLog(4, -((d*x)/c))]
    @test_int [log(i*(j*(h*x)^t)^u)^1*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/x, x, 9, -((p*r*log(i*(j*(h*x)^t)^u)^2*log(1 + (b*x)/a))/(2*t*u)) + (log(i*(j*(h*x)^t)^u)^2*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r))/(2*t*u) - (q*r*log(i*(j*(h*x)^t)^u)^2*log(1 + (d*x)/c))/(2*t*u) - p*r*log(i*(j*(h*x)^t)^u)*PolyLog(2, -((b*x)/a)) - q*r*log(i*(j*(h*x)^t)^u)*PolyLog(2, -((d*x)/c)) + p*r*t*u*PolyLog(3, -((b*x)/a)) + q*r*t*u*PolyLog(3, -((d*x)/c))]
    @test_int [log(i*(j*(h*x)^t)^u)^0*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/x, x, 5, (-p)*r*log(x)*log(1 + (b*x)/a) + log(x)*log(e*(f*(a + b*x)^p*(c + d*x)^q)^r) - q*r*log(x)*log(1 + (d*x)/c) - p*r*PolyLog(2, -((b*x)/a)) - q*r*PolyLog(2, -((d*x)/c))]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(x*log(i*(j*(h*x)^t)^u)^1), x, 0, CannotIntegrate(log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(x*log(i*(j*(h*x)^t)^u)), x)]
    @test_int [log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(x*log(i*(j*(h*x)^t)^u)^2), x, 0, CannotIntegrate(log(e*(f*(a + b*x)^p*(c + d*x)^q)^r)/(x*log(i*(j*(h*x)^t)^u)^2), x)]


    #= Simplification*and*normalization*formerly*caused*infinite*recursion. =#
    @test_int [log(x)*log((a + b*x)/((b*c - a*d)*x))^3/x, x, 0, Unintegrable((log(x)*log((a + b*x)/((b*c - a*d)*x))^3)/x, x)]
    @test_int [log(x)*log((a + b*x)/((b*c - a*d)*x))^2/x, x, 0, Unintegrable((log(x)*log((a + b*x)/((b*c - a*d)*x))^2)/x, x)]
    @test_int [log(x)*log((a + b*x)/((b*c - a*d)*x))^1/x, x, 5, (-(1/2))*log(1 + a/(b*x))*log(x)^2 + (1/2)*log(b/(b*c - a*d) + a/((b*c - a*d)*x))*log(x)^2 + log(x)*PolyLog(2, -(a/(b*x))) + PolyLog(3, -(a/(b*x)))]
    @test_int [log(x)/(x*log((a + b*x)/((b*c - a*d)*x))^1), x, 0, Unintegrable(log(x)/(x*log((a + b*x)/((b*c - a*d)*x))), x)]
    @test_int [log(x)/(x*log((a + b*x)/((b*c - a*d)*x))^2), x, 0, Unintegrable(log(x)/(x*log((a + b*x)/((b*c - a*d)*x))^2), x)]


    #= ::Section::Closed:: =#
    #=Integrands*of*the*form*log(i*(j*(g+h*x)^t)^u)  log(e*(f*(a+b*x)^p*(c+d*x)^q)^r)^s / ((a+b*x)*(c+d*x))=#


    @test_int [log(h*(f + g*x)^m)/((a + b*x)*(c + d*x))*log(e*((a + b*x)/(c + d*x))^n)^3, x, 14, (m*log(e*((a + b*x)/(c + d*x))^n)^4*log((b*c - a*d)/(b*(c + d*x))))/(4*(b*c - a*d)*n) + (log(e*((a + b*x)/(c + d*x))^n)^4*log(h*(f + g*x)^m))/(4*(b*c - a*d)*n) - (m*log(e*((a + b*x)/(c + d*x))^n)^4*log(1 - ((d*f - c*g)*(a + b*x))/((b*f - a*g)*(c + d*x))))/(4*(b*c - a*d)*n) + (m*log(e*((a + b*x)/(c + d*x))^n)^3*PolyLog(2, (d*(a + b*x))/(b*(c + d*x))))/(b*c - a*d) - (m*log(e*((a + b*x)/(c + d*x))^n)^3*PolyLog(2, ((d*f - c*g)*(a + b*x))/((b*f - a*g)*(c + d*x))))/(b*c - a*d) - (3*m*n*log(e*((a + b*x)/(c + d*x))^n)^2*PolyLog(3, (d*(a + b*x))/(b*(c + d*x))))/(b*c - a*d) + (3*m*n*log(e*((a + b*x)/(c + d*x))^n)^2*PolyLog(3, ((d*f - c*g)*(a + b*x))/((b*f - a*g)*(c + d*x))))/(b*c - a*d) + (6*m*n^2*log(e*((a + b*x)/(c + d*x))^n)*PolyLog(4, (d*(a + b*x))/(b*(c + d*x))))/(b*c - a*d) - (6*m*n^2*log(e*((a + b*x)/(c + d*x))^n)*PolyLog(4, ((d*f - c*g)*(a + b*x))/((b*f - a*g)*(c + d*x))))/(b*c - a*d) - (6*m*n^3*PolyLog(5, (d*(a + b*x))/(b*(c + d*x))))/(b*c - a*d) + (6*m*n^3*PolyLog(5, ((d*f - c*g)*(a + b*x))/((b*f - a*g)*(c + d*x))))/(b*c - a*d)]
    @test_int [log(h*(f + g*x)^m)/((a + b*x)*(c + d*x))*log(e*((a + b*x)/(c + d*x))^n)^2, x, 12, (m*log(e*((a + b*x)/(c + d*x))^n)^3*log((b*c - a*d)/(b*(c + d*x))))/(3*(b*c - a*d)*n) + (log(e*((a + b*x)/(c + d*x))^n)^3*log(h*(f + g*x)^m))/(3*(b*c - a*d)*n) - (m*log(e*((a + b*x)/(c + d*x))^n)^3*log(1 - ((d*f - c*g)*(a + b*x))/((b*f - a*g)*(c + d*x))))/(3*(b*c - a*d)*n) + (m*log(e*((a + b*x)/(c + d*x))^n)^2*PolyLog(2, (d*(a + b*x))/(b*(c + d*x))))/(b*c - a*d) - (m*log(e*((a + b*x)/(c + d*x))^n)^2*PolyLog(2, ((d*f - c*g)*(a + b*x))/((b*f - a*g)*(c + d*x))))/(b*c - a*d) - (2*m*n*log(e*((a + b*x)/(c + d*x))^n)*PolyLog(3, (d*(a + b*x))/(b*(c + d*x))))/(b*c - a*d) + (2*m*n*log(e*((a + b*x)/(c + d*x))^n)*PolyLog(3, ((d*f - c*g)*(a + b*x))/((b*f - a*g)*(c + d*x))))/(b*c - a*d) + (2*m*n^2*PolyLog(4, (d*(a + b*x))/(b*(c + d*x))))/(b*c - a*d) - (2*m*n^2*PolyLog(4, ((d*f - c*g)*(a + b*x))/((b*f - a*g)*(c + d*x))))/(b*c - a*d)]
    @test_int [log(h*(f + g*x)^m)/((a + b*x)*(c + d*x))*log(e*((a + b*x)/(c + d*x))^n)^1, x, 10, (m*log(e*((a + b*x)/(c + d*x))^n)^2*log((b*c - a*d)/(b*(c + d*x))))/(2*(b*c - a*d)*n) + (log(e*((a + b*x)/(c + d*x))^n)^2*log(h*(f + g*x)^m))/(2*(b*c - a*d)*n) - (m*log(e*((a + b*x)/(c + d*x))^n)^2*log(1 - ((d*f - c*g)*(a + b*x))/((b*f - a*g)*(c + d*x))))/(2*(b*c - a*d)*n) + (m*log(e*((a + b*x)/(c + d*x))^n)*PolyLog(2, (d*(a + b*x))/(b*(c + d*x))))/(b*c - a*d) - (m*log(e*((a + b*x)/(c + d*x))^n)*PolyLog(2, ((d*f - c*g)*(a + b*x))/((b*f - a*g)*(c + d*x))))/(b*c - a*d) - (m*n*PolyLog(3, (d*(a + b*x))/(b*(c + d*x))))/(b*c - a*d) + (m*n*PolyLog(3, ((d*f - c*g)*(a + b*x))/((b*f - a*g)*(c + d*x))))/(b*c - a*d)]
    @test_int [log(h*(f + g*x)^m)/((a + b*x)*(c + d*x))/log(e*((a + b*x)/(c + d*x))^n)^1, x, 2, (b*Unintegrable(log(h*(f + g*x)^m)/((a + b*x)*log(e*((a + b*x)/(c + d*x))^n)), x))/(b*c - a*d) - (d*Unintegrable(log(h*(f + g*x)^m)/((c + d*x)*log(e*((a + b*x)/(c + d*x))^n)), x))/(b*c - a*d)]
    @test_int [log(h*(f + g*x)^m)/((a + b*x)*(c + d*x))/log(e*((a + b*x)/(c + d*x))^n)^2, x, 1, -(log(h*(f + g*x)^m)/((b*c - a*d)*n*log(e*((a + b*x)/(c + d*x))^n))) + (g*m*Unintegrable(1/((f + g*x)*log(e*((a + b*x)/(c + d*x))^n)), x))/((b*c - a*d)*n)]


    #= ::Section::Closed:: =#
    #=Integrands*of*the*form*(f+g*x+h*x^2)^m*log(1-f*(a+b*x)/(c+d*x))*log(e*((a+b*x) / (c+d*x))^n)^p=#


    @test_int [log(1 - (a + b*x)/(c + d*x))/((a + b*x)*(c + d*x)*log((a + b*x)/(c + d*x))^2), x, 2, (b*CannotIntegrate(log(1 - (a + b*x)/(c + d*x))/((a + b*x)*log((a + b*x)/(c + d*x))^2), x))/(b*c - a*d) - (d*CannotIntegrate(log(1 - (a + b*x)/(c + d*x))/((c + d*x)*log((a + b*x)/(c + d*x))^2), x))/(b*c - a*d)]
    @test_int [log(1 - (c + d*x)/(a + b*x))/((a + b*x)*(c + d*x)*log((a + b*x)/(c + d*x))^2), x, 2, (b*CannotIntegrate(log(1 - (c + d*x)/(a + b*x))/((a + b*x)*log((a + b*x)/(c + d*x))^2), x))/(b*c - a*d) - (d*CannotIntegrate(log(1 - (c + d*x)/(a + b*x))/((c + d*x)*log((a + b*x)/(c + d*x))^2), x))/(b*c - a*d)]


    @test_int [log(1 - (a + b*x)/(c + d*x))/((a + b*x)*(c + d*x)*log((a + b*x)/(c + d*x))^2) + 1/((c + d*x)*(-a + c + (-b + d)*x)*log((a + b*x)/(c + d*x))), x, -3, -(log(1 - (a + b*x)/(c + d*x))/((b*c - a*d)*log((a + b*x)/(c + d*x))))]
    @test_int [log(1 - (c + d*x)/(a + b*x))/((a + b*x)*(c + d*x)*log((a + b*x)/(c + d*x))^2) - 1/((a + b*x)*(a - c + (b - d)*x)*log((a + b*x)/(c + d*x))), x, -3, -(log(1 - (c + d*x)/(a + b*x))/((b*c - a*d)*log((a + b*x)/(c + d*x))))]


    #= ::Section::Closed:: =#
    #=Integrands*of*the*form*RFx*log(e*(f*(a+b*x)^p*(c+d*x)^q)^r)^s=#


    @test_int [x^3*log(e*((a + b*x)/(c + d*x))^n)/(f - g*x^2), x, 30, -((a*n*x)/(2*b*g)) + (c*n*x)/(2*d*g) + (a^2*n*log(a + b*x))/(2*b^2*g) - (n*x^2*log(a + b*x))/(2*g) - (c^2*n*log(c + d*x))/(2*d^2*g) + (n*x^2*log(c + d*x))/(2*g) + (x^2*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/(2*g) - (f*n*log(a + b*x)*log((b*(sqrt(f) - sqrt(g)*x))/(b*sqrt(f) + a*sqrt(g))))/(2*g^2) + (f*n*log(c + d*x)*log((d*(sqrt(f) - sqrt(g)*x))/(d*sqrt(f) + c*sqrt(g))))/(2*g^2) - (f*n*log(a + b*x)*log((b*(sqrt(f) + sqrt(g)*x))/(b*sqrt(f) - a*sqrt(g))))/(2*g^2) + (f*n*log(c + d*x)*log((d*(sqrt(f) + sqrt(g)*x))/(d*sqrt(f) - c*sqrt(g))))/(2*g^2) + (f*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x))*log(f - g*x^2))/(2*g^2) - (f*n*PolyLog(2, -((sqrt(g)*(a + b*x))/(b*sqrt(f) - a*sqrt(g)))))/(2*g^2) - (f*n*PolyLog(2, (sqrt(g)*(a + b*x))/(b*sqrt(f) + a*sqrt(g))))/(2*g^2) + (f*n*PolyLog(2, -((sqrt(g)*(c + d*x))/(d*sqrt(f) - c*sqrt(g)))))/(2*g^2) + (f*n*PolyLog(2, (sqrt(g)*(c + d*x))/(d*sqrt(f) + c*sqrt(g))))/(2*g^2)]
    @test_int [x^2*log(e*((a + b*x)/(c + d*x))^n)/(f - g*x^2), x, 27, -((n*(a + b*x)*log(a + b*x))/(b*g)) + (n*(c + d*x)*log(c + d*x))/(d*g) + (x*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/g - (sqrt(f)*atanh((sqrt(g)*x)/sqrt(f))*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/g^(3/2) - (sqrt(f)*n*log(a + b*x)*log((b*(sqrt(f) - sqrt(g)*x))/(b*sqrt(f) + a*sqrt(g))))/(2*g^(3/2)) + (sqrt(f)*n*log(c + d*x)*log((d*(sqrt(f) - sqrt(g)*x))/(d*sqrt(f) + c*sqrt(g))))/(2*g^(3/2)) + (sqrt(f)*n*log(a + b*x)*log((b*(sqrt(f) + sqrt(g)*x))/(b*sqrt(f) - a*sqrt(g))))/(2*g^(3/2)) - (sqrt(f)*n*log(c + d*x)*log((d*(sqrt(f) + sqrt(g)*x))/(d*sqrt(f) - c*sqrt(g))))/(2*g^(3/2)) + (sqrt(f)*n*PolyLog(2, -((sqrt(g)*(a + b*x))/(b*sqrt(f) - a*sqrt(g)))))/(2*g^(3/2)) - (sqrt(f)*n*PolyLog(2, (sqrt(g)*(a + b*x))/(b*sqrt(f) + a*sqrt(g))))/(2*g^(3/2)) - (sqrt(f)*n*PolyLog(2, -((sqrt(g)*(c + d*x))/(d*sqrt(f) - c*sqrt(g)))))/(2*g^(3/2)) + (sqrt(f)*n*PolyLog(2, (sqrt(g)*(c + d*x))/(d*sqrt(f) + c*sqrt(g))))/(2*g^(3/2))]
    @test_int [x^1*log(e*((a + b*x)/(c + d*x))^n)/(f - g*x^2), x, 18, -((n*log(a + b*x)*log((b*(sqrt(f) - sqrt(g)*x))/(b*sqrt(f) + a*sqrt(g))))/(2*g)) + (n*log(c + d*x)*log((d*(sqrt(f) - sqrt(g)*x))/(d*sqrt(f) + c*sqrt(g))))/(2*g) - (n*log(a + b*x)*log((b*(sqrt(f) + sqrt(g)*x))/(b*sqrt(f) - a*sqrt(g))))/(2*g) + (n*log(c + d*x)*log((d*(sqrt(f) + sqrt(g)*x))/(d*sqrt(f) - c*sqrt(g))))/(2*g) + ((n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x))*log(f - g*x^2))/(2*g) - (n*PolyLog(2, -((sqrt(g)*(a + b*x))/(b*sqrt(f) - a*sqrt(g)))))/(2*g) - (n*PolyLog(2, (sqrt(g)*(a + b*x))/(b*sqrt(f) + a*sqrt(g))))/(2*g) + (n*PolyLog(2, -((sqrt(g)*(c + d*x))/(d*sqrt(f) - c*sqrt(g)))))/(2*g) + (n*PolyLog(2, (sqrt(g)*(c + d*x))/(d*sqrt(f) + c*sqrt(g))))/(2*g)]
    @test_int [x^0*log(e*((a + b*x)/(c + d*x))^n)/(f - g*x^2), x, 7, (log(e*((a + b*x)/(c + d*x))^n)*log(1 - ((d*sqrt(f) - c*sqrt(g))*(a + b*x))/((b*sqrt(f) - a*sqrt(g))*(c + d*x))))/(2*sqrt(f)*sqrt(g)) - (log(e*((a + b*x)/(c + d*x))^n)*log(1 - ((d*sqrt(f) + c*sqrt(g))*(a + b*x))/((b*sqrt(f) + a*sqrt(g))*(c + d*x))))/(2*sqrt(f)*sqrt(g)) + (n*PolyLog(2, ((d*sqrt(f) - c*sqrt(g))*(a + b*x))/((b*sqrt(f) - a*sqrt(g))*(c + d*x))))/(2*sqrt(f)*sqrt(g)) - (n*PolyLog(2, ((d*sqrt(f) + c*sqrt(g))*(a + b*x))/((b*sqrt(f) + a*sqrt(g))*(c + d*x))))/(2*sqrt(f)*sqrt(g))]
    @test_int [log(e*((a + b*x)/(c + d*x))^n)/(x^1*(f - g*x^2)), x, 29, (n*log(-((b*x)/a))*log(a + b*x))/f - (n*log(-((d*x)/c))*log(c + d*x))/f - (log(x)*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/f - (n*log(a + b*x)*log((b*(sqrt(f) - sqrt(g)*x))/(b*sqrt(f) + a*sqrt(g))))/(2*f) + (n*log(c + d*x)*log((d*(sqrt(f) - sqrt(g)*x))/(d*sqrt(f) + c*sqrt(g))))/(2*f) - (n*log(a + b*x)*log((b*(sqrt(f) + sqrt(g)*x))/(b*sqrt(f) - a*sqrt(g))))/(2*f) + (n*log(c + d*x)*log((d*(sqrt(f) + sqrt(g)*x))/(d*sqrt(f) - c*sqrt(g))))/(2*f) + ((n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x))*log(f - g*x^2))/(2*f) - (n*PolyLog(2, -((sqrt(g)*(a + b*x))/(b*sqrt(f) - a*sqrt(g)))))/(2*f) - (n*PolyLog(2, (sqrt(g)*(a + b*x))/(b*sqrt(f) + a*sqrt(g))))/(2*f) + (n*PolyLog(2, 1 + (b*x)/a))/f + (n*PolyLog(2, -((sqrt(g)*(c + d*x))/(d*sqrt(f) - c*sqrt(g)))))/(2*f) + (n*PolyLog(2, (sqrt(g)*(c + d*x))/(d*sqrt(f) + c*sqrt(g))))/(2*f) - (n*PolyLog(2, 1 + (d*x)/c))/f]
    @test_int [log(e*((a + b*x)/(c + d*x))^n)/(x^2*(f - g*x^2)), x, 31, (b*n*log(x))/(a*f) - (d*n*log(x))/(c*f) - (b*n*log(a + b*x))/(a*f) - (n*log(a + b*x))/(f*x) + (d*n*log(c + d*x))/(c*f) + (n*log(c + d*x))/(f*x) + (n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x))/(f*x) - (sqrt(g)*atanh((sqrt(g)*x)/sqrt(f))*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/f^(3/2) - (sqrt(g)*n*log(a + b*x)*log((b*(sqrt(f) - sqrt(g)*x))/(b*sqrt(f) + a*sqrt(g))))/(2*f^(3/2)) + (sqrt(g)*n*log(c + d*x)*log((d*(sqrt(f) - sqrt(g)*x))/(d*sqrt(f) + c*sqrt(g))))/(2*f^(3/2)) + (sqrt(g)*n*log(a + b*x)*log((b*(sqrt(f) + sqrt(g)*x))/(b*sqrt(f) - a*sqrt(g))))/(2*f^(3/2)) - (sqrt(g)*n*log(c + d*x)*log((d*(sqrt(f) + sqrt(g)*x))/(d*sqrt(f) - c*sqrt(g))))/(2*f^(3/2)) + (sqrt(g)*n*PolyLog(2, -((sqrt(g)*(a + b*x))/(b*sqrt(f) - a*sqrt(g)))))/(2*f^(3/2)) - (sqrt(g)*n*PolyLog(2, (sqrt(g)*(a + b*x))/(b*sqrt(f) + a*sqrt(g))))/(2*f^(3/2)) - (sqrt(g)*n*PolyLog(2, -((sqrt(g)*(c + d*x))/(d*sqrt(f) - c*sqrt(g)))))/(2*f^(3/2)) + (sqrt(g)*n*PolyLog(2, (sqrt(g)*(c + d*x))/(d*sqrt(f) + c*sqrt(g))))/(2*f^(3/2))]


    @test_int [x^3*log(e*((a + b*x)/(c + d*x))^n)/(f + g*x + h*x^2), x, 37, (a*n*x)/(2*b*h) - (c*n*x)/(2*d*h) - (a^2*n*log(a + b*x))/(2*b^2*h) + (n*x^2*log(a + b*x))/(2*h) - (g*n*(a + b*x)*log(a + b*x))/(b*h^2) + (c^2*n*log(c + d*x))/(2*d^2*h) - (n*x^2*log(c + d*x))/(2*h) + (g*n*(c + d*x)*log(c + d*x))/(d*h^2) + (g*x*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/h^2 - (x^2*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/(2*h) - (g*(g^2 - 3*f*h)*atanh((g + 2*h*x)/sqrt(g^2 - 4*f*h))*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/(h^3*sqrt(g^2 - 4*f*h)) + ((g^2 - f*h - (g*(g^2 - 3*f*h))/sqrt(g^2 - 4*f*h))*n*log(a + b*x)*log(-((b*(g - sqrt(g^2 - 4*f*h) + 2*h*x))/(2*a*h - b*(g - sqrt(g^2 - 4*f*h))))))/(2*h^3) - ((g^2 - f*h - (g*(g^2 - 3*f*h))/sqrt(g^2 - 4*f*h))*n*log(c + d*x)*log(-((d*(g - sqrt(g^2 - 4*f*h) + 2*h*x))/(2*c*h - d*(g - sqrt(g^2 - 4*f*h))))))/(2*h^3) + ((g^2 - f*h + (g*(g^2 - 3*f*h))/sqrt(g^2 - 4*f*h))*n*log(a + b*x)*log(-((b*(g + sqrt(g^2 - 4*f*h) + 2*h*x))/(2*a*h - b*(g + sqrt(g^2 - 4*f*h))))))/(2*h^3) - ((g^2 - f*h + (g*(g^2 - 3*f*h))/sqrt(g^2 - 4*f*h))*n*log(c + d*x)*log(-((d*(g + sqrt(g^2 - 4*f*h) + 2*h*x))/(2*c*h - d*(g + sqrt(g^2 - 4*f*h))))))/(2*h^3) - ((g^2 - f*h)*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x))*log(f + g*x + h*x^2))/(2*h^3) + ((g^2 - f*h - (g*(g^2 - 3*f*h))/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(a + b*x))/(2*a*h - b*(g - sqrt(g^2 - 4*f*h)))))/(2*h^3) + ((g^2 - f*h + (g*(g^2 - 3*f*h))/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(a + b*x))/(2*a*h - b*(g + sqrt(g^2 - 4*f*h)))))/(2*h^3) - ((g^2 - f*h - (g*(g^2 - 3*f*h))/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(c + d*x))/(2*c*h - d*(g - sqrt(g^2 - 4*f*h)))))/(2*h^3) - ((g^2 - f*h + (g*(g^2 - 3*f*h))/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(c + d*x))/(2*c*h - d*(g + sqrt(g^2 - 4*f*h)))))/(2*h^3)]
    @test_int [x^2*log(e*((a + b*x)/(c + d*x))^n)/(f + g*x + h*x^2), x, 30, (n*(a + b*x)*log(a + b*x))/(b*h) - (n*(c + d*x)*log(c + d*x))/(d*h) - (x*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/h + ((g^2 - 2*f*h)*atanh((g + 2*h*x)/sqrt(g^2 - 4*f*h))*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/(h^2*sqrt(g^2 - 4*f*h)) - ((g - (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*log(a + b*x)*log(-((b*(g - sqrt(g^2 - 4*f*h) + 2*h*x))/(2*a*h - b*(g - sqrt(g^2 - 4*f*h))))))/(2*h^2) + ((g - (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*log(c + d*x)*log(-((d*(g - sqrt(g^2 - 4*f*h) + 2*h*x))/(2*c*h - d*(g - sqrt(g^2 - 4*f*h))))))/(2*h^2) - ((g + (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*log(a + b*x)*log(-((b*(g + sqrt(g^2 - 4*f*h) + 2*h*x))/(2*a*h - b*(g + sqrt(g^2 - 4*f*h))))))/(2*h^2) + ((g + (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*log(c + d*x)*log(-((d*(g + sqrt(g^2 - 4*f*h) + 2*h*x))/(2*c*h - d*(g + sqrt(g^2 - 4*f*h))))))/(2*h^2) + (g*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x))*log(f + g*x + h*x^2))/(2*h^2) - ((g - (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(a + b*x))/(2*a*h - b*(g - sqrt(g^2 - 4*f*h)))))/(2*h^2) - ((g + (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(a + b*x))/(2*a*h - b*(g + sqrt(g^2 - 4*f*h)))))/(2*h^2) + ((g - (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(c + d*x))/(2*c*h - d*(g - sqrt(g^2 - 4*f*h)))))/(2*h^2) + ((g + (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(c + d*x))/(2*c*h - d*(g + sqrt(g^2 - 4*f*h)))))/(2*h^2)]
    @test_int [x^1*log(e*((a + b*x)/(c + d*x))^n)/(f + g*x + h*x^2), x, 21, -((g*atanh((g + 2*h*x)/sqrt(g^2 - 4*f*h))*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/(h*sqrt(g^2 - 4*f*h))) + ((1 - g/sqrt(g^2 - 4*f*h))*n*log(a + b*x)*log(-((b*(g - sqrt(g^2 - 4*f*h) + 2*h*x))/(2*a*h - b*(g - sqrt(g^2 - 4*f*h))))))/(2*h) - ((1 - g/sqrt(g^2 - 4*f*h))*n*log(c + d*x)*log(-((d*(g - sqrt(g^2 - 4*f*h) + 2*h*x))/(2*c*h - d*(g - sqrt(g^2 - 4*f*h))))))/(2*h) + ((1 + g/sqrt(g^2 - 4*f*h))*n*log(a + b*x)*log(-((b*(g + sqrt(g^2 - 4*f*h) + 2*h*x))/(2*a*h - b*(g + sqrt(g^2 - 4*f*h))))))/(2*h) - ((1 + g/sqrt(g^2 - 4*f*h))*n*log(c + d*x)*log(-((d*(g + sqrt(g^2 - 4*f*h) + 2*h*x))/(2*c*h - d*(g + sqrt(g^2 - 4*f*h))))))/(2*h) - ((n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x))*log(f + g*x + h*x^2))/(2*h) + ((1 - g/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(a + b*x))/(2*a*h - b*(g - sqrt(g^2 - 4*f*h)))))/(2*h) + ((1 + g/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(a + b*x))/(2*a*h - b*(g + sqrt(g^2 - 4*f*h)))))/(2*h) - ((1 - g/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(c + d*x))/(2*c*h - d*(g - sqrt(g^2 - 4*f*h)))))/(2*h) - ((1 + g/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(c + d*x))/(2*c*h - d*(g + sqrt(g^2 - 4*f*h)))))/(2*h)]
    @test_int [x^0*log(e*((a + b*x)/(c + d*x))^n)/(f + g*x + h*x^2), x, 7, -((log(e*((a + b*x)/(c + d*x))^n)*log(1 - (2*(d^2*f - c*d*g + c^2*h)*(a + b*x))/((2*b*d*f - b*c*g - a*d*g + 2*a*c*h - (b*c - a*d)*sqrt(g^2 - 4*f*h))*(c + d*x))))/sqrt(g^2 - 4*f*h)) + (log(e*((a + b*x)/(c + d*x))^n)*log(1 - (2*(d^2*f - c*d*g + c^2*h)*(a + b*x))/((2*b*d*f - b*c*g - a*d*g + 2*a*c*h + (b*c - a*d)*sqrt(g^2 - 4*f*h))*(c + d*x))))/sqrt(g^2 - 4*f*h) - (n*PolyLog(2, (2*(d^2*f - c*d*g + c^2*h)*(a + b*x))/((2*b*d*f - b*c*g - a*d*g + 2*a*c*h - (b*c - a*d)*sqrt(g^2 - 4*f*h))*(c + d*x))))/sqrt(g^2 - 4*f*h) + (n*PolyLog(2, (2*(d^2*f - c*d*g + c^2*h)*(a + b*x))/((2*b*d*f - b*c*g - a*d*g + 2*a*c*h + (b*c - a*d)*sqrt(g^2 - 4*f*h))*(c + d*x))))/sqrt(g^2 - 4*f*h)]
    @test_int [log(e*((a + b*x)/(c + d*x))^n)/(x^1*(f + g*x + h*x^2)), x, 31, (n*log(-((b*x)/a))*log(a + b*x))/f - (n*log(-((d*x)/c))*log(c + d*x))/f - (g*atanh((g + 2*h*x)/sqrt(g^2 - 4*f*h))*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/(f*sqrt(g^2 - 4*f*h)) - (log(x)*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/f - ((1 + g/sqrt(g^2 - 4*f*h))*n*log(a + b*x)*log(-((b*(g - sqrt(g^2 - 4*f*h) + 2*h*x))/(2*a*h - b*(g - sqrt(g^2 - 4*f*h))))))/(2*f) + ((1 + g/sqrt(g^2 - 4*f*h))*n*log(c + d*x)*log(-((d*(g - sqrt(g^2 - 4*f*h) + 2*h*x))/(2*c*h - d*(g - sqrt(g^2 - 4*f*h))))))/(2*f) - ((1 - g/sqrt(g^2 - 4*f*h))*n*log(a + b*x)*log(-((b*(g + sqrt(g^2 - 4*f*h) + 2*h*x))/(2*a*h - b*(g + sqrt(g^2 - 4*f*h))))))/(2*f) + ((1 - g/sqrt(g^2 - 4*f*h))*n*log(c + d*x)*log(-((d*(g + sqrt(g^2 - 4*f*h) + 2*h*x))/(2*c*h - d*(g + sqrt(g^2 - 4*f*h))))))/(2*f) + ((n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x))*log(f + g*x + h*x^2))/(2*f) - ((1 + g/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(a + b*x))/(2*a*h - b*(g - sqrt(g^2 - 4*f*h)))))/(2*f) - ((1 - g/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(a + b*x))/(2*a*h - b*(g + sqrt(g^2 - 4*f*h)))))/(2*f) + (n*PolyLog(2, 1 + (b*x)/a))/f + ((1 + g/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(c + d*x))/(2*c*h - d*(g - sqrt(g^2 - 4*f*h)))))/(2*f) + ((1 - g/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(c + d*x))/(2*c*h - d*(g + sqrt(g^2 - 4*f*h)))))/(2*f) - (n*PolyLog(2, 1 + (d*x)/c))/f]
    @test_int [log(e*((a + b*x)/(c + d*x))^n)/(x^2*(f + g*x + h*x^2)), x, 40, (b*n*log(x))/(a*f) - (d*n*log(x))/(c*f) - (b*n*log(a + b*x))/(a*f) - (n*log(a + b*x))/(f*x) - (g*n*log(-((b*x)/a))*log(a + b*x))/f^2 + (d*n*log(c + d*x))/(c*f) + (n*log(c + d*x))/(f*x) + (g*n*log(-((d*x)/c))*log(c + d*x))/f^2 + (n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x))/(f*x) + ((g^2 - 2*f*h)*atanh((g + 2*h*x)/sqrt(g^2 - 4*f*h))*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/(f^2*sqrt(g^2 - 4*f*h)) + (g*log(x)*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x)))/f^2 + ((g + (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*log(a + b*x)*log(-((b*(g - sqrt(g^2 - 4*f*h) + 2*h*x))/(2*a*h - b*(g - sqrt(g^2 - 4*f*h))))))/(2*f^2) - ((g + (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*log(c + d*x)*log(-((d*(g - sqrt(g^2 - 4*f*h) + 2*h*x))/(2*c*h - d*(g - sqrt(g^2 - 4*f*h))))))/(2*f^2) + ((g - (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*log(a + b*x)*log(-((b*(g + sqrt(g^2 - 4*f*h) + 2*h*x))/(2*a*h - b*(g + sqrt(g^2 - 4*f*h))))))/(2*f^2) - ((g - (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*log(c + d*x)*log(-((d*(g + sqrt(g^2 - 4*f*h) + 2*h*x))/(2*c*h - d*(g + sqrt(g^2 - 4*f*h))))))/(2*f^2) - (g*(n*log(a + b*x) - log(e*((a + b*x)/(c + d*x))^n) - n*log(c + d*x))*log(f + g*x + h*x^2))/(2*f^2) + ((g + (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(a + b*x))/(2*a*h - b*(g - sqrt(g^2 - 4*f*h)))))/(2*f^2) + ((g - (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(a + b*x))/(2*a*h - b*(g + sqrt(g^2 - 4*f*h)))))/(2*f^2) - (g*n*PolyLog(2, 1 + (b*x)/a))/f^2 - ((g + (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(c + d*x))/(2*c*h - d*(g - sqrt(g^2 - 4*f*h)))))/(2*f^2) - ((g - (g^2 - 2*f*h)/sqrt(g^2 - 4*f*h))*n*PolyLog(2, (2*h*(c + d*x))/(2*c*h - d*(g + sqrt(g^2 - 4*f*h)))))/(2*f^2) + (g*n*PolyLog(2, 1 + (d*x)/c))/f^2]


    #= ::Section::Closed:: =#
    #=Miscellaneous*integrands*involving*log(e*(f*(a+b*x)^p*(c+d*x)^q)^r)^s=#


    @test_int [log((c*x)/(a + b*x))/(a + b*x), x, 5, -((log(a/(a + b*x))*log((c*x)/(a + b*x)))/b) - PolyLog(2, 1 - a/(a + b*x))/b]
    @test_int [log((c*x)/(a + b*x))^2/(x*(a + b*x)), x, 3, log((c*x)/(a + b*x))^3/(3*a)]


    @test_int [(log(a/(a + b*x))*log((c*x)/(a + b*x))^2)/(x*(a + b*x)), x, 3, -((log((c*x)/(a + b*x))^2*PolyLog(2, 1 - a/(a + b*x)))/a) + (2*log((c*x)/(a + b*x))*PolyLog(3, 1 - a/(a + b*x)))/a - (2*PolyLog(4, 1 - a/(a + b*x)))/a]


    @test_int [log(e*(a + b*x)/(c + d*x))^2*log((b*c - a*d)/(b*(c + d*x)))/((g*a + g*b*x)*(c + d*x)), x, 3, -((log((e*(a + b*x))/(c + d*x))^2*PolyLog(2, 1 - (b*c - a*d)/(b*(c + d*x))))/((b*c - a*d)*g)) + (2*log((e*(a + b*x))/(c + d*x))*PolyLog(3, 1 - (b*c - a*d)/(b*(c + d*x))))/((b*c - a*d)*g) - (2*PolyLog(4, 1 - (b*c - a*d)/(b*(c + d*x))))/((b*c - a*d)*g)]
    @test_int [log(e*((a + b*x)/(c + d*x))^n)^2*log((b*c - a*d)/(b*(c + d*x)))/((g*a + g*b*x)*(c + d*x)), x, 3, -((log(e*((a + b*x)/(c + d*x))^n)^2*PolyLog(2, 1 - (b*c - a*d)/(b*(c + d*x))))/((b*c - a*d)*g)) + (2*n*log(e*((a + b*x)/(c + d*x))^n)*PolyLog(3, 1 - (b*c - a*d)/(b*(c + d*x))))/((b*c - a*d)*g) - (2*n^2*PolyLog(4, 1 - (b*c - a*d)/(b*(c + d*x))))/((b*c - a*d)*g)]


    @test_int [log((c*(b + a*x))/x)^1, x, 4, x*log(a*c + (b*c)/x) + (b*log(b + a*x))/a]
    @test_int [log((c*(b + a*x))/x)^2, x, 5, ((b + a*x)*log(a*c + (b*c)/x)^2)/a - (2*b*log(c*(a + b/x))*log(-(b/(a*x))))/a - (2*b*PolyLog(2, 1 + b/(a*x)))/a]
    @test_int [log((c*(b + a*x))/x)^3, x, 7, ((b + a*x)*log(a*c + (b*c)/x)^3)/a - (3*b*log(c*(a + b/x))^2*log(-(b/(a*x))))/a - (6*b*log(c*(a + b/x))*PolyLog(2, 1 + b/(a*x)))/a + (6*b*PolyLog(3, 1 + b/(a*x)))/a]

    @test_int [log((c*(b + a*x)^2)/x^2), x, 2, (2*b*log(b + a*x))/a + x*log((c*(b + a*x)^2)/x^2)]
    @test_int [log((c*(b + a*x)^2)/x^2)^2, x, 6, -((4*b*log(b/(b + a*x))*log((c*(b + a*x)^2)/x^2))/a) + x*log((c*(b + a*x)^2)/x^2)^2 + (8*b*PolyLog(2, 1 - b/(b + a*x)))/a]
    @test_int [log((c*(b + a*x)^2)/x^2)^3, x, 5, x*log((c*(b + a*x)^2)/x^2)^3 - (6*b*log((c*(b + a*x)^2)/x^2)^2*log(1 - (a*x)/(b + a*x)))/a + (24*b*log((c*(b + a*x)^2)/x^2)*PolyLog(2, (a*x)/(b + a*x)))/a + (48*b*PolyLog(3, (a*x)/(b + a*x)))/a]

    @test_int [log((c*x^2)/(b + a*x)^2)^1, x, 2, x*log((c*x^2)/(b + a*x)^2) - (2*b*log(b + a*x))/a]
    @test_int [log((c*x^2)/(b + a*x)^2)^2, x, 6, x*log((c*x^2)/(b + a*x)^2)^2 + (4*b*log((c*x^2)/(b + a*x)^2)*log(b/(b + a*x)))/a + (8*b*PolyLog(2, 1 - b/(b + a*x)))/a]
    @test_int [log((c*x^2)/(b + a*x)^2)^3, x, 5, x*log((c*x^2)/(b + a*x)^2)^3 + (6*b*log((c*x^2)/(b + a*x)^2)^2*log(b/(b + a*x)))/a + (24*b*log((c*x^2)/(b + a*x)^2)*PolyLog(2, (a*x)/(b + a*x)))/a - (48*b*PolyLog(3, (a*x)/(b + a*x)))/a]


    @test_int [PolyLog(2, 1 + (b*c - a*d)/(d*(a + b*x)))/((a + b*x)*(c + d*x)), x, 1, -(PolyLog(3, 1 + (b*c - a*d)/(d*(a + b*x)))/(b*c - a*d))]


    @test_int [log((e*(c + d*x))/(a + b*x))*log(((-b)*c + a*d)/(d*(a + b*x)))/((a + b*x)*(c + d*x)), x, 2, (log((e*(c + d*x))/(a + b*x))*PolyLog(2, 1 + (b*c - a*d)/(d*(a + b*x))))/(b*c - a*d) - PolyLog(3, 1 + (b*c - a*d)/(d*(a + b*x)))/(b*c - a*d)]


    @test_int [log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))^2/(a + b*x), x, 4, -((log(((-b)*c + a*d)/(d*(a + b*x)))*log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))^2)/b) - (2*log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))*PolyLog(2, (b*(c + d*x))/(d*(a + b*x))))/b + (2*PolyLog(3, (b*(c + d*x))/(d*(a + b*x))))/b]


    @test_int [log((e*(c + d*x))/(a + b*x))*log((((-b)*c + a*d)*(e + f*x))/((d*e - c*f)*(a + b*x)))/((a + b*x)*(c + d*x)), x, 2, (log((e*(c + d*x))/(a + b*x))*PolyLog(2, 1 + ((b*c - a*d)*(e + f*x))/((d*e - c*f)*(a + b*x))))/(b*c - a*d) - PolyLog(3, 1 + ((b*c - a*d)*(e + f*x))/((d*e - c*f)*(a + b*x)))/(b*c - a*d)]


    @test_int [log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))^2/((a + b*x)*(e + f*x)), x, 4, -((log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))^2*log(1 - ((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x))))/(b*e - a*f)) - (2*log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))*PolyLog(2, ((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x))))/(b*e - a*f) + (2*PolyLog(3, ((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x))))/(b*e - a*f)]


    @test_int [log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))^2/(e + f*x), x, 9, -((log(-((b*c - a*d)/(d*(a + b*x))))*log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))^2)/f) + (log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))^2*log(1 - ((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x))))/f - (2*log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))*PolyLog(2, (b*(c + d*x))/(d*(a + b*x))))/f + (2*log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))*PolyLog(2, ((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x))))/f + (2*PolyLog(3, (b*(c + d*x))/(d*(a + b*x))))/f - (2*PolyLog(3, ((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x))))/f]


    @test_int [log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))*log((b*(e + f*x))/(b*e - a*f))/((a + b*x)*(c + d*x)), x, 10, -((log(-((b*c - a*d)/(d*(a + b*x))))*log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))^2)/(2*(b*c - a*d))) - (log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))^2*log((b*(e + f*x))/(b*e - a*f)))/(2*(b*c - a*d)) + (log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))^2*log(1 - ((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x))))/(2*(b*c - a*d)) - (log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))*PolyLog(2, (b*(c + d*x))/(d*(a + b*x))))/(b*c - a*d) + (log(((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))*PolyLog(2, ((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x))))/(b*c - a*d) + PolyLog(3, (b*(c + d*x))/(d*(a + b*x)))/(b*c - a*d) - PolyLog(3, ((b*e - a*f)*(c + d*x))/((d*e - c*f)*(a + b*x)))/(b*c - a*d)]
    end
