g'(x)= \(\frac{\left(x^2-2x+5\right)'\left(x-1\right)-\left(x-1\right)'\left(x^2-2x+5\right)}{\left(x-1\right)^2}\)
= \(\frac{\left(2x-2\right)\left(x-1\right)-\left(x^2-2x+5\right)}{\left(x-1\right)^2}\)
= \(\frac{x^2-2x-3}{\left(x-1\right)^2}\)
g(2) = \(\frac{2^2-2.2-3}{\left(2-1\right)^2}\)=-3