M=(x+y)3-3x2+6xy+3y2-7x-7y+8
M=(x+y)3-3x2+3xy+3xy+3y2-(7x+7y)+8
M=(x+y)3-3x(x+y)+3y(x+y)-7(x+y)+8
Thay x+y=-2 vào ta đc:
M=(-2)3-3x.(-2)+3y.(-2)-7.(-2)+8
M=-8-[(-2).(3x+3y)]-(-14)+8
M=-8-[(-2).3.(x+y)]+14+8
M=-8-[(-2)-3.(-2)]+14+8
M=-8-[(-2)+6]+14+8=10
Vậy M=10