\(S=\dfrac{2m^2+7m+23}{m^2+2m+10}\Rightarrow Sm^2+2Sm+10S=2m^2+7m+23\)
\(\Leftrightarrow\left(S-2\right)m^2+\left(2S-7\right)m+10S-23=0\)
\(\Delta=\left(2S-7\right)^2-4\left(S-2\right)\left(10S-23\right)\ge0\)
\(\Leftrightarrow4S^2-16S+15\le0\)
\(\Rightarrow\dfrac{3}{2}\le S\le\dfrac{5}{2}\)
\(S_{min}=\dfrac{3}{2}\) khi \(m=-4\)
\(S_{max}=\dfrac{5}{2}\) khi \(m=2\)