a: \(\dfrac{1}{x-1}-\dfrac{x^3-x}{x^2+1}\cdot\left(\dfrac{x}{x^2-2x+1}-\dfrac{1}{x^2-1}\right)\)
\(=\dfrac{1}{x-1}-\dfrac{x\left(x-1\right)\left(x+1\right)}{x^2+1}\cdot\left(\dfrac{x}{\left(x-1\right)^2}-\dfrac{1}{\left(x-1\right)\left(x+1\right)}\right)\)
\(=\dfrac{1}{x-1}-\dfrac{x\left(x-1\right)\left(x+1\right)}{x^2+1}\cdot\dfrac{x\left(x+1\right)-x+1}{\left(x-1\right)^2\cdot\left(x+1\right)}\)
\(=\dfrac{1}{x-1}-\dfrac{x}{x^2+1}\cdot\dfrac{x^2+x-x+1}{x-1}\)
\(=\dfrac{1-x}{x-1}=-1\)
b: \(\dfrac{x}{6-x}+\left(\dfrac{x}{\left(x-6\right)\left(x+6\right)}-\dfrac{x-6}{x\left(x+6\right)}\right):\dfrac{2x-6}{x^2+6x}\)
\(=\dfrac{x}{6-x}+\dfrac{x^2-\left(x-6\right)^2}{x\left(x+6\right)\left(x-6\right)}\cdot\dfrac{x\left(x+6\right)}{2\left(x-3\right)}\)
\(=\dfrac{x}{6-x}+\dfrac{x^2-x^2+12x-36}{x-6}\cdot\dfrac{1}{2\left(x-3\right)}\)
\(=\dfrac{x}{6-x}+\dfrac{12\left(x-3\right)}{2\left(x-3\right)\left(x-6\right)}\)
\(=\dfrac{x}{6-x}+\dfrac{6}{x-6}=\dfrac{-x+6}{x-6}=-1\)