4:
A có nghiệm là -1 nên (-1)^2-a*(-1)+b=0
=>a+b+1=0
=>a+b=-1(2)
A có nghiệm là 2 nên 2^2-a*2+b=0
=>-2a+b+4=0
=>-2a+b=-4(1)
Từ (1),(2) ta có hệ phương trình:
\(\left\{{}\begin{matrix}a+b=-1\\-2a+b=-4\end{matrix}\right.\)
=>\(\left\{{}\begin{matrix}3a=3\\a+b=-1\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}a=1\\b=-2\end{matrix}\right.\)
2:
\(A=M+N\)
\(=2x^2+4xy-4y^2+3x^2-2xy+2y^2\)
\(=5x^2+2xy-2y^2\)
Khi x=1 và y=-2 thì \(A=5\cdot1^2+2\cdot1\cdot\left(-2\right)-2\cdot\left(-2\right)^2\)
\(=5-4-8=-7\)


