a) 3(x-1/2)^2 - (x+1/4)(x-1/2)

b) 2(3x+1)(2x^(2)-5x-2) - (x-4)(x^(2)+3x-1)

is there a question in there somewhere?

try typing the expressions in the box at wolframalpha.com and see what you get.