原式=ab-2{ab-3a^2b+4ab^2+1/2ab-3a^2b}-3ab^2
=ab-2ab+3a^2b-4ab^2-1/2ab+2a^2b-3ab^2
=(3+2)a^2b+(-4-3)ab^2+(1-2-1/2)ab
=5a^2b-7ab^2-3/2a
原式=ab-2{ab-3a^2b+4ab^2+1/2ab-3a^2b}-3ab^2
=ab-2ab+3a^2b-4ab^2-1/2ab+2a^2b-3ab^2
=(3+2)a^2b+(-4-3)ab^2+(1-2-1/2)ab
=5a^2b-7ab^2-3/2a