1: \(=\dfrac{x-1}{x^2+x+1}+\dfrac{x+1}{x-1}\)
\(=\dfrac{x^2-2x+1+x^3+x^2+x^2+x+x+1}{\left(x-1\right)\left(x^2+x+1\right)}\)
\(=\dfrac{x^3+3x^2+2}{\left(x-1\right)\left(x^2+x+1\right)}\)
2: \(=\dfrac{\left(x^2-y^2\right)^2}{\left(x-y\right)\left(x^2+xy+y^2\right)}=\dfrac{\left(x-y\right)\left(x+y\right)^2}{x^2+xy+y^2}\)