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