\(\Delta=\left(-m\right)^2-2.1.\left(m-1\right)\\ =m^2-2m+1\\ =\left(m-1\right)^2\)
Phương trình có hai nghiệm phân biệt :
\(\Leftrightarrow\Delta>0\\ \Rightarrow\left(m-1\right)^2>0\\ \Rightarrow m\ne1\)
Theo vi ét :
\(\Leftrightarrow\left\{{}\begin{matrix}x_1+x_2=m\\x_1x_2=m-1\end{matrix}\right.\)
\(x^2_1+x^2_2=x_1+x_2\\ \Leftrightarrow x^2_1+x^2_2=m\\ \Leftrightarrow\left(x^2_1+2x_1x_2+x_2^2\right)-2x_1x_2=m\\ \Leftrightarrow\left(x_1+x_2\right)^2-2x_1x_2-m=0\\ \Leftrightarrow m^2-2\left(m-1\right)-m=0\\ \Leftrightarrow m^2-2m+2-m=0\\ \Leftrightarrow m^2-3m+2=0\\ \Leftrightarrow\left[{}\begin{matrix}m=1\left(loại\right)\\m=2\left(t/m\right)\end{matrix}\right.\)
Vậy \(m=2\)