The value of (a−1)+a2−b21−ab+2(a−b)2b when a = 2 and b = -1 is

confirm that you mean:

(a−1)+a^2−b^21−ab+2(a−b)^(2b)