1: \(=\dfrac{\dfrac{x^2+y^2-2xy}{xy}}{\dfrac{x^2-y^2}{xy}}\)
\(=\dfrac{\left(x-y\right)^2}{xy}:\dfrac{\left(x-y\right)\left(x+y\right)}{xy}=\dfrac{x-y}{x+y}\)
2: \(=\dfrac{x^2-1+x^2}{x\left(x+1\right)}:\dfrac{x^2-x^2+1}{x\left(x+1\right)}\)
\(=\dfrac{2x^2-1}{1}=2x^2-1\)