GTNN:
\(A=\dfrac{x^2-5x+1}{x^2-x+1}=-3+\dfrac{4\left(x^2-2x+1\right)}{x^2-x+1}=-3+\dfrac{4\left(x-1\right)^2}{x^2-x+1}\ge-3\)
GTLN:
\(A=\dfrac{x^2-5x+1}{x^2-x+1}=\dfrac{7}{3}-\dfrac{\dfrac{4}{3}\left(x^2+2x+1\right)}{x^2-x+1}=\dfrac{7}{3}-\dfrac{\dfrac{4}{3}\left(x+1\right)^2}{x^2-x+1}\le\dfrac{7}{3}\)