\(\Delta'=4-m-1=3-m\ge0\Leftrightarrow m\le3\)
Theo Viet: \(\left\{{}\begin{matrix}x_1+x_2=4\\x_1x_2=m+1\end{matrix}\right.\)
\(x_1^2+x_2^2=10\)
\(\Leftrightarrow\left(x_1+x_2\right)^2-2x_1x_2=10\)
\(\Leftrightarrow16-2m-2=10\)
\(\Rightarrow m=2\) (thỏa mãn)