\(B=\dfrac{y}{x-y}-\dfrac{x\left(x^2-1\right)}{x^2+y^2}\cdot\dfrac{x\left(x+y\right)-y\left(x-y\right)}{\left(x-y\right)^2\cdot\left(x+y\right)}\)
\(=\dfrac{y}{x-y}-\dfrac{x^3-x}{\left(x-y\right)^2\left(x+y\right)}\)
\(=\dfrac{y\left(x^2-y^2\right)-x^3+x}{\left(x-y\right)^2\left(x+y\right)}\)