Do giới hạn hữu hạn nên \(x^2+mx+n=0\) có nghiệm \(x=1\)
\(\Rightarrow1+m+n=0\Rightarrow n=-m-1\)
\(\lim\limits_{x\rightarrow1}\dfrac{x^2+mx-m-1}{x-1}=\lim\limits_{x\rightarrow1}\dfrac{\left(x-1\right)\left(x+1\right)+m\left(x-1\right)}{x-1}\)
\(=\lim\limits_{x\rightarrow1}\dfrac{\left(x-1\right)\left(x+1+m\right)}{x-1}=\lim\limits_{x\rightarrow1}\left(x+1+m\right)=m+2\)
\(\Rightarrow m+2=3\Rightarrow m=1\Rightarrow n=-2\)