a.
\(\Delta=\left(m+2\right)^2-4\left(m-1\right)=m^2+8>0;\forall m\)
\(\Rightarrow\) Pt luôn có 2 nghiệm pb với mọi m
Theo hệ thức Viet: \(\left\{{}\begin{matrix}x_1+x_2=-\left(m+2\right)\\x_1x_2=m-1\end{matrix}\right.\)
\(x_1^2+x_2^2-x_1-x_2=6\)
\(\Leftrightarrow\left(x_1+x_2\right)^2-2x_1x_2-\left(x_1+x_2\right)=6\)
\(\Leftrightarrow\left(m+2\right)^2-2\left(m-1\right)+\left(m+2\right)=6\)
\(\Leftrightarrow m^2+3m+2=0\Rightarrow\left[{}\begin{matrix}m=-1\\m=-2\end{matrix}\right.\)