\(\frac{x^2-5x+6}{x^2-2x}=\frac{x^2-2x-3x+6}{x.\left(x-2\right)}=\frac{x.\left(x-2\right)-3.\left(x-2\right)}{x.\left(x-2\right)}\)
\(=\frac{\left(x-3\right).\left(x-2\right)}{x.\left(x-2\right)}=\frac{x-3}{x}\)
\(a,\frac{x^2-xy+x-y}{x^2-xy-x+y}=\frac{x.\left(x-y\right)-\left(x-y\right)}{x.\left(x+y\right)-\left(x+y\right)}\)
\(=\frac{\left(x-y\right)\left(x-1\right)}{\left(x+y\right)\left(x-1\right)}=\frac{x-y}{x+y}\)