a=1,b=-1/2,ab=-1/2
2(3a^2+2ab-b^2)*(-ab)-3a^2(ab-b^2)
=-2ab(3a^2+2ab-b^2)-3aab(a-b)
=3a^2+2ab-b^2+3a/2(a-b)
=3a^2-1-b^2+3a^2/2-3ab/2
=9a^2/2-b^2-1/4
=9/2-1/4-1/4
=9/2-1/2
=4
a=1,b=-1/2,ab=-1/2
2(3a^2+2ab-b^2)*(-ab)-3a^2(ab-b^2)
=-2ab(3a^2+2ab-b^2)-3aab(a-b)
=3a^2+2ab-b^2+3a/2(a-b)
=3a^2-1-b^2+3a^2/2-3ab/2
=9a^2/2-b^2-1/4
=9/2-1/4-1/4
=9/2-1/2
=4