a: \(=\dfrac{2x-2+9x-x}{6}=\dfrac{10x-2}{6}=\dfrac{5x-1}{3}\)
b: \(=\dfrac{x^2-x+2x+2}{\left(x+1\right)\left(x-1\right)}-\dfrac{x^2}{x-1}\)
\(=\dfrac{x^2+x+2-x^3-x^2}{\left(x-1\right)\left(x+1\right)}=\dfrac{-x^3+x+2}{\left(x-1\right)\left(x+1\right)}\)