Theo định lý Vi-ét, ta có:
\(\left\{{}\begin{matrix}x_1+x_2=2\left(m+1\right)\\x_1.x_2=2m-2\end{matrix}\right.\)
Ta có: \(x_1^2+2\left(m+1\right)x_2+2m-2\)\(=x1^2+x_1+x_2.x_2+x_1.x_2\)
\(=x_1^2+2x_1x_2+x_2^2=\left(x_1+x_2\right)^2\) \(=\left[2\left(m+1\right)\right]^2=4\left(m+1\right)^2\)
Ta có: \(4\left(m+1\right)^2=9\Leftrightarrow\left(m+1\right)^2=\dfrac{9}{4}\) \(\Leftrightarrow\left[{}\begin{matrix}m+1=\dfrac{3}{2}\\m+1=\dfrac{-3}{2}\end{matrix}\right.\) \(\Leftrightarrow\left[{}\begin{matrix}m=\dfrac{1}{2}\\m=\dfrac{-5}{2}\end{matrix}\right.\)
Vậy \(m=\dfrac{1}{2};m=\dfrac{-5}{2}\) thoả mãn yêu cầu đề bài