a: \(=\dfrac{x^2+xy-x^2-y^2}{x+y}\cdot\dfrac{x-y+2y}{y\left(x-y\right)}\)
\(=\dfrac{y\left(x-y\right)}{x+y}\cdot\dfrac{x+y}{y\left(x-y\right)}=1\)
b: \(\left(\dfrac{2}{x^2-1}+\dfrac{x^2-3}{3x^2-1}\right):\left[\dfrac{1}{x}-\dfrac{2x\left(x^2-3\right)}{\left(x^2-1\right)\left(3x^2-1\right)}\right]\)
\(=\dfrac{6x^2-2+x^4-4x^2+3}{\left(x^2-1\right)\left(3x^2-1\right)}:\dfrac{\left(x^2-1\right)\left(3x^2-3\right)-2x^2\left(x^2-3\right)}{x\left(x^2-1\right)\left(3x^2-1\right)}\)
\(=\dfrac{x^4+2x^2+1}{\left(x^2-1\right)\left(3x^2-1\right)}\cdot\dfrac{x\left(x^2-1\right)\left(3x^2-1\right)}{3x^4-6x^2+3-2x^4+6x^2}\)
\(=\dfrac{x\left(x^2+1\right)^2}{x^4+3}\)