\(a,\dfrac{\left(x-1\right)^2}{x^2-1}=\dfrac{\left(x-1\right)^2}{\left(x-1\right)\left(x+1\right)}=\dfrac{x-1}{x+1}\\ b,\dfrac{x^2-16}{4x-x^2}=\dfrac{\left(x-4\right)\left(x+4\right)}{x\left(4-x\right)}=\dfrac{-\left(4-x\right)\left(x+4\right)}{x\left(4-x\right)}=\dfrac{-\left(x+4\right)}{x}\\ c,\dfrac{x^2+6x+9}{2x+6}=\dfrac{\left(x+3\right)^2}{2\left(x+3\right)}=\dfrac{x+3}{2}\)
\(d,\dfrac{x^2+x}{x^2+4x+3}=\dfrac{x\left(x+1\right)}{\left(x^2+x\right)+\left(3x+3\right)}=\dfrac{x\left(x+1\right)}{x\left(x+1\right)+3\left(x+1\right)}=\dfrac{x\left(x+1\right)}{\left(x+1\right)\left(x+3\right)}=\dfrac{x}{x+3}\)
\(e,\dfrac{x^2-x+1}{x^3+1}=\dfrac{x^2-x+1}{\left(x+1\right)\left(x^2-x+1\right)}=\dfrac{1}{x+1}\\ f,\dfrac{\left(x+y\right)^2-z^2}{x+y+z}=\dfrac{\left(x+y-z\right)\left(x+y+z\right)}{x+y+z}=x+y-z\)