问题
解答题
化简与求值
(1)化简:3(x-1)-2(1-2x)
(2)已知(x-1)2+|y+2|=0,求代数式2x2+(-x2-2xy+2y2)-2(x2-xy+2y2)的值.
答案
(1)原式=3x-3-2+4x=7x-5;
(2)原式=2x2-x2-2xy+2y2-2x2+2xy-4y2=-x2-2y2,
∵(x-1)2+|y+2|=0,∴x-1=0,y+2=0,即x=1,y=-2,
则原式=-1-8=-9.