1.
\(-4\le\dfrac{x^2-2x-7}{x^2+1}\le1\)
\(\Leftrightarrow\left\{{}\begin{matrix}x^2-2x-7\le x^2+1\\-4x^2-4\le x^2-2x-7\end{matrix}\right.\) (Do \(x^2+1>0\))
\(\Leftrightarrow\left\{{}\begin{matrix}x\ge-4\\\left[{}\begin{matrix}x\ge1\\x\le-\dfrac{3}{5}\end{matrix}\right.\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x\ge1\\-4\le x\le-\dfrac{3}{5}\end{matrix}\right.\)
2.
\(\dfrac{1}{13}\le\dfrac{x^2-2x-2}{x^2-5x+7}\le1\)
\(\Leftrightarrow\left\{{}\begin{matrix}x^2-5x+7\le13x^2-26x-26\\x^2-2x-2\le x^2-5x+7\end{matrix}\right.\) (Do \(x^2-5x+7>0\))
\(\Leftrightarrow\left\{{}\begin{matrix}\left[{}\begin{matrix}x\ge\dfrac{11}{4}\\x\le-1\end{matrix}\right.\\x\le3\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}\dfrac{11}{4}\le x\le3\\x\le-1\end{matrix}\right.\)