\(a,\dfrac{1}{x^2-x}+\dfrac{2x}{4x^3}-\dfrac{1}{x^2+x+1}\)
\(=\dfrac{1}{x\left(x-1\right)}+\dfrac{1}{2x^2}-\dfrac{1}{x^2+x+1}\)
\(=\dfrac{2x\left(x^2+x+1\right)+\left(x-1\right).\left(x^2+x+1\right)-2x^2.\left(x-1\right)}{2x^2.\left(x-1\right).\left(x^2+x+1\right)}\)
\(=\dfrac{2x^3+2x^2+2x+x^3-1-2x^3+2x^2}{2x^2.\left(x^3-1\right)}\)
\(=\dfrac{4x^2+2x+x^3-1}{2x^5-2x^2}\)
\(=\dfrac{x^3+4x^2+2x-1}{2x^5-2x^2}\)
\(b,\dfrac{1}{x^2-x+1}+1-\dfrac{x^2+2}{\left(x+1\right).\left(x^2-x+1\right)}\)
\(=\dfrac{1}{x^2-x+1}+1-\dfrac{x^2+2}{\left(x^2-x+1\right)}\)
\(=\dfrac{x+1\left(x+1\right).\left(x^2-x+1\right)-\left(x^2+2\right)}{\left(x+1\right)\left(x^2-x+1\right)}\)
\(=\dfrac{x+1+x^3+1-x^2-2}{\left(x+1\right).\left(x^2-x+1\right)}\)
\(=\dfrac{x+0+x^3-x^2}{\left(x+1\right)\left(x^2-x+1\right)}\)
\(=\dfrac{x\left(1+x^2-x\right)}{\left(x+1\right).\left(x^2-x+1\right)}\)
\(=\dfrac{x}{x+1}\)