PT có nghiệm `<=> \Delta' >=0`
`<=> (m-1)^2-(m^2+2)>=0`
`<=>-2m-1>=0`
`<=>m <= -1/2`
Viet: `x_1+x_2=2m-2`
`x_1x_2=m^2+2`
`x_1^2+x_2^2=10`
`<=>(x_1+x_2)^2-2x_1x_2=10`
`<=>(2m-2)^2-2(m^2+2)=10`
`<=> 2m^2-8m=10`
`<=>` \(\left[{}\begin{matrix}m=-1\left(TM\right)\\m=5\left(L\right)\end{matrix}\right.\)
Vậy `m=-1`.