Vì pt trên có nghiệm là 3 => x = 3
\(\Rightarrow\left(m-1\right).3+4=3+m^2\)
\(\Rightarrow3m+1=3+m^2\)
\(\Rightarrow m^2+3-3m+1=0\)
\(\Rightarrow m^2-3m+2=0\)
\(\Rightarrow m^2-m-2m+2=0\)
\(\Rightarrow m\left(m-1\right)-2\left(m-1\right)=0\)
\(\Rightarrow\left(m-1\right)\left(m-2\right)=0\)
\(\Rightarrow\left\{{}\begin{matrix}m=1\\m=2\end{matrix}\right.\)